Class DomainServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.keymaster.rest.cxf.service.DomainServiceImpl
-
- All Implemented Interfaces:
Serializable,DomainService
@Service public class DomainServiceImpl extends Object implements DomainService
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DomainLogiclogicprotected javax.ws.rs.core.UriInfouriInfo
-
Constructor Summary
Constructors Constructor Description DomainServiceImpl(DomainLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustPoolSize(String key, int poolMaxActive, int poolMinIdle)Adjusts the connection pool to the domain database.voidchangeAdminPassword(String key, String password, CipherAlgorithm cipherAlgorithm)Change admin's password for the given domain.javax.ws.rs.core.Responsecreate(Domain domain)Creates a new domain.voiddelete(String key)Deletes the domain matching the provided key.List<Domain>list()Returns the list of defined domains.Domainread(String key)Returns the domain matching the given key.
-
-
-
Field Detail
-
uriInfo
@Context protected javax.ws.rs.core.UriInfo uriInfo
-
logic
protected final DomainLogic logic
-
-
Constructor Detail
-
DomainServiceImpl
public DomainServiceImpl(DomainLogic logic)
-
-
Method Detail
-
list
public List<Domain> list()
Description copied from interface:DomainServiceReturns the list of defined domains.- Specified by:
listin interfaceDomainService- Returns:
- list of defined domains
-
read
public Domain read(String key)
Description copied from interface:DomainServiceReturns the domain matching the given key.- Specified by:
readin interfaceDomainService- Parameters:
key- key of the domain to be read- Returns:
- domain matching the given key
-
create
public javax.ws.rs.core.Response create(Domain domain)
Description copied from interface:DomainServiceCreates a new domain.- Specified by:
createin interfaceDomainService- Parameters:
domain- domain to be created- Returns:
- Response object featuring Location header of created domain
-
changeAdminPassword
public void changeAdminPassword(String key, String password, CipherAlgorithm cipherAlgorithm)
Description copied from interface:DomainServiceChange admin's password for the given domain.- Specified by:
changeAdminPasswordin interfaceDomainService- Parameters:
key- key of domain to be updatedpassword- encoded password valuecipherAlgorithm- password cipher algorithm
-
adjustPoolSize
public void adjustPoolSize(String key, int poolMaxActive, int poolMinIdle)
Description copied from interface:DomainServiceAdjusts the connection pool to the domain database.- Specified by:
adjustPoolSizein interfaceDomainService- Parameters:
key- key of domain to be updatedpoolMaxActive- database pool max sizepoolMinIdle- database pool max size
-
delete
public void delete(String key)
Description copied from interface:DomainServiceDeletes the domain matching the provided key.- Specified by:
deletein interfaceDomainService- Parameters:
key- key of domain to be deleted
-
-