Package org.silverpeas.core.admin.domain
Class SQLDomainService
- java.lang.Object
-
- org.silverpeas.core.admin.domain.AbstractDomainService
-
- org.silverpeas.core.admin.domain.SQLDomainService
-
- All Implemented Interfaces:
DomainService
@Service @Singleton @Named("sqlDomainService") public class SQLDomainService extends AbstractDomainService
-
-
Constructor Summary
Constructors Constructor Description SQLDomainService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createDomain(Domain domainToCreate)
Create given Domain.String
deleteDomain(Domain domainToRemove)
Remove given Domain.protected String
getTechnicalDomainName(Domain domain)
Gets a file name without special characters and without accentued characters in the aim to create domain property files safely on file system.-
Methods inherited from class org.silverpeas.core.admin.domain.AbstractDomainService
checkDomainName, getNextDomainId, registerDomain, unRegisterDomain
-
-
-
-
Method Detail
-
getTechnicalDomainName
protected String getTechnicalDomainName(Domain domain)
Gets a file name without special characters and without accentued characters in the aim to create domain property files safely on file system.- Parameters:
domain
- with a name that may contain some special characters and/or accentued characters- Returns:
-
createDomain
public String createDomain(Domain domainToCreate) throws DomainConflictException, DomainCreationException
Description copied from interface:DomainService
Create given Domain.- Parameters:
domainToCreate
- the domain to create.- Returns:
- the identifier of the created domain.
- Throws:
DomainConflictException
DomainCreationException
-
deleteDomain
public String deleteDomain(Domain domainToRemove) throws DomainDeletionException
Description copied from interface:DomainService
Remove given Domain.- Parameters:
domainToRemove
- the domain to remove.- Returns:
- the identifier of the removed domain.
- Throws:
DomainDeletionException
-
-