Package org.apache.jackrabbit.core
Class NodeTypeInstanceHandler
- java.lang.Object
-
- org.apache.jackrabbit.core.NodeTypeInstanceHandler
-
public class NodeTypeInstanceHandler extends Object
TheNodeTypeInstanceHandler
is used to provide or initialize system protected properties (or child nodes).
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_USERID
Default user id in the case where the creating user cannot be determined.
-
Constructor Summary
Constructors Constructor Description NodeTypeInstanceHandler(String userId)
Creates a new node type instance handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
DEFAULT_USERID
public static final String DEFAULT_USERID
Default user id in the case where the creating user cannot be determined.- See Also:
- Constant Field Values
-
-
Method Detail
-
setDefaultValues
public void setDefaultValues(PropertyState property, NodeState parent, QPropertyDefinition def) throws RepositoryException
Sets the system-generated or node type -specified default values of the given property. If such values are not specified, then the property is not modified.- Parameters:
property
- property stateparent
- parent node statedef
- property definition- Throws:
RepositoryException
- if the default values could not be created
-
computeSystemGeneratedPropertyValues
public InternalValue[] computeSystemGeneratedPropertyValues(NodeState parent, QPropertyDefinition def)
Computes the values of well-known system (i.e. protected) properties.- Parameters:
parent
- the parent node statedef
- the definition of the property to compute- Returns:
- the computed values
-
-