mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user