|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrimaryType
Primary types are the starting point for modeling a public object or component. When used to model public objects, the PublicType= attribute must be set to indicate the type of object.
Public objects may be copied, deleted, moved, and secured as a unit and are usually contained in a folder. They must have the PublicType= attribute set. Some public objects may be embedded in other objects; these are cosidered components. A component may be secured apart from the containing object. For example, a column may have security different from the containing table. A component may also be copied, deleted, and secured etc as a unit apart from the containing object. All other types are secondary objects. Secondary objects may not reside in a folder and are contained, directly or indirectly, by a public object or component. Secondary objects may not be shared between two public objects.Attributes of PrimaryType are:
Associations of PrimaryType 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(); PrimaryType myObject = (PrimaryType) factory.createComplexMetadataObject(objectStore, "PrimaryType_Object", MetadataObjects.PRIMARYTYPE, "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_FAVORITESCONTAINERS_NAME
Constant used for the name of the FavoritesContainers association. |
static java.lang.String |
ATTRIBUTE_ISHIDDEN_NAME
Constant used for the name of the IsHidden attribute. |
static java.lang.String |
ATTRIBUTE_PUBLICTYPE_NAME
Constant used for the name of the PublicType 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 | |
---|---|
AssociationList |
getFavoritesContainers()
Gets the AssociationList of FavoritesContainers |
AssociationList |
getFavoritesContainers(boolean fGoToServer)
Gets the Associationlist of FavoritesContainers |
int |
getIsHidden()
Gets the int value of IsHidden |
int |
getIsHiddenState()
Gets the Metadata State of IsHidden |
java.lang.String |
getPublicType()
Gets the String value of PublicType |
int |
getPublicTypeMaxLength()
Gets the maximum length of PublicType |
int |
getPublicTypeState()
Gets the Metadata State of PublicType |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: FavoritesContainers |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: |
void |
setFavoritesContainers(AssociationList list)
Sets the FavoritesContainers list to be list . |
void |
setFavoritesContainers(AssociationList inObjects,
int state)
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList |
void |
setIsHidden(int inIsHidden)
Sets the IsHidden value and sets the state to MetadataState.LOCAL. |
void |
setIsHidden(int inIsHidden,
int state)
Sets the IsHidden Metadata State. |
void |
setIsHidden(java.lang.String inIsHidden)
Sets the IsHidden value and sets the state to MetadataState.LOCAL. |
void |
setIsHidden(java.lang.String inIsHidden,
int state)
Sets the IsHidden value and Metadata State. |
void |
setIsHiddenState(int state)
Sets the Metadata State of IsHidden . |
void |
setPublicType(java.lang.String inPublicType)
Sets the PublicType value and sets the state to MetadataState.LOCAL. |
void |
setPublicType(java.lang.String inPublicType,
int state)
Sets the PublicType Metadata State. |
void |
setPublicTypeState(int state)
Sets the Metadata State of PublicType . |
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_PUBLICTYPE_NAME
PublicType: The logical type name for this object that corresponds to a valid type definition.
static final java.lang.String ATTRIBUTE_ISHIDDEN_NAME
IsHidden: When set to "True", this object should not be shown by default in the folder view or search interface.
static final java.lang.String ASSOCIATION_FAVORITESCONTAINERS_NAME
FavoritesContainers: The container for which this is a favorite.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
FavoritesContainers
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getPublicType() throws java.rmi.RemoteException
String
value of PublicType
PublicType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPublicTypeState() throws java.rmi.RemoteException
PublicType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPublicTypeMaxLength() throws java.rmi.RemoteException
PublicType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getIsHidden() throws java.rmi.RemoteException
int
value of IsHidden
IsHidden
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getIsHiddenState() throws java.rmi.RemoteException
IsHidden
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getFavoritesContainers() throws java.rmi.RemoteException, MdException
FavoritesContainers
FavoritesContainers
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 getFavoritesContainers(boolean fGoToServer) throws java.rmi.RemoteException, MdException
FavoritesContainers
fGoToServer
- boolean Get the value from the server.
FavoritesContainers
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 setPublicType(java.lang.String inPublicType) throws java.rmi.RemoteException
PublicType
value and sets the state to MetadataState.LOCAL.
inPublicType
- String
java.rmi.RemoteException
- If error communicating with remote object.void setPublicType(java.lang.String inPublicType, int state) throws java.rmi.RemoteException
PublicType
Metadata State.
inPublicType
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPublicTypeState(int state) throws java.rmi.RemoteException
PublicType
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setIsHidden(int inIsHidden) throws java.rmi.RemoteException
IsHidden
value and sets the state to MetadataState.LOCAL.
inIsHidden
- int
java.rmi.RemoteException
- If error communicating with remote object.void setIsHidden(int inIsHidden, int state) throws java.rmi.RemoteException
IsHidden
Metadata State.
inIsHidden
- intstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setIsHidden(java.lang.String inIsHidden) throws java.rmi.RemoteException
IsHidden
value and sets the state to MetadataState.LOCAL.
inIsHidden
- String
java.rmi.RemoteException
- If error communicating with remote object.void setIsHidden(java.lang.String inIsHidden, int state) throws java.rmi.RemoteException
IsHidden
value and Metadata State.
inIsHidden
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setIsHiddenState(int state) throws java.rmi.RemoteException
IsHidden
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setFavoritesContainers(AssociationList list) throws java.rmi.RemoteException
FavoritesContainers
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setFavoritesContainers(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
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 |