|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.jcr.faces.data.JcrNodeProvider
public class JcrNodeProvider
IUpdatableContentProvider implementation that wraps a JCR Node for codeless manipulation of a JCR node.
Field Summary | |
---|---|
protected Session |
jcrSession
Reference to the active JCR session |
protected Node |
node
Reference to the JCR node being wrapped |
protected String |
nodeId
The node id of the JCR node |
protected String |
nodePath
The node path of the JCR node |
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
fExpireWithPageFlow |
Constructor Summary | |
---|---|
JcrNodeProvider()
|
Method Summary | |
---|---|
Session |
getJcrSession()
Returns the active JCR session |
Node |
getNode()
Returns a reference to the JCR Node. |
String |
getNodeId()
Returns the id of the JCR node |
String |
getNodePath()
Returns the path of the JCR node |
Object[] |
getPropertyKeys()
Returns list of properties supported by this content provider. |
Class |
getType(Object propertyKey)
Returns java type of the given property |
Object |
getValue(Object propertyKey)
Returns value of the given property |
boolean |
hasProperty(Object propertyKey)
Checks if the given property is supported by this content provider |
boolean |
isReadOnly(Object propertyKey)
Returns true if the given property is readonly. |
void |
setJcrSession(Session jcrSession)
Sets the active JCR session |
void |
setNodeId(String id)
Sets the id of the JCR node |
void |
setNodePath(String path)
Sets the path of the JCR Node to use. |
void |
setValue(Object propertyKey,
Object value)
Sets new value of the given property |
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
getExpireWithPageFlow, setExpireWithPageFlow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider |
---|
toString |
Field Detail |
---|
protected transient Session jcrSession
protected transient Node node
protected String nodeId
protected String nodePath
Constructor Detail |
---|
public JcrNodeProvider()
Method Detail |
---|
public String getNodeId()
public void setNodeId(String id)
id
- the uuid of the JCR node to usepublic void setNodePath(String path)
path
- the path of the JCR node to usepublic String getNodePath()
public Session getJcrSession()
public void setJcrSession(Session jcrSession)
jcrSession
- the JCR session to usepublic Node getNode()
public Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.
getPropertyKeys
in interface IContentProvider
String
or Integer
public boolean hasProperty(Object propertyKey)
IContentProvider
hasProperty
in interface IContentProvider
propertyKey
- property key of type String
or Integer
true
if property is supportedpublic Class getType(Object propertyKey) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
propertyKey
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supportedpublic Object getValue(Object propertyKey) throws EvaluationException, PropertyNotFoundException
IContentProvider
getValue
in interface IContentProvider
propertyKey
- the property key of type String
or Integer
null
EvaluationException
- if error during property evaluation
PropertyNotFoundException
- if property is not supportedpublic boolean isReadOnly(Object propertyKey) throws EvaluationException, PropertyNotFoundException
IUpdateableContentProvider
Returns true if the given property is readonly. If it is readonly, IUpdateableContentProvider.setValue(Object, Object)
will
definitely fail.
isReadOnly
in interface IUpdateableContentProvider
propertyKey
- property key of type String
or Integer
EvaluationException
PropertyNotFoundException
public void setValue(Object propertyKey, Object value) throws EvaluationException, PropertyNotFoundException
IUpdateableContentProvider
Sets new value of the given property
setValue
in interface IUpdateableContentProvider
propertyKey
- property key of type String
or Integer
value
- new property value
EvaluationException
- if error happens during property assigment
PropertyNotFoundException
- if property is not found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |