Package com.sas.metadata.remote
Interface MdServerStore
- All Superinterfaces:
EventListener,MdObjectListener,MdStore,MdStoreListener,MetadataObjects,Remote,Serializable
@SASScope("ALL")
public interface MdServerStore
extends MdStore, MdStoreListener, MetadataObjects, MdObjectListener, Serializable, Remote
This is the Main store of objects (Cache) for interactions with the server.
Warning: this class should not be used directly by a client. All metadata objects
should be created within an MdObjectStore. As of version 9.2, most methods
within this class have been deprecated.
-
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 TypeMethodDescriptionvoidUsed 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 MapvoidaddVetoableChangeListener(VetoableChangeListener l) Adds a listener to the listvoidchangeHashKey(String strOldId, String strNewId) Change the hash key associated with an object, and notify listenersvoidRemove all non-deleted objects from the store and usage...voidcreateExternalIdentityObject(CMetadata owningObject) This creates an ExternalIdentity object connection to owningObject for change management.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.voiddeleteObjectFromStores(String strFQID) Delete the object from this store and all object stores.voiddispose()Removes objects not being used by any other objectStore.voidPrints out the contents of the Detail object Map.voidPrints out the contents of the Detail object Map.voidflushUpdates(List<CMetadata> updatedItems) Flush updated objects to parent store.ListGets a List of changed objects.ListReturns the list of items created in current write.Map<String, CMetadata> Deprecated.As of 9.2, the detailObjectMap is no longer used in the ServerStore.Returns the factory used to create objects.booleanDeprecated.isGoToServerForMetadata()should be used insteadgetObject(String strFQID) Deprecated.As of 9.2, complex objects are no longer stored in the ServerStore.getObject(String strFQID, boolean hashonly) Deprecated.As of 9.2, complex objects are no longer stored in the ServerStore.getObjectInChildStore(String objectID) Returns a CMetadata object in a child store.Gets the MdStore that owns this store, returns null, no store should own the factory.Map<String, CMetadata> Returns the Simple Object MapintGets the type of store this is, either aMdStore.MDSTORETYPE_SERVERSTOREor aMdStore.MDSTORETYPE_OBJECTSTOREbooleanisChildUsingObject(String objectID) Tells whether or not a child ObjectStore is using an object or not.booleanTells whether or not to go to server for the metadata.booleanisObjectInServerStore(String objectID) Returns true if the object is cached in the server storeStringmakeID(String shortID) Creates a new id for an object.voidMdObjectsAdded(MdEvent e, List items) Event generated when objects are added to the Store's Map.voidMdObjectsModified(MdEvent e, List items) Event generated when objects are modified in the Store.voidMdObjectsRemoved(MdEvent e, List items) Event generated when objects are removed to the Store's Map.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 MapvoidremoveStore(MdStore childStore) Remove an object store from the factory for use.voidremoveVetoableChangeListener(VetoableChangeListener l) Removes a listener from the list of vetoable listnersvoidresetStates(List 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.voidsetGoToServerForMetadata(boolean goToServer) Tells whether or not to go to server for the metadata.voidsetIsGotToServerForMetadata(boolean goToServer) Deprecated.setGoToServerForMetadata(boolean)should be used insteadvoidsetOwningStore(MdStore parent) Sets the owning store, which is not implemented for thisMdStorevoidupdateCreatedItemsList(List<String> items) remove the items that have been updated from the createdItems list.Methods inherited from interface com.sas.metadata.remote.MdStore
addChildStore, createRefreshXMLforStore, isDisposed, removeChildStore
-
Method Details
-
getFactory
Returns the factory used to create objects.- Specified by:
getFactoryin interfaceMdStore- Returns:
- MdFactory
- 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
-
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
-
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
-
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
-
setOwningStore
Sets the owning store, which is not implemented for thisMdStore- Specified by:
setOwningStorein interfaceMdStore- Parameters:
parent- MdStore- 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
-
getOwningStore
Gets the MdStore that owns this store, returns null, no store should own the factory.- Specified by:
getOwningStorein interfaceMdStore- Returns:
- MdStore
- Throws:
RemoteException
-
getDetailObjectMap
Deprecated.As of 9.2, the detailObjectMap is no longer used in the ServerStore. All objects should be created in an ObjectStore.Returns the Detail Object Map- Specified by:
getDetailObjectMapin interfaceMdStore- Returns:
- The association Map
- Throws:
RemoteException
-
getSimpleObjectMap
Returns the Simple Object Map- Returns:
- The association Map
- Throws:
RemoteException
-
deleteObject
Makes an object unavailable in the object store. Use restore to make the object available after a delete. NOT IMPLEMENTED- Specified by:
deleteObjectin interfaceMdStore- Parameters:
inObject- CMetadata- Returns:
- boolean if object was deleted
- Throws:
RemoteException
-
deleteObjectFromStores
void deleteObjectFromStores(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
-
makeID
String makeID(String shortID) throws RemoteException Creates a new id for an object. -
restoreObject
Restores an object to the Store so that it is available from the store. NOT IMPLEMENTED.- Specified by:
restoreObjectin interfaceMdStore- Parameters:
objectID- String- Returns:
- CMetadata the object that was restored
- Throws:
RemoteException
-
resetStates
void resetStates(List items) throws RemoteException Resets all the objects in items to to set from server state or unSET. NOT IMPLEMENTED.- Specified by:
resetStatesin interfaceMdStore- Parameters:
items- List- 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
-
dumpDetailHashMap
void dumpDetailHashMap() throws RemoteExceptionPrints out the contents of the Detail object Map.- Specified by:
dumpDetailHashMapin interfaceMdStore- Throws:
RemoteException
-
dumpDetailAllHashMaps
void dumpDetailAllHashMaps() throws RemoteExceptionPrints out the contents of the Detail object Map.- Throws:
RemoteException
-
getObject
Deprecated.As of 9.2, complex objects are no longer stored in the ServerStore. All objects should be created in an ObjectStore.Return object associated with ID- Parameters:
strFQID- Stringhashonly- boolean- Returns:
- CMetadata Object with that id, or null if object not in Detail Map.
- Throws:
RemoteException
-
getObject
Deprecated.As of 9.2, complex objects are no longer stored in the ServerStore. All objects should be created in an ObjectStore.Return object associated with ID -
isObjectInServerStore
boolean isObjectInServerStore(String objectID) throws RemoteException Returns true if the object is cached in the server store- Parameters:
objectID- the object id- Returns:
- true if the object is in the server store, false otherwise
- Throws:
RemoteException
-
changeHashKey
void changeHashKey(String strOldId, String strNewId) throws RemoteException Change the hash key associated with an object, and notify listeners- Specified by:
changeHashKeyin interfaceMdStore- Parameters:
strOldId- StringstrNewId- String- Throws:
RemoteException
-
createExternalIdentityObject
This 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
-
flushUpdates
Flush updated objects to parent store. NOT IMPLEMENTED- Specified by:
flushUpdatesin interfaceMdStore- Parameters:
updatedItems- List- Throws:
RemoteException
-
dispose
void dispose() throws RemoteExceptionRemoves objects not being used by any other objectStore. -
removeStore
Remove an object store from the factory for use. Also removes any objects that are not being used by any other ObjectStore.- Parameters:
childStore- MdStore The store to remove.- Throws:
RemoteException
-
isChildUsingObject
boolean isChildUsingObject(String objectID) throws RemoteException Tells whether or not a child ObjectStore is using an object or not.- Parameters:
objectID- String- Returns:
- true if using object elsewhere, false if not.
- Throws:
RemoteException
-
getObjectInChildStore
Returns a CMetadata object in a child store.- Parameters:
objectID- String- Returns:
- the object in a child store, or null if the object cannot be found
- Throws:
RemoteException
-
getChangedObjects
List getChangedObjects() throws RemoteExceptionGets a List of changed objects.- Specified by:
getChangedObjectsin interfaceMdStore- Returns:
- An List of changed objects.
- Throws:
RemoteException
-
MdObjectsAdded
Event generated when objects are added to the Store's Map.- Specified by:
MdObjectsAddedin interfaceMdStoreListener- Parameters:
e- MdEventitems- List- Throws:
RemoteException
-
MdObjectsRemoved
Event generated when objects are removed to the Store's Map.- Specified by:
MdObjectsRemovedin interfaceMdStoreListener- Parameters:
e- MdEventitems- List- Throws:
RemoteException
-
MdObjectsModified
Event generated when objects are modified in the Store.- Specified by:
MdObjectsModifiedin interfaceMdStoreListener- Parameters:
e- MdEventitems- List- 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
-
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
-
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
-
clearObjectsFromStore
void clearObjectsFromStore() throws RemoteExceptionRemove all non-deleted objects from the store and usage... **Note: doesn't handle deleted objects.- Throws:
RemoteException
-
getCreatedItemsList
List 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
-