Enabled ACLs in Attributes. They are now readable and writable.

Added alternative calling convention versions of existing 
AttributeService methods.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5529 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-23 20:56:40 +00:00
parent e9b75a288b
commit 95ff33e256
25 changed files with 227 additions and 79 deletions

View File

@@ -38,6 +38,23 @@ import org.alfresco.repo.domain.DbAccessControlList;
*/
public abstract class AttributeValue implements Attribute
{
/**
* ACL for this Attribute
*/
private DbAccessControlList fACL;
public AttributeValue()
{
}
/**
* Helper for copy constructors.
*/
public AttributeValue(DbAccessControlList acl)
{
fACL = acl;
}
/* (non-Javadoc)
* @see org.alfresco.repo.attributes.Attribute#clear()
*/
@@ -254,14 +271,12 @@ public abstract class AttributeValue implements Attribute
throw new AttributeMethodNotImplemented("Not a map.");
}
// I'm not sure if ACLs are serializable. So for now the following two
// methods are noops.
/* (non-Javadoc)
* @see org.alfresco.repo.attributes.Attribute#getAcl()
*/
public DbAccessControlList getAcl()
{
return null;
return fACL;
}
/* (non-Javadoc)
@@ -269,6 +284,6 @@ public abstract class AttributeValue implements Attribute
*/
public void setAcl(DbAccessControlList acl)
{
// Do Nothing.
fACL = acl;
}
}