Package com.sas.metadata.remote
Interface MdObjectBaseUtil
- All Superinterfaces:
MdObjectBase,Remote
- All Known Subinterfaces:
AbstractExtension,AbstractJob,AbstractPrompt,AbstractProperty,AbstractTransformation,AccessControl,AccessControlEntry,AccessControlTemplate,Action,Aggregation,AnalyticColumn,AnalyticContext,AnalyticTable,ApplicationAction,ArchiveEntry,ArchiveFile,AssociationProperty,AttributeProperty,AuthenticationDomain,CalculatedMeasure,CalculatedMember,Change,Classifier,ClassifierMap,CMetadata,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,MdObjectBaseXML,Measure,Memory,MiningResult,NamedService,NamedSet,NumericExtension,OLAPProperty,OLAPSchema,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,Text,TextStore,Timestamp,Transformation,TransformationActivity,TransformationStep,Tree,TSNameObject,TSNamespace,TypeDefinition,UniqueKey,UnitofTime,Variable,WhereClause,WorkTable,XPath
Provides the Store object and event interactions for Metadata objects.
-
Field Summary
Fields inherited from interface com.sas.metadata.remote.MdObjectBase
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidUsed to add an object to the list of listeners for changes in the Metadata Object.booleandelete()Marks an object as deleted in the owning store and does not allow for retrival of that object.voiddispose()Removes all links to this object so it can be garbage collected.voidUsed to notify all the listeners in the listner list of changes in the metadata object.getAssociatedObjects(String strAssociation) Helper method for getting associated metadata objects.getAssociatedObjects(String strAssociation, String strTemplate) Helper method for getting associated metadata objects.getAssociatedObjects(String associationType, String strAssociation, boolean isPredAssoc, String Properties, CMetadata parentObj) Helper method for getting associated metadata objects.List<String> Returns a list of the association names for this object.Map<String, AssociationList> Gets the Map of all associations this object has.Map<String, AssociationList> Gets the Map of all associations this object has.List<String> Returns a list of the attribute names for this object.Map<String, String> getAttrs()Gets the Map of all attributes this object has.Map<String, Integer> Gets the Map of all attributes states this object has.intReturns the state of this object in a project repositoryintDeprecated.As of 9.2 this method is no longer supportedObjectGets the client-side-only object that is attached to the metadata object.getMdObjectAssociation(String associationName) (S) Set's the list into the object using the set method internally.Map<String, AssociationList> Gets a Map of all associations that have been populated, either by the client or the server.Map<String, String> Returns a map of all attributes that have been updated locally by the client.ArrayListGet all the views associated with this metadata object.voidUsed at constructor time to initialize the required objects arraybooleanTells whether or not this object in the checked out state in the project repositorybooleanisLocked()Tells whether on not this object is locked in a repository.booleanTells whether any of the attributes or associationLists on this object have been changed.voidUsed to remove an object from the list of listeners for changes in the Metadata Object.voidsetAttrs(Map<String, MdObjectAttribute> attrMap) (S) Sets the Map of all attributes this object has.voidsetChangeManagementTargetRepository(String targetRepos) Deprecated.As of 9.2 this method is no longer supportedvoidsetChgMgtExternalIdentityImportType(int type) Deprecated.As of 9.2 this method is no longer supportedvoidsetClientSideOnlyObject(Object oObject) Sets the client-side-only object that is attached to the metadata object.voidSet's the list into the object using the set method internally.voidtouch()Touches the object so that its last modified date will be updated the next time this object is persisted to the server.voidupdateAssnsIds(String oldID, String newID) Updates the ids in the association lists contained in this object.Methods inherited from interface com.sas.metadata.remote.MdObjectBase
addElementToChangeList, clearChangeList, getChangeList, getCMetadataType, getDesc, getDescMaxLength, getDescState, getFQID, getId, getIdState, getMetadataCreated, getMetadataCreatedState, getMetadataUpdated, getMetadataUpdatedState, getName, getNameMaxLength, getNameState, getObjectStore, getPredAssociations, getRepositoryID, getRequiredAssociations, getState, initializePredObjects, isAssociationRequired, isNewObject, isPredAssociation, removeElementFromChangeList, resetObject, resetState, resetStates, setCMetadataType, setDesc, setDesc, setDescState, setFQID, setFQID, setId, setId, setIdState, setMetadataCreated, setMetadataCreated, setMetadataCreatedState, setMetadataUpdated, setMetadataUpdated, setMetadataUpdatedState, setName, setName, setNameState, setObjectStore, setState
-
Method Details
-
getAttributeNames
List<String> getAttributeNames() throws RemoteExceptionReturns a list of the attribute names for this object.- Returns:
- List (of Strings) of attribute names
- Throws:
RemoteException
-
getAssociationNames
List<String> getAssociationNames() throws RemoteExceptionReturns a list of the association names for this object.- Returns:
- List (of Strings) of association names
- Throws:
RemoteException
-
getAttrs
Map<String,String> getAttrs() throws RemoteExceptionGets the Map of all attributes this object has.- Returns:
- Map of attributes.
- Throws:
RemoteException- if connection to object is lost.
-
setAttrs
void setAttrs(Map<String, MdObjectAttribute> attrMap) throws RemoteException(S) Sets the Map of all attributes this object has.- Parameters:
Map- of attributes.- Throws:
RemoteException
-
getUpdatedAttrs
Map<String,String> getUpdatedAttrs() throws RemoteExceptionReturns a map of all attributes that have been updated locally by the client. All updated attributes have a state set toMetadataState.LOCAL.- Returns:
- map of updated attributes
- Throws:
RemoteException
-
getAttrsStates
Map<String,Integer> getAttrsStates() throws RemoteExceptionGets the Map of all attributes states this object has.- Returns:
- Map of attribute states.
- Throws:
RemoteException- if connection to object is lost.
-
getAssocs
Gets the Map of all associations this object has.- Returns:
- Map of associations.
- Throws:
RemoteException- if connection to object is lost.
-
getPopulatedAssocs
Gets a Map of all associations that have been populated, either by the client or the server. Only associations that have previously been set will be included in the map.- Returns:
- map of set associations
- Throws:
RemoteException
-
getAssocsWA
Gets the Map of all associations this object has.- Returns:
- Map of associations.
- Throws:
RemoteException- if connection to object is lost.
-
setMdObjectAssociation
Set's the list into the object using the set method internally.- Parameters:
inList- list to be set for the association.- Throws:
RemoteException
-
getMdObjectAssociation
(S) Set's the list into the object using the set method internally.- Parameters:
inList- list to be set for the association.- Returns:
- List if found, null otherwise.
- Throws:
RemoteExceptionMdException
-
initializeRequiredObjects
void initializeRequiredObjects() throws RemoteExceptionUsed at constructor time to initialize the required objects array- Throws:
RemoteException- if connection to object is lost.
-
addMdObjectListener
Used to add an object to the list of listeners for changes in the Metadata Object.- Parameters:
l- MetadataListener- Throws:
RemoteException- if connection to object is lost.
-
removeMdObjectListener
Used to remove an object from the list of listeners for changes in the Metadata Object.- Parameters:
l- MetadataListener- Throws:
RemoteException- if connection to object is lost.
-
fireMdObjectModified
Used to notify all the listeners in the listner list of changes in the metadata object.- Parameters:
e- ChangeEvent Created like:new ChangeEvent(Object generator)- Throws:
RemoteException- if connection to object is lost.
-
getViewList
ArrayList getViewList() throws RemoteExceptionGet all the views associated with this metadata object.- Throws:
RemoteException- if connection to object is lost.
-
getAssociatedObjects
Helper method for getting associated metadata objects.- Parameters:
strAssociation- String- Returns:
- AssociationList
- Throws:
MdException- if error getting the dataRemoteException- if connection to object is lost.
-
getAssociatedObjects
AssociationList getAssociatedObjects(String associationType, String strAssociation, boolean isPredAssoc, String Properties, CMetadata parentObj) throws MdException, RemoteException Helper method for getting associated metadata objects.- Parameters:
associationType- String The type of association "Column-Table"strAssociation- String The name of the association "Colums"isPredAssoc- booleanProperties- String String for cardinalities and req for addparentObj- CMetadata the object that owns the associaition.- Returns:
- AssociationList
- Throws:
MdException- if error getting the dataRemoteException- if connection to object is lost.
-
getAssociatedObjects
AssociationList getAssociatedObjects(String strAssociation, String strTemplate) throws MdException, RemoteException Helper method for getting associated metadata objects.- Parameters:
strAssociation- String The name of the association "Colums"strTemplate- String- Returns:
- AssociationList
- Throws:
MdException- if error getting the dataRemoteException- if connection to object is lost.
-
delete
boolean delete() throws RemoteExceptionMarks an object as deleted in the owning store and does not allow for retrival of that object.- Returns:
- boolean if object state set to deleted
- Throws:
RemoteException- if connection to object is lost.
-
dispose
void dispose() throws RemoteExceptionRemoves all links to this object so it can be garbage collected.- Throws:
RemoteException- if connection to object is lost.
-
touch
void touch() throws RemoteExceptionTouches the object so that its last modified date will be updated the next time this object is persisted to the server. Note: this method will not automatically update the object on the server. The client will have to either persist the object or its owning store.- Throws:
RemoteException
-
objectModified
boolean objectModified() throws RemoteExceptionTells whether any of the attributes or associationLists on this object have been changed.- Returns:
- true if object has changed.
- Throws:
RemoteException- if connection to object is lost.
-
updateAssnsIds
void updateAssnsIds(String oldID, String newID) throws RemoteException Updates the ids in the association lists contained in this object.- Parameters:
oldID- StringnewID- String- Throws:
RemoteException- if connection to object is lost.
-
getClientSideOnlyObject
Object getClientSideOnlyObject() throws RemoteExceptionGets the client-side-only object that is attached to the metadata object. The client-side-only object is created on the client and is never persisted. The reason for the name is to avoid collisions with attributes that might be added to detailed metadata objects in the future.- Returns:
- the client-side-only object.
- Throws:
RemoteException- if connection to object is lost.
-
setClientSideOnlyObject
void setClientSideOnlyObject(Object oObject) throws RemoteException Sets the client-side-only object that is attached to the metadata object. The client-side-only object is create on the client and is never persisted. The reason for the name is to avoid collisions with attributes that might be added to detailed metadata objects in the future.- Parameters:
oObject- the client-side-only object- Throws:
RemoteException- if connection to object is lost.
-
isLocked
boolean isLocked() throws RemoteExceptionTells whether on not this object is locked in a repository.- Returns:
- boolean if the object is locked for change management.
- Throws:
RemoteException- if connection to object is lost.
-
isCheckedOut
boolean isCheckedOut() throws RemoteExceptionTells whether or not this object in the checked out state in the project repository- Returns:
- boolean if the object is in the checked out state in the project repository
- Throws:
RemoteException- if connection to object is lost.
-
getChangeManagementState
int getChangeManagementState() throws RemoteExceptionReturns the state of this object in a project repository- Returns:
- an int indicating the state of the object in the project repository
- Throws:
RemoteException- if connection to object is lost.
-
setChangeManagementTargetRepository
void setChangeManagementTargetRepository(String targetRepos) throws RemoteException Deprecated.As of 9.2 this method is no longer supportedSets the repository objects will reside in.- Parameters:
targetRepos- String the string name for the Identity value of the ExternalIdentity object connected to this one.- Throws:
RemoteException- if connection to object is lost.
-
setChgMgtExternalIdentityImportType
void setChgMgtExternalIdentityImportType(int type) throws RemoteException Deprecated.As of 9.2 this method is no longer supportedSets the change management's external identity object's ImportType for the type of change management object this is. Valid types are:
MetadataState.MD_CHGMGT_FETCHED MetadataState.MD_CHGMGT_NEW MetadataState.MD_CHGMGT_UNSET MetadataState.MD_CHGMGT_CHECKEDOUT- Parameters:
type- int- Throws:
RemoteException- if connection to object is lost.
-
getChgMgtExternalIdentityImportType
int getChgMgtExternalIdentityImportType() throws RemoteExceptionDeprecated.As of 9.2 this method is no longer supportedGets the change management's external identity object's ImportType for the type of change management object this is. Valid types are:
MetadataState.MD_CHGMGT_FETCHED MetadataState.MD_CHGMGT_NEW MetadataState.MD_CHGMGT_UNSET MetadataState.MD_CHGMGT_CHECKEDOUT- Returns:
- int type of object.
- Throws:
RemoteException- if connection to object is lost.
-