public interface IEWebServices
extends com.exlibris.core.infra.svc.api.GenericWebService
| Modifier and Type | Method and Description |
|---|---|
long |
addRepresentation(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.String preservationType,
java.lang.String label,
java.lang.String representationEntityType,
java.lang.String representationCode,
java.lang.String arPolicyID,
java.lang.String submissionReason,
RepresentationContent[] representationContent,
MetaData[] metadata,
java.lang.Boolean commit)
This method adds new representation, according to the given representationContent objects list.
|
void |
assignCMS(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String cmsSystem,
java.lang.String cmsRecordId,
java.lang.Boolean commit)
This method assigns CMS record to an IE, according to the given cmsSystem/cmsRecordId parameters
|
void |
assignSharedMD(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String mid,
java.lang.Boolean commit)
Assign an Access Rights policy or exception.
|
java.lang.String |
createSharedMD(java.lang.String pdsHandle,
MetaData metadata)
Creates a new Access Rights policy or exception.
|
void |
deleteSharedMD(java.lang.String pdsHandle,
java.lang.String mid)
Delete an (unassigned) Access Rights policy or exception
|
void |
generateFixityEvent(java.lang.String PDShandle,
FixityEvent event,
java.lang.Boolean commit)
This method sends a fixity event for Rosetta to process.
|
java.lang.String |
getDNX(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String section)
API for getting the DNX MD of an IE , REP or File, Only MD on entity level (which is in Permanent) is returned.
|
java.lang.String |
getIE(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.Long flags)
Returns the METS of the IE.
|
java.lang.String |
getIEMD(java.lang.String pdsHandle,
java.lang.String iePID)
Deprecated.
|
java.lang.String |
getIERepresentations(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.String preservationType)
Returns the Reps of the IE.
|
java.lang.String |
getMD(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String mid,
java.lang.String type,
java.lang.String subType)
API for getting the MD of an IE , REP or File, Only MD on entity level (which is in Permanent) is returned.
The ID of the source MD section is the mid (saved in Rosetta DB) No parameters - return all PID's MDs MID - return matching MD (ignore type, subtype if provided) type (only) - return all matching for type type+subType - return all matching for type+subtype subType (only) - not supported type+subType mismatch - error Supported type:subType pairs: descriptive: dc source: marc, dc, mods, text_md, image_niso,video_md, audio_md, copyrights, rights, other, ead, OTHER:article mets_section: structMap Requests by users other than the locking agent will return a response with the latest committed version. |
java.lang.String |
getRipStatus(java.lang.String pdsHandle,
java.lang.Long ripID)
Returns the current status of the given rip, can be one of the following: Finished, In Process - {stage}, In TA - {stage}.
|
RIPStatusInfo |
getRipStatusInfo(java.lang.String pdsHandle,
java.lang.Long ripID)
Return
RIPStatusInfo object. |
java.util.List<MetaData> |
getSharedMD(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String type,
java.lang.String subType)
Retrieve an Access Rights policy or exception.
|
MetaData |
getSharedMDByMid(java.lang.String pdsHandle,
java.lang.String mid)
Retrieve an Access Rights policy or exception by its mid.
|
java.util.List<MetaData> |
getSharedMDByType(java.lang.String pdsHandle,
java.lang.String type,
java.lang.String subType)
Retrieves all Access Rights policies or exceptions.
|
IEStatusInfo |
manageIE(java.lang.String pdsHandle,
java.lang.String iePid,
com.exlibris.core.sdk.consts.Enum.Action action) |
void |
unassignCMS(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.Boolean commit)
This method unassigns CMS record from an IE, if attached
|
void |
unassignSharedMD(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String mid,
java.lang.Boolean commit)
Unassign an Access Rights policy or exception.
|
java.lang.String |
updateDNX(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String content,
java.lang.Boolean commit)
API for updating the DNX MD on a IE, REP or File.
|
void |
updateIEMD(java.lang.String pdsHandle,
java.lang.String iePID,
MetaData[] metadata)
Deprecated.
|
void |
updateMD(java.lang.String pdsHandle,
java.lang.String pid,
MetaData[] metadata,
java.lang.Boolean commit)
API for updating the MD on a IE, REP or File.
|
long |
updateRepresentation(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.String repPid,
java.lang.String submissionReason,
RepresentationContent[] representationContent,
MetaData[] metadata,
java.lang.Boolean commit)
This method updates an existing representation, according to the given RepresentationContent objects list.
|
void |
updateSharedMD(java.lang.String pdsHandle,
MetaData metadata)
Update an existing Access Rights policy or exception.
|
@Deprecated
java.lang.String getIEMD(java.lang.String pdsHandle,
java.lang.String iePID)
throws NotInPermanentException,
UserAuthorizeException,
IEWSException
java.lang.String getMD(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String mid,
java.lang.String type,
java.lang.String subType)
throws NotInPermanentException,
UserAuthorizeException,
IEWSException
pdsHandle - PID - mid - type - subType - NotInPermanentExceptionUserAuthorizeExceptionIEWSExceptionjava.lang.String getDNX(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String section)
throws NotInPermanentException,
UserAuthorizeException,
IEWSException
pdsHandle - PID - section - NotInPermanentExceptionUserAuthorizeExceptionIEWSException@Deprecated
void updateIEMD(java.lang.String pdsHandle,
java.lang.String iePID,
MetaData[] metadata)
throws UserAuthorizeException,
NotInPermanentException,
InvalidMIDException,
InvalidTypeException,
InvalidXmlException,
LockedIeException,
IEWSException
void updateMD(java.lang.String pdsHandle,
java.lang.String pid,
MetaData[] metadata,
java.lang.Boolean commit)
throws UserAuthorizeException,
NotInPermanentException,
InvalidMIDException,
InvalidTypeException,
InvalidXmlException,
LockedIeException,
IEWSException
pdsHandle - pid - metadata - type, subType parameters (and valid values) - mandatory
mid - optional, if provided mid will be updatedUserAuthorizeExceptionNotInPermanentExceptionInvalidMIDExceptionInvalidTypeExceptionInvalidXmlExceptionLockedIeExceptionIEWSExceptionjava.lang.Exceptionjava.lang.String updateDNX(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String content,
java.lang.Boolean commit)
throws UserAuthorizeException,
NotInPermanentException,
InvalidMIDException,
InvalidTypeException,
InvalidXmlException,
LockedIeException,
IEWSException
pdsHandle - pid - content - UserAuthorizeExceptionNotInPermanentExceptionInvalidMIDExceptionInvalidTypeExceptionInvalidXmlExceptionLockedIeExceptionIEWSExceptionjava.lang.Exceptionvoid generateFixityEvent(java.lang.String PDShandle,
FixityEvent event,
java.lang.Boolean commit)
throws UserAuthorizeException,
FixityEventException,
LockedIeException
PDShandle - event - a FixityEvent objectUserAuthorizeExceptionFixityEventExceptionjava.lang.ExceptionLockedIeExceptionjava.lang.String getRipStatus(java.lang.String pdsHandle,
java.lang.Long ripID)
throws UserAuthorizeException,
IEWSException
pdsHandle - ripID - UserAuthorizeExceptionIEWSExceptionRIPStatusInfo getRipStatusInfo(java.lang.String pdsHandle, java.lang.Long ripID) throws UserAuthorizeException, IEWSException
RIPStatusInfo object.pdsHandle - ripID - Rip Registry IdgetRipStatus(java.lang.String, java.lang.Long) result. UserAuthorizeExceptionIEWSExceptionjava.lang.String getIE(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.Long flags)
throws UserAuthorizeException,
IEWSException
flags - pdsHandle - the pds handleiePid - the ie pidUserAuthorizeExceptionIEWSExceptionjava.lang.String getIERepresentations(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.String preservationType)
throws UserAuthorizeException,
IEWSException
preservationType - support multiple preservation types, separated by semicolon (";")pdsHandle - the pds handleiePid - the ie pidUserAuthorizeExceptionIEWSExceptionlong addRepresentation(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.String preservationType,
java.lang.String label,
java.lang.String representationEntityType,
java.lang.String representationCode,
java.lang.String arPolicyID,
java.lang.String submissionReason,
RepresentationContent[] representationContent,
MetaData[] metadata,
java.lang.Boolean commit)
throws UserAuthorizeException,
LockedIeException,
FixityEventException,
NotInPermanentException,
IEWSException,
InvalidMIDException,
InvalidTypeException,
InvalidXmlException
getRipStatusInfo(String, Long) to retrieve status and the new representation Pid.pdsHandle - iePid - The IE under which this representation would be addedpreservationType - Code from the "Preservation Type" code tablelabel - A label for the new representationrepresentationEntityType - Code from the "Representation Entity Type" code tablerepresentationCode - Code from the "RepresentationCode" code tablearPolicyID - Mid of the access right policy assigned to the new representationsubmissionReason - The submission reason for the updaterepresentationContent - List of RepresentationContent objects which represents the files of the new representation. oldFilePid and operation fields aren't relevant in the addRepresentation case.metadata - list of metadata for this representation. structmap (logical only) can be added only using updateMetadata.UserAuthorizeExceptionLockedIeExceptionFixityEventExceptionNotInPermanentExceptionIEWSExceptionInvalidMIDExceptionInvalidTypeExceptionInvalidXmlExceptionlong updateRepresentation(java.lang.String pdsHandle,
java.lang.String iePid,
java.lang.String repPid,
java.lang.String submissionReason,
RepresentationContent[] representationContent,
MetaData[] metadata,
java.lang.Boolean commit)
throws UserAuthorizeException,
LockedIeException,
FixityEventException,
NotInPermanentException,
IEWSException,
InvalidMIDException,
InvalidTypeException,
InvalidXmlException
pdsHandle - iePid - The IE under which this representation would be updatedrepPid - The representation which is updatedsubmissionReason - The submission reason for the updaterepresentationContent - A RepresentationContent object. Represents the updated content (i.e. the difference between the existing Rep, file-wise)metadata - list of metadata for this representation. structmap (logical only) can be added only using updateMetadata.UserAuthorizeExceptionLockedIeExceptionIEWSExceptionNotInPermanentExceptionFixityEventExceptionInvalidXmlExceptionInvalidTypeExceptionInvalidMIDExceptionjava.lang.Exceptionjava.lang.String createSharedMD(java.lang.String pdsHandle,
MetaData metadata)
throws UserAuthorizeException,
InvalidTypeException,
InvalidXmlException,
IEWSException
pdsHandle - metadata - - metadata.content = Access Rights XML, metdata.mid - (null) , metadata.subType = accessrights, metadata.type = policy|local.UserAuthorizeExceptionInvalidTypeExceptionInvalidXmlExceptionIEWSExceptionvoid updateSharedMD(java.lang.String pdsHandle,
MetaData metadata)
throws UserAuthorizeException,
InvalidTypeException,
InvalidMIDException,
IEWSException,
InvalidXmlException
pdsHandle - metadata - - metadata.content = Access Rights XML, metdata.mid = Existing Access Rights MD id , metadata.subType - (null), metadata.type = (null).UserAuthorizeExceptionInvalidTypeExceptionInvalidMIDExceptionjava.lang.ExceptionIEWSExceptionInvalidXmlExceptionvoid deleteSharedMD(java.lang.String pdsHandle,
java.lang.String mid)
throws UserAuthorizeException,
InvalidMIDException
pdsHandle - mid - = Existing Access Rights MD idUserAuthorizeExceptionInvalidMIDExceptionjava.util.List<MetaData> getSharedMD(java.lang.String pdsHandle, java.lang.String pid, java.lang.String type, java.lang.String subType) throws UserAuthorizeException, IEWSException
pdsHandle - pid - = IE or REP pid from permanenttype - = policy|local|(null)subType - = accessrightsUserAuthorizeExceptionInvalidMIDExceptionIEWSExceptionjava.util.List<MetaData> getSharedMDByType(java.lang.String pdsHandle, java.lang.String type, java.lang.String subType) throws UserAuthorizeException, IEWSException
pdsHandle - type - = policy|local|(null)subType - = accessrightsUserAuthorizeExceptionInvalidMIDExceptionIEWSExceptionMetaData getSharedMDByMid(java.lang.String pdsHandle, java.lang.String mid) throws UserAuthorizeException, InvalidMIDException
pdsHandle - mid - - Existing Access Rights mid.UserAuthorizeExceptionInvalidMIDExceptionvoid assignSharedMD(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String mid,
java.lang.Boolean commit)
throws UserAuthorizeException,
InvalidMIDException,
NotInPermanentException,
LockedIeException,
IEWSException
pdsHandle - pid - - IE or REP unlocked pid from permanentmid - - Existing Access Rights mid.UserAuthorizeExceptionInvalidMIDExceptionNotInPermanentExceptionLockedIeExceptionIEWSExceptionvoid unassignSharedMD(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String mid,
java.lang.Boolean commit)
throws UserAuthorizeException,
InvalidMIDException,
NotInPermanentException,
LockedIeException,
IEWSException
pdsHandle - pid - - IE or REP pid from permanentmid - - Existing Access Rights mid. Policy can only be unassigned from a REP pid.UserAuthorizeExceptionInvalidMIDExceptionNotInPermanentExceptionLockedIeExceptionIEWSExceptionIEStatusInfo manageIE(java.lang.String pdsHandle, java.lang.String iePid, com.exlibris.core.sdk.consts.Enum.Action action) throws UserAuthorizeException, NotInPermanentException, IEWSException, LockedIeException
pdsHandle - - the pds handle.iePid - - IE pid from permanent.Action - - one of the following values: INFO, LOCK, OVERRIDELOCK, COMMIT, ROLLBACKUserAuthorizeExceptionNotInPermanentExceptionIEWSExceptionLockedIeExceptionvoid assignCMS(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.String cmsSystem,
java.lang.String cmsRecordId,
java.lang.Boolean commit)
throws InvalidTypeException,
NotInPermanentException,
UserAuthorizeException,
LockedIeException,
InvalidCMSSystemException,
IEWSException
pdsHandle - pid - IE pid from permanentcmsSystem - CMS System which defined in the external_resource_explorer_configuration.xml configuration filecmsRecordId - CMS Record Idcommit - whether to commit changes or notInvalidTypeExceptionNotInPermanentExceptionUserAuthorizeExceptionLockedIeExceptionInvalidCMSSystemExceptionIEWSExceptionvoid unassignCMS(java.lang.String pdsHandle,
java.lang.String pid,
java.lang.Boolean commit)
throws InvalidTypeException,
NotInPermanentException,
UserAuthorizeException,
LockedIeException,
IEWSException
pdsHandle - pid - IE pid from permanentcommit - whether to commit changes or notInvalidTypeExceptionNotInPermanentExceptionUserAuthorizeExceptionLockedIeExceptionIEWSException