|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Role
This object describes a role of of an object, and the context of the role.
Defined contexts are:Attributes of Role are:
Associations of Role are:
factory
create methods. // create a store to contain your objects for this change. If you do not have an existing object // or store to use. You may obtain the store from another object by using Object.getObjectStore(). MdFactory factory; //where "factory" is a valid MdFactory instance MdObjectStore objectStore = factory.createObjectStore(); Role myObject = (Role) factory.createComplexMetadataObject(objectStore, "Role_Object", MetadataObjects.ROLE, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
MdOMIUtil
.
updateMetadataAll
method.
delete
method can be used.
This will flag the object as being deleted on the client, and will require an update call to persist
the change to the server.
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_ROLEOBJECT_NAME
Constant used for the name of the RoleObject association. |
static java.lang.String |
ATTRIBUTE_CONTEXT_NAME
Constant used for the name of the Context attribute. |
static java.lang.String |
ATTRIBUTE_OBJECTROLE_NAME
Constant used for the name of the ObjectRole attribute. |
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 | |
---|---|
java.lang.String |
getContext()
Gets the String value of Context |
int |
getContextMaxLength()
Gets the maximum length of Context |
int |
getContextState()
Gets the Metadata State of Context |
java.lang.String |
getObjectRole()
Gets the String value of ObjectRole |
int |
getObjectRoleMaxLength()
Gets the maximum length of ObjectRole |
int |
getObjectRoleState()
Gets the Metadata State of ObjectRole |
DataTable |
getRoleObject()
Gets the DataTable for RoleObject |
AssociationList |
getRoleObjects()
Gets the AssociationList of RoleObjects |
AssociationList |
getRoleObjects(boolean fGoToServer)
Gets the Associationlist of RoleObjects |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: RoleObject |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: RoleObject |
void |
setContext(java.lang.String inContext)
Sets the Context value and sets the state to MetadataState.LOCAL. |
void |
setContext(java.lang.String inContext,
int state)
Sets the Context Metadata State. |
void |
setContextState(int state)
Sets the Metadata State of Context . |
void |
setObjectRole(java.lang.String inObjectRole)
Sets the ObjectRole value and sets the state to MetadataState.LOCAL. |
void |
setObjectRole(java.lang.String inObjectRole,
int state)
Sets the ObjectRole Metadata State. |
void |
setObjectRoleState(int state)
Sets the Metadata State of ObjectRole . |
void |
setRoleObject(DataTable inObject)
Sets the RoleObjects list 0th element to be inObject . |
void |
setRoleObjects(AssociationList list)
Sets the RoleObjects list to be list . |
void |
setRoleObjects(AssociationList list,
int state)
Sets the RoleObjects list to be list . |
Methods inherited from interface com.sas.metadata.remote.MdObjectBaseXML |
---|
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAll |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_CONTEXT_NAME
Context: This is the context or category of the role. Valid values include EM, WA and ContentType.
static final java.lang.String ATTRIBUTE_OBJECTROLE_NAME
ObjectRole: This attribute describes the role in a particular context. For example, if the context is ContentType, the ObjectRole can be Summary or Base. If the context is WA, the ObjectRole can be Source or Target.
static final java.lang.String ASSOCIATION_ROLEOBJECT_NAME
RoleObject: The object that is playing this particular role.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
RoleObject
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface Root
initializeRequiredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
RoleObject
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface Root
initializePredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getContext() throws java.rmi.RemoteException
String
value of Context
Context
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getContextState() throws java.rmi.RemoteException
Context
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getContextMaxLength() throws java.rmi.RemoteException
Context
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getObjectRole() throws java.rmi.RemoteException
String
value of ObjectRole
ObjectRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getObjectRoleState() throws java.rmi.RemoteException
ObjectRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getObjectRoleMaxLength() throws java.rmi.RemoteException
ObjectRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getRoleObjects() throws java.rmi.RemoteException, MdException
RoleObjects
RoleObjects
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
DataTable getRoleObject() throws java.rmi.RemoteException, MdException
DataTable
for RoleObject
DataTable
( null
if not set) of RoleObject
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getRoleObjects(boolean fGoToServer) throws java.rmi.RemoteException, MdException
RoleObjects
fGoToServer
- boolean Get the value from the server.
RoleObjects
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.void setContext(java.lang.String inContext) throws java.rmi.RemoteException
Context
value and sets the state to MetadataState.LOCAL.
inContext
- String
java.rmi.RemoteException
- If error communicating with remote object.void setContext(java.lang.String inContext, int state) throws java.rmi.RemoteException
Context
Metadata State.
inContext
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setContextState(int state) throws java.rmi.RemoteException
Context
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setObjectRole(java.lang.String inObjectRole) throws java.rmi.RemoteException
ObjectRole
value and sets the state to MetadataState.LOCAL.
inObjectRole
- String
java.rmi.RemoteException
- If error communicating with remote object.void setObjectRole(java.lang.String inObjectRole, int state) throws java.rmi.RemoteException
ObjectRole
Metadata State.
inObjectRole
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setObjectRoleState(int state) throws java.rmi.RemoteException
ObjectRole
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setRoleObjects(AssociationList list) throws java.rmi.RemoteException
RoleObjects
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setRoleObjects(AssociationList list, int state) throws java.rmi.RemoteException
RoleObjects
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setRoleObject(DataTable inObject) throws java.rmi.RemoteException
RoleObjects
list 0th element to be inObject
.
inObject
- DataTable
java.rmi.RemoteException
- If error communicating with remote object.
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |