|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataInterface
This is a generic interface for "smart" classes that bridge the gap between disparate repositories.
Field Summary | |
---|---|
static int |
METADATA_STATE_DELETED
The object has been deleted from the backing store and (possibly pending an update) is no longer represented there. |
static int |
METADATA_STATE_DESTROYED
The object's backing infrastructure (repository connection, etc.) has been closed and this object can no longer be expected to operate in a predictable manner. |
static int |
METADATA_STATE_NEW
The object has been created, but not persisted to the metadata store. |
static int |
METADATA_STATE_NORMAL
The object is backed by a persisted representation in the store. |
static java.lang.String |
PERMISSION_READMETADATA
Permission string for read metadata permission. |
static java.lang.String |
PERMISSION_WRITEMETADATA
Permission string for write metadata permission. |
Method Summary | |
---|---|
void |
add()
Add a new metadata item to the repository. |
void |
addAccessControl(AccessControlEntryInterface ace)
Add an Access Control item to this object. |
void |
addAttribute(java.lang.String key,
java.lang.String value)
Add an attribute with the given name and value |
void |
addAttributes(java.util.Map attributeMap)
Add a number of attributes - names and values are given in the map. |
void |
addDocument(DocumentInterface doc)
Add an associated Document to this object. |
void |
addExtension(java.lang.String name,
java.lang.String value,
java.lang.String type)
Add an extension to the current set of extensions |
void |
addGroup(GroupInterface group)
Add this object to a group. |
void |
addImplementor(SoftwareComponentInterface softwareComponent)
Add a SoftwareComponent as an implementor of this object. |
void |
addKeyword(java.lang.String keyword)
Add a keyword to this object. |
void |
addObjectProperty(PropertyInterface property)
Add a property to this object. |
void |
addObjectProperty(java.lang.String name,
java.lang.String propertyName,
java.lang.String value,
java.lang.String type)
Add a new property to this metadata object. |
void |
addPermissions(java.util.List identities,
java.util.List permissions)
Add a set of permissions for a set of identities for this metadata object. |
void |
addPrompt(BaseOMRPromptInterface prompt)
Add a prompt to this object. |
void |
addPropertySet(PropertySetInterface propertySet)
Add a property set to this object. |
void |
addRemark(RemarksInterface remark)
Add a remark to this smart object |
void |
addResponsibleParty(com.sas.services.information.publicobject.Responsibility newResponsibility)
Add a new responsibleParty to this object. |
void |
addTransactionListener(MetadataInterface mi)
Add a listener to receive event notifications when a transaction is committed or rolled back. |
void |
addUsedByPrototype(MetadataInterface prototyped)
Add an object which uses this object as a prototype. |
void |
checkin()
Check in this item |
void |
checkout()
Check out this item |
void |
commit()
Commit changes that have been made to this object to the parent. |
MetadataInterface |
copyTo(FolderInterface folder,
java.lang.String name)
Make a copy of this object. |
int |
countAssociatedObjects(java.lang.String association)
Count the objects associated to this one via a named association. |
void |
delete()
Delete this object from its repository. |
void |
deleteAttribute(java.lang.String key)
Delete a specific attribute |
void |
deleteAttributes(java.util.List attributes)
Delete a list of attributes. |
void |
destroy()
Destroy this object, clearing any object references, freeing any resources in use, and rendering it unusable for future use. |
java.util.List |
getAccessControls()
Get a list of the Access Controls on this object. |
java.lang.String |
getAttribute(java.lang.String key)
Get the value of the attribute with the given key/name. |
java.util.Map |
getAttributes()
Get a list of all the attributes. |
AuthorizationUtilInterface |
getAuthorizationUtil()
Get the AuthorizationUtil Interface for this object |
java.util.Date |
getCreateDate()
Get a Date object representing the time the metadata was created. |
java.lang.String |
getDescription()
Get the description for this object. |
java.util.List |
getDocuments()
Get the List of Documents associated with this object. |
java.lang.String |
getEntityKey()
Get the entity key for this item. |
java.lang.String |
getEntityURL()
Get a "standard" URL for a metadata object. |
java.util.List |
getExtensions()
Get the extensions for this object. |
java.util.List |
getGroups()
Get the list of groups this object is a member of. |
java.lang.String |
getGUID()
Get the object GUID. |
java.util.List |
getIdentities()
Get all the identities that are associated to this metadata object through permissions. |
java.util.List |
getImplementors()
Get a List of the SoftwareComponent Implementors for this object. |
java.util.List |
getKeywords()
Get a list of keywords associated with this object. |
java.lang.String |
getLockedBy()
Get the value of the LockedBy attribute for a metadata object. |
java.util.Date |
getModifyDate()
Get a Date object representing the time the metadata was last updated. |
java.util.List |
getObjectProperties()
Get the Property objects associated with this metadata object. |
FolderInterface |
getParent()
Return the FolderInterface that contains this object. |
java.lang.String |
getParentPath(java.lang.String rootFolderName)
Get the parent path for this object. |
java.util.List |
getParents()
Return a List of Folder objects that represent the parent(s) of this object in the hierarchy. |
java.lang.String |
getPath(java.lang.String rootFolderName)
Get the preferred path for this object. |
java.util.List |
getPaths(java.lang.String rootFolderName)
Get all valid paths for this object. |
PermissionInterface |
getPermission(IdentityInterface identity,
PermissionInterface permission)
Get a permission that matches the requested permission for the requested identity on this metadata object. |
java.util.List |
getPermissions(IdentityInterface identity)
Get all the permissions that apply to this object. |
java.util.List |
getPermissions(IdentityInterface identity,
java.lang.String[] inheritedPermissions)
Get all the permissions that apply to this object. |
java.util.List |
getPreviousVersionNames()
Gets a list of previous version names |
PropertyGroupInterface |
getPrimaryPropertyGroup()
Get this object's primary PropertyGroup object. |
BaseOMRPromptInterface |
getPrompt()
Get the first prompt on this object. |
java.util.List |
getPrompts()
Get the List of prompts associated with this object. |
com.sas.services.information.metadata.propertybag.PropertyBagInterface |
getPropertyBag()
Get a "bag" of properties from the metadata object. |
java.util.List |
getPropertySets()
Get a List of the property sets that are associated with this object. |
java.util.List |
getRemarksList()
Return a List of Remarks objects that represent the dicussion threads related to this object. |
java.lang.String |
getReposId()
Get the repository ID for the item. |
RepositoryInterface |
getRepository()
Get the handle to the repository for this object. |
java.lang.Object |
getRepositoryEntity()
Get the object that was returned directly from the repository. |
java.lang.String |
getRepositoryName()
Get the repository name that this object resides in. |
java.lang.String |
getReposKey()
Get a String that can be passed directly to a RepositoryInterface.fetch method. |
java.util.List |
getResponsibleParties()
Get the responsible parties for this object. |
int |
getState()
Get the state of this metadata object. |
int |
getTrackingId()
Get the tracking ID for this object. |
java.lang.String |
getType()
Get the object type. |
com.sas.util.UsageVersion |
getUsageVersion()
Return the usage version of the metadata. |
java.util.List |
getUsedByPrototypes()
Get the List of objects which use this object as a prototype. |
MetadataInterface |
getUsingPrototype()
Get the prototype which this object uses for description/validation. |
MetadataInterface |
getVersion(java.lang.String versionName)
Return a smart object that represents a particular version |
boolean |
isAuthorized(java.lang.String permission)
Check for a specific permission on this object by the user that owns the connection to the repository. |
boolean |
isCompatible()
Return a boolean indicating if this object is fully compatible with the version of the metadata. |
boolean |
isDeleted()
Returns true if the delete method has been called on this object. |
boolean |
isDestroyed()
Returns true if the backing connection, or infrastructure has been closed, rendering this object unusable. |
boolean |
isLoggingEnabled(int level,
java.lang.String context)
|
boolean |
isObjectAlive()
Check to be sure the object still exists in the metadata server. |
boolean |
isReadCompatible()
Return a boolean indicating if this object is read compatible with the version of the metadata. |
void |
logMessage(int level,
java.lang.String context,
java.lang.String message,
java.lang.Throwable t)
|
java.lang.String |
mapNameToFilesystem(int hostOS,
java.lang.String prefix,
java.lang.String suffix)
Map the metadata object name to a file system path. |
java.lang.String |
mapUrlToFilesystem(int hostOS,
java.lang.String prefix,
java.lang.String suffix)
Map the metadata object's SBIP Url to a file system path. |
void |
moveTo(FolderInterface folder)
Move this object to a new folder. |
java.lang.Object |
newServiceObject()
For objects that support it, get an "active" interface for the metadata object. |
void |
refresh()
Refresh the data for this object from the repository. |
void |
removeAccessControl(AccessControlEntryInterface ace)
Remove an Access Control item from this object. |
void |
removeDocument(DocumentInterface doc)
Remove a document from this object's Documents association. |
void |
removeExtension(java.lang.String name)
Remove an Extension from the current extension set. |
void |
removeGroup(GroupInterface group)
Remove this object from a group. |
void |
removeImplementor(SoftwareComponentInterface softwareComponent)
Remove a SoftwareComponent from the list of implementors on this object. |
void |
removeKeyword(java.lang.String keyword)
Remove a keyword from this object. |
void |
removeObjectProperty(PropertyInterface property)
Remove a Property from this object. |
void |
removePermissions(java.util.List identities,
java.util.List permissions)
Remove permissions matching the identities and permission list. |
void |
removePrompt(BaseOMRPromptInterface prompt)
Remove a prompt from this object. |
void |
removePropertySet(PropertySetInterface propertySet)
Remove a property set from this object. |
void |
removeResponsibleParty(com.sas.services.information.publicobject.Responsibility responsibility)
Remove a responsible party from this metadata object. |
void |
removeUsedByPrototype(MetadataInterface prototyped)
Remove an object from the list prototyped by this object. |
void |
rollback()
Roll back changes to this object, and all objects that have been updated or created in the child repository. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set the value of an attribute to the given value |
void |
setAttributes(java.util.Map attributeMap)
Set a number of attributes - names and values are given in the map |
void |
setDeleted()
Mark this object deleted. |
void |
setDescription(java.lang.String description)
Sets the description for this object. |
void |
setDocuments(java.util.List docs)
Set the list of Documents associated with this object. |
void |
setExtensions(java.util.List extensionList)
Set the list of extensions on this metadata object. |
void |
setGroups(java.util.List groups)
Set the list of groups this object belongs to. |
void |
setGUID(java.lang.String guid)
Set the object GUID. |
void |
setKeywords(java.util.List keywords)
Set the keyword collection on this object. |
void |
setName(java.lang.String name)
Set this object's name. |
void |
setObjectProperties(java.util.List propertyList)
Set the collection of Properties associated with this object. |
void |
setPermission(IdentityInterface identity,
PermissionInterface permission)
Set a new permission on this metadata object. |
void |
setPrimaryPropertyGroup(PropertyGroupInterface pgroup)
Set this object's primary property group object. |
void |
setPrompt(BaseOMRPromptInterface prompt)
Set the prompt on this object. |
void |
setPrompts(java.util.List prompts)
Set the List of Prompts on this object. |
void |
setRemarksList(java.util.List threads)
Sets the list of Remarks objects that represent the dicussion threads related to this object. |
void |
setRepository(RepositoryInterface repository)
Set the repository that this item exists in. |
void |
setUsingPrototype(MetadataInterface prototype)
Set the prototype which is used by this object for description/validation. |
MetadataInterface |
startTransaction()
Start a Transaction for this Metadata object. |
byte[] |
toByteArray()
Write the state of the object to a byte array. |
void |
transactionEvent(MetadataInterface mi)
Notify this object that a child transaction has completed either because of a commit or a rollback. |
void |
uncheckout()
Uncheckout this item |
void |
update()
Persist any changes to the object back to the repository. |
void |
updateFromBag(com.sas.services.information.metadata.propertybag.PropertyBagInterface propertyBag)
|
void |
version()
Version this item |
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface |
---|
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor |
Field Detail |
---|
static final int METADATA_STATE_NEW
static final int METADATA_STATE_NORMAL
static final int METADATA_STATE_DELETED
static final int METADATA_STATE_DESTROYED
static final java.lang.String PERMISSION_READMETADATA
static final java.lang.String PERMISSION_WRITEMETADATA
Method Detail |
---|
java.lang.String getReposId() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursjava.lang.String getRepositoryName() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.int getState() throws java.rmi.RemoteException
java.rmi.RemoteException
- in the event of remote object failure.boolean isDeleted() throws java.rmi.RemoteException
java.rmi.RemoteException
void setDeleted() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.boolean isDestroyed() throws java.rmi.RemoteException
java.rmi.RemoteException
void destroy() throws java.rmi.RemoteException
java.rmi.RemoteException
void setName(java.lang.String name) throws java.rmi.RemoteException
name
- a String
for the object name.
java.rmi.RemoteException
- if an error occursjava.lang.String getDescription() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursvoid setDescription(java.lang.String description) throws java.rmi.RemoteException
description
- The object description.
java.rmi.RemoteException
- if an error occursjava.lang.String getGUID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursvoid setGUID(java.lang.String guid) throws java.rmi.RemoteException, java.lang.IllegalStateException
guid
- A string representing a Globally Unique Identifier. This
class won't generate or verify the GUID, so be sure it's valid.
java.rmi.RemoteException
- if an error occurs
java.lang.IllegalStateException
- if the GUID has already been set.java.lang.String getType() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursvoid add() throws ServiceException, java.rmi.RemoteException
ServiceException
- If there's a repository error.
java.rmi.RemoteException
- in the event of a network error.void update() throws ServiceException, java.rmi.RemoteException
ServiceException
- if an error occurs in the repository.
java.rmi.RemoteException
- if an error occursvoid refresh() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void delete() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of a repository failure.
java.rmi.RemoteException
- in the event of a network failure.int getTrackingId() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursjava.lang.Object getRepositoryEntity() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursjava.lang.String getEntityKey() throws java.lang.IllegalStateException, ServiceException, java.rmi.RemoteException
java.lang.IllegalStateException
- If the repository hasn't been set on
this object.
ServiceException
- If an error occurs getting the repository
URL.
java.rmi.RemoteException
- if an error occursjava.lang.String getEntityURL() throws ServiceException, java.rmi.RemoteException
ServiceException
- In the event of a service failure.
java.rmi.RemoteException
- In the event of remote object failure.void setRepository(RepositoryInterface repository) throws java.lang.IllegalStateException, java.rmi.RemoteException
repository
- A handle to the repository for this object.
java.lang.IllegalStateException
- If the repository has already been set.
java.rmi.RemoteException
- if an error occursRepositoryInterface getRepository() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursjava.util.List getKeywords() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occursvoid addKeyword(java.lang.String keyword) throws ServiceException, java.rmi.RemoteException
keyword
- a new String
to add as a keyword.
ServiceException
- if an error occurs in the repository.
java.rmi.RemoteException
- if an error occursvoid removeKeyword(java.lang.String keyword) throws java.rmi.RemoteException
keyword
- The keyword to remove.
java.rmi.RemoteException
- if an error occursvoid setKeywords(java.util.List keywords) throws ServiceException, java.rmi.RemoteException
keywords
- The list of keywords to set on this object.
ServiceException
- In the event of repository failure.
java.rmi.RemoteException
- In the event of network failure.java.lang.String getPath(java.lang.String rootFolderName) throws ServiceException, java.rmi.RemoteException
Find the preferred path from the specified root folder to the current object. A single object may have multiple valid paths. Use the getPaths method to find all valid paths.
The path is intended to be a user friendly name for an object. Applications that do not require user-visible URLs to objects should probably use the repository ID of the object instead of the path. An object path can easily be invalidated by renaming the object or any of the folders in the path.
Note: For OMR, Folders are modeled with the Tree object. This method must trace up the Trees association from the current object, through any intermediate Tree objects until it finds a root Tree object with the proper name. A root Tree will have no Trees associations. The path is contructed by concatenating all of the intervening Tree objects (not including the root Tree) and the current object using a forward slash as a delimiting character. The preferred path is the first path found by a depth-first scan of the Trees associations starting at the current object.
Note also that a path alone is not sufficient to find an object. You must have a repository, a root folder, a path and an object type to find a valid object (or objects if name uniqueness is not enforced).
rootFolderName
- Name of the root folder for the path.
ServiceException
- if an error occurs
java.rmi.RemoteException
- if an error occursjava.lang.String getParentPath(java.lang.String rootFolderName) throws ServiceException, java.rmi.RemoteException
rootFolderName
- Name of the root folder for the path. If null is
passed in, the default BIP tree name is used.
ServiceException
- in the event of repository errors.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getPaths(java.lang.String rootFolderName) throws ServiceException, java.rmi.RemoteException
rootFolderName
- Name of the root folder for the path.
ServiceException
- if an error occurs
java.rmi.RemoteException
- if an error occursjava.lang.Object newServiceObject() throws ServiceException, java.rmi.RemoteException
ServiceException
- if an error occurs
java.rmi.RemoteException
- if an error occursjava.util.List getParents() throws ServiceException, java.rmi.RemoteException
List
value
ServiceException
- if an error occurs
java.rmi.RemoteException
- if an error occursFolderInterface getParent() throws ServiceException, java.rmi.RemoteException
ServiceException
- if an error occurs
java.rmi.RemoteException
- if an error occursjava.util.Date getCreateDate() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.Date getModifyDate() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getRemarksList() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void setRemarksList(java.util.List threads) throws ServiceException, java.rmi.RemoteException
threads
- The discussion threads related to this object
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addRemark(RemarksInterface remark) throws ServiceException, java.rmi.RemoteException
remark
- The remark to be added to this smart object
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.PermissionInterface getPermission(IdentityInterface identity, PermissionInterface permission) throws ServiceException, java.rmi.RemoteException
identity
- An IdentityInterface for the identity to find the
permission for.permission
- The permission to look for.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void setPermission(IdentityInterface identity, PermissionInterface permission) throws ServiceException, java.rmi.RemoteException
identity
- An IdentityInterface for the identity for the new
permission.permission
- The new permission to add.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getPermissions(IdentityInterface identity) throws ServiceException, java.rmi.RemoteException
identity
- The identity to get permissions for.
ServiceException
- in the event of repository error.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getPermissions(IdentityInterface identity, java.lang.String[] inheritedPermissions) throws ServiceException, java.rmi.RemoteException
identity
- The identity to get permissions for.inheritedPermissions
- An array of Strings containing the inherited
permissions to look for.
ServiceException
- in the event of repository error.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getIdentities() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addPermissions(java.util.List identities, java.util.List permissions) throws ServiceException, java.rmi.RemoteException
identities
- A List of IdentityInterface objects for whom to set
the provided permissions.permissions
- a List of com.sas.services.security.Permission
objects that specify the permissions to set for these
identities.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void removePermissions(java.util.List identities, java.util.List permissions) throws ServiceException, java.rmi.RemoteException
identities
- The identities for whom to remove the permissions.permissions
- The permissions to remove for the identities.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getAccessControls() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addAccessControl(AccessControlEntryInterface ace) throws ServiceException, java.rmi.RemoteException
ace
- An AccessControlInterface object to add to this
object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void removeAccessControl(AccessControlEntryInterface ace) throws ServiceException, java.rmi.RemoteException
ace
- An AccessControl object to remove from this object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.int countAssociatedObjects(java.lang.String association) throws ServiceException, java.rmi.RemoteException
association
- The association name to count.
ServiceException
java.rmi.RemoteException
void moveTo(FolderInterface folder) throws ServiceException, java.rmi.RemoteException
folder
- The new parent Folder of this object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface copyTo(FolderInterface folder, java.lang.String name) throws ServiceException, java.rmi.RemoteException
folder
- The folder to be the parent of the new object.name
- The name of the new object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List getExtensions() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addExtension(java.lang.String name, java.lang.String value, java.lang.String type) throws ServiceException, java.rmi.RemoteException
name
- The new extension name.value
- The new extension value.type
- The new extension value type.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void removeExtension(java.lang.String name) throws ServiceException, java.rmi.RemoteException
name
- The name of the extension to remove.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void setExtensions(java.util.List extensionList) throws ServiceException, java.rmi.RemoteException
extensionList
- A List of ExtensionInterface
objects.
The order of creation needs to be create all of the Extensions, then call this method, then
call update.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getObjectProperties() throws ServiceException, java.rmi.RemoteException
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.void addObjectProperty(PropertyInterface property) throws ServiceException, java.rmi.RemoteException
property
- The Property to add.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addObjectProperty(java.lang.String name, java.lang.String propertyName, java.lang.String value, java.lang.String type) throws ServiceException, java.rmi.RemoteException
name
- The name of the property object.propertyName
- The PropertyName attribute of the property.value
- The DefaultValue attribute of the property.type
- The Type from ISDefs
. This should
be one of: PROPERTYTYPE_BOOLEAN, PROPERTYTYPE_INTEGER, PROPERTYTYPE_STRING, PROPERTYTYPE_MULTILINE,
PROPERTYTYPE_FLOAT, PROPERTYTYPE_DATE, PROPERTYTYPE_COLOR, PROPERTYTYPE_FILENAME, PROPERTYTYPE_GENERIC.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void removeObjectProperty(PropertyInterface property) throws ServiceException, java.rmi.RemoteException
property
- The Property to remove.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setObjectProperties(java.util.List propertyList) throws ServiceException, java.rmi.RemoteException
propertyList
- The new List of Properties to associate with this object.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getPropertySets() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addPropertySet(PropertySetInterface propertySet) throws ServiceException, java.rmi.RemoteException
propertySet
- A PropertySetInterface to associate with this object.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void removePropertySet(PropertySetInterface propertySet) throws ServiceException, java.rmi.RemoteException
propertySet
- The PropertySet to remote from this object.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.boolean isAuthorized(java.lang.String permission) throws ServiceException, java.rmi.RemoteException
permission
- The permission string to check for.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getReposKey() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface startTransaction() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void commit() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs. If a ServiceException
is thrown, you must perform a rollback to close the transaction.
java.rmi.RemoteException
- in the event of remote object failure.void rollback() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addTransactionListener(MetadataInterface mi) throws java.rmi.RemoteException
mi
- The metadata object to alert that a transaction has committed
or rolled back.
java.rmi.RemoteException
- In the event of remote object failure.void transactionEvent(MetadataInterface mi) throws java.rmi.RemoteException
mi
- The child object that has completed its transaction.
java.rmi.RemoteException
- In the event of remote object failure.void logMessage(int level, java.lang.String context, java.lang.String message, java.lang.Throwable t) throws java.rmi.RemoteException
level
- The level at which to log this message:
LoggerInterface.WARN, LoggerInterface.ERROR, etc.context
- The logging context for which to output this
message. This is usually the fully qualified java class name.message
- The formatted message to output.t
- An optional exception to log.
java.rmi.RemoteException
- In the event of remote object failure.boolean isLoggingEnabled(int level, java.lang.String context) throws java.rmi.RemoteException
level
- The level to check: LoggerInterface.WARN,
LoggerInterface.ERROR, etc.context
- The logging context to check the level for. This is
usually the fully qualified java class name.
java.rmi.RemoteException
- In the event of remote object failure.java.lang.String mapNameToFilesystem(int hostOS, java.lang.String prefix, java.lang.String suffix) throws java.rmi.RemoteException, java.lang.IllegalArgumentException
hostOS
- The host operating system. Valid values include
Names.UNKNOWN
,
Names.WINDOWS
,
Names.UNIX
,
Names.ZOS_HFS
,
Names.ZOS_PDS
and
Names.WEBDAV
.prefix
- The prefix to use when creating the file system path.suffix
- The suffix to use when creating the file system path.
String
The file system path.
java.rmi.RemoteException
- In the event of remote object failure.
java.lang.IllegalArgumentException
- If a null
name is
specified or if an invalid host operating system value is
specified.java.lang.String mapUrlToFilesystem(int hostOS, java.lang.String prefix, java.lang.String suffix) throws ServiceException, java.rmi.RemoteException, java.lang.IllegalArgumentException
hostOS
- The host operating system. Valid values include
Names.UNKNOWN
,
Names.WINDOWS
,
Names.UNIX
,
Names.ZOS_HFS
,
Names.ZOS_PDS
and
Names.WEBDAV
.prefix
- The prefix to use when creating the file system path.suffix
- The suffix to use when creating the file system path.
String
The file system path.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.
java.lang.IllegalArgumentException
- If a null
name is
specified or if an invalid host operating system value is
specified.com.sas.services.information.metadata.propertybag.PropertyBagInterface getPropertyBag() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void updateFromBag(com.sas.services.information.metadata.propertybag.PropertyBagInterface propertyBag) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
java.lang.String getAttribute(java.lang.String key) throws ServiceException, java.rmi.RemoteException
key
- The name of the attribute to return.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.util.Map getAttributes() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void setAttribute(java.lang.String key, java.lang.String value) throws ServiceException, java.rmi.RemoteException
key
- The attribute name to set.value
- The value to set on the attribute.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addAttribute(java.lang.String key, java.lang.String value) throws ServiceException, java.rmi.RemoteException
key
- The name of the attribute to set.value
- The value to set on the attribute.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void deleteAttribute(java.lang.String key) throws ServiceException, java.rmi.RemoteException
key
- The name of the attribute to delete.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void setAttributes(java.util.Map attributeMap) throws ServiceException, java.rmi.RemoteException
attributeMap
- A Map of attributes to set on the object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addAttributes(java.util.Map attributeMap) throws ServiceException, java.rmi.RemoteException
attributeMap
- A Map of attributes to add to the object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void deleteAttributes(java.util.List attributes) throws ServiceException, java.rmi.RemoteException
attributes
- List (of String) property names
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.byte[] toByteArray() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getPreviousVersionNames() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.MetadataInterface getVersion(java.lang.String versionName) throws ServiceException, java.rmi.RemoteException
versionName
- The name of the version to return
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void version() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void checkout() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void checkin() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void uncheckout() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.void addDocument(DocumentInterface doc) throws ServiceException, java.rmi.RemoteException
doc
- The document to associate with this object.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void removeDocument(DocumentInterface doc) throws ServiceException, java.rmi.RemoteException
doc
- The document to remove from the Documents association.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setDocuments(java.util.List docs) throws ServiceException, java.rmi.RemoteException
docs
- A List of DocumentInterface objects to associate with this object.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getDocuments() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addGroup(GroupInterface group) throws ServiceException, java.rmi.RemoteException
group
- The group to add this object to.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void removeGroup(GroupInterface group) throws ServiceException, java.rmi.RemoteException
group
- The group to remove this object from.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setGroups(java.util.List groups) throws ServiceException, java.rmi.RemoteException
groups
- The set of groups this object belongs to. Upon successful
completion, this object will be a member of the listed groups, and no others.
If this list is empty, or null, the object will be removed from all groups.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getGroups() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.PropertyGroupInterface getPrimaryPropertyGroup() throws ServiceException, java.rmi.RemoteException
PropertyGroupInterface
object; this object's primary property group.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setPrimaryPropertyGroup(PropertyGroupInterface pgroup) throws ServiceException, java.rmi.RemoteException
pgroup
- The PropertyGroupInterface
object which is this object's
primary property group.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getImplementors() throws ServiceException, java.rmi.RemoteException
SoftwareComponentInterface
objects associated to this object
as Implementors.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addImplementor(SoftwareComponentInterface softwareComponent) throws ServiceException, java.rmi.RemoteException
softwareComponent
- The SoftwareComponent implementor.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void removeImplementor(SoftwareComponentInterface softwareComponent) throws ServiceException, java.rmi.RemoteException
softwareComponent
- The SoftwareComponentInterface
to remove
from the implementors list.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.MetadataInterface getUsingPrototype() throws ServiceException, java.rmi.RemoteException
MetadataInterface
object which this object uses for its
definition.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setUsingPrototype(MetadataInterface prototype) throws ServiceException, java.rmi.RemoteException
prototype
- The MetadataInterface
object which defines the
parameters, associations, and properties appropriate to this object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getUsedByPrototypes() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addUsedByPrototype(MetadataInterface prototyped) throws ServiceException, java.rmi.RemoteException
prototyped
- An object which is prototyped by this object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void removeUsedByPrototype(MetadataInterface prototyped) throws ServiceException, java.rmi.RemoteException
prototyped
- The object which is no longer prototyped by this object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getPrompts() throws ServiceException, java.rmi.RemoteException
BaseOMRPromptInterface
objects associated with
this object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setPrompts(java.util.List prompts) throws ServiceException, java.rmi.RemoteException
prompts
- A List of BaseOMRPromptInterface
objects.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addPrompt(BaseOMRPromptInterface prompt) throws ServiceException, java.rmi.RemoteException
prompt
- A BaseOMRPromptInterface
object to add to this
object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void removePrompt(BaseOMRPromptInterface prompt) throws ServiceException, java.rmi.RemoteException
prompt
- The BaseOMRPromptInterface
to remove from this
object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.BaseOMRPromptInterface getPrompt() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void setPrompt(BaseOMRPromptInterface prompt) throws ServiceException, java.rmi.RemoteException
prompt
- The prompt object to associate to this object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getResponsibleParties() throws ServiceException, java.rmi.RemoteException
Responsibility
objects representing the responsible parties for this object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void addResponsibleParty(com.sas.services.information.publicobject.Responsibility newResponsibility) throws ServiceException, java.rmi.RemoteException
newResponsibility
- The new responsible party to add.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.void removeResponsibleParty(com.sas.services.information.publicobject.Responsibility responsibility) throws ServiceException, java.rmi.RemoteException
responsibility
- The responsible party to remove.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.boolean isCompatible() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.boolean isReadCompatible() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.com.sas.util.UsageVersion getUsageVersion() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.boolean isObjectAlive() throws ServiceException, java.rmi.RemoteException
ServiceException
- In the event of repository failure.
java.rmi.RemoteException
- In the event of remote object failure.java.lang.String getLockedBy() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.AuthorizationUtilInterface getAuthorizationUtil() throws ServiceException, java.rmi.RemoteException
ServiceException
- If a metadata server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |