|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.data.service.impl.AbstractNMDSAdapter
org.nees.data.service.impl.NMDSAdapterImpl
| Field Summary |
| Fields inherited from interface org.nees.data.service.impl.NMDSAdapter |
__CLASS_KEY, __IO_KEY, NFMS_LOGICAL_NAME_ID_NAMESPACE, NFMS_LOGICAL_NAME_ID_PREFIX, NMDS_GRID_SERVICE_HANDLE_KEY |
| Constructor Summary | |
NMDSAdapterImpl()
Required trivial constructor for instantiation contract. |
|
| Method Summary | |
void |
addFile(UploadRequestRecord urr)
Creates a new file entry from the upload request, setting permissions as needed or versioning if so required by the request. |
void |
deleteFile(LogicalName logicalName,
int version)
Deletes the specified version of the file. |
boolean |
doesVersionExist(LogicalName logicalName,
int version)
Answers the question "is this version in the repository exist?" |
boolean |
exists(LogicalName logicalName)
This returns true if the given logical name has an entry in the repository. |
Identifier |
getID(LogicalName logicalName)
|
int |
getLatestVersionNumber(LogicalName logicalName)
Ask the repository what the most recent version of this file is that is available. |
java.net.URI |
getPermanentLocationURI(LogicalName ln,
int version)
This will retrieve the valid permanent location for the given file with the given version number. |
void |
hasReadPermission(LogicalName logicalName,
int version)
Before carrying out a download, a user must be checked for having permission to read the file. |
void |
hasWritePermission(LogicalName logicalName,
int version)
FIX ME!! |
void |
initialize(java.util.Properties p,
InitializationObjectInterface io)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NMDSAdapterImpl()
| Method Detail |
public Identifier getID(LogicalName logicalName)
public void initialize(java.util.Properties p,
InitializationObjectInterface io)
throws java.lang.Exception
java.lang.Exception
public java.net.URI getPermanentLocationURI(LogicalName ln,
int version)
throws NFMSException
getPermanentLocationURI in interface NMDSAdaptergetPermanentLocationURI in class AbstractNMDSAdapterNFMSException
public void hasReadPermission(LogicalName logicalName,
int version)
throws NFMSException
hasReadPermission in interface NMDSAdapterhasReadPermission in class AbstractNMDSAdapterNFMSException
public void hasWritePermission(LogicalName logicalName,
int version)
throws NFMSException
hasWritePermission in interface NMDSAdapterhasWritePermission in class AbstractNMDSAdapterNFMSException
public void addFile(UploadRequestRecord urr)
throws NFMSException
addFile in interface NMDSAdapteraddFile in class AbstractNMDSAdapterNFMSException
public void deleteFile(LogicalName logicalName,
int version)
throws NFMSException
deleteFile in interface NMDSAdapterdeleteFile in class AbstractNMDSAdapterNFMSException
public boolean exists(LogicalName logicalName)
throws NFMSException
true if the given logical name has an entry in the repository.
exists in interface NMDSAdapterexists in class AbstractNMDSAdapterNFMSException
public int getLatestVersionNumber(LogicalName logicalName)
throws NFMSException
NFMSConstants.FILE_VERSION_UNAVAILABLE is returned. Note that this version will be the
latest, if that is not marked as unavailable.
getLatestVersionNumber in interface NMDSAdaptergetLatestVersionNumber in class AbstractNMDSAdapterNFMSException
public boolean doesVersionExist(LogicalName logicalName,
int version)
throws NFMSException
doesVersionExist in interface NMDSAdapterdoesVersionExist in class AbstractNMDSAdapterNFMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||