public class ProfileServiceRestClient extends AbstractProfileRestClientBase implements ProfileService
ProfileService.| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_KEY_ATTRIBUTES_SERIALIZATION_ERROR |
static String |
ERROR_KEY_INVALID_URI_ERROR |
static org.springframework.core.ParameterizedTypeReference<List<Profile>> |
profileListTypeRef |
accessTokenIdResolver| Constructor and Description |
|---|
ProfileServiceRestClient() |
| Modifier and Type | Method and Description |
|---|---|
Profile |
addRoles(String profileId,
Collection<String> roles,
String... attributesToReturn) |
Profile |
changePassword(String resetTokenId,
String newPassword,
String... attributesToReturn) |
Profile |
createProfile(String tenantName,
String username,
String password,
String email,
boolean enabled,
Set<String> roles,
Map<String,Object> attributes,
String verificationUrl) |
VerificationToken |
createVerificationToken(String profileId) |
void |
deleteProfile(String profileId) |
void |
deleteVerificationToken(String tokenId) |
Profile |
disableProfile(String profileId,
String... attributesToReturn) |
Profile |
enableProfile(String profileId,
String... attributesToReturn) |
Map<String,Object> |
getAttributes(String profileId,
String... attributesToReturn) |
Profile |
getProfile(String profileId,
String... attributesToReturn) |
Profile |
getProfileByQuery(String tenantName,
String query,
String... attributesToReturn) |
Profile |
getProfileByTicket(String ticketId,
String... attributesToReturn) |
Profile |
getProfileByUsername(String tenantName,
String username,
String... attributesToReturn) |
long |
getProfileCount(String tenantName) |
long |
getProfileCountByQuery(String tenantName,
String query) |
List<Profile> |
getProfileRange(String tenantName,
String sortBy,
SortOrder sortOrder,
Integer start,
Integer count,
String... attributesToReturn) |
List<Profile> |
getProfilesByAttributeValue(String tenantName,
String attributeName,
String attributeValue,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn) |
List<Profile> |
getProfilesByExistingAttribute(String tenantName,
String attributeName,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn) |
List<Profile> |
getProfilesByIds(List<String> profileIds,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn) |
List<Profile> |
getProfilesByQuery(String tenantName,
String query,
String sortBy,
SortOrder sortOrder,
Integer start,
Integer count,
String... attributesToReturn) |
List<Profile> |
getProfilesByRole(String tenantName,
String role,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn) |
Profile |
removeAttributes(String profileId,
Collection<String> attributeNames,
String... attributesToReturn) |
Profile |
removeRoles(String profileId,
Collection<String> roles,
String... attributesToReturn) |
Profile |
resetPassword(String profileId,
String resetPasswordUrl,
String... attributesToReturn) |
protected String |
serializeAttributes(Map<String,Object> attributes) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Profile |
updateAttributes(String profileId,
Map<String,Object> attributes,
String... attributesToReturn) |
Profile |
updateProfile(String profileId,
String username,
String password,
String email,
Boolean enabled,
Set<String> roles,
Map<String,Object> attributes,
String... attributesToReturn) |
Profile |
verifyProfile(String verificationTokenId,
String... attributesToReturn) |
createBaseParams, doGetForObject, doGetForObject, doGetForObject, doGetForObject, doPostForLocation, doPostForObject, getAbsoluteUrlWithAccessTokenIdParam, handleException, handleRestServiceException, setAccessTokenIdResolverpublic static final org.springframework.core.ParameterizedTypeReference<List<Profile>> profileListTypeRef
public static final String ERROR_KEY_ATTRIBUTES_SERIALIZATION_ERROR
public static final String ERROR_KEY_INVALID_URI_ERROR
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public Profile createProfile(String tenantName, String username, String password, String email, boolean enabled, Set<String> roles, Map<String,Object> attributes, String verificationUrl) throws ProfileException
createProfile in interface ProfileServiceProfileExceptionpublic Profile updateProfile(String profileId, String username, String password, String email, Boolean enabled, Set<String> roles, Map<String,Object> attributes, String... attributesToReturn) throws ProfileException
updateProfile in interface ProfileServiceProfileExceptionpublic Profile verifyProfile(String verificationTokenId, String... attributesToReturn) throws ProfileException
verifyProfile in interface ProfileServiceProfileExceptionpublic Profile enableProfile(String profileId, String... attributesToReturn) throws ProfileException
enableProfile in interface ProfileServiceProfileExceptionpublic Profile disableProfile(String profileId, String... attributesToReturn) throws ProfileException
disableProfile in interface ProfileServiceProfileExceptionpublic Profile addRoles(String profileId, Collection<String> roles, String... attributesToReturn) throws ProfileException
addRoles in interface ProfileServiceProfileExceptionpublic Profile removeRoles(String profileId, Collection<String> roles, String... attributesToReturn) throws ProfileException
removeRoles in interface ProfileServiceProfileExceptionpublic Map<String,Object> getAttributes(String profileId, String... attributesToReturn) throws ProfileException
getAttributes in interface ProfileServiceProfileExceptionpublic Profile updateAttributes(String profileId, Map<String,Object> attributes, String... attributesToReturn) throws ProfileException
updateAttributes in interface ProfileServiceProfileExceptionpublic Profile removeAttributes(String profileId, Collection<String> attributeNames, String... attributesToReturn) throws ProfileException
removeAttributes in interface ProfileServiceProfileExceptionpublic void deleteProfile(String profileId) throws ProfileException
deleteProfile in interface ProfileServiceProfileExceptionpublic Profile getProfileByQuery(String tenantName, String query, String... attributesToReturn) throws ProfileException
getProfileByQuery in interface ProfileServiceProfileExceptionpublic Profile getProfile(String profileId, String... attributesToReturn) throws ProfileException
getProfile in interface ProfileServiceProfileExceptionpublic Profile getProfileByUsername(String tenantName, String username, String... attributesToReturn) throws ProfileException
getProfileByUsername in interface ProfileServiceProfileExceptionpublic Profile getProfileByTicket(String ticketId, String... attributesToReturn) throws ProfileException
getProfileByTicket in interface ProfileServiceProfileExceptionpublic long getProfileCount(String tenantName) throws ProfileException
getProfileCount in interface ProfileServiceProfileExceptionpublic long getProfileCountByQuery(String tenantName, String query) throws ProfileException
getProfileCountByQuery in interface ProfileServiceProfileExceptionpublic List<Profile> getProfilesByQuery(String tenantName, String query, String sortBy, SortOrder sortOrder, Integer start, Integer count, String... attributesToReturn) throws ProfileException
getProfilesByQuery in interface ProfileServiceProfileExceptionpublic List<Profile> getProfilesByIds(List<String> profileIds, String sortBy, SortOrder sortOrder, String... attributesToReturn) throws ProfileException
getProfilesByIds in interface ProfileServiceProfileExceptionpublic List<Profile> getProfileRange(String tenantName, String sortBy, SortOrder sortOrder, Integer start, Integer count, String... attributesToReturn) throws ProfileException
getProfileRange in interface ProfileServiceProfileExceptionpublic List<Profile> getProfilesByRole(String tenantName, String role, String sortBy, SortOrder sortOrder, String... attributesToReturn) throws ProfileException
getProfilesByRole in interface ProfileServiceProfileExceptionpublic List<Profile> getProfilesByExistingAttribute(String tenantName, String attributeName, String sortBy, SortOrder sortOrder, String... attributesToReturn) throws ProfileException
getProfilesByExistingAttribute in interface ProfileServiceProfileExceptionpublic List<Profile> getProfilesByAttributeValue(String tenantName, String attributeName, String attributeValue, String sortBy, SortOrder sortOrder, String... attributesToReturn) throws ProfileException
getProfilesByAttributeValue in interface ProfileServiceProfileExceptionpublic Profile resetPassword(String profileId, String resetPasswordUrl, String... attributesToReturn) throws ProfileException
resetPassword in interface ProfileServiceProfileExceptionpublic Profile changePassword(String resetTokenId, String newPassword, String... attributesToReturn) throws ProfileException
changePassword in interface ProfileServiceProfileExceptionpublic VerificationToken createVerificationToken(String profileId) throws ProfileException
createVerificationToken in interface ProfileServiceProfileExceptionpublic void deleteVerificationToken(String tokenId) throws ProfileException
deleteVerificationToken in interface ProfileServiceProfileExceptionprotected String serializeAttributes(Map<String,Object> attributes) throws ProfileException
ProfileExceptionCopyright © 2015 CrafterCMS. All Rights Reserved.