mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@125603 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
73 lines
1.7 KiB
Java
73 lines
1.7 KiB
Java
package org.alfresco.repo.security.permissions;
|
|
|
|
import org.alfresco.service.cmr.repository.NodeRef;
|
|
import org.alfresco.service.cmr.security.AccessStatus;
|
|
|
|
/**
|
|
* A single permission entry defined against a node.
|
|
*
|
|
* @author andyh
|
|
*/
|
|
public interface PermissionEntry
|
|
{
|
|
/**
|
|
* Get the permission definition.
|
|
*
|
|
* This may be null. Null implies that the settings apply to all permissions
|
|
*
|
|
* @return PermissionReference
|
|
*/
|
|
public PermissionReference getPermissionReference();
|
|
|
|
/**
|
|
* Get the authority to which this entry applies This could be the string
|
|
* value of a username, group, role or any other authority assigned to the
|
|
* authorisation.
|
|
*
|
|
* If null then this applies to all.
|
|
*
|
|
* @return String
|
|
*/
|
|
public String getAuthority();
|
|
|
|
/**
|
|
* Get the node ref for the node to which this permission applies.
|
|
*
|
|
* This can only be null for a global permission
|
|
*
|
|
* @return NodeRef
|
|
*/
|
|
public NodeRef getNodeRef();
|
|
|
|
/**
|
|
* Is permissions denied?
|
|
*
|
|
*/
|
|
public boolean isDenied();
|
|
|
|
/**
|
|
* Is permission allowed?
|
|
*
|
|
*/
|
|
public boolean isAllowed();
|
|
|
|
/**
|
|
* Get the Access enum value
|
|
*
|
|
* @return AccessStatus
|
|
*/
|
|
public AccessStatus getAccessStatus();
|
|
|
|
/**
|
|
* Is this permission inherited?
|
|
* @return boolean
|
|
*/
|
|
public boolean isInherited();
|
|
|
|
/**
|
|
* Return the position in the inhertance chain (0 is not inherited and set on the object)
|
|
* @return int
|
|
*/
|
|
public int getPosition();
|
|
}
|