Added sys:incomplete aspect.

Extended <mandatory> definition in the DD.
The "mandatory" properties in our system have, until now, been optional, i.e. the integrity has not been enforced.
It is possible to have
   <mandatory enforced="true">true</mandatory>, which means "mandatory and enforced", but
   <mandatory enforced="false">true</mandatory>, which means "mandatory but not enforced".
Our system properties have been marked as "mandatory".
Dublin core has had the properties marked as "required".  Currently, if the Dublin Core is added, the node is tagged with sys:incomplete.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2562 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-03-21 21:46:15 +00:00
parent 764675cb2a
commit fd13fe7a51
23 changed files with 718 additions and 53 deletions

View File

@@ -34,6 +34,7 @@ public class M2Property
private String propertyType = null;
private boolean isProtected = false;
private boolean isMandatory = false;
private boolean isMandatoryEnforced = false;
private boolean isMultiValued = false;
private String defaultValue = null;
private boolean isIndexed = true;
@@ -118,12 +119,20 @@ public class M2Property
return isMandatory;
}
public void setMandatory(boolean isMandatory)
{
this.isMandatory = isMandatory;
}
public boolean isMandatoryEnforced()
{
return isMandatoryEnforced;
}
public void setMandatoryEnforced(boolean isMandatoryEnforced)
{
this.isMandatoryEnforced = isMandatoryEnforced;
}
public boolean isMultiValued()
{