public class NodeTypeInstanceHandler extends Object
NodeTypeInstanceHandler is used to provide or initialize
system protected properties (or child nodes).| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_USERID
Default user id in the case where the creating user cannot be determined.
|
| Constructor and Description |
|---|
NodeTypeInstanceHandler(String userId)
Creates a new node type instance handler.
|
| Modifier and Type | Method and Description |
|---|---|
InternalValue[] |
computeSystemGeneratedPropertyValues(NodeState parent,
QPropertyDefinition def)
Computes the values of well-known system (i.e.
|
void |
setDefaultValues(PropertyState property,
NodeState parent,
QPropertyDefinition def)
Sets the system-generated or node type -specified default values
of the given property.
|
public static final String DEFAULT_USERID
public void setDefaultValues(PropertyState property, NodeState parent, QPropertyDefinition def) throws RepositoryException
property - property stateparent - parent node statedef - property definitionRepositoryException - if the default values could not be createdpublic InternalValue[] computeSystemGeneratedPropertyValues(NodeState parent, QPropertyDefinition def)
parent - the parent node statedef - the definition of the property to computeCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.