Interface DomainService
-
- All Known Implementing Classes:
DomainServiceImpl
public interface DomainService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DomainDTOaddDomain(DomainDTO domainDTO)Add Domain to DBvoiddeleteDomain(Long id)Delete a DomainEntity using the idDomainDTOfindDomainByTitle(String domainTitle)Find a DomainEntity by titleList<DomainDTO>getAllDomains()Return all domains within the DBList<DomainDTO>getEnabledDomains()Return enabled domains within the DBDomainDTOupdateDomain(DomainDTO domainDTO)Update Domain
-
-
-
Method Detail
-
getAllDomains
List<DomainDTO> getAllDomains()
Return all domains within the DB- Returns:
- a list of DomainDTO
-
getEnabledDomains
List<DomainDTO> getEnabledDomains()
Return enabled domains within the DB- Returns:
- a list of enabled DomainDTO
-
findDomainByTitle
DomainDTO findDomainByTitle(String domainTitle)
Find a DomainEntity by title- Parameters:
domainTitle- : domain title- Returns:
- an instance DomainDTO
-
addDomain
DomainDTO addDomain(DomainDTO domainDTO)
Add Domain to DB- Parameters:
domainDTO- : an object of type DomainDTO- Returns:
- BadgeDTO object
-
updateDomain
DomainDTO updateDomain(DomainDTO domainDTO) throws org.exoplatform.commons.exception.ObjectNotFoundException
Update Domain- Parameters:
domainDTO- : an instance of type DomainDTO- Returns:
- DomainDTO object
- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
deleteDomain
void deleteDomain(Long id) throws javax.persistence.EntityNotFoundException
Delete a DomainEntity using the id- Parameters:
id- : domain id- Throws:
javax.persistence.EntityNotFoundException
-
-