| java.lang.Object org.apache.lenya.cms.repository.SourceNodeRCML
SourceNodeRCML | public class SourceNodeRCML implements RCML(Code) | | Handle with the RCML file
|
Method Summary | |
public synchronized void | checkIn(Node node, boolean backup, boolean newVersion) | public synchronized void | checkOut(Node node) | public synchronized void | checkOut(Node node, boolean restrictedToSession) | public synchronized void | checkOutIn(Node node, short type, long time, boolean backup, boolean newVersion, boolean restrictedToSession) | protected void | clearDirty() | public synchronized void | copyFrom(Node node, Node otherNode) | public synchronized boolean | delete() Delete the revisions, the RCML source and the collection if the latter is empty. | protected synchronized void | deleteBackup(String sourceUri, long time) | public synchronized void | deleteRevisions() | protected void | finalize() | public synchronized Vector | getBackupEntries() | protected String | getBackupSourceUri(SourceWrapper wrapper, long time) | protected String | getBackupSourceUri(String uri, long time) | public String[] | getBackupsTime() | protected String | getChildValue(NamespaceHelper helper, Element element, String childName, String defaultValue) | protected String | getChildValue(NamespaceHelper helper, Element element, String childName) | public synchronized Vector | getEntries() | protected RCMLEntry | getEntry(NamespaceHelper helper, Element element) | public CheckInEntry | getLatestCheckInEntry() | public CheckOutEntry | getLatestCheckOutEntry() | protected Element | getLatestElement(NamespaceHelper helper, String type) | public RCMLEntry | getLatestEntry(short type) get the latest entry (a check out or check in)
Parameters: type - The type. | public RCMLEntry | getLatestEntry() | protected RCMLEntry | getLegacyEntry(NamespaceHelper helper, Element element) | protected String | getRcmlSourceUri() | public synchronized boolean | isCheckedOut() | public boolean | isCheckedOutBySession(Session session) | public boolean | isDirty() | public synchronized void | makeBackup(long time) | protected synchronized void | makeBackup(String sourceUri, long time) | public synchronized void | pruneEntries() Prune the list of entries and delete the corresponding backups. | public synchronized void | restoreBackup(Node node, long time) | protected synchronized void | restoreBackup(SourceWrapper wrapper, long time) | protected Element | saveToXml(NamespaceHelper helper, RCMLEntry entry) | protected NamespaceHelper | saveToXml() | protected void | setDirty() | public synchronized void | write() Write the XML RCML-document in the RCML-file. |
ATTR_IDENTITY | final protected static String ATTR_IDENTITY(Code) | | |
ATTR_SESSION | final protected static String ATTR_SESSION(Code) | | |
ATTR_VERSION | final protected static String ATTR_VERSION(Code) | | |
ELEMENT_BACKUP | final protected static String ELEMENT_BACKUP(Code) | | |
ELEMENT_CHECKIN | final protected static String ELEMENT_CHECKIN(Code) | | |
ELEMENT_CHECKOUT | final protected static String ELEMENT_CHECKOUT(Code) | | |
ELEMENT_IDENTITY | final protected static String ELEMENT_IDENTITY(Code) | | |
ELEMENT_SESSION | final protected static String ELEMENT_SESSION(Code) | | |
ELEMENT_TIME | final protected static String ELEMENT_TIME(Code) | | |
ELEMENT_VERSION | final protected static String ELEMENT_VERSION(Code) | | |
ELEMENT_XPSREVISIONCONTROL | final protected static String ELEMENT_XPSREVISIONCONTROL(Code) | | |
RCML_EXTENSION | final protected static String RCML_EXTENSION(Code) | | |
SourceNodeRCML | public SourceNodeRCML(String contentSourceUri, String metaSourceUri, ServiceManager manager)(Code) | | Parameters: contentSourceUri - The content source URI. Parameters: metaSourceUri - The meta source URI. Parameters: manager - The service manager. |
checkOutIn | public synchronized void checkOutIn(Node node, short type, long time, boolean backup, boolean newVersion, boolean restrictedToSession) throws RevisionControlException(Code) | | Write a new entry for a check out or a check in the RCML-File made by the user with identity
at time
Parameters: node - The node. Parameters: type - co for a check out, ci for a check in Parameters: time - Parameters: backup - Create backup element (only considered for check-in entries). Parameters: newVersion - If the revision number shall be increased (only considered for check-inentries). Parameters: restrictedToSession - If the check-out is restricted to the session (only considered forcheck-out entries). throws: RevisionControlException - if an error occurs |
clearDirty | protected void clearDirty()(Code) | | Set the value dirty to false
|
delete | public synchronized boolean delete()(Code) | | Delete the revisions, the RCML source and the collection if the latter is empty.
boolean true, if the file was deleted |
getBackupEntries | public synchronized Vector getBackupEntries() throws Exception(Code) | | get all backup entries
Vector of all entries in this RCML-file with a backup throws: Exception - if an error occurs |
getBackupsTime | public String[] getBackupsTime() throws Exception(Code) | | get the time's value of the backups
String[] the times throws: Exception - if an error occurs |
isDirty | public boolean isDirty()(Code) | | Check if the document is dirty
boolean dirty |
pruneEntries | public synchronized void pruneEntries() throws RevisionControlException(Code) | | Prune the list of entries and delete the corresponding backups. Limit the number of entries
to the value maximalNumberOfEntries (2maxNumberOfRollbacks(configured)+1)
throws: RevisionControlException - if an error occurs |
setDirty | protected void setDirty()(Code) | | Set the value dirty to true
|
|
|