com.ibm.ram.client
Class RAMCommunityAssetType

java.lang.Object
  extended by com.ibm.ram.common.data.CommunityAssetType
      extended by com.ibm.ram.client.RAMCommunityAssetType

public class RAMCommunityAssetType
extends CommunityAssetType

Overrides a global definition of an asset type in a community. Community administrators can define Community asset types.

Since:
7.1
Author:
kbauer

Method Summary
 RAMAttributeConstraint createAttributeConstraint(RAMAssetAttribute attribute, boolean required)
          Creates a new attribute constraint on an asset type.
 RAMAction getAction()
          Set the action to be performed on the session object.
 RAMAttributeConstraint[] getAttributeConstraints()
          Returns the list of attribute constraints set on this asset type
 java.lang.String getConfiguration()
          Get the configuration string, either null, or empty string, or a valid XMI file contents.
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getURI()
           
 boolean isDirty()
          Returns true if the Object has been modified from the copy on the server
 void setAction(RAMAction action)
          Set the action to be performed when passed to RAMSession#put(IRAMSessionObject, org.eclipse.core.runtime.IProgressMonitor) Accepts RAMAction.CREATE RAMAction.UPDATE RAMAction.DELETE
 void setCommunity(CommunityInformation community)
           
 void setConfiguration(java.lang.String configuration)
          Set the configration string.
 void setDescription(java.lang.String description)
           
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.ram.common.data.CommunityAssetType
getCommunity, getMasterAssetType, isLocal, setLocal, setMasterAssetType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createAttributeConstraint

public RAMAttributeConstraint createAttributeConstraint(RAMAssetAttribute attribute,
                                                        boolean required)
Creates a new attribute constraint on an asset type. This specifies if that an attribute is applicable and weather it is optional or required.

Since:
7.1

getAttributeConstraints

public RAMAttributeConstraint[] getAttributeConstraints()
Returns the list of attribute constraints set on this asset type

Since:
7.1

getDescription

public java.lang.String getDescription()
                                throws RAMRuntimeException
Overrides:
getDescription in class CommunityAssetType
Returns:
Returns the description.
Throws:
RAMRuntimeException

setDescription

public void setDescription(java.lang.String description)
Overrides:
setDescription in class CommunityAssetType
Parameters:
description - The description to set.

getName

public java.lang.String getName()
                         throws RAMRuntimeException
Throws:
RAMRuntimeException

getURI

public java.lang.String getURI()
                        throws RAMRuntimeException
Throws:
RAMRuntimeException

isDirty

public boolean isDirty()
Returns true if the Object has been modified from the copy on the server

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setConfiguration

public void setConfiguration(java.lang.String configuration)
Set the configration string. This is either null or empty string, or it is a valid XMI resource string (i.e. the contents of an XMI file). This will be the configuration of the constraints grouping for this asset type.

Overrides:
setConfiguration in class CommunityAssetType
Parameters:
configuration - The configuration to set.
Since:
7.1

setCommunity

public void setCommunity(CommunityInformation community)
Overrides:
setCommunity in class CommunityAssetType
Parameters:
community - The community to set.

getConfiguration

public java.lang.String getConfiguration()
Get the configuration string, either null, or empty string, or a valid XMI file contents.

Overrides:
getConfiguration in class CommunityAssetType
Returns:
Returns the configuration.
Since:
7.1
See Also:
setConfiguration(String)

getAction

public RAMAction getAction()
Set the action to be performed on the session object. Each object will have it's own set of actions it will accept

Returns:

setAction

public void setAction(RAMAction action)
Set the action to be performed when passed to RAMSession#put(IRAMSessionObject, org.eclipse.core.runtime.IProgressMonitor) Accepts RAMAction.CREATE RAMAction.UPDATE RAMAction.DELETE

Parameters:
action -
Since:
7.1