Skip navigation links
A B C D E G H N P R S T U 

A

AbstractAction - Class in com.agapsys.security
Represents an action that will be executed only if required roles are available for execution.
AbstractAction() - Constructor for class com.agapsys.security.AbstractAction
Constructor Creates an action without any required role for its execution
AbstractAction(Role...) - Constructor for class com.agapsys.security.AbstractAction
Constructor.
AbstractAction(String...) - Constructor for class com.agapsys.security.AbstractAction
Constructor.
AbstractUser - Class in com.agapsys.security
Basic implementation of a User.
AbstractUser() - Constructor for class com.agapsys.security.AbstractUser
Creates an user without any associated role.
AbstractUser(Role...) - Constructor for class com.agapsys.security.AbstractUser
Creates an user associated with given roles
AbstractUser(String...) - Constructor for class com.agapsys.security.AbstractUser
Creates an user associated with given roles
add(T) - Method in class com.agapsys.security.NamedObjectRepository
Adds an object to this repository.
addChild(Role...) - Method in class com.agapsys.security.Role
Adds given roles as children of this object
addChild(String...) - Method in class com.agapsys.security.Role
Adds given roles as children of this object.
addChild(T) - Method in class com.agapsys.security.TreeObject
Adds an object as a child.
addRequiredRole(Role...) - Method in class com.agapsys.security.AbstractAction
Adds required roles to this action.
addRequiredRole(String...) - Method in class com.agapsys.security.AbstractAction
Adds required roles to this action.
addRole(Role...) - Method in class com.agapsys.security.RoleBasedObject
Associates given roles to this object
addRole(String...) - Method in class com.agapsys.security.RoleBasedObject
Associates given roles to this object

B

belongsTo(T, boolean) - Method in class com.agapsys.security.TreeObject
Returns a boolean indicating if this object is a child of given object.
belongsTo(Set<T>, boolean) - Method in class com.agapsys.security.TreeObject
Returns a boolean indicating if this objects is a child of any of the members of given set.

C

CircularReferenceException - Exception in com.agapsys.security
 
clear() - Method in class com.agapsys.security.NamedObjectRepository
Clear this repository.
clearChildren() - Method in class com.agapsys.security.TreeObject
Remove all children objects.
clearRequiredRoles() - Method in class com.agapsys.security.AbstractAction
Remove all required roles associations.
clearRoles() - Method in class com.agapsys.security.RoleBasedObject
Removes all role associations.
com.agapsys.security - package com.agapsys.security
 
contains(String) - Method in class com.agapsys.security.NamedObjectRepository
 
createRole(String) - Method in class com.agapsys.security.RoleRepository
Creates a role and adds it this repository

D

DuplicateException - Exception in com.agapsys.security
Exception throw when an duplicate element was detected.
DuplicateException(String) - Constructor for exception com.agapsys.security.DuplicateException
 

E

equals(Object) - Method in class com.agapsys.security.Role
 
equals(Object) - Method in class com.agapsys.security.TreeObject
 
execute(User, Object...) - Method in class com.agapsys.security.AbstractAction
Execute this action.

G

get(String) - Method in class com.agapsys.security.NamedObjectRepository
 
getAction() - Method in exception com.agapsys.security.SecurityException
 
getChildren() - Method in class com.agapsys.security.TreeObject
 
getName() - Method in interface com.agapsys.security.NamedObject
 
getName() - Method in class com.agapsys.security.Role
 
getOrCreate(String) - Method in class com.agapsys.security.RoleRepository
Gets a role from this repository or creates a new one if there is no such role
getParams() - Method in exception com.agapsys.security.SecurityException
 
getRequiredRoles() - Method in class com.agapsys.security.AbstractAction
 
getRoleName() - Method in exception com.agapsys.security.RoleNotFoundException
 
getRoles() - Method in class com.agapsys.security.RoleBasedObject
 
getRoles() - Method in interface com.agapsys.security.User
 
getSingletonInstance() - Static method in class com.agapsys.security.RoleRepository
 
getUser() - Method in exception com.agapsys.security.SecurityException
 

H

hasChild(T, boolean) - Method in class com.agapsys.security.TreeObject
Returns a boolean indicating if given object is a child of this object.
hasChildren() - Method in class com.agapsys.security.TreeObject
 
hasChildren(Set<T>, boolean) - Method in class com.agapsys.security.TreeObject
Returns a boolean indicating if all elements of given set are children of this element.
hashCode() - Method in class com.agapsys.security.Role
 
hashCode() - Method in class com.agapsys.security.TreeObject
 

N

NamedObject - Interface in com.agapsys.security
Represents an object with an associated name.
NamedObjectRepository<T extends NamedObject> - Class in com.agapsys.security
Represents a repository of NamedObjects.
NamedObjectRepository() - Constructor for class com.agapsys.security.NamedObjectRepository
Constructor.

P

postRun(User, Object...) - Method in class com.agapsys.security.AbstractAction
Called after action execution.
preRun(User, Object...) - Method in class com.agapsys.security.AbstractAction
Called before action execution.

R

remove(String) - Method in class com.agapsys.security.NamedObjectRepository
Removes an object with given name from this repository.
removeChild(T) - Method in class com.agapsys.security.TreeObject
Removes a direct child.
removeRequiredRole(Role...) - Method in class com.agapsys.security.AbstractAction
Removes a required role.
removeRequiredRole(String...) - Method in class com.agapsys.security.AbstractAction
Removes a required role.
removeRole(Role...) - Method in class com.agapsys.security.RoleBasedObject
Removes the association of a role with this instance.
removeRole(String...) - Method in class com.agapsys.security.RoleBasedObject
Removes the association of a role with this instance.
Role - Class in com.agapsys.security
Represents an role.
RoleBasedObject - Class in com.agapsys.security
Represents an object with association to roles.
RoleBasedObject() - Constructor for class com.agapsys.security.RoleBasedObject
Constructor.
RoleBasedObject(Role...) - Constructor for class com.agapsys.security.RoleBasedObject
Constructor.
RoleBasedObject(String...) - Constructor for class com.agapsys.security.RoleBasedObject
Constructor.
RoleNotFoundException - Exception in com.agapsys.security
 
RoleRepository - Class in com.agapsys.security
Represents a repository of roles for an application.
run(User, Object...) - Method in class com.agapsys.security.AbstractAction
Actual action code.

S

SecurityException - Exception in com.agapsys.security
Represents a security violation attempt exception while running an action.

T

toString() - Method in class com.agapsys.security.Role
 
TreeObject<T extends TreeObject> - Class in com.agapsys.security
Represents an object which can contains children objects.
TreeObject() - Constructor for class com.agapsys.security.TreeObject
Constructs an empty object without any children.
TreeObject(Set<T>) - Constructor for class com.agapsys.security.TreeObject
Constructs an object with a given set of children.

U

User - Interface in com.agapsys.security
Represents a user in secured application.
A B C D E G H N P R S T U 
Skip navigation links

Copyright © 2015 Agapsys Tecnologia Ltda-ME. All rights reserved.