/** * {@inheritDoc} */ public PropertyDefinition[] getPropertyDefinitions() { QPropertyDefinition[] pda = ent.getAllPropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
/** * {@inheritDoc} */ public PropertyDefinition[] getPropertyDefinitions() { QPropertyDefinition[] pda = ent.getAllPropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
/** * Returns an array containing only those property definitions of this * node type (including the property definitions inherited from supertypes * of this node type) where <code>{@link PropertyDefinition#isAutoCreated()}</code> * returns <code>true</code>. * * @return an array of property definitions. * @see PropertyDefinition#isAutoCreated */ public PropertyDefinition[] getAutoCreatedPropertyDefinitions() { QPropertyDefinition[] pda = ent.getAutoCreatePropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
/** * Returns an array containing only those property definitions of this * node type (including the property definitions inherited from supertypes * of this node type) where <code>{@link PropertyDefinition#isMandatory()}</code> * returns <code>true</code>. * * @return an array of property definitions. * @see PropertyDefinition#isMandatory */ public PropertyDefinition[] getMandatoryPropertyDefinitions() { QPropertyDefinition[] pda = ent.getMandatoryPropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
/** * Returns an array containing only those property definitions of this * node type (including the property definitions inherited from supertypes * of this node type) where <code>{@link PropertyDefinition#isAutoCreated()}</code> * returns <code>true</code>. * * @return an array of property definitions. * @see PropertyDefinition#isAutoCreated */ public PropertyDefinition[] getAutoCreatedPropertyDefinitions() { QPropertyDefinition[] pda = ent.getAutoCreatePropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
/** * Returns an array containing only those property definitions of this * node type (including the property definitions inherited from supertypes * of this node type) where <code>{@link PropertyDefinition#isMandatory()}</code> * returns <code>true</code>. * * @return an array of property definitions. * @see PropertyDefinition#isMandatory */ public PropertyDefinition[] getMandatoryPropertyDefinitions() { QPropertyDefinition[] pda = ent.getMandatoryPropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
protected void onRedefine(QPropertyDefinition def) throws RepositoryException { PropertyDefinitionImpl newDef = sessionContext.getNodeTypeManager().getPropertyDefinition(def); data.setDefinition(newDef); }
protected void onRedefine(QPropertyDefinition def) throws RepositoryException { PropertyDefinitionImpl newDef = sessionContext.getNodeTypeManager().getPropertyDefinition(def); data.setDefinition(newDef); }
return sessionContext.getNodeTypeManager().getPropertyDefinition(pd);
return sessionContext.getNodeTypeManager().getPropertyDefinition(pd);
NameConstants.MIX_REFERENCEABLE).getApplicablePropertyDef( state.getName(), state.getType()); return sessionContext.getNodeTypeManager().getPropertyDefinition(def); "definition for '" + state.getName() + "'"); return sessionContext.getNodeTypeManager().getPropertyDefinition(def); } catch (ItemStateException e) { throw new RepositoryException(e);
NameConstants.MIX_REFERENCEABLE).getApplicablePropertyDef( state.getName(), state.getType()); return sessionContext.getNodeTypeManager().getPropertyDefinition(def); "definition for '" + state.getName() + "'"); return sessionContext.getNodeTypeManager().getPropertyDefinition(def); } catch (ItemStateException e) { throw new RepositoryException(e);
createChildNode(def.getName(), (NodeTypeImpl) ndi.getDefaultPrimaryType(), null); } else { PropertyDefinitionImpl pdi = ntMgr.getPropertyDefinition((QPropertyDefinition) def); createChildProperty(pdi.unwrap().getName(), pdi.getRequiredType(), pdi);
createChildNode(def.getName(), (NodeTypeImpl) ndi.getDefaultPrimaryType(), null); } else { PropertyDefinitionImpl pdi = ntMgr.getPropertyDefinition((QPropertyDefinition) def); createChildProperty(pdi.unwrap().getName(), pdi.getRequiredType(), pdi);
createChildNode(def.getName(), (NodeTypeImpl) ndi.getDefaultPrimaryType(), null); } else { PropertyDefinitionImpl pdi = ntMgr.getPropertyDefinition((QPropertyDefinition) def); createChildProperty(pdi.unwrap().getName(), pdi.getRequiredType(), pdi);
createChildNode(def.getName(), (NodeTypeImpl) ndi.getDefaultPrimaryType(), null); } else { PropertyDefinitionImpl pdi = ntMgr.getPropertyDefinition((QPropertyDefinition) def); createChildProperty(pdi.unwrap().getName(), pdi.getRequiredType(), pdi);