org.fao.geonet.lib
Class ResourceLib
java.lang.Object
org.fao.geonet.lib.ResourceLib
public class ResourceLib
- extends java.lang.Object
Method Summary |
void |
checkEditPrivilege(jeeves.server.context.ServiceContext context,
java.lang.String id)
|
void |
checkPrivilege(jeeves.server.context.ServiceContext context,
java.lang.String id,
java.lang.String operation)
|
java.lang.String |
getDataDir(jeeves.server.context.ServiceContext context)
|
java.lang.String |
getDir(jeeves.server.context.ServiceContext context,
java.lang.String access,
java.lang.String id)
|
java.lang.String |
getDir(java.lang.String dataDir,
java.lang.String access,
java.lang.String id)
|
java.lang.String |
getRemovedDir(jeeves.server.context.ServiceContext context)
|
java.lang.String |
getRemovedDir(jeeves.server.context.ServiceContext context,
java.lang.String id)
|
java.lang.String |
getRemovedDir(java.lang.String removedDir,
java.lang.String id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLib
public ResourceLib()
getDataDir
public java.lang.String getDataDir(jeeves.server.context.ServiceContext context)
getDir
public java.lang.String getDir(jeeves.server.context.ServiceContext context,
java.lang.String access,
java.lang.String id)
getDir
public java.lang.String getDir(java.lang.String dataDir,
java.lang.String access,
java.lang.String id)
checkPrivilege
public void checkPrivilege(jeeves.server.context.ServiceContext context,
java.lang.String id,
java.lang.String operation)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkEditPrivilege
public void checkEditPrivilege(jeeves.server.context.ServiceContext context,
java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRemovedDir
public java.lang.String getRemovedDir(jeeves.server.context.ServiceContext context,
java.lang.String id)
getRemovedDir
public java.lang.String getRemovedDir(jeeves.server.context.ServiceContext context)
- Returns:
- the absolute path of the folder choosen to store all deleted metadata
getRemovedDir
public java.lang.String getRemovedDir(java.lang.String removedDir,
java.lang.String id)
- Returns:
- the absolute path of the folder where the given metadata should be
stored when it is removed