Interface MdObjectStore
- All Superinterfaces:
EventListener,MdObjectListener,MdStore,MdStoreListener,MetadataObjects,Remote
-
Field Summary
Fields inherited from interface com.sas.metadata.remote.MdStore
ExternalIdenty_Context, ExternalIdenty_ImportType, MDSTORETYPE_OBJECTSTORE, MDSTORETYPE_SERVERSTOREFields inherited from interface com.sas.metadata.remote.MetadataObjects
ABSTRACTEXTENSION, ABSTRACTJOB, ABSTRACTPROMPT, ABSTRACTPROPERTY, ABSTRACTTRANSFORMATION, ACCESSCONTROL, ACCESSCONTROLENTRY, ACCESSCONTROLTEMPLATE, ACTION, AGGREGATION, ANALYTICCOLUMN, ANALYTICCONTEXT, ANALYTICTABLE, APPLICATIONACTION, ARCHIVEENTRY, ARCHIVEFILE, ASSOCIATIONPROPERTY, ATTRIBUTEPROPERTY, AUTHENTICATIONDOMAIN, CALCULATEDMEASURE, CALCULATEDMEMBER, CHANGE, CLASSIFIER, CLASSIFIERMAP, COLUMN, COLUMNHIERARCHY, COLUMNRANGE, COMCONNECTION, CONDITION, CONDITIONACTIONSET, CONDITIONALPRECEDENCE, CONFIGUREDCOMPONENT, CONNECTION, CONTENTLOCATION, CONTENTTYPE, CUBE, CUSTOMASSOCIATION, DATABASECATALOG, DATABASESCHEMA, DATASOURCENAME, DATATABLE, DEPLOYEDCOMPONENT, DEPLOYEDDATAPACKAGE, DEVICE, DEVICETYPE, DIMENSION, DIRECTORY, DOCUMENT, EMAIL, EVENT, EXTENSION, EXTERNALIDENTITY, EXTERNALTABLE, FAVORITESCONTAINER, FEATURE, FEATUREMAP, FILE, FITSTATISTIC, FOREIGNKEY, GLOBALFORMULA, GROUP, GROUPBYCLAUSE, HAVINGCLAUSE, HIERARCHY, HIERARCHYLEVEL, IDENTITY, IDENTITYGROUP, INDEX, INTERNALLOGIN, ITCHANNEL, ITCONTENTSUBSCRIBER, ITEVENTSUBSCRIBER, ITFILTER, ITSUBSCRIBER, JFJOB, JOB, JOIN, JOINTABLE, KEY, KEYASSOCIATION, KEYWORD, LEVEL, LOCALIZEDRESOURCE, LOCALIZEDTYPE, LOCATION, LOGICALCOLUMN, LOGICALSERVER, LOGIN, MACHINE, MEASURE, MEMORY, MININGRESULT, NAMEDSERVICE, NAMEDSET, NUMERICEXTENSION, OLAPPROPERTY, OLAPSCHEMA, OMA_MODEL_DESC, OMA_MODEL_NAME, OMA_MODEL_VERSION, ONCLAUSE, OPENCLIENTCONNECTION, ORDERBYCLAUSE, PERMISSION, PERMISSIONCONDITION, PERSON, PHONE, PHYSICALTABLE, PRIMARYTYPE, PROMPT, PROMPTGROUP, PROPERTY, PROPERTYGROUP, PROPERTYSET, PROPERTYTYPE, PROTOTYPE, PROTOTYPEPROPERTY, PSCOLUMNLAYOUTCOMPONENT, PSLAYOUTCOMPONENT, PSPORTALPAGE, PSPORTALPROFILE, PSPORTLET, QUERYCLAUSE, QUERYTABLE, RELATIONALSCHEMA, RELATIONALTABLE, REPORT, RESPONSIBLEPARTY, ROLE, ROOT, ROWSELECTOR, SASCATALOG, SASCATALOGENTRY, SASCLIENTCONNECTION, SASFILEREF, SASLIBRARY, SASLICENSE, SASPASSWORD, SEARCH, SECONDARYTYPE, SECUREDLIBRARY, SECUREDTABLE, SECURITYRULE, SECURITYRULESCHEME, SECURITYTYPECONTAINMENTRULE, SELECT, SERVERCOMPONENT, SERVERCONTEXT, SERVICECOMPONENT, SERVICETYPE, SHAREDDIMENSION, SOFTWARECOMPONENT, STEPPRECEDENCE, STREAM, SXLEMAP, SYNCSTEP, TABLECOLLECTION, TARGET, TCPIPCONNECTION, TESTCAT, TESTFLEA, TESTGRANDKITTEN, TESTKITTEN, TESTLEG, TESTMOUSE, TESTREQATTRS, TESTROOT, TEXT, TEXTSTORE, TIMESTAMP, TRANSFORMATION, TRANSFORMATIONACTIVITY, TRANSFORMATIONSTEP, TREE, TSNAMEOBJECT, TSNAMESPACE, TYPEDEFINITION, UNIQUEKEY, UNITOFTIME, VARIABLE, WHERECLAUSE, WORKTABLE, XPATH -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElementToChangeList(CMetadata object) Adds the specified metadata object to this object's change list; only adds the object if it is not already in the listvoidUsed to add an object to the list of listeners for changes in the Metadata MapvoidUsed to add an object to the list of listeners for changes in the Metadata MapvoidUsed to add an object to the list of listeners for changes in the Metadata MapvoidAdd an object to the Authorization Transaction Context List for this StorevoidaddVetoableChangeListener(VetoableChangeListener l) Adds a listener to the listvoidappendWriteBuffer(String appendText) Append the text to the write buffer for this store.voidchangeHashKey(String strOldId, String strNewId) Change the hash key associated with an object, and send events for the removal of the old object and addition of the new object to Map.voidClear the Authorization Transaction Context List for this StorevoidRemove all elements from the change list, and set it to emptyvoidRemove all non-deleted objects from the store and usage...voidClear write append buffer outvoidcreateExternalIdentityObject(CMetadata owningObject) Deprecated.As of 9.2 this method is no longer supportedStringcreateRefreshXMLforStore(boolean includeLocallyChangedItems, boolean getFullObjectUpdate) Creates XML for all objects in store.StringCreates XML for all objects in store.voiddeleteDetailMetadataObject(String strFQID) Deletes an object from the detail Map and fires the MetadataRemoved event.booleandeleteObject(CMetadata inObject) Makes an object unavailable in the object store.voiddeleteObjectFromStore(String strFQID) Delete the object from this store and all object stores.voiddispose()Cleans up this objectStore and it's objects from it's parent.voidPrints out the contents of this MdObjectStore.voidflushUpdates(List<CMetadata> updatedItems) Flush updated objects to parent store.Vector<CMetadata> List<CMetadata> Gets a List of changed objects.Vector<CMetadata> Return the current change listList<String> Returns the list of items created in current write.Map<String, CMetadata> Return a Map of the objects being deleted.Map<String, CMetadata> Returns the Detail Object MapReturns the factory used to create objects.StringReturns an identifier for this object store.booleanDeprecated.isGoToServerForMetadata()should be used insteadbooleanGets whether new objects in this store are copied fromt their parent on creation if the object exists in their parent store.StringDeprecated.As of 9.2 this method is no longer supportedList<CMetadata> Gets a List of changed objects.getObject(String strFQID) Return object associated with IDgetObject(String strFQID, boolean hashonly) Return object associated with IDGets the parent store to this oneStringDeprecated.As of 9.2 this method is no longer supportedMap<String, CMetadata> Returns the Simple Object MapStringReturns the name of the object store.intGets the type of store this is, either aMdStore.MDSTORETYPE_SERVERSTOREor aMdStore.MDSTORETYPE_OBJECTSTOREStringGet the string to be attached to the update write for this store.booleanbooleanIf deep copy has been turned on/off.booleanisDeletedObject(String id) Returns true if the object is included in the store's deleted objects listbooleanTells whether or not to go to server for the metadata.StringmakeID(String shortID) Creates a new id for an object.voidMdObjectsAdded(MdEvent e, List ids) NOT IMPLEMENTEDvoidMdObjectsModified(MdEvent e, List items) We pass this event on to our listener.voidMdObjectsRemoved(MdEvent e, List ids) NOT IMPLEMENTEDvoidrefreshObjectFromServer(CMetadata inObject, boolean includeLocallyChangedItems, boolean getFullObjectUpdate) Refreshes object from the servervoidrefreshObjectFromServer(CMetadata inObject, boolean includeLocallyChangedItems, boolean getFullObjectUpdate, boolean refreshAssocsSetByServerOnly) Refreshes object from the servervoidrefreshObjects(List<String> items) Refreshes the following items from parent Map and tells children of update, fireMdObjectsModified()voidrefreshStoreFromServer(boolean includeLocallyChangedItems, boolean getFullObjectUpdate) Refreshes objects in this store from the servervoidremoveElementFromChangeList(CMetadata object) Remove the specified element from the change listvoidremoveElementFromStore(CMetadata removeObject) Removes an element from the changelist and removes all of its associations, then removes the object from the store all children stores and parent stores...voidremoveElementFromStore(CMetadata removeObject, boolean removeDependents) Removes an element from the changelist and removes all of its associations, then removes the object from the store all children stores and parent stores...voidUsed to remove an object from the list of listeners for changes in the Metadata MapvoidUsed to remove an object from the list of listeners for changes in the Metadata MapvoidUsed to remove an object from the list of listeners for changes in the Metadata MapvoidremoveObjectFromStore(CMetadata deleteObject, String deleteTemplate) Removes an object from the store, marks it to delete, and uses a template to delete associated objects.voidremoveObjectsFromStore(List<? extends CMetadata> deletedObjects) Removes a set of objects from the store, and from server once store is persisted to server.voidRemove an object from the Authorization Transaction Context List for this StorevoidremoveStore(MdStore childStore) Removes a child store.voidremoveVetoableChangeListener(VetoableChangeListener l) Removes a listener from the list of vetoable listnersvoidresetStates(List<CMetadata> items) Resets all the objects in items to to set from server state or unSET.restoreObject(String objectID) Restores an object to the Store so that it is available from the store.retrieveFullObject(String objectType, String objectID) Retrieves all metadata for an existing public object.voidset_write_lock(boolean b) set write lock enabled.voidsetDeepCopyObjects(boolean copy) Sets if objects should be deep copied into this store.voidsetGoToServerForMetadata(boolean goToServer) Tells whether or not to go to server for the metadata.voidsetIsGotToServerForMetadata(boolean goToServer) Deprecated.setGoToServerForMetadata(boolean)should be used insteadvoidsetIsObjectCopiedFromParentOnCreation(boolean inValue) Sets whether new objects in this store are copied from thier parent on creation if the object exists in there parent store.voidsetNewObjectRepositoryID(String newObjReposID) Deprecated.As of 9.2 this method is no longer supportedvoidSets the state of all objects in the store to be "stale".voidsetOwningStore(MdStore parent) Sets the parent store to this one.voidsetProjectRepositoryID(String projReposID) Deprecated.As of 9.2 this method is no longer supportedvoidupdateChangeListObjectIDs(String OldReposID, String NewReposID) Changes a new objects repos id for all the objects in the change list of this object store, to a specified repos id.voidupdateChangeListObjectIDs(String OldReposID, String NewReposID, String targetReposID) Changes a new objects repos id for all the objects in the change list of this object store, to a specified repos id.voidupdateCreatedItemsList(List<String> items) remove the items that have been updated from the createdItems list.voidUpdates objects in store to Metadata server.Methods inherited from interface com.sas.metadata.remote.MdStore
addChildStore, isDisposed, removeChildStore
-
Method Details
-
getFactory
Returns the factory used to create objects.- Specified by:
getFactoryin interfaceMdStore- Returns:
- MdFactory
- Throws:
RemoteException
-
getStoreType
int getStoreType() throws RemoteExceptionGets the type of store this is, either aMdStore.MDSTORETYPE_SERVERSTOREor aMdStore.MDSTORETYPE_OBJECTSTORE- Specified by:
getStoreTypein interfaceMdStore- Returns:
- store type as an int.
- Throws:
RemoteException
-
getStoreName
String getStoreName() throws RemoteExceptionReturns the name of the object store. A null value is returned if a name wasn't provided.- Returns:
- store name
- Throws:
RemoteException
-
getIdentifier
String getIdentifier() throws RemoteExceptionReturns an identifier for this object store. This can be used to uniquely identify a particular object store within its owning factory. The identifier will be of the format "Store_NUM", where "NUM" is an integer.- Returns:
- identifier
- Throws:
RemoteException
-
isDeepCopyObjects
boolean isDeepCopyObjects() throws RemoteExceptionIf deep copy has been turned on/off. Default value is true.- Returns:
- whether objects are being deep copied.
- Throws:
RemoteException
-
setDeepCopyObjects
void setDeepCopyObjects(boolean copy) throws RemoteException Sets if objects should be deep copied into this store. The default value is true.If set to false, only objects directly associated to the object being copied will be included. For instance, if an object named "X" is copied, only "X" and its associated objects will be copied. Any object indirectly associated to "X" will not be copied.
- Parameters:
copy- false if deep copy should be turned off- Throws:
RemoteException
-
getIsGoToServerForMetadata
boolean getIsGoToServerForMetadata() throws RemoteExceptionDeprecated.isGoToServerForMetadata()should be used insteadTells whether or not to go to server for the metadata.- Specified by:
getIsGoToServerForMetadatain interfaceMdStore- Returns:
- boolean true if allowed to go to the server.
- Throws:
RemoteException
-
isGoToServerForMetadata
boolean isGoToServerForMetadata() throws RemoteExceptionTells whether or not to go to server for the metadata.- Specified by:
isGoToServerForMetadatain interfaceMdStore- Returns:
- boolean true if allowed to go to the server.
- Throws:
RemoteException
-
setIsGotToServerForMetadata
void setIsGotToServerForMetadata(boolean goToServer) throws RemoteException Deprecated.setGoToServerForMetadata(boolean)should be used insteadTells whether or not to go to server for the metadata.- Specified by:
setIsGotToServerForMetadatain interfaceMdStore- Parameters:
goToServer- go for metadata- Throws:
RemoteException
-
setGoToServerForMetadata
void setGoToServerForMetadata(boolean goToServer) throws RemoteException Tells whether or not to go to server for the metadata.- Specified by:
setGoToServerForMetadatain interfaceMdStore- Parameters:
goToServer- go for metadata- Throws:
RemoteException
-
getIsObjectCopiedFromParentOnCreation
boolean getIsObjectCopiedFromParentOnCreation() throws RemoteExceptionGets whether new objects in this store are copied fromt their parent on creation if the object exists in their parent store.- Returns:
- boolean
- Throws:
RemoteException
-
setIsObjectCopiedFromParentOnCreation
void setIsObjectCopiedFromParentOnCreation(boolean inValue) throws RemoteException Sets whether new objects in this store are copied from thier parent on creation if the object exists in there parent store.- Parameters:
inValue-- Throws:
RemoteException
-
updatedMetadataAll
Updates objects in store to Metadata server.- Specified by:
updatedMetadataAllin interfaceMdStore- Throws:
MdException- if there is an error in the updateMetadataAll call.RemoteException
-
getProjectRepositoryID
String getProjectRepositoryID() throws RemoteExceptionDeprecated.As of 9.2 this method is no longer supportedReturns the project Repository ID used for change management- Returns:
- String the Repository id
- Throws:
RemoteException
-
setProjectRepositoryID
void setProjectRepositoryID(String projReposID) throws RemoteException Deprecated.As of 9.2 this method is no longer supportedSets the project repos id- Parameters:
projReposID- String- Throws:
RemoteException
-
getNewObjectRepositoryID
String getNewObjectRepositoryID() throws RemoteExceptionDeprecated.As of 9.2 this method is no longer supportedSets the repos used for new objects created- Returns:
- String repos id.
- Throws:
RemoteException
-
setNewObjectRepositoryID
void setNewObjectRepositoryID(String newObjReposID) throws RemoteException Deprecated.As of 9.2 this method is no longer supportedSets the repos id used for new object.- Parameters:
newObjReposID- String- Throws:
RemoteException
-
setOwningStore
Sets the parent store to this one.- Specified by:
setOwningStorein interfaceMdStore- Parameters:
parent- MdStore- Throws:
RemoteException
-
getOwningStore
Gets the parent store to this one- Specified by:
getOwningStorein interfaceMdStore- Returns:
- MdStore This store's parent.
- Throws:
RemoteException
-
getDeletedObjects
Return a Map of the objects being deleted.- Returns:
- Map objects that are not visible in this store.
- Throws:
RemoteException
-
isDeletedObject
boolean isDeletedObject(String id) throws RemoteException Returns true if the object is included in the store's deleted objects list- Parameters:
id- the object id- Returns:
- true if being deleted
- Throws:
RemoteException
-
getSimpleObjectMap
Returns the Simple Object Map- Returns:
- The association Map
- Throws:
RemoteException
-
getDetailObjectMap
Returns the Detail Object Map- Specified by:
getDetailObjectMapin interfaceMdStore- Returns:
- The association Map
- Throws:
RemoteException
-
createRefreshXMLforStore
String createRefreshXMLforStore(boolean includeLocallyChangedItems, boolean getFullObjectUpdate) throws RemoteException Creates XML for all objects in store.- Specified by:
createRefreshXMLforStorein interfaceMdStore- Returns:
- XML string for objects in store
- Throws:
RemoteException
-
createXMLforStore
String createXMLforStore() throws RemoteExceptionCreates XML for all objects in store.- Returns:
- XML string for objects in store
- Throws:
RemoteException
-
retrieveFullObject
CMetadata retrieveFullObject(String objectType, String objectID) throws MdException, RemoteException Retrieves all metadata for an existing public object. A public object is defined as an object that has its PublicType attribute set with a matching entry in the type dictionary.This method is mainly a convenience method for retrieving the full metadata representation of a public object, without requiring you to know which associations need to be passed in via a template. All information for the public object, including all of its attributes as well as all of its subordinate objects will be retrieved. The method does not require any flags or templates to be passed in as they (
MdOMIUtil.OMI_FULL_OBJECT,MdOMIUtil.OMI_ALL_SIMPLE, andMdOMIUtil.OMI_SUCCINCT) are automatically passed to the server for you.Note: if the object exists within this store prior to calling this method, all of its attributes and associations will be overwritten.
- Parameters:
objectType- the metadata type of the objectobjectID- the object id- Returns:
- the metadata object
- Throws:
MdExceptionRemoteException
-
refreshStoreFromServer
void refreshStoreFromServer(boolean includeLocallyChangedItems, boolean getFullObjectUpdate) throws MdException, RemoteException Refreshes objects in this store from the server- Parameters:
includeLocallyChangedItems- Includes the objects that have been changed locallygetFullObjectUpdate- Get all attributes and associations on all objects.- Throws:
MdException- If error going to the serverRemoteException- if I/O error
-
refreshObjectFromServer
void refreshObjectFromServer(CMetadata inObject, boolean includeLocallyChangedItems, boolean getFullObjectUpdate) throws MdException, RemoteException Refreshes object from the server- Parameters:
includeLocallyChangedItems- Includes the objects that have been changed locallygetFullObjectUpdate- Get all attributes and associations on all objects.- Throws:
MdException- If error going to the serverRemoteException- if I/O error
-
refreshObjectFromServer
void refreshObjectFromServer(CMetadata inObject, boolean includeLocallyChangedItems, boolean getFullObjectUpdate, boolean refreshAssocsSetByServerOnly) throws MdException, RemoteException Refreshes object from the server- Parameters:
includeLocallyChangedItems- Includes the objects that have been changed locallygetFullObjectUpdate- Get all attributes and associations on all objects.refreshAssocsSetByServerOnly- If true, refreshes only the associations that have previously been set by the server.- Throws:
MdException- If error going to the serverRemoteException- if I/O error
-
createExternalIdentityObject
Deprecated.As of 9.2 this method is no longer supportedThis creates an ExternalIdentity object connection to owningObject for change management. This new object contains the real repos id for the new object.- Specified by:
createExternalIdentityObjectin interfaceMdStore- Parameters:
owningObject- CMetadata Object to which to attach ExternalIdentity.- Throws:
RemoteException
-
deleteDetailMetadataObject
void deleteDetailMetadataObject(String strFQID) throws RemoteException Deletes an object from the detail Map and fires the MetadataRemoved event.- Parameters:
strFQID- String- Throws:
RemoteException
-
makeID
String makeID(String shortID) throws RemoteException Creates a new id for an object. -
dumpDetailHashMap
void dumpDetailHashMap() throws RemoteExceptionPrints out the contents of this MdObjectStore.- Specified by:
dumpDetailHashMapin interfaceMdStore- Throws:
RemoteException
-
dispose
void dispose() throws RemoteExceptionCleans up this objectStore and it's objects from it's parent. -
flushUpdates
Flush updated objects to parent store. This cascades all the way to server store.- Specified by:
flushUpdatesin interfaceMdStore- Parameters:
updatedItems- List The objects which have been updated to the server.- Throws:
RemoteException
-
removeStore
Removes a child store.- Parameters:
childStore-- Throws:
RemoteException
-
getObject
Return object associated with ID- Parameters:
strFQID- String The ID of the object to get from the Maphashonly- boolean get the object from this stores hash only.- Returns:
- CMetadata The object, or null if object not in Map.
- Throws:
RemoteException
-
getObject
Return object associated with ID -
changeHashKey
void changeHashKey(String strOldId, String strNewId) throws RemoteException Change the hash key associated with an object, and send events for the removal of the old object and addition of the new object to Map.- Specified by:
changeHashKeyin interfaceMdStore- Parameters:
strOldId- StringstrNewId- String- Throws:
RemoteException
-
removeElementFromStore
Removes an element from the changelist and removes all of its associations, then removes the object from the store all children stores and parent stores... It should remove this object everywhere except for the ServerStore. This should only be used on newly created objects in this store, to remove them totally from the client.By default, all dependent objects of
removeObjects(a Column and its Table, for instance), will be removed. If you do not wish to remove these dependent objects, seeremoveElementFromStore(CMetadata, boolean)- Parameters:
removeObject- CMetadata- Throws:
RemoteException
-
removeElementFromStore
void removeElementFromStore(CMetadata removeObject, boolean removeDependents) throws RemoteException Removes an element from the changelist and removes all of its associations, then removes the object from the store all children stores and parent stores... It should remove this object everywhere except for the ServerStore. This should only be used on newly created objects in this store, to remove them totally from the client.Any dependent objects of
removeObjectwill be removed ifremoveDependentsis set to True.- Parameters:
removeObject- CMetadata- Throws:
RemoteException
-
updateChangeListObjectIDs
void updateChangeListObjectIDs(String OldReposID, String NewReposID) throws RemoteException Changes a new objects repos id for all the objects in the change list of this object store, to a specified repos id. This should be only the short ID. "AAAAAAAA" to "A5KE2N5K"- Specified by:
updateChangeListObjectIDsin interfaceMdStore- Parameters:
OldReposID- String The repos of objects when they were created.NewReposID- String The project repos id if under change management, the target if not.- Throws:
RemoteException
-
updateChangeListObjectIDs
void updateChangeListObjectIDs(String OldReposID, String NewReposID, String targetReposID) throws RemoteException Changes a new objects repos id for all the objects in the change list of this object store, to a specified repos id. This should be only the short ID. "AAAAAAAA" to "A5KE2N5K"- Specified by:
updateChangeListObjectIDsin interfaceMdStore- Parameters:
OldReposID- String The repos of objects when they were created.NewReposID- String The project repos id if under change management, the target if not.targetReposID- String In change management is the real repos the objects will be checked into- Throws:
RemoteException
-
refreshObjects
void refreshObjects(List<String> items) throws RemoteException Refreshes the following items from parent Map and tells children of update, fireMdObjectsModified()- Parameters:
items- List- Throws:
RemoteException
-
resetStates
Resets all the objects in items to to set from server state or unSET.- Specified by:
resetStatesin interfaceMdStore- Parameters:
items- List (NOTE: CMetadata objects in items)- Throws:
RemoteException
-
setObjectsToStale
void setObjectsToStale() throws RemoteExceptionSets the state of all objects in the store to be "stale". The next time one of these objects is accessed through getObject(), it will be refreshed from the server.- Throws:
RemoteException
-
deleteObjectFromStore
void deleteObjectFromStore(String strFQID) throws RemoteException Delete the object from this store and all object stores.- Parameters:
strFQID- String object to be deleted from client- Throws:
RemoteException
-
MdObjectsModified
We pass this event on to our listener. If they say to refresh then they will tell us to. We us a Vetoable change event to let a visual veto this change if we have any visuals to veto the change.- Specified by:
MdObjectsModifiedin interfaceMdStoreListener- Parameters:
e- MdEvent The metadata event sourceitems- List ID's of changed items.- Throws:
RemoteException
-
MdObjectsRemoved
NOT IMPLEMENTED- Specified by:
MdObjectsRemovedin interfaceMdStoreListener- Parameters:
e- MdEventids- List- Throws:
RemoteException
-
MdObjectsAdded
NOT IMPLEMENTED- Specified by:
MdObjectsAddedin interfaceMdStoreListener- Parameters:
e- MdEventids- List- Throws:
RemoteException
-
addVetoableChangeListener
void addVetoableChangeListener(VetoableChangeListener l) throws RemoteException Adds a listener to the list- Specified by:
addVetoableChangeListenerin interfaceMdStore- Parameters:
l- VetoableChangeListener- Throws:
RemoteException
-
removeVetoableChangeListener
void removeVetoableChangeListener(VetoableChangeListener l) throws RemoteException Removes a listener from the list of vetoable listners- Specified by:
removeVetoableChangeListenerin interfaceMdStore- Parameters:
l- VetoableChangeListener- Throws:
RemoteException
-
addMdStoreListener
Used to add an object to the list of listeners for changes in the Metadata Map- Specified by:
addMdStoreListenerin interfaceMdStore- Parameters:
l- MetadataListener- Throws:
RemoteException
-
removeMdStoreListener
Used to remove an object from the list of listeners for changes in the Metadata Map- Specified by:
removeMdStoreListenerin interfaceMdStore- Parameters:
l- MetadataListener- Throws:
RemoteException
-
addMdObjectListener
Used to add an object to the list of listeners for changes in the Metadata Map- Parameters:
l- MetadataListener- Throws:
RemoteException
-
removeMdObjectListener
Used to remove an object from the list of listeners for changes in the Metadata Map- Parameters:
l- MetadataListener- Throws:
RemoteException
-
addMdStoreIDChangeListener
Used to add an object to the list of listeners for changes in the Metadata Map- Parameters:
l- MetadataListener- Throws:
RemoteException
-
removeMdStoreIDChangeListener
Used to remove an object from the list of listeners for changes in the Metadata Map- Parameters:
l- MetadataListener- Throws:
RemoteException
-
deleteObject
Makes an object unavailable in the object store. Use restore to make the object available after a delete- Specified by:
deleteObjectin interfaceMdStore- Parameters:
inObject- CMetadata- Returns:
- boolean if object was put in state deleted
- Throws:
RemoteException
-
restoreObject
Restores an object to the Store so that it is available from the store.- Specified by:
restoreObjectin interfaceMdStore- Parameters:
objectID- String- Returns:
- CMetadata the object that was restored
- Throws:
RemoteException
-
getChangedObjects
Gets a List of changed objects.- Specified by:
getChangedObjectsin interfaceMdStore- Returns:
- List , The Item that have changed.
- Throws:
RemoteException
-
getNewObjects
Gets a List of changed objects.- Returns:
- List , The Item that have changed.
- Throws:
RemoteException
-
addElementToChangeList
Adds the specified metadata object to this object's change list; only adds the object if it is not already in the list- Parameters:
object- The metadata object to add to the list- Throws:
RemoteException
-
removeElementFromChangeList
Remove the specified element from the change list- Parameters:
object- Metadata object to remove. If the object does not exist in the list, this method just returns- Throws:
RemoteException
-
clearChangeList
void clearChangeList() throws RemoteExceptionRemove all elements from the change list, and set it to empty- Throws:
RemoteException
-
getChangeList
Return the current change list- Returns:
- Vector representing the list of elements on this object's change list
- Throws:
RemoteException
-
getAuthorizationTransContextList
- Returns:
- Vector representing the list of elements on this object's Authorization Transaction Context List
- Throws:
RemoteException
-
addObjToAuthorizationTransContextList
Add an object to the Authorization Transaction Context List for this Store- Throws:
RemoteException
-
removeObjFromAuthorizationTransContextList
Remove an object from the Authorization Transaction Context List for this Store- Throws:
RemoteException
-
clearAuthorizationTransContextList
void clearAuthorizationTransContextList() throws RemoteExceptionClear the Authorization Transaction Context List for this Store- Throws:
RemoteException
-
removeObjectsFromStore
void removeObjectsFromStore(List<? extends CMetadata> deletedObjects) throws MdException, RemoteException Removes a set of objects from the store, and from server once store is persisted to server.- Parameters:
deletedObjects- list of CMetadata objects- Throws:
MdExceptionRemoteException
-
removeObjectFromStore
void removeObjectFromStore(CMetadata deleteObject, String deleteTemplate) throws MdException, RemoteException Removes an object from the store, marks it to delete, and uses a template to delete associated objects.If a template is supplied, then this method will only remove the objects specified in the template. Dependent objects will only be removed if a template is not passed in (if the
deleteTemplateis null or empty).- Parameters:
deleteObject- the object to deletedeleteTemplate- the template, null will n- Throws:
MdExceptionRemoteException
-
clearWriteBuffer
void clearWriteBuffer() throws RemoteExceptionClear write append buffer out- Throws:
RemoteException
-
getWriteBuffer
String getWriteBuffer() throws RemoteExceptionGet the string to be attached to the update write for this store.- Returns:
- String containing the write XML
- Throws:
RemoteException
-
appendWriteBuffer
void appendWriteBuffer(String appendText) throws RemoteException Append the text to the write buffer for this store.- Parameters:
appendText- the text to append to the write buffer.- Throws:
RemoteException
-
getCreatedItemsList
List<String> getCreatedItemsList() throws RemoteExceptionReturns the list of items created in current write.- Returns:
- List
- Throws:
RemoteException
-
updateCreatedItemsList
void updateCreatedItemsList(List<String> items) throws RemoteException remove the items that have been updated from the createdItems list.- Specified by:
updateCreatedItemsListin interfaceMdStore- Parameters:
items-- Throws:
RemoteException
-
clearObjectsFromStore
void clearObjectsFromStore() throws RemoteExceptionRemove all non-deleted objects from the store and usage... **Note: doesn't handle deleted objects.- Throws:
RemoteException
-
is_write_lock
boolean is_write_lock() throws RemoteException- Returns:
- lock write enabled.
- Throws:
RemoteException
-
set_write_lock
void set_write_lock(boolean b) throws RemoteException set write lock enabled.- Parameters:
b-- Throws:
RemoteException
-