|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserAPI
UserAPI is an API intended to be a helper class for class to get User entities. Classes within the dotCMS should use this API for user management. The UserAPI does not do cache management. It delegates this responsibilities to underlying classes.
| Method Summary | |
|---|---|
com.liferay.portal.model.User |
createUser(java.lang.String userId,
java.lang.String email)
Creates an instance of a user |
void |
delete(com.liferay.portal.model.User userToDelete,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
|
void |
deleteAddress(com.liferay.portal.model.Address ad,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
Removes from the system the given address |
java.lang.String |
encryptUserId(java.lang.String userId)
Used to encrypt a User's userid |
java.util.List<com.liferay.portal.model.User> |
findAllUsers()
This method return a list of all the existing users in the cms. |
java.util.List<com.liferay.portal.model.User> |
findAllUsers(int begin,
int end)
This method return a list of all the existing users in the cms. |
com.liferay.portal.model.User |
getAnonymousUser()
This method return an anonymous user, created to manage the submitContent macro with no user logged in |
long |
getCountUsersByNameOrEmail(java.lang.String filter)
This Method return the number of user that have a firstname, lastname or email like the filter string. |
long |
getCountUsersByNameOrEmailOrUserID(java.lang.String filter)
This Method return the number of user that have a firstname, lastname or email like the filter string. |
com.liferay.portal.model.User |
getDefaultUser()
This method return the default user of the system |
com.liferay.portal.model.User |
getSystemUser()
|
java.util.Map<java.lang.String,java.lang.Object> |
getUsersAnRolesByName(java.lang.String filter,
int start,
int limit)
Deprecated. |
java.util.List<com.liferay.portal.model.User> |
getUsersByName(java.lang.String filter,
int start,
int limit,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
This method returns a list of users whose names are like the string passed in. |
java.util.List<com.liferay.portal.model.User> |
getUsersByNameOrEmail(java.lang.String filter,
int page,
int pageSize)
This method return a a paginated list of user that have a firstname, lastname or email like the compare string passed This method will ALWAYS hit DB |
java.util.List<com.liferay.portal.model.User> |
getUsersByNameOrEmailOrUserID(java.lang.String filter,
int page,
int pageSize)
This method return a a paginated list of user that have a firstname, lastname or email like the compare string passed This method will ALWAYS hit DB |
boolean |
isCMSAdmin(com.liferay.portal.model.User user)
Returns true if the user is a cms admin |
com.liferay.portal.model.Address |
loadAddressById(java.lang.String addressId,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
Load address by id |
com.liferay.portal.model.User |
loadByUserByEmail(java.lang.String email,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
This method finds a User by email, if the user was not found it returns a new user instance ready to be filled and stored. |
java.util.List<com.liferay.portal.model.Address> |
loadUserAddresses(com.liferay.portal.model.User userToGetAddresses,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
Retrieves all addresses associated to a user |
com.liferay.portal.model.User |
loadUserById(java.lang.String userId)
|
com.liferay.portal.model.User |
loadUserById(java.lang.String userId,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
|
void |
save(com.liferay.portal.model.User userToSave,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
Save or update in db the user object |
void |
saveAddress(com.liferay.portal.model.User userToSaveNewAddress,
com.liferay.portal.model.Address ad,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
Method that saves a new address and tie it to the user |
boolean |
userExistsWithEmail(java.lang.String email)
Verify is exists a user with the specified email address |
| Method Detail |
|---|
java.lang.String encryptUserId(java.lang.String userId)
throws DotStateException
userId -
DotStateException - if userid doesn't exist
com.liferay.portal.model.User loadUserById(java.lang.String userId,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotSecurityException,
NoSuchUserException
userId - - UserID being searched foruser - - The user who is requesting the user to be returnedrespectFrontEndRoles -
DotDataException
DotSecurityException
NoSuchUserException
com.liferay.portal.model.User loadUserById(java.lang.String userId)
throws DotDataException,
DotSecurityException,
NoSuchUserException
userId - - UserID being searched for
DotDataException
DotSecurityException
NoSuchUserException
com.liferay.portal.model.User loadByUserByEmail(java.lang.String email,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotSecurityException,
NoSuchUserException
email - user - - The user who is requesting the user to be returnedrespectFrontEndRoles -
DotDataException
DotSecurityException
NoSuchUserException
java.util.List<com.liferay.portal.model.User> findAllUsers(int begin,
int end)
throws DotDataException
begin - end -
DotDataException
java.util.List<com.liferay.portal.model.User> findAllUsers()
throws DotDataException
DotDataException
java.util.List<com.liferay.portal.model.User> getUsersByName(java.lang.String filter,
int start,
int limit,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException
filter - compare stringstart - First element to display. For a negative value, zero is assumed.limit - Max number of elements to show. For a negative value, zero is assumed.user - respectFrontEndRoles -
DotDataException
com.liferay.portal.model.User createUser(java.lang.String userId,
java.lang.String email)
throws DotDataException,
DuplicateUserException
userId - Can be nullemail - Can be null
DotDataException
DuplicateUserException
com.liferay.portal.model.User getDefaultUser()
throws DotDataException
DotDataException
com.liferay.portal.model.User getSystemUser()
throws DotDataException
DotDataException
com.liferay.portal.model.User getAnonymousUser()
throws DotDataException
DotDataException
boolean userExistsWithEmail(java.lang.String email)
throws DotDataException,
NoSuchUserException
email - user email
DotDataException
NoSuchUserException
long getCountUsersByNameOrEmail(java.lang.String filter)
throws DotDataException
filter - Compare string
DotDataException
long getCountUsersByNameOrEmailOrUserID(java.lang.String filter)
throws DotDataException
filter - Compare string
DotDataException
java.util.List<com.liferay.portal.model.User> getUsersByNameOrEmail(java.lang.String filter,
int page,
int pageSize)
throws DotDataException
filter - compare stringpage - page to displaypageSize - number of element to show in the page
DotDataException
java.util.List<com.liferay.portal.model.User> getUsersByNameOrEmailOrUserID(java.lang.String filter,
int page,
int pageSize)
throws DotDataException
filter - compare stringpage - page to displaypageSize - number of element to show in the page
DotDataException
java.util.Map<java.lang.String,java.lang.Object> getUsersAnRolesByName(java.lang.String filter,
int start,
int limit)
throws DotDataException
filter - compare stringstart - first element to displaylimit - max number of elements to show
DotRuntimeException
DotDataException
void save(com.liferay.portal.model.User userToSave,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotSecurityException,
DuplicateUserException
user - - User to saveuser - - User to check permissions to saverespectFrontEndRoles -
DotDataException
DotSecurityException
DuplicateUserException
void delete(com.liferay.portal.model.User userToDelete,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotSecurityException
userToDelete - user - respectFrontEndRoles -
DotDataException
DotSecurityException
void saveAddress(com.liferay.portal.model.User userToSaveNewAddress,
com.liferay.portal.model.Address ad,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotRuntimeException,
DotSecurityException
user - ad -
DotDataException
DotSecurityException
DotRuntimeException
com.liferay.portal.model.Address loadAddressById(java.lang.String addressId,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotSecurityException
DotSecurityException
DotDataException
void deleteAddress(com.liferay.portal.model.Address ad,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotRuntimeException,
DotSecurityException
ad -
DotDataException
DotSecurityException
DotRuntimeException
java.util.List<com.liferay.portal.model.Address> loadUserAddresses(com.liferay.portal.model.User userToGetAddresses,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException,
DotRuntimeException,
DotSecurityException
user -
DotDataException
DotSecurityException
DotRuntimeException
boolean isCMSAdmin(com.liferay.portal.model.User user)
throws DotDataException
user -
DotDataException
DotRuntimeException
DotSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||