Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.wss.backend
Class NuxeoListItem

java.lang.Object
  extended by org.nuxeo.wss.spi.AbstractWSSListItem
      extended by org.nuxeo.ecm.platform.wss.backend.NuxeoListItem
All Implemented Interfaces:
WSSListItem

public class NuxeoListItem
extends AbstractWSSListItem
implements WSSListItem


Field Summary
 
Fields inherited from class org.nuxeo.wss.spi.AbstractWSSListItem
WSS_DATE_FORMAT
 
Constructor Summary
NuxeoListItem(DocumentModel doc, java.lang.String corePathPrefix, java.lang.String urlRoot)
           
 
Method Summary
 boolean canCheckOut(java.lang.String userName)
           
 boolean canUnCheckOut(java.lang.String userName)
           
 void checkOut(java.lang.String userName)
           
 java.lang.String getAuthor()
           
 java.lang.String getCheckoutUser()
           
 java.util.Date getCreationDate()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 DocumentModel getDoc()
           
 java.lang.String getEtag()
           
 java.lang.String getLastModificator()
           
 java.util.Date getModificationDate()
           
 java.lang.String getName()
           
 java.lang.String getRelativeFilePath(java.lang.String siteRootPath)
           
 int getSize()
           
 java.io.InputStream getStream()
           
 java.lang.String getSubPath()
           
 java.lang.String getType()
           
 boolean isFolderish()
           
 void setDescription(java.lang.String description)
           
 void setStream(java.io.InputStream is, java.lang.String fileName)
           
 void setVirtualName(java.lang.String virtualName)
           
 void setVirtualRootNodeName(java.lang.String virtualRootNodeName)
           
 void uncheckOut(java.lang.String userName)
           
 
Methods inherited from class org.nuxeo.wss.spi.AbstractWSSListItem
getCheckoutExpiryTS, getCheckoutTS, getCreatedTS, getIcon, getModifiedTS, getRelativeSubPath, getSizeAsString, isCheckOut, isSite, setIcon
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.wss.spi.WSSListItem
getCheckoutExpiryTS, getCheckoutTS, getCreatedTS, getIcon, getModifiedTS, getRelativeSubPath, getSizeAsString, isCheckOut, isSite, setIcon
 

Constructor Detail

NuxeoListItem

public NuxeoListItem(DocumentModel doc,
                     java.lang.String corePathPrefix,
                     java.lang.String urlRoot)
Method Detail

getCreationDate

public java.util.Date getCreationDate()
Specified by:
getCreationDate in interface WSSListItem

getModificationDate

public java.util.Date getModificationDate()
Specified by:
getModificationDate in interface WSSListItem

checkOut

public void checkOut(java.lang.String userName)
              throws WSSException
Specified by:
checkOut in interface WSSListItem
Throws:
WSSException

getCheckoutUser

public java.lang.String getCheckoutUser()
Specified by:
getCheckoutUser in interface WSSListItem

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface WSSListItem

getEtag

public java.lang.String getEtag()
Specified by:
getEtag in interface WSSListItem

getLastModificator

public java.lang.String getLastModificator()
Specified by:
getLastModificator in interface WSSListItem

getName

public java.lang.String getName()
Specified by:
getName in interface WSSListItem

getSize

public int getSize()
Specified by:
getSize in interface WSSListItem

getStream

public java.io.InputStream getStream()
Specified by:
getStream in interface WSSListItem

getSubPath

public java.lang.String getSubPath()
Specified by:
getSubPath in interface WSSListItem

getRelativeFilePath

public java.lang.String getRelativeFilePath(java.lang.String siteRootPath)
Specified by:
getRelativeFilePath in interface WSSListItem
Overrides:
getRelativeFilePath in class AbstractWSSListItem

getType

public java.lang.String getType()
Specified by:
getType in interface WSSListItem

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface WSSListItem

setStream

public void setStream(java.io.InputStream is,
                      java.lang.String fileName)
               throws WSSException
Specified by:
setStream in interface WSSListItem
Throws:
WSSException

uncheckOut

public void uncheckOut(java.lang.String userName)
                throws WSSException
Specified by:
uncheckOut in interface WSSListItem
Throws:
WSSException

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface WSSListItem
Overrides:
getDisplayName in class AbstractWSSListItem

setVirtualName

public void setVirtualName(java.lang.String virtualName)

setVirtualRootNodeName

public void setVirtualRootNodeName(java.lang.String virtualRootNodeName)

getDoc

public DocumentModel getDoc()

getAuthor

public java.lang.String getAuthor()
Specified by:
getAuthor in interface WSSListItem

isFolderish

public boolean isFolderish()
Specified by:
isFolderish in interface WSSListItem
Overrides:
isFolderish in class AbstractWSSListItem

canCheckOut

public boolean canCheckOut(java.lang.String userName)
Specified by:
canCheckOut in interface WSSListItem
Overrides:
canCheckOut in class AbstractWSSListItem

canUnCheckOut

public boolean canUnCheckOut(java.lang.String userName)
Specified by:
canUnCheckOut in interface WSSListItem
Overrides:
canUnCheckOut in class AbstractWSSListItem

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.