org.silverpeas.attachment.process
Class SimpleDocumentDummyHandledFile

java.lang.Object
  extended by org.silverpeas.process.io.file.AbstractDummyHandledFile
      extended by org.silverpeas.attachment.process.SimpleDocumentDummyHandledFile
All Implemented Interfaces:
DummyHandledFile

public class SimpleDocumentDummyHandledFile
extends AbstractDummyHandledFile

User: Yohann Chastagnier Date: 17/10/13


Constructor Summary
SimpleDocumentDummyHandledFile(SimpleDocument document)
          Default constructor.
SimpleDocumentDummyHandledFile(SimpleDocument document, boolean deleted)
          Default constructor.
SimpleDocumentDummyHandledFile(SimpleDocument document, WAPrimaryKey targetPK)
          Default constructor.
 
Method Summary
 String getComponentInstanceId()
          Gets the component instance id at which the virtual file is associated.
 String getMimeType()
          Gets the mime type of the virtual file.
 String getName()
          Gets the name of the virtual file.
 String getPath()
          Gets the path of the virtual file.
 long getSize()
          Gets the size of the virtual file (bytes).
 boolean isDeleted()
          Indicates if the virtual file is a deleted one.
 
Methods inherited from class org.silverpeas.process.io.file.AbstractDummyHandledFile
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDocumentDummyHandledFile

public SimpleDocumentDummyHandledFile(SimpleDocument document)
Default constructor.

Parameters:
document -

SimpleDocumentDummyHandledFile

public SimpleDocumentDummyHandledFile(SimpleDocument document,
                                      WAPrimaryKey targetPK)
Default constructor.

Parameters:
document -
targetPK -

SimpleDocumentDummyHandledFile

public SimpleDocumentDummyHandledFile(SimpleDocument document,
                                      boolean deleted)
Default constructor.

Parameters:
document -
deleted -
Method Detail

getComponentInstanceId

public String getComponentInstanceId()
Description copied from interface: DummyHandledFile
Gets the component instance id at which the virtual file is associated.

Returns:

getPath

public String getPath()
Description copied from interface: DummyHandledFile
Gets the path of the virtual file. In most of cases, this information is the same as the name one.

Returns:

getName

public String getName()
Description copied from interface: DummyHandledFile
Gets the name of the virtual file.

Returns:

getSize

public long getSize()
Description copied from interface: DummyHandledFile
Gets the size of the virtual file (bytes).

Returns:

getMimeType

public String getMimeType()
Description copied from interface: DummyHandledFile
Gets the mime type of the virtual file.


isDeleted

public boolean isDeleted()
Description copied from interface: DummyHandledFile
Indicates if the virtual file is a deleted one.

Specified by:
isDeleted in interface DummyHandledFile
Overrides:
isDeleted in class AbstractDummyHandledFile
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.