|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.metadata.Metadata
public class Metadata
An abstract class to represent objects that can exist in multiple types of repositories.
Users should avoid casting to this class. Instead, cast objects to
MetadataInterface
.
Field Summary | |
---|---|
protected java.util.Map |
_actionInterfaces
|
protected java.util.ArrayList |
_children
|
protected boolean |
_isCompatible
|
protected boolean |
_isDestroyPending
|
protected boolean |
_isReadCompatible
|
protected long |
_myRefreshInterval
|
protected int |
_myState
|
protected java.util.Date |
_omrCreateDate
|
protected java.util.Date |
_omrModifyDate
|
protected RepositoryInterface |
_repository
|
protected int |
_repositoryFlag
|
protected java.lang.Object |
_repositoryObject
|
protected long |
_treeRefreshTime
|
static java.text.SimpleDateFormat[] |
formats
Date formats using for Date parsing. |
protected static java.util.TimeZone |
gmtZone
GMT timezone. |
protected static java.lang.String |
OMSOBJ_STRING
|
static int |
REPOSITORY_DAV
The object is from a DAV Repository. |
static int |
REPOSITORY_LOMR
The object is from OMI, using local jOMA |
static int |
REPOSITORY_NONE
No repository type has been set. |
static int |
REPOSITORY_OMR
The object is from an OMI Repository. |
protected static java.lang.String |
SLASH
|
Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
---|
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA |
Constructor Summary | |
---|---|
|
Metadata()
Default constructor. |
protected |
Metadata(java.lang.Class theClass)
Constructs an instance using the specified class to determine appropriate RMI socket factories. |
|
Metadata(java.lang.Object o)
Construct a new Metadata object with Object o. |
protected |
Metadata(java.lang.Object o,
java.lang.Class theClass)
Construct a new Metadata object with Object o. |
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 |
addProcessorInterface(java.lang.String interfaceClassName,
com.sas.services.information.publicobject.ProcessorInterface actionInterface)
Add an action interface to this class. |
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. |
protected void |
addToList(java.util.List list,
java.lang.Object o)
|
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 out the item |
void |
checkout()
Check out the item |
protected void |
checkPulse(boolean dieOnDeleted)
Check the state of this object instance. |
static void |
clearInformationService()
|
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. |
protected void |
deleteRootObject(com.sas.metadata.remote.Root object)
|
void |
destroy()
Destroy this object, clearing any object references, freeing any resources in use, and rendering it unusable for future use. |
static MetadataInterface |
fromByteArray(RepositoryInterface ri,
byte[] data)
|
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()
Obtain the AuthorizationUtil Interface for this object |
PublicObjectContainerInterface |
getContainer()
Returns the container or parent object. |
java.util.Date |
getCreateDate()
Get a Date object representing the time the metadata was created. |
protected com.sas.storage.editableproperties.PropertyList |
getDefaultLocalizableProperties()
|
java.lang.String |
getDescription()
Get the object description. |
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 a string representing a unique Identifier for this object. |
java.lang.String |
getIdentifier()
Get the unique ID of this object. |
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. |
static InformationServiceInterface |
getInformationService()
Get an instance of the Information Service. |
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.lang.String |
getName()
Gets the name of the object. |
java.util.List |
getObjectProperties()
Get the Property objects associated with this metadata object. |
java.net.URI |
getObjectURI()
This method is currently not being implemented and is reserved for future use. |
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 path of this object from the root folder, including the object name. |
java.util.List |
getPaths(java.lang.String rootFolderName)
Get all valid paths for this object. |
PathUrl |
getPathUrl()
Get the SBIP URL. |
PathUrl |
getPathUrl(java.lang.String rootTreeName)
Get the SBIP URL. |
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. |
com.sas.services.information.publicobject.ProcessorInterface |
getProcessorInterface(java.lang.String interfaceClassName)
Get the specified action interface. |
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 identifier for this object. |
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()
Deprecated. Tracking ids are no longer supported. |
static long |
getTreeRefresh()
Get the interval for keeping the parent tree information before forcing a trip to the server to refresh it. |
java.lang.String |
getType()
Get the object type. |
TypeDescriptorInterface |
getTypeDescriptor()
Get the type descriptor which should have the information from the Type Dictionary in metadata available for the clients. |
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 |
int |
hashCode()
|
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. |
protected boolean |
isConnectionException(java.lang.Throwable ex)
|
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 |
isLoggingEnabled(org.apache.log4j.Level 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 |
logFormat(int level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0)
Deprecated. Use the version that takes an org.apache.log4j.Level. |
void |
logFormat(int level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
Deprecated. Use the version that takes an org.apache.log4j.Level. |
void |
logFormat(int level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Deprecated. Use the version that takes an org.apache.log4j.Level. |
void |
logFormat(int level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Deprecated. Use the version that takes an org.apache.log4j.Level. |
void |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0)
|
void |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1)
|
void |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
|
void |
logFormat(org.apache.log4j.Level level,
java.lang.String context,
java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
void |
logMessage(int level,
java.lang.String message)
Deprecated. Use the version that takes an org.apache.log4j.Level instead. |
void |
logMessage(int level,
java.lang.String message,
java.lang.String context,
java.lang.Throwable t)
Deprecated. Use the version that takes an org.apache.log4j.Level instead. |
void |
logMessage(org.apache.log4j.Level level,
java.lang.String message)
|
void |
logMessage(org.apache.log4j.Level level,
java.lang.String message,
java.lang.String context,
java.lang.Throwable t)
|
void |
logThrowable(int level,
java.lang.String message,
java.lang.String context,
java.lang.Throwable t)
Deprecated. Use the version that takes an org.apache.log4j.Level. |
void |
logThrowable(org.apache.log4j.Level level,
java.lang.String message,
java.lang.String context,
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. |
protected void |
notifyTransactionListeners()
|
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. |
protected void |
removeFromList(java.util.List list,
java.lang.Object o)
|
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 |
protected void |
setCompatibility(com.sas.util.UsageVersion oldestVersion,
com.sas.util.UsageVersion currentVersion)
|
protected void |
setDefaultLocalizableProperties(com.sas.storage.editableproperties.PropertyMap map)
|
void |
setDeleted()
Mark this object deleted. |
void |
setDescription(java.lang.String description)
Set the object description. |
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 GUID string for this object. |
void |
setKeywords(java.util.List keywords)
Set the keyword collection on this object. |
void |
setName(java.lang.String name)
Set the name of the object. |
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 remarks)
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. |
static void |
setTreeRefresh(long interval)
Set the interval for keeping the parent tree information before forcing a trip to the server to refresh it. |
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. |
java.lang.String |
toString()
|
void |
transactionEvent(MetadataInterface mi)
Notify this object that a child transaction has completed either because of a commit or a rollback. |
void |
uncheckout()
Check out the item |
void |
update()
Persist any changes to the object back to the repository. |
void |
updateFromBag(com.sas.services.information.metadata.propertybag.PropertyBagInterface propertyBag)
|
protected void |
validateNameAndFolder(FolderInterface targetFolder)
|
protected void |
validateNameAndFolder(FolderInterface targetFolder,
MetadataNameConstraint constraint)
|
void |
version()
Version control the item |
Field Detail |
---|
public static final int REPOSITORY_NONE
public static final int REPOSITORY_OMR
public static final int REPOSITORY_DAV
public static final int REPOSITORY_LOMR
public static final java.text.SimpleDateFormat[] formats
protected static final java.util.TimeZone gmtZone
protected static final java.lang.String OMSOBJ_STRING
protected static final java.lang.String SLASH
protected int _repositoryFlag
protected java.lang.Object _repositoryObject
protected RepositoryInterface _repository
protected java.util.ArrayList _children
protected long _treeRefreshTime
protected long _myRefreshInterval
protected java.util.Date _omrCreateDate
protected java.util.Date _omrModifyDate
protected int _myState
protected boolean _isDestroyPending
protected java.util.Map _actionInterfaces
protected boolean _isCompatible
protected boolean _isReadCompatible
Constructor Detail |
---|
protected Metadata(java.lang.Class theClass) throws java.rmi.RemoteException
theClass
- Class which will be used to determine the appropriate RMI
socket factories.
java.rmi.RemoteException
- if unable to export the remote object.public Metadata() throws java.rmi.RemoteException
java.rmi.RemoteException
- if unable to export the remote object.protected Metadata(java.lang.Object o, java.lang.Class theClass) throws java.rmi.RemoteException
Use this constructor if you want to determine RMI socket factories using
the subclass's class instead of this object's class. Use
Metadata(Object)
if you want to employ RMI socket factories
based on this class instead of the subclass's class.
o
- The object used to initialize this object.theClass
- The subclass's class which will be used to determine
appropriate RMI socket factories.
java.rmi.RemoteException
- if unable to export a remote object.public Metadata(java.lang.Object o) throws java.rmi.RemoteException
Use this constructor if you want to determine RMI socket factories using
this object's class instead of the subsclass's class. Use
Metadata(Object, Class)
if you want to employ RMI socket
factories based on the subclass instead of this class.
o
- The object used to initialize this object.
java.rmi.RemoteException
- in the event of remote object failure.Method Detail |
---|
public static void setTreeRefresh(long interval)
interval
- The interval in milliseconds to keep the cached tree
informationpublic static long getTreeRefresh()
public static InformationServiceInterface getInformationService() throws ServiceException
ServiceException
- in the event of a discovery error.public static void clearInformationService()
public int getState() throws java.rmi.RemoteException
getState
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failure.public boolean isDeleted() throws java.rmi.RemoteException
MetadataInterface
isDeleted
in interface MetadataInterface
java.rmi.RemoteException
public void setDeleted() throws java.rmi.RemoteException
MetadataInterface
setDeleted
in interface MetadataInterface
java.rmi.RemoteException
- In the event of remote object failure.public boolean isDestroyed() throws java.rmi.RemoteException
MetadataInterface
isDestroyed
in interface MetadataInterface
java.rmi.RemoteException
public void destroy() throws java.rmi.RemoteException
MetadataInterface
destroy
in interface MetadataInterface
java.rmi.RemoteException
public java.lang.String getLockedBy() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getLockedBy
in interface MetadataInterface
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getName() throws java.rmi.RemoteException
getName
in interface PublicObjectInterface
java.rmi.RemoteException
- in the event of remote object failure.public void setName(java.lang.String name) throws java.rmi.RemoteException
setName
in interface MetadataInterface
name
- The name of the object in the repository.
java.lang.RuntimeException
- If a rename would cause a naming collision in the parent
folder.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getDescription() throws java.rmi.RemoteException
getDescription
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failure.public void setDescription(java.lang.String description) throws java.rmi.RemoteException
setDescription
in interface MetadataInterface
description
- The description String for the object.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getGUID() throws java.rmi.RemoteException
getGUID
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failure.public void setGUID(java.lang.String guid) throws java.rmi.RemoteException, java.lang.IllegalStateException
setGUID
in interface MetadataInterface
guid
- The guid string for this object.
java.rmi.RemoteException
- in the event of remote object failure.
java.lang.IllegalStateException
- if the object already has an assigned GUID.public java.lang.String getReposId() throws java.rmi.RemoteException
getReposId
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getRepositoryName() throws java.rmi.RemoteException
MetadataInterface
getRepositoryName
in interface MetadataInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getReposKey() throws ServiceException, java.rmi.RemoteException
getReposKey
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getType() throws java.rmi.RemoteException
getType
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failurepublic void add() throws ServiceException, java.rmi.RemoteException
add
in interface MetadataInterface
ServiceException
- If there's a repository error.
java.rmi.RemoteException
- in the event of a network error.public void update() throws ServiceException, java.rmi.RemoteException
update
in interface MetadataInterface
ServiceException
- if an error occurs in the repository.
java.rmi.RemoteException
- in the event of remote object failurepublic void refresh() throws ServiceException, java.rmi.RemoteException
refresh
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void delete() throws ServiceException, java.rmi.RemoteException
delete
in interface MetadataInterface
ServiceException
- in the event of a repository failure.
java.rmi.RemoteException
- in the event of a network failure.protected void deleteRootObject(com.sas.metadata.remote.Root object) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
public final int getTrackingId() throws java.rmi.RemoteException
getTrackingId
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failurepublic final java.lang.Object getRepositoryEntity() throws java.rmi.RemoteException
getRepositoryEntity
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failurepublic java.lang.String getEntityKey() throws java.lang.IllegalStateException, ServiceException, java.rmi.RemoteException
getEntityKey
in interface MetadataInterface
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
- in the event of remote object failurepublic java.lang.String getEntityURL() throws ServiceException, java.rmi.RemoteException
getEntityURL
in interface MetadataInterface
ServiceException
- In the event of a service failure.
java.rmi.RemoteException
- In the event of remote object failure.public PathUrl getPathUrl() throws java.lang.IllegalStateException, ServiceException, java.rmi.RemoteException
getPathUrl
in interface PublicObjectInterface
PathUrl
value with the object's location in a
rooted tree. If the object isn't in a rooted tree, null is
returned.
java.lang.IllegalStateException
- if the repository was never set on this object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- if a remote object error occurs.public PathUrl getPathUrl(java.lang.String rootTreeName) throws java.lang.IllegalStateException, ServiceException, java.rmi.RemoteException
rootTreeName
- The name of the tree rooted at the BIP SoftwareComponent.
PathUrl
value with the object's location in the
rooted tree. If the object isn't in a tree with the given name,
rooted at the BIP SoftwareComponent, null is returned.
java.lang.IllegalStateException
- if the repository was never set on this object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- if a remote object error occurs.public void setRepository(RepositoryInterface repository) throws java.lang.IllegalStateException, java.rmi.RemoteException
setRepository
in interface MetadataInterface
repository
- A handle to the repository for this object.
java.lang.IllegalStateException
- If the repository has already been set.
java.rmi.RemoteException
- in the event of remote object failurepublic RepositoryInterface getRepository() throws java.rmi.RemoteException
getRepository
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failurepublic java.util.List getKeywords() throws java.rmi.RemoteException
getKeywords
in interface MetadataInterface
java.rmi.RemoteException
- in the event of remote object failure.public void addKeyword(java.lang.String keyword) throws ServiceException, java.rmi.RemoteException
addKeyword
in interface MetadataInterface
keyword
- a new String
to add as a keyword.
ServiceException
- if an error occurs in the repository.
java.rmi.RemoteException
- in the event of remote object failurepublic void removeKeyword(java.lang.String keyword) throws java.rmi.RemoteException
removeKeyword
in interface MetadataInterface
keyword
- The keyword to remove.
java.rmi.RemoteException
- in the event of remote object failurepublic void setKeywords(java.util.List keywords) throws ServiceException, java.rmi.RemoteException
setKeywords
in interface MetadataInterface
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.public java.util.List getObjectProperties() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getObjectProperties
in interface MetadataInterface
ServiceException
- In the event of repository errors.
java.rmi.RemoteException
- In the event of remote object failure.public void addObjectProperty(PropertyInterface property) throws ServiceException, java.rmi.RemoteException
MetadataInterface
addObjectProperty
in interface MetadataInterface
property
- The Property to add.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addObjectProperty(java.lang.String name, java.lang.String propertyName, java.lang.String value, java.lang.String type) throws ServiceException, java.rmi.RemoteException
MetadataInterface
addObjectProperty
in interface MetadataInterface
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.public void removeObjectProperty(PropertyInterface property) throws ServiceException, java.rmi.RemoteException
MetadataInterface
removeObjectProperty
in interface MetadataInterface
property
- The Property to remove.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void setObjectProperties(java.util.List propertyList) throws ServiceException, java.rmi.RemoteException
setObjectProperties
in interface MetadataInterface
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.public java.util.List getPropertySets() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getPropertySets
in interface MetadataInterface
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addPropertySet(PropertySetInterface propertySet) throws ServiceException, java.rmi.RemoteException
MetadataInterface
addPropertySet
in interface MetadataInterface
propertySet
- A PropertySetInterface to associate with this object.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void removePropertySet(PropertySetInterface propertySet) throws ServiceException, java.rmi.RemoteException
MetadataInterface
removePropertySet
in interface MetadataInterface
propertySet
- The PropertySet to remote from this object.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getPath(java.lang.String rootFolderName) throws ServiceException, java.rmi.RemoteException
getPath
in interface MetadataInterface
rootFolderName
- The 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 failure.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getParentPath(java.lang.String rootFolderName) throws ServiceException, java.rmi.RemoteException
getParentPath
in interface MetadataInterface
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.public java.util.List getPaths(java.lang.String rootFolderName) throws ServiceException, java.rmi.RemoteException
getPaths
in interface MetadataInterface
rootFolderName
- Name of the root folder for the path.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.Object newServiceObject() throws ServiceException, java.rmi.RemoteException
newServiceObject
in interface MetadataInterface
ServiceException
- if an error occurs
java.rmi.RemoteException
- in the event of remote object failurepublic java.util.List getParents() throws ServiceException, java.rmi.RemoteException
getParents
in interface MetadataInterface
List
value
ServiceException
- if an error occurs
java.rmi.RemoteException
- in the event of remote object failurepublic FolderInterface getParent() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getParent
in interface MetadataInterface
ServiceException
- if an error occurs
java.rmi.RemoteException
- if an error occurspublic java.util.Date getCreateDate() throws ServiceException, java.rmi.RemoteException
getCreateDate
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.Date getModifyDate() throws ServiceException, java.rmi.RemoteException
getModifyDate
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List getRemarksList() throws ServiceException, java.rmi.RemoteException
getRemarksList
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void setRemarksList(java.util.List remarks) throws ServiceException, java.rmi.RemoteException
setRemarksList
in interface MetadataInterface
remarks
- The discussion threads related to this object
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public PermissionInterface getPermission(IdentityInterface identity, PermissionInterface permission) throws ServiceException, java.rmi.RemoteException
getPermission
in interface MetadataInterface
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.public void setPermission(IdentityInterface identity, PermissionInterface permission) throws ServiceException, java.rmi.RemoteException
setPermission
in interface MetadataInterface
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.public java.util.List getPermissions(IdentityInterface identity) throws ServiceException, java.rmi.RemoteException
getPermissions
in interface MetadataInterface
identity
- The identity to get permissions for.
ServiceException
- in the event of repository error.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List getPermissions(IdentityInterface identity, java.lang.String[] inheritedPermissions) throws ServiceException, java.rmi.RemoteException
getPermissions
in interface MetadataInterface
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.public java.util.List getIdentities() throws ServiceException, java.rmi.RemoteException
getIdentities
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void addPermissions(java.util.List identities, java.util.List permissions) throws ServiceException, java.rmi.RemoteException
addPermissions
in interface MetadataInterface
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.public void removePermissions(java.util.List identities, java.util.List permissions) throws ServiceException, java.rmi.RemoteException
removePermissions
in interface MetadataInterface
identities
- A List of
com.sas.services.information.metadata.IdentityInterface
objects for whom to remove the permissions.permissions
- A List of com.sas.services.security.PermissionInterface
objects to remove for the identities.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List getAccessControls() throws ServiceException, java.rmi.RemoteException
getAccessControls
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void addAccessControl(AccessControlEntryInterface ace) throws ServiceException, java.rmi.RemoteException
addAccessControl
in interface MetadataInterface
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.public void removeAccessControl(AccessControlEntryInterface ace) throws ServiceException, java.rmi.RemoteException
removeAccessControl
in interface MetadataInterface
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.public void moveTo(FolderInterface folder) throws ServiceException, java.rmi.RemoteException
moveTo
in interface MetadataInterface
folder
- The new parent Folder of this object.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface copyTo(FolderInterface folder, java.lang.String name) throws ServiceException, java.rmi.RemoteException
copyTo
in interface MetadataInterface
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.public java.util.List getExtensions() throws ServiceException, java.rmi.RemoteException
getExtensions
in interface MetadataInterface
ExtensionInterface
objects.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void addExtension(java.lang.String name, java.lang.String value, java.lang.String type) throws ServiceException, java.rmi.RemoteException
addExtension
in interface MetadataInterface
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.public void removeExtension(java.lang.String name) throws ServiceException, java.rmi.RemoteException
removeExtension
in interface MetadataInterface
name
- The name of the extension to remove.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void setExtensions(java.util.List extensionList) throws ServiceException, java.rmi.RemoteException
setExtensions
in interface MetadataInterface
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.public boolean isAuthorized(java.lang.String permission) throws ServiceException, java.rmi.RemoteException
isAuthorized
in interface MetadataInterface
permission
- The permission string to check for.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public int countAssociatedObjects(java.lang.String association) throws ServiceException, java.rmi.RemoteException
MetadataInterface
countAssociatedObjects
in interface MetadataInterface
association
- The association name to count.
ServiceException
java.rmi.RemoteException
public MetadataInterface startTransaction() throws ServiceException, java.rmi.RemoteException
startTransaction
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void commit() throws ServiceException, java.rmi.RemoteException
commit
in interface MetadataInterface
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.public void rollback() throws ServiceException, java.rmi.RemoteException
rollback
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void transactionEvent(MetadataInterface mi) throws java.rmi.RemoteException
MetadataInterface
transactionEvent
in interface MetadataInterface
mi
- The child object that has completed its transaction.
java.rmi.RemoteException
- In the event of remote object failure.public void addTransactionListener(MetadataInterface mi) throws java.rmi.RemoteException
MetadataInterface
addTransactionListener
in interface MetadataInterface
mi
- The metadata object to alert that a transaction has committed
or rolled back.
java.rmi.RemoteException
- In the event of remote object failure.protected void notifyTransactionListeners() throws java.rmi.RemoteException
java.rmi.RemoteException
public void logMessage(int level, java.lang.String message, java.lang.String context, java.lang.Throwable t) throws java.rmi.RemoteException
logMessage
in interface MetadataInterface
level
- The level at which to log this message: LoggerInterface.WARN,
LoggerInterface.ERROR, etc.message
- The formatted message to output.context
- The logging context for which to output this message. This is
usually the fully qualified java class name. If null or zero
length, this will default to
"com.sas.services.information.metadata".t
- An optional exception to log.
java.rmi.RemoteException
- In the event of remote object failure.public void logMessage(org.apache.log4j.Level level, java.lang.String message, java.lang.String context, java.lang.Throwable t) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logThrowable(int level, java.lang.String message, java.lang.String context, java.lang.Throwable t) throws java.rmi.RemoteException
level
- message
- context
- t
-
java.rmi.RemoteException
public void logThrowable(org.apache.log4j.Level level, java.lang.String message, java.lang.String context, java.lang.Throwable t) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logFormat(int level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0) throws java.rmi.RemoteException
level
- context
- bundle
- key
- arg0
-
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logFormat(int level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1) throws java.rmi.RemoteException
level
- context
- bundle
- key
- arg0
- arg1
-
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logFormat(int level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2) throws java.rmi.RemoteException
level
- context
- bundle
- key
- arg0
- arg1
- arg2
-
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logFormat(int level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws java.rmi.RemoteException
level
- context
- bundle
- key
- arg0
- arg1
- arg2
- arg3
-
java.rmi.RemoteException
public void logFormat(org.apache.log4j.Level level, java.lang.String context, java.util.ResourceBundle bundle, java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws java.rmi.RemoteException
java.rmi.RemoteException
public void logMessage(int level, java.lang.String message) throws java.rmi.RemoteException
level
- message
-
java.rmi.RemoteException
public void logMessage(org.apache.log4j.Level level, java.lang.String message) throws java.rmi.RemoteException
java.rmi.RemoteException
public void addRemark(RemarksInterface remark) throws ServiceException, java.rmi.RemoteException
MetadataInterface
addRemark
in interface MetadataInterface
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.public boolean isLoggingEnabled(org.apache.log4j.Level level, java.lang.String context) throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean isLoggingEnabled(int level, java.lang.String context) throws java.rmi.RemoteException
isLoggingEnabled
in interface MetadataInterface
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.public java.lang.String mapNameToFilesystem(int hostOS, java.lang.String prefix, java.lang.String suffix) throws java.rmi.RemoteException, java.lang.IllegalArgumentException
mapNameToFilesystem
in interface MetadataInterface
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.public java.lang.String mapUrlToFilesystem(int hostOS, java.lang.String prefix, java.lang.String suffix) throws ServiceException, java.rmi.RemoteException, java.lang.IllegalArgumentException
mapUrlToFilesystem
in interface MetadataInterface
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.public com.sas.services.information.metadata.propertybag.PropertyBagInterface getPropertyBag() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getPropertyBag
in interface MetadataInterface
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void updateFromBag(com.sas.services.information.metadata.propertybag.PropertyBagInterface propertyBag) throws ServiceException, java.rmi.RemoteException
updateFromBag
in interface MetadataInterface
ServiceException
java.rmi.RemoteException
protected void addToList(java.util.List list, java.lang.Object o)
protected void removeFromList(java.util.List list, java.lang.Object o)
public java.lang.String toString()
toString
in class java.rmi.server.RemoteObject
public int hashCode()
hashCode
in class java.rmi.server.RemoteObject
protected void checkPulse(boolean dieOnDeleted) throws java.lang.IllegalStateException
dieOnDeleted
- Throw IllegalStateException if the object has been deleted.
java.lang.IllegalStateException
- if the instance has been destroyed.public java.lang.String getAttribute(java.lang.String key) throws ServiceException, java.rmi.RemoteException
getAttribute
in interface MetadataInterface
key
- The name of the attribute to return.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.Map getAttributes() throws ServiceException, java.rmi.RemoteException
getAttributes
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void setAttribute(java.lang.String key, java.lang.String value) throws ServiceException, java.rmi.RemoteException
setAttribute
in interface MetadataInterface
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.public void addAttribute(java.lang.String key, java.lang.String value) throws ServiceException, java.rmi.RemoteException
addAttribute
in interface MetadataInterface
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.public void deleteAttribute(java.lang.String key) throws ServiceException, java.rmi.RemoteException
deleteAttribute
in interface MetadataInterface
key
- The name of the attribute to delete.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void setAttributes(java.util.Map attributeMap) throws ServiceException, java.rmi.RemoteException
setAttributes
in interface MetadataInterface
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.public void addAttributes(java.util.Map attributeMap) throws ServiceException, java.rmi.RemoteException
addAttributes
in interface MetadataInterface
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.public void deleteAttributes(java.util.List attributes) throws ServiceException, java.rmi.RemoteException
deleteAttributes
in interface MetadataInterface
attributes
- List (of String) property names
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public byte[] toByteArray() throws java.rmi.RemoteException
MetadataInterface
toByteArray
in interface MetadataInterface
java.rmi.RemoteException
- In the event of remote object failure.public static MetadataInterface fromByteArray(RepositoryInterface ri, byte[] data) throws java.rmi.RemoteException, ServiceException
java.rmi.RemoteException
ServiceException
public void version() throws ServiceException, java.rmi.RemoteException
version
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void checkout() throws ServiceException, java.rmi.RemoteException
checkout
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void checkin() throws ServiceException, java.rmi.RemoteException
checkin
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void uncheckout() throws ServiceException, java.rmi.RemoteException
uncheckout
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public java.util.List getPreviousVersionNames() throws ServiceException, java.rmi.RemoteException
getPreviousVersionNames
in interface MetadataInterface
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public MetadataInterface getVersion(java.lang.String versionName) throws ServiceException, java.rmi.RemoteException
getVersion
in interface MetadataInterface
versionName
- The name of the version to return
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.public void addDocument(DocumentInterface doc) throws ServiceException, java.rmi.RemoteException
MetadataInterface
addDocument
in interface MetadataInterface
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.public void removeDocument(DocumentInterface doc) throws ServiceException, java.rmi.RemoteException
MetadataInterface
removeDocument
in interface MetadataInterface
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.public void setDocuments(java.util.List docs) throws ServiceException, java.rmi.RemoteException
MetadataInterface
setDocuments
in interface MetadataInterface
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.public java.util.List getDocuments() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getDocuments
in interface MetadataInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addGroup(GroupInterface group) throws ServiceException, java.rmi.RemoteException
MetadataInterface
addGroup
in interface MetadataInterface
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.public void removeGroup(GroupInterface group) throws ServiceException, java.rmi.RemoteException
MetadataInterface
removeGroup
in interface MetadataInterface
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.public void setGroups(java.util.List groups) throws ServiceException, java.rmi.RemoteException
MetadataInterface
setGroups
in interface MetadataInterface
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.public java.util.List getGroups() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getGroups
in interface MetadataInterface
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public PropertyGroupInterface getPrimaryPropertyGroup() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getPrimaryPropertyGroup
in interface MetadataInterface
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.public void setPrimaryPropertyGroup(PropertyGroupInterface pgroup) throws ServiceException, java.rmi.RemoteException
MetadataInterface
setPrimaryPropertyGroup
in interface MetadataInterface
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.public java.util.List getImplementors() throws ServiceException, java.rmi.RemoteException
getImplementors
in interface MetadataInterface
SoftwareComponentInterface
objects associated to this object
as Implementors.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addImplementor(SoftwareComponentInterface softwareComponent) throws ServiceException, java.rmi.RemoteException
addImplementor
in interface MetadataInterface
softwareComponent
- The SoftwareComponent implementor.
ServiceException
- If a repository error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void removeImplementor(SoftwareComponentInterface softwareComponent) throws ServiceException, java.rmi.RemoteException
removeImplementor
in interface MetadataInterface
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.public MetadataInterface getUsingPrototype() throws ServiceException, java.rmi.RemoteException
getUsingPrototype
in interface MetadataInterface
PrototypeInterface
object which this object uses for its
definition.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void setUsingPrototype(MetadataInterface prototype) throws ServiceException, java.rmi.RemoteException
setUsingPrototype
in interface MetadataInterface
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.public java.util.List getUsedByPrototypes() throws ServiceException, java.rmi.RemoteException
getUsedByPrototypes
in interface MetadataInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addUsedByPrototype(MetadataInterface prototyped) throws ServiceException, java.rmi.RemoteException
addUsedByPrototype
in interface MetadataInterface
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.public void removeUsedByPrototype(MetadataInterface prototyped) throws ServiceException, java.rmi.RemoteException
removeUsedByPrototype
in interface MetadataInterface
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.public java.util.List getPrompts() throws ServiceException, java.rmi.RemoteException
getPrompts
in interface MetadataInterface
BaseOMRPromptInterface
objects associated with
this object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void setPrompts(java.util.List prompts) throws ServiceException, java.rmi.RemoteException
setPrompts
in interface MetadataInterface
prompts
- A List of BaseOMRPromptInterface
objects.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void addPrompt(BaseOMRPromptInterface prompt) throws ServiceException, java.rmi.RemoteException
addPrompt
in interface MetadataInterface
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.public void removePrompt(BaseOMRPromptInterface prompt) throws ServiceException, java.rmi.RemoteException
removePrompt
in interface MetadataInterface
prompt
- The BaseOMRPromptInterface
to remove from this
object.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public BaseOMRPromptInterface getPrompt() throws ServiceException, java.rmi.RemoteException
getPrompt
in interface MetadataInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void setPrompt(BaseOMRPromptInterface prompt) throws ServiceException, java.rmi.RemoteException
setPrompt
in interface MetadataInterface
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.public void addProcessorInterface(java.lang.String interfaceClassName, com.sas.services.information.publicobject.ProcessorInterface actionInterface) throws ServiceException
addProcessorInterface
in interface PublicObjectInterface
interfaceClassName
- actionInterface
-
ServiceException
public com.sas.services.information.publicobject.ProcessorInterface getProcessorInterface(java.lang.String interfaceClassName) throws ServiceException, java.rmi.RemoteException
getProcessorInterface
in interface PublicObjectInterface
interfaceClassName
-
ServiceException
java.rmi.RemoteException
public java.lang.String getIdentifier() throws ServiceException, java.rmi.RemoteException
PublicObjectInterface
getIdentifier
in interface PublicObjectInterface
ServiceException
java.rmi.RemoteException
public PublicObjectContainerInterface getContainer() throws ServiceException, java.rmi.RemoteException
getContainer
in interface PublicObjectInterface
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public TypeDescriptorInterface getTypeDescriptor() throws ServiceException, java.rmi.RemoteException
PublicObjectInterface
getTypeDescriptor
in interface PublicObjectInterface
ServiceException
java.rmi.RemoteException
public java.net.URI getObjectURI() throws ServiceException
PublicObjectInterface
Get the location of this object in the SAS Tree. This should be of the form sasds://xxx/xxx/xxx/
getObjectURI
in interface PublicObjectInterface
ServiceException
public java.util.List getResponsibleParties() throws ServiceException, java.rmi.RemoteException
MetadataInterface
getResponsibleParties
in interface MetadataInterface
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.public void addResponsibleParty(com.sas.services.information.publicobject.Responsibility newResponsibility) throws ServiceException, java.rmi.RemoteException
MetadataInterface
addResponsibleParty
in interface MetadataInterface
newResponsibility
- The new responsible party to add.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void removeResponsibleParty(com.sas.services.information.publicobject.Responsibility responsibility) throws ServiceException, java.rmi.RemoteException
MetadataInterface
removeResponsibleParty
in interface MetadataInterface
responsibility
- The responsible party to remove.
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public boolean isCompatible() throws java.rmi.RemoteException
MetadataInterface
isCompatible
in interface MetadataInterface
java.rmi.RemoteException
- In the event of remote object failure.public boolean isReadCompatible() throws java.rmi.RemoteException
MetadataInterface
isReadCompatible
in interface MetadataInterface
java.rmi.RemoteException
- In the event of remote object failure.public com.sas.util.UsageVersion getUsageVersion() throws java.rmi.RemoteException
MetadataInterface
getUsageVersion
in interface MetadataInterface
java.rmi.RemoteException
- In the event of remote object failure.protected void setCompatibility(com.sas.util.UsageVersion oldestVersion, com.sas.util.UsageVersion currentVersion) throws java.rmi.RemoteException
java.rmi.RemoteException
protected boolean isConnectionException(java.lang.Throwable ex)
protected com.sas.storage.editableproperties.PropertyList getDefaultLocalizableProperties()
protected void setDefaultLocalizableProperties(com.sas.storage.editableproperties.PropertyMap map)
public boolean isObjectAlive() throws ServiceException, java.rmi.RemoteException
MetadataInterface
isObjectAlive
in interface MetadataInterface
ServiceException
- In the event of repository failure.
java.rmi.RemoteException
- In the event of remote object failure.protected void validateNameAndFolder(FolderInterface targetFolder) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
protected void validateNameAndFolder(FolderInterface targetFolder, MetadataNameConstraint constraint) throws ServiceException, java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
public AuthorizationUtilInterface getAuthorizationUtil() throws ServiceException, java.rmi.RemoteException
getAuthorizationUtil
in interface MetadataInterface
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 |