org.silverpeas.admin.domain
Class AbstractDomainService

java.lang.Object
  extended by org.silverpeas.admin.domain.AbstractDomainService
All Implemented Interfaces:
DomainService
Direct Known Subclasses:
ExternalDomainService, SQLDomainService

public abstract class AbstractDomainService
extends Object
implements DomainService


Constructor Summary
AbstractDomainService()
           
 
Method Summary
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 id
protected  String registerDomain(Domain domainToCreate)
          Register domain into Silverpeas domains directory
protected  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.admin.domain.DomainService
createDomain, deleteDomain
 

Constructor Detail

AbstractDomainService

public AbstractDomainService()
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:
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.