Search in sources :

Example 36 with PropertyDefinitionTemplate

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;
}
Also used : PropertyDefinitionTemplate(javax.jcr.nodetype.PropertyDefinitionTemplate)

Example 37 with PropertyDefinitionTemplate

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;
}
Also used : PropertyDefinitionTemplate(javax.jcr.nodetype.PropertyDefinitionTemplate)

Example 38 with PropertyDefinitionTemplate

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;
}
Also used : PropertyDefinitionTemplate(javax.jcr.nodetype.PropertyDefinitionTemplate)

Aggregations

PropertyDefinitionTemplate (javax.jcr.nodetype.PropertyDefinitionTemplate)38 NodeTypeTemplate (javax.jcr.nodetype.NodeTypeTemplate)16 NodeTypeManager (javax.jcr.nodetype.NodeTypeManager)9 Node (javax.jcr.Node)8 Session (javax.jcr.Session)8 List (java.util.List)7 Value (javax.jcr.Value)5 ByteArrayInputStream (java.io.ByteArrayInputStream)4 ConstraintViolationException (javax.jcr.nodetype.ConstraintViolationException)4 NodeDefinitionTemplate (javax.jcr.nodetype.NodeDefinitionTemplate)4 Test (org.junit.Test)4 RepositoryException (javax.jcr.RepositoryException)3 NodeType (javax.jcr.nodetype.NodeType)3 NodeTypeDefinition (javax.jcr.nodetype.NodeTypeDefinition)3 KyloVersion (com.thinkbiganalytics.KyloVersion)2 JcrMetadataAccess (com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess)2 JcrUtil (com.thinkbiganalytics.metadata.modeshape.support.JcrUtil)2 JcrVersionUtil (com.thinkbiganalytics.metadata.modeshape.support.JcrVersionUtil)2 KyloUpgrader (com.thinkbiganalytics.server.upgrade.KyloUpgrader)2 UpgradeException (com.thinkbiganalytics.server.upgrade.UpgradeException)2