mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
DM permissions
http://issues.alfresco.com/browse/SLNG-202 http://issues.alfresco.com/browse/SLNG-203 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,6 +27,12 @@ package org.alfresco.repo.security.permissions;
|
||||
import org.alfresco.service.cmr.security.AccessStatus;
|
||||
import org.alfresco.service.cmr.security.AuthorityType;
|
||||
|
||||
/**
|
||||
* A basic access control entry
|
||||
*
|
||||
* @author andyh
|
||||
*
|
||||
*/
|
||||
public class SimpleAccessControlEntry implements AccessControlEntry
|
||||
{
|
||||
/**
|
||||
@@ -76,31 +82,56 @@ public class SimpleAccessControlEntry implements AccessControlEntry
|
||||
return position;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the status
|
||||
* @param accessStatus
|
||||
*/
|
||||
public void setAccessStatus(AccessStatus accessStatus)
|
||||
{
|
||||
this.accessStatus = accessStatus;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the type
|
||||
* @param aceType
|
||||
*/
|
||||
public void setAceType(ACEType aceType)
|
||||
{
|
||||
this.aceType = aceType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the authority
|
||||
* @param authority
|
||||
*/
|
||||
public void setAuthority(String authority)
|
||||
{
|
||||
this.authority = authority;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the context
|
||||
* @param context
|
||||
*/
|
||||
public void setContext(AccessControlEntryContext context)
|
||||
{
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the permission
|
||||
* @param permission
|
||||
*/
|
||||
public void setPermission(PermissionReference permission)
|
||||
{
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the position
|
||||
* @param position
|
||||
*/
|
||||
public void setPosition(Integer position)
|
||||
{
|
||||
this.position = position;
|
||||
@@ -127,5 +158,20 @@ public class SimpleAccessControlEntry implements AccessControlEntry
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("[");
|
||||
builder.append(getPermission()).append(", ");
|
||||
builder.append(getAuthority()).append(", ");
|
||||
builder.append(getAccessStatus()).append(", ");
|
||||
builder.append(getAceType()).append(", ");
|
||||
builder.append(getPosition()).append(", ");
|
||||
builder.append(getContext());
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user