| Package | Description |
|---|---|
| org.craftercms.profile.api.services |
| Modifier and Type | Method and Description |
|---|---|
Profile |
ProfileService.addRoles(String profileId,
Collection<String> roles,
String... attributesToReturn)
Assigns roles to the profile.
|
Profile |
ProfileService.changePassword(String resetTokenId,
String newPassword,
String... attributesToReturn)
Changes a profile's password, after a reset request has been sent.
|
Profile |
ProfileService.createProfile(String tenantName,
String username,
String password,
String email,
boolean enabled,
Set<String> roles,
Map<String,Object> attributes,
String verificationUrl)
Creates a new profile for a specific tenant name.
|
Profile |
ProfileService.disableProfile(String profileId,
String... attributesToReturn)
Disables a profile.
|
Profile |
ProfileService.enableProfile(String profileId,
String... attributesToReturn)
Enables a profile.
|
Profile |
ProfileService.getProfile(String profileId,
String... attributesToReturn)
Returns the profile for the specified ID.
|
Profile |
ProfileService.getProfileByQuery(String tenantName,
String query,
String... attributesToReturn)
Returns the single profile that matches the specified query
|
Profile |
ProfileService.getProfileByTicket(String ticketId,
String... attributesToReturn)
Returns the profile for the specified ticket.
|
Profile |
ProfileService.getProfileByUsername(String tenantName,
String username,
String... attributesToReturn)
Returns the user for the specified tenant and username
|
Profile |
ProfileService.removeAttributes(String profileId,
Collection<String> attributeNames,
String... attributesToReturn)
Removes a list of attributes of a profile.
|
Profile |
ProfileService.removeRoles(String profileId,
Collection<String> roles,
String... attributesToReturn)
Removes assigned roles from a profile.
|
Profile |
ProfileService.resetPassword(String profileId,
String resetPasswordUrl,
String... attributesToReturn)
Sends an email to the profile's user to indicate that the password needs to be reset.
|
Profile |
ProfileService.setFailedAttempts(String profileId,
int failedAttempts,
String... attributesToReturn) |
Profile |
ProfileService.setLastFailedLogging(String profileId,
Date lastFailedLogging,
String... attributesToReturn) |
Profile |
ProfileService.updateAttributes(String profileId,
Map<String,Object> attributes,
String... attributesToReturn)
Updates the attributes of a profile, by merging the specified attributes with the existing attributes.
|
Profile |
ProfileService.updateProfile(String profileId,
String username,
String password,
String email,
Boolean enabled,
Set<String> roles,
Map<String,Object> attributes,
String... attributesToReturn)
Updates the profile's info.
|
Profile |
ProfileService.verifyProfile(String verificationTokenId,
String... attributesToReturn)
Sets the profile as verified if the verification token is valid.
|
| Modifier and Type | Method and Description |
|---|---|
List<Profile> |
ProfileService.getProfileRange(String tenantName,
String sortBy,
SortOrder sortOrder,
Integer start,
Integer count,
String... attributesToReturn)
Returns a range of profiles for the specified tenant.
|
List<Profile> |
ProfileService.getProfilesByAttributeValue(String tenantName,
String attributeName,
String attributeValue,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn)
Returns the list of profiles that have the given attribute with the given value.
|
List<Profile> |
ProfileService.getProfilesByExistingAttribute(String tenantName,
String attributeName,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn)
Returns the list of profiles that have the given attribute, with any value
|
List<Profile> |
ProfileService.getProfilesByIds(List<String> profileIds,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn)
Returns a list of profiles for the specified list of IDs.
|
List<Profile> |
ProfileService.getProfilesByQuery(String tenantName,
String query,
String sortBy,
SortOrder sortOrder,
Integer start,
Integer count,
String... attributesToReturn)
Returns the profiles that match the specified query.
|
List<Profile> |
ProfileService.getProfilesByRole(String tenantName,
String role,
String sortBy,
SortOrder sortOrder,
String... attributesToReturn)
Returns a list of profiles for a specific role and tenant.
|
Copyright © 2015 CrafterCMS. All Rights Reserved.