mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added ACLs to Attributes. Can't do much with them yet, but the column is in place.
Fixed failing AttrQueryTest. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5528 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,8 @@ import java.util.Collection;
|
||||
import java.util.Set;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import org.alfresco.repo.domain.DbAccessControlList;
|
||||
|
||||
/**
|
||||
* The base class of the implementation of Values.
|
||||
* @author britt
|
||||
@@ -46,6 +48,11 @@ public abstract class AttributeImpl implements Attribute
|
||||
*/
|
||||
private long fVersion;
|
||||
|
||||
/**
|
||||
* ACL for this Attribute.
|
||||
*/
|
||||
private DbAccessControlList fACL;
|
||||
|
||||
/**
|
||||
* Base constructor.
|
||||
*/
|
||||
@@ -314,4 +321,20 @@ public abstract class AttributeImpl implements Attribute
|
||||
{
|
||||
return (int)fID;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.attributes.Attribute#getAcl()
|
||||
*/
|
||||
public DbAccessControlList getAcl()
|
||||
{
|
||||
return fACL;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.attributes.Attribute#setAcl(org.alfresco.repo.domain.DbAccessControlList)
|
||||
*/
|
||||
public void setAcl(DbAccessControlList acl)
|
||||
{
|
||||
fACL = acl;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user