Package org.silverpeas.core.admin.domain
Class AbstractDomainService
- java.lang.Object
-
- org.silverpeas.core.admin.domain.AbstractDomainService
-
- All Implemented Interfaces:
DomainService
- Direct Known Subclasses:
ExternalDomainService
,SQLDomainService
public abstract class AbstractDomainService extends Object implements DomainService
-
-
Constructor Summary
Constructors Constructor Description AbstractDomainService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkDomainName(String domainName)
Check domain's name validity (no white spaces, only alphanumeric characters, no duplicate in database)protected String
getNextDomainId()
Get the next domain idprotected String
registerDomain(Domain domainToCreate)
Register domain into Silverpeas domains directoryprotected String
unRegisterDomain(Domain domainToRemove)
Unregister domain from Silverpeas domains directory-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.admin.domain.DomainService
createDomain, deleteDomain
-
-
-
-
Method Detail
-
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:
NameAlreadyExistsInDatabaseException
- if domain name is not validAdminException
- if a technical problem occurs during checks
-
getNextDomainId
protected String getNextDomainId() throws DomainCreationException
Get the next domain id- Returns:
- new domain id
- Throws:
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:
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
-
-