Uses of Class
com.randomnoun.common.security.User
Packages that use User
Package
Description
-
Uses of User in com.randomnoun.common.security
Methods in com.randomnoun.common.security that return UserModifier and TypeMethodDescriptionPermission.getUser()
Returns the user this permission applies to, or null if it is a user-based role.SecurityContext.getUser
(long userId) Returns a User, given their userIdSecurityLoader.loadUser
(long userId) Load a user.Methods in com.randomnoun.common.security that return types with arguments of type UserModifier and TypeMethodDescriptionSecurityContext.getAllUsers()
Return a list of User objects representing all users contained in this security context.SecurityLoader.loadAllUsers()
Return a list of User objects representing all users contained in this security context.Methods in com.randomnoun.common.security with parameters of type UserModifier and TypeMethodDescriptionboolean
SecurityAuthenticator.authenticate
(User user, String password) Returns true if the supplied password authenticates the supplied user, false otherwise.boolean
SecurityContext.authenticate
(User user, String password) Authenticate the supplied username and password with the authentication provider.SecurityContext.getPermission
(User user, String permission) Returns the Permission object for a specific user/permission combination, or null if this permission is not granted.SecurityContext.getPermissions
(User user, String permission) Returns a list of all Permission objects assigned to a user and all the roles that the user is a member of.SecurityContext.getUserPermissions
(User user) Retrieve a list of permissions for this user, as Permission objects.SecurityContext.getUserRoles
(User user) Return a List of all roles in this security context, identified by String.boolean
SecurityContext.hasPermission
(User user, String permission) Returns true if a user is allowed to perform the permission supplied.boolean
Returns true if a user is allowed to perform the permission supplied, with given resource context.SecurityLoader.loadUserPermissions
(User user) Returns the list of permissions assigned to this user.SecurityContext.loadUserRolePermissions
(User user) SecurityLoader.loadUserRolePermissions
(User user) Return a list of Permission objects associated with the roles possessed by a particular user.SecurityLoader.loadUserRoles
(User user) Returns the list of roles assigned to this user.void
SecurityLoader.saveUserRolesAndPermissions
(User user, List<String> roles, List<Permission> userPermissions) Persists the role and permission information recorded for this user to the database.Constructors in com.randomnoun.common.security with parameters of type UserModifierConstructorDescriptionPermission
(User user, String activity, String resource, ResourceCriteria resourceCriteria) Create a new role-based permission. -
Uses of User in com.randomnoun.common.security.impl
Methods in com.randomnoun.common.security.impl that return UserModifier and TypeMethodDescriptionNullSecurityLoaderImpl.loadUser
(long userId) SpringSecurityLoaderImpl.loadUser
(long userId) Methods in com.randomnoun.common.security.impl that return types with arguments of type UserModifier and TypeMethodDescriptionNullSecurityLoaderImpl.loadAllUsers()
SpringSecurityLoaderImpl.loadAllUsers()
Retrieve a list of users in the current application context.Methods in com.randomnoun.common.security.impl with parameters of type UserModifier and TypeMethodDescriptionboolean
NullSecurityAuthenticatorImpl.authenticate
(User user, String password) boolean
SpringSecurityAuthenticatorImpl.authenticate
(User user, String password) Authenticates a user.NullSecurityLoaderImpl.loadUserPermissions
(User user) SpringSecurityLoaderImpl.loadUserPermissions
(User user) Retrieve per-user permission objects.NullSecurityLoaderImpl.loadUserRolePermissions
(User user) SpringSecurityLoaderImpl.loadUserRolePermissions
(User user) Return List of Permissions containing permissions contained for all roles for a particular user.NullSecurityLoaderImpl.loadUserRoles
(User user) SpringSecurityLoaderImpl.loadUserRoles
(User user) Retrieve a list of roles applied to a particular user for the current application context.void
NullSecurityLoaderImpl.saveUserRolesAndPermissions
(User user, List<String> roles, List<Permission> userPermissions) void
SpringSecurityAuthenticatorImpl.saveUserRolesAndPermissions
(User user, List<String> roles, List<Permission> userPermissions) void
SpringSecurityLoaderImpl.saveUserRolesAndPermissions
(User user, List<String> roles, List<Permission> userPermissions) -
Uses of User in com.randomnoun.common.webapp
Methods in com.randomnoun.common.webapp with parameters of type UserModifier and TypeMethodDescriptionvoid
AppConfigBase.checkPermission
(User user, String permission) Determines whether a user 'may have' a permission on the application.Returns a bundle to be used for internationalisation.boolean
AppConfigBase.hasPermission
(User user, String permission) Determines whether a user 'may have' a permission on the application.boolean
Determines whether a user has a permission on the application.