|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.file.SilverpeasFileDescriptor
public class SilverpeasFileDescriptor
A reference to a SilverpeasFile. It defines some properties about a SilverpeasFile from which it can be located.
Constructor Summary | |
---|---|
SilverpeasFileDescriptor()
Constructs a new reference to a Silverpeas file that belonging to no component instance. |
|
SilverpeasFileDescriptor(String componentId)
Constructs a new reference to a Silverpeas file that belonging to the specified component instance. |
Method Summary | |
---|---|
SilverpeasFileDescriptor |
absolutePath()
The path of the Silverpeas file referred by this descriptor is given as absolute. |
SilverpeasFileDescriptor |
fileName(String fileName)
The Silverpeas file referred by this instance has the specified name. |
String |
getComponentInstanceId()
Gets the unique identifier of the component instance that manages the file referred by this descriptor. |
String |
getFileName()
Gets the name of the file referred by this descriptor. |
String |
getFilePath()
Gets the path of the file by taking into account both the parent directory and the filename. |
String |
getMimeType()
Gets the MIME type of the file content. |
String |
getParentDirectory()
Gets the parent directory to the file as specified in the descriptor. |
boolean |
isAbsolutePath()
Is the parent directory or the file name is provided as an absolute path? |
boolean |
isTemporaryFile()
Is the file referred by this descriptor is a temporary one. |
SilverpeasFileDescriptor |
mimeType(String mimeType)
The content of the Silverpeas file referred by this instance is of the given MIME type. |
SilverpeasFileDescriptor |
parentDirectory(String directory)
The Silverpeas file referred by this instance is located into the specified directory. |
SilverpeasFileDescriptor |
temporaryFile()
The Silverpeas file is in fact a temporary one and then isn't located among the data of Silverpeas. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SilverpeasFileDescriptor(String componentId)
componentId
- the unique identifier of a component instance.public SilverpeasFileDescriptor()
Method Detail |
---|
public SilverpeasFileDescriptor parentDirectory(String directory)
directory
- the parent directory of the Silverpeas file.
public SilverpeasFileDescriptor fileName(String fileName)
fileName
- the name of the Silverpeas file.
public SilverpeasFileDescriptor mimeType(String mimeType)
mimeType
- the MIME type of the content of the Silverpeas file.
public SilverpeasFileDescriptor temporaryFile()
public SilverpeasFileDescriptor absolutePath()
public String getComponentInstanceId()
public String getParentDirectory()
public String getFileName()
isAbsolutePath()
to know if the descriptor referes an absolute or a relative path).public String getFilePath()
isAbsolutePath()
to known if the returned path is absolute or relative).public String getMimeType()
public boolean isTemporaryFile()
isAbsolutePath()
method.
public boolean isAbsolutePath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |