public class AbstractUser extends RoleBasedObject implements User
| Constructor and Description |
|---|
AbstractUser()
Creates an user without any associated role.
|
AbstractUser(Role... roles)
Creates an user associated with given roles
|
AbstractUser(String... roleNames)
Creates an user associated with given roles
|
addRole, addRole, clearRoles, getRoles, removeRole, removeRolepublic AbstractUser()
RoleBasedObject.RoleBasedObject()public AbstractUser(Role... roles) throws IllegalArgumentException, DuplicateException
roles - associated rolesIllegalArgumentException - if any of given roles is nullDuplicateException - if there is an attempt to register the same role more than once (either directly of as a child of any associated role).RoleBasedObject.RoleBasedObject(Role...)public AbstractUser(String... roleNames) throws IllegalArgumentException, DuplicateException, RoleNotFoundException
roleNames - associated rolesIllegalArgumentException - if any of given role names is null/empty
not registered in RoleRepositoryDuplicateException - if there is an attempt to register the same role more than once (either directly of as a child of any associated role).RoleNotFoundException - if any given roleName is not registered in RoleRepositoryRoleBasedObject.RoleBasedObject(String...)Copyright © 2015 Agapsys Tecnologia Ltda-ME. All rights reserved.