|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.security.SecurityImpl
org.apache.slide.security.ACLSecurityImpl
WebDAV/ACL compliant security helper implementation (draft-12)
Field Summary |
Fields inherited from class org.apache.slide.security.SecurityImpl |
aclInheritanceType, logger, namespace, namespaceConfig, rolesCache |
Constructor Summary | |
ACLSecurityImpl()
Be sure to call init() before using an instance created with this constructor. |
|
ACLSecurityImpl(Namespace namespace,
NamespaceConfig namespaceConfig)
Constructor. |
Method Summary | |
java.util.Enumeration |
getGroupMembership(SlideToken token,
SubjectNode subjectNode)
Get enumeration of paths according to property DAV:group-membership |
java.util.Enumeration |
getRoles(ObjectNode object)
Return the list of roles the specified node has. |
java.util.Enumeration |
getRoles(SlideToken token)
Return the list of roles the specified token has. |
java.util.Enumeration |
getRoles(SlideToken token,
SubjectNode subjectNode)
Get the role names the specified subject has (deeply over nested roles, if there) |
boolean |
hasPermission(ObjectNode object,
SubjectNode subject,
ActionNode action)
Check whether or not an actor can perform the specified activity on a collection. |
boolean |
hasPermission(SlideToken token,
ObjectNode objectNode,
ActionNode actionNode)
Check whether or not an actor (principal) can perform the specified activity on the specified resource. |
boolean |
hasRole(ObjectNode object,
java.lang.String role)
Check whether or not the current user has the specified role. |
boolean |
hasRole(SlideToken token,
java.lang.String role)
Check whether or not the current user has the specified role. |
boolean |
hasRole(SlideToken token,
SubjectNode subjectNode,
java.lang.String role)
|
void |
init(Namespace namespace,
NamespaceConfig namespaceConfig)
Method init |
Methods inherited from class org.apache.slide.security.SecurityImpl |
checkCredentials, checkPermission, checkPermission, denyPermission, denyPermission, denyPermission, enumeratePermissions, enumeratePermissions, enumeratePermissions, enumeratePermissions, getActionAggregation, getPrincipal, grantPermission, grantPermission, grantPermission, matchAction, matchPrincipal, matchPrincipal, retrieveAclSourceNodes, revokePermission, revokePermission, setPermissions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ACLSecurityImpl()
public ACLSecurityImpl(Namespace namespace, NamespaceConfig namespaceConfig)
namespace
- NamespacenamespaceConfig
- Namespace configurationMethod Detail |
public void init(Namespace namespace, NamespaceConfig namespaceConfig)
init
in interface Security
init
in class SecurityImpl
namespace
- a NamespacenamespaceConfig
- a NamespaceConfigpublic boolean hasPermission(ObjectNode object, SubjectNode subject, ActionNode action) throws ServiceAccessException, ObjectNotFoundException
hasPermission
in interface Security
hasPermission
in class SecurityImpl
object
- Object on which access is testedsubject
- Subject who seeks to perform the actionaction
- Action which is to be performed
ServiceAccessException
- DataSource access error
ObjectNotFoundException
- Specified object was not found
in the DataSourcepublic boolean hasPermission(SlideToken token, ObjectNode objectNode, ActionNode actionNode) throws ServiceAccessException, ObjectNotFoundException
hasPermission
in interface Security
hasPermission
in class SecurityImpl
token
- a SlideTokenobjectNode
- Object on which access is testedactionNode
- Action which is to be performed
ServiceAccessException
ObjectNotFoundException
public boolean hasRole(SlideToken token, java.lang.String role) throws ServiceAccessException, ObjectNotFoundException
SecurityImpl
hasRole
in interface Security
hasRole
in class SecurityImpl
token
- Credentials tokenrole
- Role
ObjectNotFoundException
- Specified object was not found
in the DataSource
ServiceAccessException
- DataSource access errorpublic boolean hasRole(SlideToken token, SubjectNode subjectNode, java.lang.String role) throws ServiceAccessException, ObjectNotFoundException
ServiceAccessException
ObjectNotFoundException
public boolean hasRole(ObjectNode object, java.lang.String role) throws ServiceAccessException, ObjectNotFoundException
SecurityImpl
hasRole
in interface Security
hasRole
in class SecurityImpl
object
- Object noderole
- Role
ServiceAccessException
- DataSource access error
ObjectNotFoundException
- Specified object was not found
in the DataSourcepublic java.util.Enumeration getRoles(SlideToken token) throws ServiceAccessException, ObjectNotFoundException
SecurityImpl
getRoles
in interface Security
getRoles
in class SecurityImpl
token
- Credentials token
ServiceAccessException
ObjectNotFoundException
public java.util.Enumeration getRoles(SlideToken token, SubjectNode subjectNode) throws ServiceAccessException, ObjectNotFoundException
getRoles
in interface Security
getRoles
in class SecurityImpl
token
- a SlideTokensubjectNode
- a SubjectNode
ServiceAccessException
ObjectNotFoundException
public java.util.Enumeration getGroupMembership(SlideToken token, SubjectNode subjectNode) throws ServiceAccessException, ObjectNotFoundException
token
- a SlideTokensubjectNode
- a SubjectNode
ServiceAccessException
ObjectNotFoundException
public java.util.Enumeration getRoles(ObjectNode object)
SecurityImpl
getRoles
in interface Security
getRoles
in class SecurityImpl
object
- Object node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |