Class SimpleDocumentDummyHandledFile
- java.lang.Object
-
- org.silverpeas.core.process.io.file.AbstractDummyHandledFile
-
- org.silverpeas.core.contribution.attachment.process.SimpleDocumentDummyHandledFile
-
- All Implemented Interfaces:
DummyHandledFile
public class SimpleDocumentDummyHandledFile extends AbstractDummyHandledFile
User: Yohann Chastagnier Date: 17/10/13
-
-
Constructor Summary
Constructors Constructor Description SimpleDocumentDummyHandledFile(SimpleDocument document)
SimpleDocumentDummyHandledFile(SimpleDocument document, boolean deleted)
SimpleDocumentDummyHandledFile(SimpleDocument document, ResourceReference target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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).int
hashCode()
boolean
isDeleted()
Indicates if the virtual file is a deleted one.
-
-
-
Constructor Detail
-
SimpleDocumentDummyHandledFile
public SimpleDocumentDummyHandledFile(SimpleDocument document)
-
SimpleDocumentDummyHandledFile
public SimpleDocumentDummyHandledFile(SimpleDocument document, ResourceReference target)
-
SimpleDocumentDummyHandledFile
public SimpleDocumentDummyHandledFile(SimpleDocument document, boolean 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:
- the identifier of the component instance.
-
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:
- the virtual path of the file.
-
getName
public String getName()
Description copied from interface:DummyHandledFile
Gets the name of the virtual file.- Returns:
- the virtual name of the file.
-
getSize
public long getSize()
Description copied from interface:DummyHandledFile
Gets the size of the virtual file (bytes).- Returns:
- the virtual size of the file.
-
getMimeType
public String getMimeType()
Description copied from interface:DummyHandledFile
Gets the mime type of the virtual file.- Returns:
- the virtual mime type of the file.
-
isDeleted
public boolean isDeleted()
Description copied from interface:DummyHandledFile
Indicates if the virtual file is a deleted one.- Specified by:
isDeleted
in interfaceDummyHandledFile
- Overrides:
isDeleted
in classAbstractDummyHandledFile
- Returns:
- true if the virtual file is being to be deleted, false otherwise.
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractDummyHandledFile
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractDummyHandledFile
-
-