|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.NodeTypeInstanceHandler
public class NodeTypeInstanceHandler
The NodeTypeInstanceHandler
is used to provide or initialize
system protected properties (or child nodes).
Field Summary | |
---|---|
static String |
DEFAULT_USERID
Default user id in the case where the creating user cannot be determined. |
Constructor Summary | |
---|---|
NodeTypeInstanceHandler(String userId)
Creates a new node type instance handler. |
Method Summary | |
---|---|
InternalValue[] |
computeSystemGeneratedPropertyValues(NodeState parent,
QPropertyDefinition def)
Computes the values of well-known system (i.e. protected) properties. |
void |
setDefaultValues(PropertyState property,
NodeState parent,
QPropertyDefinition def)
Sets the system-generated or node type -specified default values of the given property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_USERID
Constructor Detail |
---|
public NodeTypeInstanceHandler(String userId)
userId
- the user id. if null
, "system" is used.Method Detail |
---|
public void setDefaultValues(PropertyState property, NodeState parent, QPropertyDefinition def) throws RepositoryException
property
- property stateparent
- parent node statedef
- property definition
RepositoryException
- 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 compute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |