|
|||||||||
| Home >> All >> com >> obinary >> cms >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.obinary.cms.core
Class Content

java.lang.Objectcom.obinary.cms.core.ContentHandler
com.obinary.cms.core.Content
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- ContainerList
- public class Content
- extends ContentHandler
User: sameercharles Date: Apr 20, 2003 Time: 10:14:21 AM
- Version:
- 1.0
| Field Summary | |
private java.lang.String |
path
|
private Node |
rootNode
|
| Fields inherited from class com.obinary.cms.core.ContentHandler |
node, SORT_BY_DATE, SORT_BY_NAME, SORT_BY_SEQUENCE |
| Constructor Summary | |
Content()
constructor |
|
Content(Node rootNode,
java.io.InputStream in)
constructor to create a new node |
|
Content(Node rootNode,
java.lang.String path)
constructor to get existing node |
|
Content(Node rootNode,
java.lang.String path,
boolean isHierarchyNode)
Package private constructor |
|
Content(Node rootNode,
java.lang.String path,
boolean isHierarchyNode,
boolean adjustName)
Package private constructor |
|
Content(java.lang.String path)
constructor |
|
| Method Summary | |
void |
addObjectClass(java.lang.String objectClassName)
|
void |
copyTo(java.lang.String path)
copy content to the specified location |
Atom |
createAtom(java.lang.String atomName)
create top level atom |
Atom |
createAtom(java.lang.String atomName,
Value value,
int type)
create top level atom with the given value and type |
Container |
createContainer(java.lang.String containerName)
create Container node under the current node with the specified name |
ContainerList |
createContainerList(java.lang.String containerListName)
create ContainerList node under the current node with the specified name |
void |
deleteAtom(java.lang.String atomName)
create atom with the specified name |
void |
deleteContainer(java.lang.String containerName)
delete container with the specified name from the current node |
void |
deleteContainerList(java.lang.String containerListName)
delete container list with the specified name from the current node |
Atom |
getAtom(java.lang.String atomName)
get top level atom |
Container |
getContainer(java.lang.String containerName)
get Container node of the current node with the specified name |
ContainerList |
getContainerList(java.lang.String containerListName)
get ContainerList node of the current node with the specified name |
Node |
getJCRNode()
get Node object used to create current content object |
MetaData |
getMetaData()
get meta data of the current node |
MetaData |
getMetaData(java.lang.String context)
get meta data of the current node |
java.lang.String |
getName()
get node name |
protected void |
init()
Initializes node content (top level properties) |
void |
moveTo(java.lang.String path)
move content to the specified location |
void |
order(java.lang.String parentPath,
java.lang.String beforeName)
move current node to the specified location above the named beforename
|
void |
toStream(java.io.OutputStream out,
boolean onlyThis)
get xml data as bite stream |
void |
updateMetaData(javax.servlet.http.HttpServletRequest request)
you could call this method anytime to update working page properties - Modification date & Author ID |
| Methods inherited from class com.obinary.cms.core.ContentHandler |
clone, getAncestor, getAncestor0, getAncestor1, getAncestor2, getAncestor3, getAncestor4, getAncestor5, getAncestor6, getAncestor7, getAncestor8, getAncestor9, getAncestors, getChildren, getChildren, getChildren, getHandle, getHandleWithDefaultExtension, getLevel, getParent, getTemplate, getTitle, hasChildren, isGranted, isHasChildren, sortByDate, sortBySequence |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
path
private java.lang.String path
rootNode
private Node rootNode
| Constructor Detail |
Content
public Content()
- constructor
Content
public Content(java.lang.String path)
- constructor
Content
public Content(Node rootNode,
java.lang.String path)
throws ElementNotFoundException,
RepositoryException
- constructor to get existing node
Content
public Content(Node rootNode,
java.io.InputStream in)
throws ElementNotFoundException,
RepositoryException
- constructor to create a new node
Content
public Content(Node rootNode,
java.lang.String path,
boolean isHierarchyNode)
throws ElementNotFoundException,
RepositoryException
- Package private constructor
Content
public Content(Node rootNode,
java.lang.String path,
boolean isHierarchyNode,
boolean adjustName)
throws ElementNotFoundException,
RepositoryException
- Package private constructor
| Method Detail |
init
protected void init()
throws ElementNotFoundException,
RepositoryException
Initializes node content (top level properties)
addObjectClass
public void addObjectClass(java.lang.String objectClassName) throws NoSuchObjectClassException, ConstraintViolationException
getContainerList
public ContainerList getContainerList(java.lang.String containerListName) throws ElementNotFoundException, RepositoryException
get ContainerList node of the current node with the specified name
createContainerList
public ContainerList createContainerList(java.lang.String containerListName) throws ElementNotFoundException, RepositoryException
create ContainerList node under the current node with the specified name
getContainer
public Container getContainer(java.lang.String containerName) throws ElementNotFoundException, RepositoryException
get Container node of the current node with the specified name
createContainer
public Container createContainer(java.lang.String containerName) throws ElementNotFoundException, RepositoryException
create Container node under the current node with the specified name
getMetaData
public MetaData getMetaData()
get meta data of the current node
getMetaData
public MetaData getMetaData(java.lang.String context) throws RepositoryException
get meta data of the current node
getAtom
public Atom getAtom(java.lang.String atomName)
get top level atom
getName
public java.lang.String getName()
get node name
createAtom
public Atom createAtom(java.lang.String atomName) throws ElementNotFoundException, RepositoryException
create top level atom
createAtom
public Atom createAtom(java.lang.String atomName, Value value, int type) throws ElementNotFoundException, RepositoryException
create top level atom with the given value and type
deleteAtom
public void deleteAtom(java.lang.String atomName) throws ElementNotFoundException, RepositoryException
create atom with the specified name
deleteContainer
public void deleteContainer(java.lang.String containerName) throws ElementNotFoundException, RepositoryException
delete container with the specified name from the current node
deleteContainerList
public void deleteContainerList(java.lang.String containerListName) throws ElementNotFoundException, RepositoryException
delete container list with the specified name from the current node
moveTo
public void moveTo(java.lang.String path) throws ElementNotFoundException, RepositoryException
move content to the specified location
copyTo
public void copyTo(java.lang.String path) throws ElementNotFoundException, RepositoryException
copy content to the specified location
order
public void order(java.lang.String parentPath, java.lang.String beforeName) throws ElementNotFoundException, RepositoryException
move current node to the specified location above the named
beforename
toStream
public void toStream(java.io.OutputStream out, boolean onlyThis) throws java.io.IOException, RepositoryException
get xml data as bite stream
updateMetaData
public void updateMetaData(javax.servlet.http.HttpServletRequest request)
you could call this method anytime to update working page properties - Modification date & Author ID
getJCRNode
public Node getJCRNode()
get Node object used to create current content object
|
|||||||||
| Home >> All >> com >> obinary >> cms >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC