|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Node
A repository node is used to persist a Persistable.
| Field Summary | |
|---|---|
static java.lang.String |
IDENTIFIABLE_TYPE
The identifiable type. |
static java.lang.String |
LENYA_PROTOCOL
The protocol with which to find Lenya nodes |
| Method Summary | |
|---|---|
void |
checkin()
Checks in the node. |
void |
checkout()
Checks out the node with restriction to the current session.. |
void |
checkout(boolean restrictedToSession)
Checks out the node with the possibility to allow other sessions to check it in. |
void |
copyRevisionsFrom(Node source)
|
void |
delete()
Delete this node. |
boolean |
exists()
|
void |
forceCheckIn()
Checks in the node even if it is checked out by a different session. |
java.lang.String |
getCheckoutUserId()
|
java.util.Collection |
getChildren()
|
History |
getHistory()
|
java.io.OutputStream |
getOutputStream()
|
Persistable |
getPersistable()
|
Session |
getSession()
|
boolean |
isCheckedOut()
|
boolean |
isCheckedOutBySession(Session session)
Checks if the node is checked out by a certain session. |
boolean |
isCollection()
|
boolean |
isLocked()
|
void |
lock()
Locks the node. |
void |
registerDirty()
Registers the node as dirty. |
void |
registerRemoved()
Registers the node as removed. |
void |
rollback(int revisionNumber)
|
void |
setPersistable(Persistable persistable)
|
void |
unlock()
Unlocks the node. |
| Methods inherited from interface org.apache.lenya.cms.repository.ContentHolder |
|---|
getContentLength, getInputStream, getLastModified, getMimeType, getSourceURI |
| Methods inherited from interface org.apache.lenya.cms.metadata.MetaDataOwner |
|---|
getMetaData, getMetaDataNamespaceUris |
| Field Detail |
|---|
static final java.lang.String LENYA_PROTOCOL
static final java.lang.String IDENTIFIABLE_TYPE
| Method Detail |
|---|
Session getSession()
getSession in interface RepositoryItem
boolean exists()
throws RepositoryException
exists in interface ContentHolderRepositoryException - if an error occurs.
boolean isCollection()
throws RepositoryException
RepositoryException - if an error occurs.
java.util.Collection getChildren()
throws RepositoryException
RepositoryException - if an error occurs.
java.io.OutputStream getOutputStream()
throws RepositoryException
RepositoryException - if the node does not exist.
void lock()
throws RepositoryException
RepositoryException - if an error occurs.
void unlock()
throws RepositoryException
RepositoryException - if an error occurs.
void checkout()
throws RepositoryException
RepositoryException - if an error occurs.
void checkout(boolean restrictedToSession)
throws RepositoryException
restrictedToSession - if the check-out is restricted to the current session.
RepositoryException - if an error occurs.
void checkin()
throws RepositoryException
RepositoryException - if the node is not checked out or is checked
out by a different session.
void forceCheckIn()
throws RepositoryException
RepositoryException - if the node is not checked out.
void registerDirty()
throws RepositoryException
RepositoryException - if an error occurs.
boolean isCheckedOut()
throws RepositoryException
RepositoryException - if an error occurs.
java.lang.String getCheckoutUserId()
throws RepositoryException
RepositoryException - if the node is not checked out.
boolean isCheckedOutBySession(Session session)
throws RepositoryException
session - The session.
RepositoryException - if an error occurs.
void copyRevisionsFrom(Node source)
throws RepositoryException
source - The node to copy the revisions from.
RepositoryException - if an error occurs.
void rollback(int revisionNumber)
throws RepositoryException
revisionNumber - The revision number to roll back.
RepositoryException - if this revision doesn't exist.
boolean isLocked()
throws RepositoryException
RepositoryException - if an error occurs.
void registerRemoved()
throws RepositoryException
RepositoryException - if an error occurs.History getHistory()
void delete()
throws RepositoryException
RepositoryException - if an error occurs.
void setPersistable(Persistable persistable)
throws RepositoryException
persistable - The object which is persisted using the node.
RepositoryException - if the node already has an item.Persistable getPersistable()
null
if no object is registered.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||