|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for implementing Repository persistence interface.
Method Summary | |
void |
addXPDLReference(WMSessionHandle shandle,
java.lang.String referredXPDLId,
java.lang.String referringXPDLId,
java.lang.String referringXPDLVersion,
int referredXPDLNumber)
Adds a information on referenced XPDL. |
void |
clearRepository(WMSessionHandle shandle)
Clears the repository. |
void |
configure(CallbackUtilities cus)
Method configure is called at Shark start up, to configure implementation of RepositoryPersistenceManager. |
void |
deleteFromHistory(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Deletes specified file from history. |
void |
deleteXPDL(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Deletes xpdl specified by given parameters from the repository. |
boolean |
doesXPDLExist(WMSessionHandle shandle,
java.lang.String xpdlId)
Checks if xpdl with given id exists. |
boolean |
doesXPDLExist(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Checks if xpdl with given id and version exists. |
java.lang.String |
getCurrentVersion(WMSessionHandle shandle,
java.lang.String xpdlId)
Gets the current version of package with specified Id. |
java.util.List |
getExistingXPDLIds(WMSessionHandle shandle)
Used to retrieve the list of xpdl Ids currently hold in repository. |
java.lang.String |
getNextVersion(WMSessionHandle shandle,
java.lang.String xpdlId)
Gets the next version of specified Id. |
java.util.List |
getReferredXPDLIds(WMSessionHandle shandle,
java.lang.String referringXPDLId,
java.lang.String referringXPDLVersion)
Gets a list of Ids of referred XPDLs Ids. |
java.util.List |
getReferringXPDLIds(WMSessionHandle shandle,
java.lang.String referredXPDLId)
Gets a list of Ids of XPDLs that referr to the given one. |
java.util.List |
getReferringXPDLVersions(WMSessionHandle shandle,
java.lang.String referredXPDLId,
java.lang.String referringXPDLId)
Gets a list of versions of XPDLs with given Id that referr to the given one. |
byte[] |
getSerializedXPDLObject(WMSessionHandle shandle,
java.lang.String xpdlId)
Gets the byte array for the last version of specified XPDL. |
byte[] |
getSerializedXPDLObject(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Gets the byte array representing specified XPDL. |
long |
getSerializedXPDLObjectVersion(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Gets the version of serialized object that represents given XPDL. |
byte[] |
getXPDL(WMSessionHandle shandle,
java.lang.String xpdlId)
Gets the byte array for the last version of specified XPDL. |
byte[] |
getXPDL(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Gets the byte array representing specified XPDL. |
long |
getXPDLUploadTime(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Gets the time when XPDL was uploaded into the engine. |
java.util.List |
getXPDLVersions(WMSessionHandle shandle,
java.lang.String xpdlId)
Gets a list of all versions for specified XPDL. |
void |
moveToHistory(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion)
Moves the specified XPDL into history. |
void |
updateXPDL(WMSessionHandle shandle,
java.lang.String xpdlId,
java.lang.String xpdlVersion,
byte[] xpdl,
byte[] serializedPkg,
long xpdlClassVer)
Updates XPDL file in the repository. |
void |
uploadXPDL(WMSessionHandle shandle,
java.lang.String xpdlId,
byte[] xpdl,
byte[] serializedPkg,
long xpdlClassVer)
Uploads XPDL represented by byte array into repository, and gives it specified Id. |
Method Detail |
public void configure(CallbackUtilities cus) throws java.lang.Exception
cus
- an instance of CallbackUtilities used to get properties for configuring
Repository Manager in Shark.
java.lang.Exception
- Thrown if configuring doesn't succeed.public void uploadXPDL(WMSessionHandle shandle, java.lang.String xpdlId, byte[] xpdl, byte[] serializedPkg, long xpdlClassVer) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdl
- a byte[] representing XPDL
RepositoryException
- if something goes wrongpublic void updateXPDL(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion, byte[] xpdl, byte[] serializedPkg, long xpdlClassVer) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl versionxpdl
- a byte[] representing XPDL
RepositoryException
- if something goes wrongpublic void deleteXPDL(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if something goes wrongpublic void moveToHistory(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if something goes wrongpublic void deleteFromHistory(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if something goes wrongpublic void clearRepository(WMSessionHandle shandle) throws RepositoryException
RepositoryException
- if something goes wrongpublic java.lang.String getCurrentVersion(WMSessionHandle shandle, java.lang.String xpdlId) throws RepositoryException
xpdlId
- a String representing Id of xpdl
RepositoryException
- if something goes wrongpublic java.lang.String getNextVersion(WMSessionHandle shandle, java.lang.String xpdlId) throws RepositoryException
xpdlId
- a String representing Id of xpdl
RepositoryException
- if something goes wrongpublic long getSerializedXPDLObjectVersion(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if something goes wrongpublic long getXPDLUploadTime(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if something goes wrongpublic byte[] getXPDL(WMSessionHandle shandle, java.lang.String xpdlId) throws RepositoryException
xpdlId
- a String representing Id of xpdl
RepositoryException
- if repository does not contain the xpdl with given Id,
or something else goes wrong.public byte[] getSerializedXPDLObject(WMSessionHandle shandle, java.lang.String xpdlId) throws RepositoryException
xpdlId
- a String representing Id of xpdl
RepositoryException
- if repository does not contain the xpdl with given Id,
or something else goes wrong.public byte[] getXPDL(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if repository does not contain the xpdl with given Id
and version, or something else goes wrong.public byte[] getSerializedXPDLObject(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if repository does not contain the xpdl with given Id
and version, or something else goes wrong.public java.util.List getXPDLVersions(WMSessionHandle shandle, java.lang.String xpdlId) throws RepositoryException
xpdlId
- a String representing Id of xpdl
RepositoryException
- if repository does not contain the xpdl with given Id,
or something else goes wrong.public boolean doesXPDLExist(WMSessionHandle shandle, java.lang.String xpdlId) throws RepositoryException
xpdlId
- a String representing Id of xpdl
RepositoryException
- if something goes wrongpublic boolean doesXPDLExist(WMSessionHandle shandle, java.lang.String xpdlId, java.lang.String xpdlVersion) throws RepositoryException
xpdlId
- a String representing Id of xpdlxpdlVersion
- a String representing xpdl version
RepositoryException
- if something goes wrongpublic java.util.List getExistingXPDLIds(WMSessionHandle shandle) throws RepositoryException
RepositoryException
- if something goes wrongpublic void addXPDLReference(WMSessionHandle shandle, java.lang.String referredXPDLId, java.lang.String referringXPDLId, java.lang.String referringXPDLVersion, int referredXPDLNumber) throws RepositoryException
referredXPDLId
- Id of XPDL that is referred by some other XPDLreferringXPDLId
- Id of XPDL that referrs some other XPDLreferringXPDLVersion
- Version of XPDL that referrs some other XPDLreferredXPDLNumber
- The ordinal numbe of referred XPDL
RepositoryException
public java.util.List getReferringXPDLIds(WMSessionHandle shandle, java.lang.String referredXPDLId) throws RepositoryException
referredXPDLId
- Id of XPDL that is referred by some other XPDLs.
RepositoryException
public java.util.List getReferringXPDLVersions(WMSessionHandle shandle, java.lang.String referredXPDLId, java.lang.String referringXPDLId) throws RepositoryException
referredXPDLId
- Id of XPDL that is referred by some other XPDLs.referringXPDLId
- Id of XPDL that referrs some other XPDL
RepositoryException
public java.util.List getReferredXPDLIds(WMSessionHandle shandle, java.lang.String referringXPDLId, java.lang.String referringXPDLVersion) throws RepositoryException
referringXPDLId
- Id of XPDL that referrs some other XPDLsreferringXPDLVersion
- Version of XPDL that referrs some other XPDLs
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |