Interim checkin. Attributes basically work.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5510 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-18 23:25:53 +00:00
parent e2329988bd
commit bdae23b768
43 changed files with 1891 additions and 658 deletions

View File

@@ -25,6 +25,8 @@
package org.alfresco.repo.attributes;
import org.alfresco.repo.avm.AVMDAOs;
/**
* @author britt
*
@@ -35,6 +37,22 @@ public class BooleanAttributeImpl extends AttributeImpl implements
private static final long serialVersionUID = 8483440613101900682L;
private boolean fValue;
public BooleanAttributeImpl()
{
}
public BooleanAttributeImpl(boolean value)
{
fValue = value;
AVMDAOs.Instance().fAttributeDAO.save(this);
}
public BooleanAttributeImpl(BooleanAttribute attr)
{
fValue = attr.getBooleanValue();
AVMDAOs.Instance().fAttributeDAO.save(this);
}
/* (non-Javadoc)
* @see org.alfresco.repo.attributes.AttributeImpl#getBooleanValue()
@@ -44,7 +62,7 @@ public class BooleanAttributeImpl extends AttributeImpl implements
{
return fValue;
}
/* (non-Javadoc)
* @see org.alfresco.repo.attributes.AttributeImpl#setBooleanValue(boolean)
*/