|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OwPermissionCollection
Base interface for ECM System specific permissions objects. Supports policies (ACL's) and privilege set's.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Method Summary | |
---|---|
void |
addPolicy(OwPolicy policy_p)
add the given policy for single policy archives addPolicy will replace the previous policy |
OwPrivilegeSet |
addPrivilegeSet(OwUserInfo principal_p,
Collection privileges_p,
boolean deny_p,
int inheritancedepth_p)
create and add a new privilege set the new set is applied immediately to the object |
boolean |
canAddMultiPolicy()
check if multiple policies can be set, otherwise only one policy can be applied at a time if true addPolicy will replace the previous policy |
boolean |
canDenyPrivileges()
check if privileges can be denied i.e. |
OwReason |
canEditPermissions()
Method to verify if the permission can be edit. |
boolean |
canGetPolicies()
check if policies can be retrieved |
boolean |
canGetPrivileges()
check if privileges can be retrieved |
boolean |
canSetPolicies()
check if policies can be set |
boolean |
canSetPrivileges()
check if privileges can be set |
Collection |
getAppliedPolicies()
get a collection of all applied policies |
Collection |
getAppliedPrivilegeSets()
get a collection of all applied privilege sets |
Map |
getAvailableInheritanceDepths()
get a collection of applicable levels for inheritance depth |
Collection |
getAvailablePolicies(OwUserInfo principal_p)
get a collection of policies that are applicable for the object and can be used in addPolicy for the given principal |
Collection |
getAvailablePrivileges(OwUserInfo principal_p)
get a collection of privileges that are applicable for the object and can be used in addPrivilegeSet for the given principal |
void |
removePolicy(OwPolicy policy_p)
remove the given privilege set |
void |
removePrivilegeSet(OwPrivilegeSet privilegeset_p)
remove the given privilege set |
Method Detail |
---|
boolean canGetPrivileges()
boolean canSetPrivileges()
boolean canDenyPrivileges()
Collection getAvailablePrivileges(OwUserInfo principal_p)
principal_p
-
Map getAvailableInheritanceDepths()
OwPrivilegeSet addPrivilegeSet(OwUserInfo principal_p, Collection privileges_p, boolean deny_p, int inheritancedepth_p) throws OwException
principal_p
- privileges_p
- Collection of OwPrivilegedeny_p
- inheritancedepth_p
- depth level to which this set is applied for child objects, as defined in OwPrivilegeSet.INHERITANCE_DEPTH_... or by getAvailableInheritanceDepths
OwException
Collection getAppliedPrivilegeSets()
void removePrivilegeSet(OwPrivilegeSet privilegeset_p) throws OwException
privilegeset_p
-
OwException
boolean canGetPolicies()
boolean canSetPolicies()
boolean canAddMultiPolicy()
Collection getAvailablePolicies(OwUserInfo principal_p)
principal_p
-
void addPolicy(OwPolicy policy_p) throws OwException
policy_p
-
OwException
Collection getAppliedPolicies()
void removePolicy(OwPolicy policy_p) throws OwException
policy_p
-
OwException
OwReason canEditPermissions()
OwReason
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |