org.silverpeas.admin.domain
Class AbstractDomainService
java.lang.Object
org.silverpeas.admin.domain.AbstractDomainService
- All Implemented Interfaces:
- DomainService
- Direct Known Subclasses:
- ExternalDomainService, SQLDomainService
public abstract class AbstractDomainService
- extends Object
- implements DomainService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDomainService
public AbstractDomainService()
checkDomainName
protected void checkDomainName(String domainName)
throws AdminException,
NameAlreadyExistsInDatabaseException
- Check domain's name validity (no white spaces, only alphanumeric characters, no duplicate in
database)
- Parameters:
domainName
- the new domain name
- Throws:
DomainConflictException
- if domain name is not valid
AdminException
- if a technical problem occurs during checks
NameAlreadyExistsInDatabaseException
getNextDomainId
protected String getNextDomainId()
throws DomainCreationException
- Get the next domain id
- Returns:
- new domain id
- Throws:
DomainDeletionException
DomainCreationException
registerDomain
protected String registerDomain(Domain domainToCreate)
throws DomainCreationException
- Register domain into Silverpeas domains directory
- Parameters:
domainToCreate
- the domain to be created
- Returns:
- new domain id
- Throws:
DomainDeletionException
DomainCreationException
unRegisterDomain
protected String unRegisterDomain(Domain domainToRemove)
throws DomainDeletionException
- Unregister domain from Silverpeas domains directory
- Parameters:
domainToRemove
- the domain to be created
- Returns:
- new domain id
- Throws:
DomainDeletionException
Copyright © 2016 Silverpeas. All Rights Reserved.