Class AuthProfileServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.AuthProfileServiceImpl
-
- All Implemented Interfaces:
AuthProfileService
,JAXRSService
@Service public class AuthProfileServiceImpl extends AbstractService implements AuthProfileService
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthProfileLogic
logic
-
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
-
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
-
Constructor Summary
Constructors Constructor Description AuthProfileServiceImpl(AuthProfileLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(AuthProfileTO authProfileTO)
Create a new auth profile.void
delete(String key)
Deletes the auth profile matching the provided if key, if found.PagedResult<AuthProfileTO>
list(int page, int size)
Returns the paginated list of existing auth profiles.AuthProfileTO
read(String key)
Returns the auth profile matching the provided if key, if found.void
update(AuthProfileTO authProfileTO)
Updates the auth profile matching the provided if key, if found.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final AuthProfileLogic logic
-
-
Constructor Detail
-
AuthProfileServiceImpl
public AuthProfileServiceImpl(AuthProfileLogic logic)
-
-
Method Detail
-
delete
public void delete(String key)
Description copied from interface:AuthProfileService
Deletes the auth profile matching the provided if key, if found.- Specified by:
delete
in interfaceAuthProfileService
- Parameters:
key
- auth profile key
-
read
public AuthProfileTO read(String key)
Description copied from interface:AuthProfileService
Returns the auth profile matching the provided if key, if found.- Specified by:
read
in interfaceAuthProfileService
- Parameters:
key
- auth profile key- Returns:
- auth profile matching the provided if key, if found
-
create
public javax.ws.rs.core.Response create(AuthProfileTO authProfileTO)
Description copied from interface:AuthProfileService
Create a new auth profile.- Specified by:
create
in interfaceAuthProfileService
- Parameters:
authProfileTO
- auth profile to create- Returns:
- Response object featuring Location header of created client app
-
update
public void update(AuthProfileTO authProfileTO)
Description copied from interface:AuthProfileService
Updates the auth profile matching the provided if key, if found.- Specified by:
update
in interfaceAuthProfileService
- Parameters:
authProfileTO
- auth profile
-
list
public PagedResult<AuthProfileTO> list(int page, int size)
Description copied from interface:AuthProfileService
Returns the paginated list of existing auth profiles.- Specified by:
list
in interfaceAuthProfileService
- Parameters:
page
- search pagesize
- search page size- Returns:
- the paginated list of existing auth profiles
-
-