org.alfresco.repo.security.permissions.noop
Class PermissionServiceNOOPImpl

java.lang.Object
  extended by org.alfresco.repo.security.permissions.noop.PermissionServiceNOOPImpl
All Implemented Interfaces:
PermissionServiceSPI, org.alfresco.service.cmr.security.PermissionService

public class PermissionServiceNOOPImpl
extends java.lang.Object
implements PermissionServiceSPI

Dummy implementation of Permissions Service


Field Summary
 
Fields inherited from interface org.alfresco.service.cmr.security.PermissionService
ADD_CHILDREN, ADMINISTRATOR_AUTHORITY, ALL_AUTHORITIES, ALL_PERMISSIONS, ASPECTS, CANCEL_CHECK_OUT, CHANGE_PERMISSIONS, CHECK_IN, CHECK_OUT, CONSUMER, CONTRIBUTOR, COORDINATOR, CREATE_ASSOCIATIONS, CREATE_CHILDREN, DELETE, DELETE_ASSOCIATIONS, DELETE_CHILDREN, DELETE_NODE, EDITOR, EXECUTE, EXECUTE_CONTENT, FLATTEN, FULL_CONTROL, GROUP_PREFIX, GUEST_AUTHORITY, LINK_CHILDREN, LOCK, LOCK_OWNER_AUTHORITY, OWNER_AUTHORITY, PROPERTIES, READ, READ_ASSOCIATIONS, READ_CHILDREN, READ_CONTENT, READ_PERMISSIONS, READ_PROPERTIES, ROLE_PREFIX, SET_OWNER, TAKE_OWNERSHIP, UNLOCK, WCM_CONTENT_CONTRIBUTOR, WCM_CONTENT_MANAGER, WCM_CONTENT_PUBLISHER, WCM_CONTENT_REVIEWER, WCM_STORE_OWNER_AUTHORITY, WRITE, WRITE_CONTENT, WRITE_PROPERTIES
 
Constructor Summary
PermissionServiceNOOPImpl()
           
 
Method Summary
 void clearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority)
           
 void clearPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority)
           
 void deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, java.lang.String perm)
           
 void deletePermission(PermissionEntry permissionEntry)
          Delete a single permission entry
 void deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, java.lang.String permission)
           
 void deletePermissions(NodePermissionEntry nodePermissionEntry)
          Delete the permissions defined by the nodePermissionEntry
 void deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 void deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
           
 void deletePermissions(java.lang.String recipient)
          Delete permissions for the given recipient.
 NodePermissionEntry explainPermission(org.alfresco.service.cmr.repository.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.lang.String getAllAuthorities()
           
 java.lang.String getAllPermission()
           
 PermissionReference getAllPermissionReference()
          Get the All Permission
 java.util.Set getAllSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.util.Set getAllSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
           
 java.util.Set getAuthorisations()
           
 boolean getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.lang.String getOwnerAuthority()
           
 java.lang.String getPermission(PermissionReference permissionReference)
          Get the string that can be used to identify the given permission reference.
 PermissionReference getPermissionReference(org.alfresco.service.namespace.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(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.util.Set getReaders(java.lang.Long aclId)
           
 NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Get the permissions that have been set on the given node (it knows nothing of the parent permissions)
 NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
          Get the permissions set for the store
 java.util.Set getSettablePermissionReferences(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Get the permissions that can be set for a given type
 java.util.Set getSettablePermissionReferences(org.alfresco.service.namespace.QName type)
          Get the permissions that can be set for a given type
 java.util.Set getSettablePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.util.Set getSettablePermissions(org.alfresco.service.namespace.QName type)
           
 org.alfresco.service.cmr.security.AccessStatus hasPermission(java.lang.Long aclID, org.alfresco.service.cmr.security.PermissionContext context, java.lang.String permission)
           
 org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference perm)
          Check that the given authentication has a particular permission for the given node.
 org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String perm)
           
 org.alfresco.service.cmr.security.AccessStatus hasReadPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions)
           
 void setPermission(NodePermissionEntry nodePermissionEntry)
          Set the permissions on a node.
 void setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, java.lang.String perm, boolean allow)
           
 void setPermission(PermissionEntry permissionEntry)
          Add or set a permission entry on a node.
 void setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, java.lang.String permission, boolean allow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionServiceNOOPImpl

public PermissionServiceNOOPImpl()
Method Detail

getOwnerAuthority

public java.lang.String getOwnerAuthority()
Specified by:
getOwnerAuthority in interface org.alfresco.service.cmr.security.PermissionService

getAllAuthorities

public java.lang.String getAllAuthorities()
Specified by:
getAllAuthorities in interface org.alfresco.service.cmr.security.PermissionService

getAllPermission

public java.lang.String getAllPermission()
Specified by:
getAllPermission in interface org.alfresco.service.cmr.security.PermissionService

getPermissions

public java.util.Set getPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Specified by:
getPermissions in interface org.alfresco.service.cmr.security.PermissionService

getAllSetPermissions

public java.util.Set getAllSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Specified by:
getAllSetPermissions in interface org.alfresco.service.cmr.security.PermissionService

getSettablePermissions

public java.util.Set getSettablePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Specified by:
getSettablePermissions in interface org.alfresco.service.cmr.security.PermissionService

getSettablePermissions

public java.util.Set getSettablePermissions(org.alfresco.service.namespace.QName type)
Specified by:
getSettablePermissions in interface org.alfresco.service.cmr.security.PermissionService

hasPermission

public org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                                                    java.lang.String perm)
Specified by:
hasPermission in interface org.alfresco.service.cmr.security.PermissionService

deletePermissions

public void deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Specified by:
deletePermissions in interface org.alfresco.service.cmr.security.PermissionService

deletePermission

public void deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                             java.lang.String authority,
                             java.lang.String perm)
Specified by:
deletePermission in interface org.alfresco.service.cmr.security.PermissionService

setPermission

public void setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                          java.lang.String authority,
                          java.lang.String perm,
                          boolean allow)
Specified by:
setPermission in interface org.alfresco.service.cmr.security.PermissionService

setInheritParentPermissions

public void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                        boolean inheritParentPermissions)
Specified by:
setInheritParentPermissions in interface org.alfresco.service.cmr.security.PermissionService

getInheritParentPermissions

public boolean getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Specified by:
getInheritParentPermissions in interface org.alfresco.service.cmr.security.PermissionService

clearPermission

public void clearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                            java.lang.String authority)
Specified by:
clearPermission in interface org.alfresco.service.cmr.security.PermissionService

deletePermission

public void deletePermission(PermissionEntry permissionEntry)
Description copied from interface: PermissionServiceSPI
Delete a single permission entry

Specified by:
deletePermission in interface PermissionServiceSPI

deletePermissions

public void deletePermissions(NodePermissionEntry nodePermissionEntry)
Description copied from interface: PermissionServiceSPI
Delete the permissions defined by the nodePermissionEntry

Specified by:
deletePermissions in interface PermissionServiceSPI

deletePermissions

public void deletePermissions(java.lang.String recipient)
Description copied from interface: PermissionServiceSPI
Delete permissions for the given recipient.

Specified by:
deletePermissions in interface PermissionServiceSPI

explainPermission

public NodePermissionEntry explainPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                             PermissionReference perm)
Description copied from interface: PermissionServiceSPI
Where is the permission set that controls the behaviour for the given permission for the given authentication to access the specified name.

Specified by:
explainPermission in interface PermissionServiceSPI
Returns:
the node permission entry

getAllPermissionReference

public PermissionReference getAllPermissionReference()
Description copied from interface: PermissionServiceSPI
Get the All Permission

Specified by:
getAllPermissionReference in interface PermissionServiceSPI
Returns:
the All permission

getPermission

public java.lang.String getPermission(PermissionReference permissionReference)
Description copied from interface: PermissionServiceSPI
Get the string that can be used to identify the given permission reference.

Specified by:
getPermission in interface PermissionServiceSPI
Returns:
the permission short name

getPermissionReference

public PermissionReference getPermissionReference(org.alfresco.service.namespace.QName qname,
                                                  java.lang.String permissionName)
Description copied from interface: PermissionServiceSPI
Get the permission reference for the given data type and permission name.

Specified by:
getPermissionReference in interface PermissionServiceSPI
Parameters:
qname - - may be null if the permission name is unique
Returns:
the permission reference

getPermissionReference

public PermissionReference getPermissionReference(java.lang.String permissionName)
Description copied from interface: PermissionServiceSPI
Get the permission reference by permission name.

Specified by:
getPermissionReference in interface PermissionServiceSPI
Returns:
the permission reference

getSetPermissions

public NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: PermissionServiceSPI
Get the permissions that have been set on the given node (it knows nothing of the parent permissions)

Specified by:
getSetPermissions in interface PermissionServiceSPI
Returns:
the node permission entry

getSettablePermissionReferences

public java.util.Set getSettablePermissionReferences(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: PermissionServiceSPI
Get the permissions that can be set for a given type

Specified by:
getSettablePermissionReferences in interface PermissionServiceSPI
Returns:
the set of permissions

getSettablePermissionReferences

public java.util.Set getSettablePermissionReferences(org.alfresco.service.namespace.QName type)
Description copied from interface: PermissionServiceSPI
Get the permissions that can be set for a given type

Specified by:
getSettablePermissionReferences in interface PermissionServiceSPI
Returns:
the set of permissions

hasPermission

public org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                                                    PermissionReference perm)
Description copied from interface: PermissionServiceSPI
Check that the given authentication has a particular permission for the given node. (The default behaviour is to inherit permissions)

Specified by:
hasPermission in interface PermissionServiceSPI
Returns:
the access status

hasPermission

public org.alfresco.service.cmr.security.AccessStatus hasPermission(java.lang.Long aclID,
                                                                    org.alfresco.service.cmr.security.PermissionContext context,
                                                                    java.lang.String permission)
Specified by:
hasPermission in interface org.alfresco.service.cmr.security.PermissionService

getReaders

public java.util.Set getReaders(java.lang.Long aclId)
Specified by:
getReaders in interface org.alfresco.service.cmr.security.PermissionService

setPermission

public void setPermission(NodePermissionEntry nodePermissionEntry)
Description copied from interface: PermissionServiceSPI
Set the permissions on a node.

Specified by:
setPermission in interface PermissionServiceSPI

setPermission

public void setPermission(PermissionEntry permissionEntry)
Description copied from interface: PermissionServiceSPI
Add or set a permission entry on a node.

Specified by:
setPermission in interface PermissionServiceSPI

clearPermission

public void clearPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
                            java.lang.String authority)
Specified by:
clearPermission in interface org.alfresco.service.cmr.security.PermissionService

deletePermission

public void deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
                             java.lang.String authority,
                             java.lang.String permission)
Specified by:
deletePermission in interface org.alfresco.service.cmr.security.PermissionService

deletePermissions

public void deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
Specified by:
deletePermissions in interface org.alfresco.service.cmr.security.PermissionService

setPermission

public void setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
                          java.lang.String authority,
                          java.lang.String permission,
                          boolean allow)
Specified by:
setPermission in interface org.alfresco.service.cmr.security.PermissionService

getAllSetPermissions

public java.util.Set getAllSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
Specified by:
getAllSetPermissions in interface org.alfresco.service.cmr.security.PermissionService

getSetPermissions

public NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
Description copied from interface: PermissionServiceSPI
Get the permissions set for the store

Specified by:
getSetPermissions in interface PermissionServiceSPI
Returns:
- the node permission entry

hasReadPermission

public org.alfresco.service.cmr.security.AccessStatus hasReadPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Specified by:
hasReadPermission in interface org.alfresco.service.cmr.security.PermissionService

getAuthorisations

public java.util.Set getAuthorisations()
Specified by:
getAuthorisations in interface org.alfresco.service.cmr.security.PermissionService


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.