Modifier and Type | Method and Description |
---|---|
<T extends Group> |
GroupManager.addGroup(T group)
Creates a new group with specified attributes.
|
<T extends Group> |
GroupManager.getGroupById(Object id)
Retrieve a Group object with specified Id.
|
<T extends Group> |
GroupManager.getGroupByName(String name)
Retrieve a Group object with specified name.
|
<T extends Group> |
GroupManager.getGroupInstance()
Construct a blank Group object.
|
<T extends Group> |
GroupManager.getGroupInstance(String groupName)
Construct a blank Group object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GroupManager.checkExists(Group group)
Determines if the
Group exists in the security system. |
void |
GroupManager.removeGroup(Group group)
Removes a Group from the system.
|
void |
GroupManager.renameGroup(Group group,
String name)
Renames an existing Group.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicModelManager.grant(User user,
Group group)
Puts a user in a group.
|
boolean |
BasicAccessControlListImpl.hasGroup(Group group)
Checks if the user is assigned a specific Group
|
boolean |
BasicAccessControlList.hasGroup(Group group)
Checks if the user is assigned a specific Group
|
void |
BasicModelManager.revoke(User user,
Group group)
Removes a user from a group
|
Modifier and Type | Interface and Description |
---|---|
interface |
BasicGroup
Represents the "basic" model where users are part of groups, but nothing
else.
|
Modifier and Type | Method and Description |
---|---|
<T extends Group> |
BasicUser.getGroupsAsSet()
Get the groups this user is part of as a Set
|
<T extends Group> |
BasicUser.setGroupsAsSet(Set<T> groups)
Set the groups this user is part of as a Set
|
Modifier and Type | Method and Description |
---|---|
void |
BasicUser.addGroup(Group group)
Add the group to the list of groups
|
void |
BasicUser.removeGroup(Group group)
Remove the group from the list of groups
|
Modifier and Type | Class and Description |
---|---|
class |
BasicGroupImpl
Represents the "basic" model where users are part of groups, but nothing
else.
|
Modifier and Type | Method and Description |
---|---|
<T extends Group> |
BasicUserImpl.getGroupsAsSet()
Get the groups this user is part of as a Set
|
<T extends Group> |
BasicUserImpl.setGroupsAsSet(Set<T> groups)
Set the groups this user is part of as a Set
|
Modifier and Type | Method and Description |
---|---|
void |
BasicUserImpl.addGroup(Group group)
Add the group to the list of groups
|
void |
BasicUserImpl.removeGroup(Group group)
Remove the group from the list of groups
|
Modifier and Type | Method and Description |
---|---|
PermissionSet |
DynamicAccessControlListImpl.getPermissions(Group group)
Retrieves a set of Permissions an user is assigned in a Group.
|
PermissionSet |
DynamicAccessControlList.getPermissions(Group group)
Retrieves a set of Permissions an user is assigned in a Group.
|
RoleSet |
DynamicAccessControlListImpl.getRoles(Group group)
Retrieves a set of Roles an user is assigned in a Group.
|
RoleSet |
DynamicAccessControlList.getRoles(Group group)
Retrieves a set of Roles an user is assigned in a Group.
|
void |
DynamicModelManager.grant(Group group,
Role role)
Puts a role into a group
This method is used when adding a role to a group.
|
void |
DynamicModelManager.grant(User user,
Group group)
Puts a user in a group.
|
boolean |
DynamicAccessControlListImpl.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
DynamicAccessControlList.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
DynamicAccessControlListImpl.hasPermission(String permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
DynamicAccessControlList.hasPermission(String permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
DynamicAccessControlListImpl.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
boolean |
DynamicAccessControlList.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
void |
DynamicModelManager.revoke(Group group,
Role role)
Remove a role from a group
This method is used when removeing a role to a group.
|
void |
DynamicModelManager.revoke(User user,
Group group)
Removes a user from a group
|
void |
DynamicModelManager.revokeAll(Group group)
Revokes all roles and users from a Group
This method is typically used when deleting a Group.
|
void |
AbstractDynamicModelManager.revokeAll(Group group)
Revokes all users and roles from a group
This method is used when deleting a group.
|
Constructor and Description |
---|
DynamicAccessControlListImpl(Map<? extends Group,? extends RoleSet> roleSets,
Map<? extends Role,? extends PermissionSet> permissionSets)
Constructs a new AccessControlList.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DynamicGroup
Represents the "dynamic" model where permissions are related to roles, roles
are related to groups and groups are related to userSet, all in many to many
relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends Group> |
DynamicRole.getGroupsAsSet()
Get the groups this role belongs to as a Set
|
<T extends Group> |
DynamicRole.setGroupsAsSet(Set<T> groups)
Set the groups this role belongs to as a Set
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicRole.addGroup(Group group)
This method should only be used by a RoleManager.
|
void |
DynamicRole.removeGroup(Group group)
This method should only be used by a RoleManager.
|
Modifier and Type | Class and Description |
---|---|
class |
DynamicGroupImpl
Represents the "dynamic" model where permissions are related to roles, roles
are related to groups and groups are related to userSet, all in many to many
relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends Group> |
DynamicRoleImpl.getGroupsAsSet()
Get the groups this role belongs to as a Set
|
<T extends Group> |
DynamicRoleImpl.setGroupsAsSet(Set<T> groups)
Set the groups this role belongs to as a Set
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicRoleImpl.addGroup(Group group)
This method should only be used by a RoleManager.
|
void |
DynamicRoleImpl.removeGroup(Group group)
This method should only be used by a RoleManager.
|
Modifier and Type | Method and Description |
---|---|
Group[] |
TurbineAccessControlListImpl.getAllGroups()
Returns all groups defined in the system.
|
Group[] |
TurbineAccessControlList.getAllGroups()
Returns all groups defined in the system.
|
Group |
TurbineModelManager.getGlobalGroup()
Provides a reference to the Group object that represents the global group.
|
Group |
AbstractTurbineModelManager.getGlobalGroup()
Provides a reference to the Group object that represents the global group .
|
Modifier and Type | Method and Description |
---|---|
PermissionSet |
TurbineAccessControlListImpl.getPermissions(Group group)
Retrieves a set of Permissions an user is assigned in a Group.
|
PermissionSet |
TurbineAccessControlList.getPermissions(Group group)
Retrieves a set of Permissions an user is assigned in a Group.
|
RoleSet |
TurbineAccessControlListImpl.getRoles(Group group)
Retrieves a set of Roles an user is assigned in a Group.
|
RoleSet |
TurbineAccessControlList.getRoles(Group group)
Retrieves a set of Roles an user is assigned in a Group.
|
void |
TurbineModelManager.grant(User user,
Group group,
Role role)
Grant an User a Role in a Group.
|
boolean |
TurbineAccessControlListImpl.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
TurbineAccessControlList.hasPermission(Permission permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
TurbineAccessControlListImpl.hasPermission(String permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
TurbineAccessControlList.hasPermission(String permission,
Group group)
Checks if the user is assigned a specific Permission in the Group.
|
boolean |
TurbineAccessControlListImpl.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
boolean |
TurbineAccessControlList.hasRole(Role role,
Group group)
Checks if the user is assigned a specific Role in the Group.
|
void |
TurbineModelManager.revoke(User user,
Group group,
Role role)
Revoke a Role in a Group from an User.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TurbineGroup
Represents the "turbine" model where permissions are in a many to many
relationship to roles, roles are related to groups are related to users, all
in many to many relationships.
|
Modifier and Type | Method and Description |
---|---|
Group |
TurbineUserGroupRole.getGroup()
Get the group
|
Modifier and Type | Method and Description |
---|---|
void |
TurbineUserGroupRole.setGroup(Group group)
Set the group
|
Modifier and Type | Class and Description |
---|---|
class |
TurbineGroupImpl
Represents the "turbine" model where permissions are in a many to many
relationship to roles, roles are related to groups are related to users, all
in many to many relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends Group> |
AbstractGroupManager.addGroup(T group)
Creates a new group with specified attributes.
|
<T extends Group> |
AbstractGroupManager.getGroupById(Object id)
Retrieve a Group object with specified Id.
|
<T extends Group> |
AbstractGroupManager.getGroupByName(String name)
Retrieve a Group object with specified name.
|
<T extends Group> |
AbstractGroupManager.getGroupInstance()
Construct a blank Group object.
|
<T extends Group> |
AbstractGroupManager.getGroupInstance(String groupName)
Construct a blank Group object.
|
protected abstract <T extends Group> |
AbstractGroupManager.persistNewGroup(T group) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractGroupManager.checkExists(Group group)
Check whether a specified group exists.
|
Modifier and Type | Method and Description |
---|---|
Group |
GroupSet.getGroupById(Object groupId)
Deprecated.
Use getById()
|
Group |
GroupSet.getGroupByName(String groupName)
Deprecated.
Use getByName()
|
Constructor and Description |
---|
GroupSet(Collection<? extends Group> groups)
Constructs a new GroupSet with specified contents.
|
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.