|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.security.permissions.noop.PermissionServiceNOOPImpl
public class PermissionServiceNOOPImpl
Dummy implementation of Permissions Service
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
PermissionServiceNOOPImpl()
|
|
| Method Summary | |
|---|---|
void |
clearPermission(NodeRef nodeRef,
java.lang.String authority)
Delete all permission for the given authority. |
void |
clearPermission(StoreRef storeRef,
java.lang.String authority)
Clear all permission masks for an authority on a store |
void |
deletePermission(NodeRef nodeRef,
java.lang.String authority,
java.lang.String perm)
Find and delete a access control entry by node, authentication and permission. |
void |
deletePermission(PermissionEntry permissionEntry)
Delete a single permission entry |
void |
deletePermission(StoreRef storeRef,
java.lang.String authority,
java.lang.String permission)
Remove part of a permission mask on a store |
void |
deletePermissions(NodePermissionEntry nodePermissionEntry)
Delete the permissions defined by the nodePermissionEntry |
void |
deletePermissions(NodeRef nodeRef)
Delete all the permission assigned to the node |
void |
deletePermissions(StoreRef storeRef)
Remove all permission mask on a store |
void |
deletePermissions(java.lang.String recipient)
Delete permissions for the given recipient. |
NodePermissionEntry |
explainPermission(NodeRef nodeRef,
PermissionReference perm)
Where is the permission set that controls the behaviour for the given permission for the given authentication to access the specified name. |
java.util.Set |
findNodesByAssignedPermission(java.lang.String authority,
java.lang.String permission,
boolean allow,
boolean includeContainingAuthorities,
boolean exactPermissionMatch)
|
java.util.Set |
findNodesByAssignedPermissionForCurrentUser(java.lang.String permission,
boolean allow,
boolean includeContainingAuthorities,
boolean exactPermissionMatch)
|
java.lang.String |
getAllAuthorities()
Get the All Authorities |
java.lang.String |
getAllPermission()
Get the All Permission |
PermissionReference |
getAllPermissionReference()
Get the All Permission |
java.util.Set |
getAllSetPermissions(NodeRef nodeRef)
Get all the AccessPermissions that are set for anyone for the given node |
java.util.Set |
getAllSetPermissions(StoreRef storeRef)
Get all the AccessPermissions that are set for anyone for the given node |
java.util.Map |
getAllSetPermissionsForAuthority(java.lang.String authority)
|
java.util.Map |
getAllSetPermissionsForCurrentUser()
|
boolean |
getInheritParentPermissions(NodeRef nodeRef)
Return the global inheritance behaviour for permissions on a node. |
java.lang.String |
getOwnerAuthority()
Get the Owner Authority |
java.lang.String |
getPermission(PermissionReference permissionReference)
Get the string that can be used to identify the given permission reference. |
PermissionReference |
getPermissionReference(QName qname,
java.lang.String permissionName)
Get the permission reference for the given data type and permission name. |
PermissionReference |
getPermissionReference(java.lang.String permissionName)
Get the permission reference by permission name. |
java.util.Set |
getPermissions(NodeRef nodeRef)
Get all the AccessPermissions that are granted/denied to the current authentication for the given node |
NodePermissionEntry |
getSetPermissions(NodeRef nodeRef)
Get the permissions that have been set on the given node (it knows nothing of the parent permissions) |
NodePermissionEntry |
getSetPermissions(StoreRef storeRef)
Get the permissions set for the store |
java.util.Set |
getSettablePermissionReferences(NodeRef nodeRef)
Get the permissions that can be set for a given type |
java.util.Set |
getSettablePermissionReferences(QName type)
Get the permissions that can be set for a given type |
java.util.Set |
getSettablePermissions(NodeRef nodeRef)
Get the permissions that can be set for a given node |
java.util.Set |
getSettablePermissions(QName type)
Get the permissions that can be set for a given type |
AccessStatus |
hasPermission(java.lang.Long aclID,
PermissionContext context,
java.lang.String permission)
Check if a permission is allowed on an acl. |
AccessStatus |
hasPermission(NodeRef nodeRef,
PermissionReference perm)
Check that the given authentication has a particular permission for the given node. |
AccessStatus |
hasPermission(NodeRef nodeRef,
java.lang.String perm)
Check that the given authentication has a particular permission for the given node. |
void |
setInheritParentPermissions(NodeRef nodeRef,
boolean inheritParentPermissions)
Set the global inheritance behaviour for permissions on a node. |
void |
setPermission(NodePermissionEntry nodePermissionEntry)
Set the permissions on a node. |
void |
setPermission(NodeRef nodeRef,
java.lang.String authority,
java.lang.String perm,
boolean allow)
Set a specific permission on a node. |
void |
setPermission(PermissionEntry permissionEntry)
Add or set a permission entry on a node. |
void |
setPermission(StoreRef storeRef,
java.lang.String authority,
java.lang.String permission,
boolean allow)
Add a permission mask to a store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermissionServiceNOOPImpl()
| Method Detail |
|---|
public java.lang.String getOwnerAuthority()
PermissionService
getOwnerAuthority in interface PermissionServicepublic java.lang.String getAllAuthorities()
PermissionService
getAllAuthorities in interface PermissionServicepublic java.lang.String getAllPermission()
PermissionService
getAllPermission in interface PermissionServicepublic java.util.Set getPermissions(NodeRef nodeRef)
PermissionService
getPermissions in interface PermissionServicenodeRef - -
the reference to the node
public java.util.Set getAllSetPermissions(NodeRef nodeRef)
PermissionService
getAllSetPermissions in interface PermissionServicenodeRef - -
the reference to the node
public java.util.Set getSettablePermissions(NodeRef nodeRef)
PermissionService
getSettablePermissions in interface PermissionServicepublic java.util.Set getSettablePermissions(QName type)
PermissionService
getSettablePermissions in interface PermissionService
public AccessStatus hasPermission(NodeRef nodeRef,
java.lang.String perm)
PermissionService
hasPermission in interface PermissionServicepublic void deletePermissions(NodeRef nodeRef)
PermissionService
deletePermissions in interface PermissionService
public void deletePermission(NodeRef nodeRef,
java.lang.String authority,
java.lang.String perm)
PermissionService
deletePermission in interface PermissionServicenodeRef - the node that the entry applies toauthority - the authority recipient (if null then this will match all authorities)perm - the entry permission (if null then this will match all permissions)
public void setPermission(NodeRef nodeRef,
java.lang.String authority,
java.lang.String perm,
boolean allow)
PermissionService
setPermission in interface PermissionService
public void setInheritParentPermissions(NodeRef nodeRef,
boolean inheritParentPermissions)
PermissionService
setInheritParentPermissions in interface PermissionServicepublic boolean getInheritParentPermissions(NodeRef nodeRef)
PermissionService
getInheritParentPermissions in interface PermissionService
public void clearPermission(NodeRef nodeRef,
java.lang.String authority)
PermissionService
clearPermission in interface PermissionServiceauthority - (if null then this will match all authorities)public void deletePermission(PermissionEntry permissionEntry)
PermissionServiceSPI
deletePermission in interface PermissionServiceSPIpublic void deletePermissions(NodePermissionEntry nodePermissionEntry)
PermissionServiceSPI
deletePermissions in interface PermissionServiceSPIpublic void deletePermissions(java.lang.String recipient)
PermissionServiceSPI
deletePermissions in interface PermissionServiceSPI
public NodePermissionEntry explainPermission(NodeRef nodeRef,
PermissionReference perm)
PermissionServiceSPI
explainPermission in interface PermissionServiceSPIpublic PermissionReference getAllPermissionReference()
PermissionServiceSPI
getAllPermissionReference in interface PermissionServiceSPIpublic java.lang.String getPermission(PermissionReference permissionReference)
PermissionServiceSPI
getPermission in interface PermissionServiceSPI
public PermissionReference getPermissionReference(QName qname,
java.lang.String permissionName)
PermissionServiceSPI
getPermissionReference in interface PermissionServiceSPIqname - - may be null if the permission name is unique
public PermissionReference getPermissionReference(java.lang.String permissionName)
PermissionServiceSPI
getPermissionReference in interface PermissionServiceSPIpublic NodePermissionEntry getSetPermissions(NodeRef nodeRef)
PermissionServiceSPI
getSetPermissions in interface PermissionServiceSPIpublic java.util.Set getSettablePermissionReferences(NodeRef nodeRef)
PermissionServiceSPI
getSettablePermissionReferences in interface PermissionServiceSPIpublic java.util.Set getSettablePermissionReferences(QName type)
PermissionServiceSPI
getSettablePermissionReferences in interface PermissionServiceSPI
public AccessStatus hasPermission(NodeRef nodeRef,
PermissionReference perm)
PermissionServiceSPI
hasPermission in interface PermissionServiceSPI
public AccessStatus hasPermission(java.lang.Long aclID,
PermissionContext context,
java.lang.String permission)
PermissionService
hasPermission in interface PermissionServicepublic void setPermission(NodePermissionEntry nodePermissionEntry)
PermissionServiceSPI
setPermission in interface PermissionServiceSPIpublic void setPermission(PermissionEntry permissionEntry)
PermissionServiceSPI
setPermission in interface PermissionServiceSPIpublic java.util.Map getAllSetPermissionsForCurrentUser()
public java.util.Map getAllSetPermissionsForAuthority(java.lang.String authority)
public java.util.Set findNodesByAssignedPermissionForCurrentUser(java.lang.String permission,
boolean allow,
boolean includeContainingAuthorities,
boolean exactPermissionMatch)
public java.util.Set findNodesByAssignedPermission(java.lang.String authority,
java.lang.String permission,
boolean allow,
boolean includeContainingAuthorities,
boolean exactPermissionMatch)
public void clearPermission(StoreRef storeRef,
java.lang.String authority)
PermissionService
clearPermission in interface PermissionService
public void deletePermission(StoreRef storeRef,
java.lang.String authority,
java.lang.String permission)
PermissionService
deletePermission in interface PermissionServicepublic void deletePermissions(StoreRef storeRef)
PermissionService
deletePermissions in interface PermissionService
public void setPermission(StoreRef storeRef,
java.lang.String authority,
java.lang.String permission,
boolean allow)
PermissionService
setPermission in interface PermissionServicepublic java.util.Set getAllSetPermissions(StoreRef storeRef)
PermissionService
getAllSetPermissions in interface PermissionServicestoreRef - -
the reference to the store
public NodePermissionEntry getSetPermissions(StoreRef storeRef)
PermissionServiceSPI
getSetPermissions in interface PermissionServiceSPI
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||