|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wsm.mds.MDSAccessor
public class MDSAccessor
Nested Class Summary | |
---|---|
static class |
MDSAccessor.UpdateType |
Field Summary | |
---|---|
static String |
ASSERTION_TEMPLATE_TYPE |
static String |
ATTACHMENT_TYPE |
static String |
CONFIG_TYPE |
static String |
POLICY_TYPE |
static String |
UNKNOWN_TYPE |
Constructor Summary | |
---|---|
MDSAccessor(boolean isReadOnly, MDSConfig config) Constructor This constructor is used when MDS configuration information is to be supplied programmatically |
Method Summary | |
---|---|
boolean |
areTransactionsSupported() If the back end data store is file based, then MDS does not guarantee transactionality. |
void |
deleteResource(String qualifiedName, boolean updateTimestamp) Delete a MDS resource (Policy/Assertion/Attachment) |
void |
deleteResources(String prefixFilter, boolean updateTimestamp) Delete all MOs residing under a particular prefix. |
void |
deleteResourcesList(List<String> resourceNameList, boolean updateTimestamp) Delete a bunch of MOs from datastore |
void |
deleteVersions(String qualifiedName, long fromVersion, long toVersion, boolean updateTimestamp) Delete a range of versions for a particular MO |
String |
getCreator() |
MDSArtifact |
getDocument(String name) Fetch DOM document from data store |
MDSArtifact |
getDocumentVersion(String name, long version) |
List<MDSArtifact> |
getDocumentVersions(String docName) |
oracle.mds.core.MetadataObject |
getMetadataObjectAsMO(String name) Given a MO name, fetch the corresponding MO object from the data store |
oracle.mds.core.MOReference |
getMORefForName(String qualifiedName) Given a MOName, create a MOReference object for the name |
Date |
getStoreLastUpdatedDate() |
Date |
getStoreTimestamp() |
IVersionInfo |
getVersionInfo(oracle.mds.core.MetadataObject mo) |
List<MDSArtifact> |
searchDocuments(oracle.mds.query.Condition searchCondition) |
void |
setCreator(String creator) |
MDSArtifact |
updateDocument(MDSArtifact mdsArtifact, boolean isUpdate, boolean updateTimestamp) Adds/updates a new MDS object to the MDS store. |
List<MDSArtifact> |
updateDocuments(List<MDSArtifact> pmArtifacts, boolean isUpdate, boolean updateTimestamp) Update a bunch of policies into the datastore.Before updating policy this method will check validity of policy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ASSERTION_TEMPLATE_TYPE
public static final String ATTACHMENT_TYPE
public static final String CONFIG_TYPE
public static final String POLICY_TYPE
public static final String UNKNOWN_TYPE
Constructor Detail |
---|
public MDSAccessor(boolean isReadOnly, MDSConfig config) throws MDSAccessException
isReadOnly
- Whether this accessor is read-onlyconfig
- The MDS config informationMDSAccessException
Method Detail |
---|
public MDSArtifact updateDocument(MDSArtifact mdsArtifact, boolean isUpdate, boolean updateTimestamp) throws MDSAccessException
name
- Name of the object to adddoc
- The object to be added in form of a XML Documentupdate
- The type of update operation to be carried out possible values are MDSAccessor.updateType.ADD (Add) & MDSAccessor.updateType.UPDATE (update)updateTimestamp
- true if store timestamp should be updated to nowMDSAccessException
public void deleteResource(String qualifiedName, boolean updateTimestamp) throws MDSAccessException
name
- Name of the policy to be deletedupdateTimestamp
- true if store timestamp should be updated to nowMDSAccessException
public oracle.mds.core.MetadataObject getMetadataObjectAsMO(String name) throws MDSAccessException
name
-MDSAccessException
public List<MDSArtifact> searchDocuments(oracle.mds.query.Condition searchCondition) throws MDSAccessException
MDSAccessException
public oracle.mds.core.MOReference getMORefForName(String qualifiedName) throws MDSAccessException
qualifiedName
-MDSAccessException
public IVersionInfo getVersionInfo(oracle.mds.core.MetadataObject mo) throws MDSAccessException
MDSAccessException
public void deleteVersions(String qualifiedName, long fromVersion, long toVersion, boolean updateTimestamp) throws MDSAccessException
qualifiedName
- FQN of the object whose version(s) is to be deletedfromVersion
- The starting index for version deletionstoVersion
- Ending index for version to be deleted if the toVersion is set to -1, a single version will be delete The single version will be the fromVersionupdateTimestamp
- true if store timestamp should be updated to nowMDSAccessException
public void deleteResources(String prefixFilter, boolean updateTimestamp) throws MDSAccessException
prefixFilter
- MDS datastore path that needs to be cleanedupdateTimestamp
- true if store timestamp should be updated to nowMDSAccessException
public void deleteResourcesList(List<String> resourceNameList, boolean updateTimestamp) throws MDSAccessException
resourceNameList
- List of MO names to be purgedupdateTimestamp
- true if store timestamp should be updated to nowMDSAccessException
public String getCreator()
public void setCreator(String creator)
public List<MDSArtifact> updateDocuments(List<MDSArtifact> pmArtifacts, boolean isUpdate, boolean updateTimestamp) throws MDSAccessException
updateType
- TODOpolicies
-updateTimestamp
- true if store timestamp should be updated to nowMDSAccessException
public boolean areTransactionsSupported()
public MDSArtifact getDocument(String name) throws MDSAccessException
name
- Name of the document to be fetchedMDSAccessException
- If no document with the given name exist in the storepublic MDSArtifact getDocumentVersion(String name, long version) throws MDSAccessException
MDSAccessException
public List<MDSArtifact> getDocumentVersions(String docName) throws MDSAccessException
MDSAccessException
public Date getStoreLastUpdatedDate()
public Date getStoreTimestamp() throws MDSAccessException
MDSAccessException
|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |