|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.metadata.service.NMDSCommandDispatcher
org.nees.metadata.service.NMDSFacade
org.nees.metadata.service.CachingNMDSFacade
This class represents an interaction with NMDS and provides convenience API's for executing commands against the service.
| Field Summary |
| Fields inherited from interface org.nees.metadata.service.Rewindable |
ACCESSION_NOT_REWOUND, TIME_NOT_REWOUND |
| Constructor Summary | |
CachingNMDSFacade(NMDSSession s,
long t)
|
|
| Method Summary | |
void |
containerAdd(Identifier id,
Identifier containerId)
|
ContainerList |
containerList(Identifier containerId)
|
void |
containerRemove(Identifier id,
Identifier containerId)
|
MetadataObject |
create(MetadataObject o)
Create an object |
MetadataObject[] |
create(MetadataObject[] o)
Create a batch of objects |
MetadataObject |
forceRetrieve(Identifier id)
retrieve an object |
MetadataObject[] |
forceRetrieve(Identifier[] ids)
retrieve a batch of objects |
void |
permit(Identifier id,
Identifier group,
NMDSPermissions p)
Change permissions on an object |
void |
permit(Identifier id,
Identifier group,
java.lang.String p)
Change permissions on an object |
void |
permit(Identifier id,
java.lang.String dn,
NMDSPermissions p)
Change permissions on an object |
void |
permit(Identifier id,
java.lang.String dn,
java.lang.String p)
Change permissions on an object |
MetadataObject |
retrieve(Identifier id)
retrieve a (possibly cached) object |
MetadataObject[] |
retrieve(Identifier[] ids)
retrieve a batch of (possibly cached) objects |
void |
returnToCurrent()
Return from a rewind. |
int |
rewindToAccessionNumber(int accNo)
Rewind the session to a particular accession number. |
int |
rewindToTime(java.util.Date time)
Rewind the session to an earlier time. |
Identifier[] |
searchNumeric(Identifier rid,
double value)
|
Identifier[] |
searchNumeric(Identifier rid,
double low,
double high,
boolean lowInclusive,
boolean highInclusive)
Numeric search |
Identifier[] |
searchNumeric(Identifier rid,
int value)
|
Identifier[] |
searchNumeric(Identifier rid,
int low,
int high,
boolean lowInclusive,
boolean highInclusive)
|
Identifier[] |
searchReference(Identifier rid,
Identifier searchId)
Exact-match string search |
Identifier[] |
searchString(Identifier rid,
java.lang.String searchString)
Exact-match string search |
Identifier[] |
searchText(Identifier rid,
java.lang.String searchPattern)
Fulltext search |
Identifier[] |
searchText(java.lang.String searchPattern)
|
MetadataObjectSummary |
summarize(Identifier oid)
retrieve an object summary |
MetadataObject |
update(MetadataObject o)
Update an object |
| Methods inherited from class org.nees.metadata.service.NMDSFacade |
executeCommand, executeCommands, getGroups, getGroups, getIds, getRewindAccessionNumber, getRewindTime, getSession, intern, intern, isRewound, joinAnd, joinOr, matchAll, matchAny, permit, permit, permit, permit, releaseSession, retrieveAllObjectsOfClass, retrieveAllObjectsOfClass, summarize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CachingNMDSFacade(NMDSSession s,
long t)
| Method Detail |
public MetadataObject retrieve(Identifier id)
throws NMDSException
retrieve in class NMDSFacadeid - the id of the object to retrieve
NMDSException
public MetadataObject[] retrieve(Identifier[] ids)
throws NMDSUnavailableException
retrieve in class NMDSFacadeids - the ids of the objects to retrieve
NMDSUnavailableException
public MetadataObjectSummary summarize(Identifier oid)
throws NMDSException
summarize in class NMDSFacadeoid - the object to summarize
NMDSException
public MetadataObject forceRetrieve(Identifier id)
throws NMDSException
id - the id of the object to retrieve
NMDSException
public MetadataObject[] forceRetrieve(Identifier[] ids)
throws NMDSUnavailableException
ids - the ids of the objects to retrieve
NMDSUnavailableException
public MetadataObject create(MetadataObject o)
throws NMDSException
create in class NMDSFacadeo - the object to create
NMDSException
public MetadataObject[] create(MetadataObject[] o)
throws NMDSUnavailableException
create in class NMDSFacadeo - the object to create
NMDSUnavailableException
public MetadataObject update(MetadataObject o)
throws NMDSException
update in class NMDSFacadeo - the object to update
NMDSException
public void permit(Identifier id,
Identifier group,
NMDSPermissions p)
throws NMDSException
permit in class NMDSFacadep - the permissionsid - the objectgroup - the group id
NMDSException
public void permit(Identifier id,
java.lang.String dn,
NMDSPermissions p)
throws NMDSException
permit in class NMDSFacadep - the permissionsid - the objectdn - the user's distinguished name
NMDSException
public void permit(Identifier id,
Identifier group,
java.lang.String p)
throws NMDSException
permit in class NMDSFacadep - the permission descriptor (e.g., "-r", "a-Cr");id - the objectgroup - the group id
NMDSException
public void permit(Identifier id,
java.lang.String dn,
java.lang.String p)
throws NMDSException
permit in class NMDSFacadep - the permission descriptor (e.g., "-r", "a-Cr");id - the objectdn - the user's distinguished name
NMDSException
public void containerAdd(Identifier id,
Identifier containerId)
throws NMDSException
containerAdd in class NMDSFacadeNMDSException
public void containerRemove(Identifier id,
Identifier containerId)
throws NMDSException
containerRemove in class NMDSFacadeNMDSException
public ContainerList containerList(Identifier containerId)
throws NMDSException
containerList in class NMDSFacadeNMDSException
public Identifier[] searchText(Identifier rid,
java.lang.String searchPattern)
throws NMDSException
searchText in class NMDSFacadeNMDSException
public Identifier[] searchText(java.lang.String searchPattern)
throws NMDSException
searchText in class NMDSFacadeNMDSException
public Identifier[] searchString(Identifier rid,
java.lang.String searchString)
throws NMDSException
searchString in class NMDSFacadeNMDSException
public Identifier[] searchReference(Identifier rid,
Identifier searchId)
throws NMDSException
searchReference in class NMDSFacadeNMDSException
public Identifier[] searchNumeric(Identifier rid,
double low,
double high,
boolean lowInclusive,
boolean highInclusive)
throws NMDSException
searchNumeric in class NMDSFacadeNMDSException
public Identifier[] searchNumeric(Identifier rid,
int low,
int high,
boolean lowInclusive,
boolean highInclusive)
throws NMDSException
searchNumeric in class NMDSFacadeNMDSException
public Identifier[] searchNumeric(Identifier rid,
double value)
throws NMDSException
searchNumeric in class NMDSFacadeNMDSException
public Identifier[] searchNumeric(Identifier rid,
int value)
throws NMDSException
searchNumeric in class NMDSFacadeNMDSException
public int rewindToTime(java.util.Date time)
throws NMDSException
rewindToTime in interface RewindablerewindToTime in class NMDSFacadetime - the time to rewind to.
NMDSException
public int rewindToAccessionNumber(int accNo)
throws NMDSException
rewindToAccessionNumber in interface RewindablerewindToAccessionNumber in class NMDSFacadeaccNo - the accession number to rewind to.
NMDSException
public void returnToCurrent()
throws NMDSException
returnToCurrent in interface RewindablereturnToCurrent in class NMDSFacadeNMDSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||