Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.clipboard
Class SummaryEntry

java.lang.Object
  extended by 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

Constructor Summary
SummaryEntry()
           
SummaryEntry(DocumentModel doc)
           
SummaryEntry(DocumentRef reference)
           
SummaryEntry(java.lang.String uuid, java.lang.String title, java.util.Date modifiedDate, java.lang.String filename, java.lang.String version, SummaryEntry parent)
           
SummaryEntry(java.lang.String uuid, java.lang.String title, java.lang.String modifiedDate, java.lang.String filename, java.lang.String version)
           
 
Method Summary
 int compareTo(SummaryEntry o)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBullet()
           
 java.lang.String getCr()
           
 java.lang.String getDateSeparator()
           
 DocumentRef getDocumentRef()
           
 java.lang.String getFilename()
           
 java.lang.String getFileSeparator()
           
 java.lang.String getMarker()
           
 java.lang.String getModifiedDate()
           
 SummaryEntry getParent()
           
 java.lang.String getPath()
          Returns something like /Workspace1/Folder1/File1.
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.
 java.lang.String getPathSeparator()
           
 java.lang.String getTitle()
           
 java.lang.String getUuid()
           
 java.lang.String getVersion()
           
 java.lang.String getVersionSepartor()
           
 int hashCode()
           
 boolean hasParent()
           
 void setBullet(java.lang.String bullet)
           
 void setCr(java.lang.String cr)
           
 void setDateSeparator(java.lang.String dateSeparator)
           
 void setDocumentRef(DocumentRef documentRef)
           
 void setFilename(java.lang.String filename)
           
 void setFileSeparator(java.lang.String fileSeparator)
           
 void setMarker(java.lang.String marker)
           
 void setModifiedDate(java.lang.String modifiedDate)
           
 void setParent(DocumentRef parentRef)
           
 void setParent(SummaryEntry parent)
           
 void setPathSeparator(java.lang.String pathSeparator)
           
 void setTitle(java.lang.String title)
           
 void setUuid(java.lang.String uuid)
           
 void setVersion(java.lang.String version)
           
 void setVersionSepartor(java.lang.String versionSepartor)
           
 java.lang.String toFlatString()
           
 java.lang.String toString()
           
 java.lang.String toTreeString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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()
Method Detail

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 item
parentEntry - 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)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.