use of javax.jcr.nodetype.PropertyDefinitionTemplate in project pentaho-platform by pentaho.
the class InternalFolderNtdProvider method getWildcardProperty.
private PropertyDefinitionTemplate getWildcardProperty(final NodeTypeManager ntMgr, final ValueFactory vFac) throws RepositoryException {
PropertyDefinitionTemplate t = ntMgr.createPropertyDefinitionTemplate();
// $NON-NLS-1$
t.setName("*");
t.setRequiredType(PropertyType.UNDEFINED);
t.setOnParentVersion(OnParentVersionAction.IGNORE);
t.setMultiple(true);
return t;
}
use of javax.jcr.nodetype.PropertyDefinitionTemplate in project pentaho-platform by pentaho.
the class HierarchyNodeNtdProvider method getHiddenProperty.
private PropertyDefinitionTemplate getHiddenProperty(final NodeTypeManager ntMgr, final ValueFactory vFac) throws RepositoryException {
PropertyDefinitionTemplate t = ntMgr.createPropertyDefinitionTemplate();
// $NON-NLS-1$
t.setName(PHO + "hidden");
t.setRequiredType(PropertyType.BOOLEAN);
t.setDefaultValues(new Value[] { vFac.createValue(false) });
t.setOnParentVersion(OnParentVersionAction.COPY);
t.setMultiple(false);
return t;
}
use of javax.jcr.nodetype.PropertyDefinitionTemplate in project pentaho-platform by pentaho.
the class LockTokenStorageNtdProvider method getLockTokenProperty.
private PropertyDefinitionTemplate getLockTokenProperty(NodeTypeManager ntMgr, ValueFactory vFac) throws RepositoryException {
PropertyDefinitionTemplate t = ntMgr.createPropertyDefinitionTemplate();
// $NON-NLS-1$
t.setName(PHO + "lockToken");
t.setRequiredType(PropertyType.STRING);
t.setOnParentVersion(OnParentVersionAction.IGNORE);
t.setMultiple(false);
return t;
}
Aggregations