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 DomainLogic
logic
protected javax.ws.rs.core.UriInfo
uriInfo
-
Constructor Summary
Constructors Constructor Description DomainServiceImpl(DomainLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustPoolSize(String key, int poolMaxActive, int poolMinIdle)
Adjusts the connection pool to the domain database.void
changeAdminPassword(String key, String password, CipherAlgorithm cipherAlgorithm)
Change admin's password for the given domain.javax.ws.rs.core.Response
create(Domain domain)
Creates a new domain.void
delete(String key)
Deletes the domain matching the provided key.List<Domain>
list()
Returns the list of defined domains.Domain
read(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:DomainService
Returns the list of defined domains.- Specified by:
list
in interfaceDomainService
- Returns:
- list of defined domains
-
read
public Domain read(String key)
Description copied from interface:DomainService
Returns the domain matching the given key.- Specified by:
read
in 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:DomainService
Creates a new domain.- Specified by:
create
in 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:DomainService
Change admin's password for the given domain.- Specified by:
changeAdminPassword
in 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:DomainService
Adjusts the connection pool to the domain database.- Specified by:
adjustPoolSize
in 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:DomainService
Deletes the domain matching the provided key.- Specified by:
delete
in interfaceDomainService
- Parameters:
key
- key of domain to be deleted
-
-