org.nuxeo.ecm.webapp.clipboard
Class SummaryEntry
java.lang.Object
org.nuxeo.ecm.webapp.clipboard.SummaryEntry
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SummaryEntry>
public class SummaryEntry
- extends java.lang.Object
- implements java.lang.Comparable<SummaryEntry>, java.io.Serializable
An entry present in a Summary. Each entry has a parent,
except for the root entry whose parent is null.
Note that SummaryEntry.getPath()
can be different than
DocumentModel.getPath()
since a DocumentModel object can be added many times at different level of the
working list.
- Author:
- Brice Chaffangeon
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SummaryEntry
public SummaryEntry(java.lang.String uuid,
java.lang.String title,
java.lang.String modifiedDate,
java.lang.String filename,
java.lang.String version)
SummaryEntry
public SummaryEntry(java.lang.String uuid,
java.lang.String title,
java.util.Date modifiedDate,
java.lang.String filename,
java.lang.String version,
SummaryEntry parent)
SummaryEntry
public SummaryEntry(DocumentModel doc)
SummaryEntry
public SummaryEntry(DocumentRef reference)
SummaryEntry
public SummaryEntry()
getUuid
public java.lang.String getUuid()
setUuid
public void setUuid(java.lang.String uuid)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
getModifiedDate
public java.lang.String getModifiedDate()
setModifiedDate
public void setModifiedDate(java.lang.String modifiedDate)
getFilename
public java.lang.String getFilename()
setFilename
public void setFilename(java.lang.String filename)
getVersion
public java.lang.String getVersion()
setVersion
public void setVersion(java.lang.String version)
toFlatString
public java.lang.String toFlatString()
- Returns:
- the entry for a flat view
toTreeString
public java.lang.String toTreeString()
- Returns:
- the entry for a hierarchical view
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getParent
public SummaryEntry getParent()
setParent
public void setParent(SummaryEntry parent)
setParent
public void setParent(DocumentRef parentRef)
getDocumentRef
public DocumentRef getDocumentRef()
setDocumentRef
public void setDocumentRef(DocumentRef documentRef)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
hasParent
public boolean hasParent()
getPathList
public static java.util.List<SummaryEntry> getPathList(java.util.List<SummaryEntry> pathList,
SummaryEntry parentEntry)
- Calls itself recursively to build a list with all entry of the path.
- Parameters:
pathList
- the list where to add the found path itemparentEntry
- is the SummaryEntry to watch
- Returns:
- all entry in the path for a given entry (parentEntry).
getPath
public java.lang.String getPath()
- Returns something like /Workspace1/Folder1/File1.
Is not tied to DocumentModel.getPath()
- Returns:
- the full path of the SummaryEntry in the summary.
compareTo
public int compareTo(SummaryEntry o)
- Specified by:
compareTo
in interface java.lang.Comparable<SummaryEntry>
getMarker
public java.lang.String getMarker()
setMarker
public void setMarker(java.lang.String marker)
getBullet
public java.lang.String getBullet()
setBullet
public void setBullet(java.lang.String bullet)
getCr
public java.lang.String getCr()
setCr
public void setCr(java.lang.String cr)
getPathSeparator
public java.lang.String getPathSeparator()
setPathSeparator
public void setPathSeparator(java.lang.String pathSeparator)
getFileSeparator
public java.lang.String getFileSeparator()
setFileSeparator
public void setFileSeparator(java.lang.String fileSeparator)
getVersionSepartor
public java.lang.String getVersionSepartor()
setVersionSepartor
public void setVersionSepartor(java.lang.String versionSepartor)
getDateSeparator
public java.lang.String getDateSeparator()
setDateSeparator
public void setDateSeparator(java.lang.String dateSeparator)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.