|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.util.data.TemporaryWorkspaceTranslation
public class TemporaryWorkspaceTranslation
If a treatment uses a real resource identifier for a temporary resource, it is possible
that someone else accesses this temporary resource without any right.
So, this class provides a set of tool to handle workspace which the root path of the workspace
is translated.
Method Summary | ||
---|---|---|
void |
create()
Create the workspace. |
|
boolean |
exists()
Indicates if the workspace exists. |
|
static TemporaryWorkspaceTranslation |
from(String identifier)
Gets an instance from the given identifier. |
|
|
get(String key)
Gets from context a value from a key that has been stored into the context instance. |
|
File |
getRootPath()
Gets the root path of the workspace. |
|
long |
lastModified()
Gets the last time the workspace was modified. |
|
TemporaryWorkspaceTranslation |
put(String key,
Serializable value)
Puts into workspace a string value linked to a key. |
|
boolean |
remove()
Removes the workspace from the filesystem. |
|
static boolean |
startWithTranslationDescriptorPrefix(String path)
Indicates if the given path corresponds to a temporary workspace translation. |
|
String |
toString()
|
|
void |
updateLastModifiedDate()
Updates the last modified date of workspace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static boolean startWithTranslationDescriptorPrefix(String path)
path
- the path to verify.
public static TemporaryWorkspaceTranslation from(String identifier)
identifier
- an identifier.
TemporaryWorkspaceTranslation
.public boolean remove()
public boolean exists()
public long lastModified()
public void updateLastModifiedDate()
public File getRootPath()
public void create()
public TemporaryWorkspaceTranslation put(String key, Serializable value)
key
- the key.value
- the value.
public <T extends Serializable> T get(String key)
key
- the key associated to the searched value.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |