|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RCML
An object of this class handles the revisions of a node. The node is passed as a parameter so an RCML object can be shared between sessions for synchronization purposes.
Field Summary | |
---|---|
static short |
ci
ci Checkin |
static short |
co
co Checkout |
Method Summary | |
---|---|
void |
checkIn(Node node,
boolean backup,
boolean newVersion)
Check the RCML in. |
void |
checkOut(Node node)
Check the RCML out with restriction to the current session. |
void |
checkOut(Node node,
boolean restrictedToSession)
Check the RCML out. |
void |
copyFrom(Node node,
Node otherNode)
|
boolean |
delete()
delete the RCML file and the directory if this one is empty |
void |
deleteRevisions()
Delete all revisions. |
java.util.Vector |
getBackupEntries()
get all backup entries |
java.lang.String[] |
getBackupsTime()
get the time's value of the backups |
java.util.Vector |
getEntries()
get all check in and check out |
CheckInEntry |
getLatestCheckInEntry()
get the latest check in |
CheckOutEntry |
getLatestCheckOutEntry()
get the latest check out |
RCMLEntry |
getLatestEntry()
get the latest entry (a check out or check in) |
boolean |
isCheckedOut()
|
boolean |
isCheckedOutBySession(Session session)
|
boolean |
isDirty()
Check if the document is dirty |
void |
makeBackup(long time)
Creates a backup. |
void |
pruneEntries()
Prune the list of entries and delete the corresponding backups. |
void |
restoreBackup(Node node,
long time)
Restores a backup. |
Field Detail |
---|
static final short co
co
Checkout
static final short ci
ci
Checkin
Method Detail |
---|
void checkIn(Node node, boolean backup, boolean newVersion) throws RevisionControlException
node
- The node.backup
- If a backup shall be created.newVersion
- If the revision number should be increased.
RevisionControlException
- if an error occurs.void checkOut(Node node) throws RevisionControlException
node
- The node.
RevisionControlException
- if an error occurs.void checkOut(Node node, boolean restrictedToSession) throws RevisionControlException
node
- The node.restrictedToSession
- If only the current session may check the node in, or all sessions
belonging to this user.
RevisionControlException
- if an error occurs.CheckOutEntry getLatestCheckOutEntry() throws RevisionControlException
RevisionControlException
- if an error occursCheckInEntry getLatestCheckInEntry() throws RevisionControlException
RevisionControlException
- if an error occursRCMLEntry getLatestEntry() throws RevisionControlException
RevisionControlException
- if an error occursjava.util.Vector getEntries() throws RevisionControlException
RevisionControlException
- if an error occursjava.util.Vector getBackupEntries() throws java.lang.Exception
java.lang.Exception
- if an error occursvoid makeBackup(long time) throws RevisionControlException
time
- The time.
RevisionControlException
void restoreBackup(Node node, long time) throws RevisionControlException
node
- The node to restore the backup to.time
- The time.
RevisionControlException
void pruneEntries() throws java.lang.Exception
java.lang.Exception
- if an error occursboolean isDirty()
java.lang.String[] getBackupsTime() throws java.lang.Exception
java.lang.Exception
- if an error occursboolean delete()
void deleteRevisions() throws RevisionControlException
RevisionControlException
- if an error occurs.void copyFrom(Node node, Node otherNode) throws RevisionControlException
node
- The target node.otherNode
- The source node.
RevisionControlException
- if an error occurs.boolean isCheckedOut() throws RevisionControlException
RevisionControlException
- if an error occurs.boolean isCheckedOutBySession(Session session) throws RevisionControlException
session
- The session.
RevisionControlException
- if an error occurs.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |