com.ibm.ram.common.data
Class Asset

java.lang.Object
  extended by com.ibm.ram.common.data.AssetInformation
      extended by com.ibm.ram.common.data.Asset
Direct Known Subclasses:
RAMAsset

public class Asset
extends AssetInformation

Represents an asset that is managed by Rational Asset Manager

Since:
7.1

Constructor Summary
Asset()
           
 
Method Summary
 Action getAction()
           
 FolderArtifact getArtifactsRoot()
          A folder artifact the is the root of all artifacts contained in the asset.
 AssetAttribute getAssetAttribute(java.lang.String name)
          Return a custom attribute by name for this Asset
 AssetAttribute[] getAssetAttributes()
          Returns the list of asset attributes available to this asset.
 AssetType getAssetType()
          Get the Asset Type object
 CategorySchema getCategorySchema(java.lang.String name)
          Returns a category schema set on this asset by name
 CategorySchema[] getCategorySchemas()
          Returns a list of category schemas set on this asset.
 CommunityInformation getCommunity()
          Returns the community this asset belongs to.
 java.lang.String getCommunityName()
           
 PersonTime getCreationTime()
          Returns the amount of PersonTime taken to create this asset.
 java.lang.String getDescription()
          Returns the description of this asset.
 Forum[] getForums()
          Returns the Forums available to this asset.
 java.lang.String getInternalResourceURI()
          Return the URL of the internal XML Resource representation of this asset.
 UserInformation[] getOwners()
          Returns the owners of this asset
 AssetRatings getRatings()
          The Asset's user ratings and feedback
 Relationship[] getRelationships()
          Returns the relationships.
 java.lang.String getResourceURI()
          Return the URL of the XML Resource representation of this asset.
 State getState()
          Returns the State of the asset
 int getStateID()
          If state object is not null the id of the state object is used.
 java.lang.String getStateName()
          If state object is not null the name of the state object is used.
 AssetTag[] getTags()
          Returns the tags associated with an asset
 java.lang.String getTypeName()
           
 PersonTime getUsageTime()
          Returns the amount of time this asset has been utilized.
 void setAction(Action action)
           
 void setArtifactsRoot(FolderArtifact root)
           
 void setAssetAttributes(AssetAttribute[] customAttributes)
          Set the set of asset attributes on this asset.
 void setAssetType(AssetType assetType)
          Set the Asset Type
 void setCategorySchemas(CategorySchema[] schemas)
          Set the set of CategorySchema to be applied to this asset.
 void setCommunity(CommunityInformation group)
          Set the community this asset belongs to.
 void setCreationTime(PersonTime creationTime)
          Set the amount of time it took to create this asset.
 void setDescription(java.lang.String description)
          Set the description of this asset.
 void setForums(Forum[] forums)
          Set the forums for this asset.
 void setOwners(UserInformation[] owners)
          Set the owners of this asset.
 void setRatings(AssetRatings ratings)
          Set the rating on this asset.
 void setRelationships(Relationship[] relationships)
          Set the list of asset relationships for this asset.
 void setState(State state)
          Set the state of this asset.
 void setTags(AssetTag[] tags)
          Set the tags for this asset.
 void setUsageTime(PersonTime usageTime)
          Set the amount of time this asset was utilized.
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.ram.common.data.AssetInformation
getAverageRating, getGUID, getIdentification, getLastModified, getMainAssetId, getManagementStyle, getName, getPendingAssetId, getShortDescription, getVersion, setAverageRating, setCommunityName, setGUID, setIdentification, setLastModified, setMainAssetId, setManagementStyle, setName, setPendingAssetId, setShortDescription, setStateID, setStateName, setTypeName, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Asset

public Asset()
Since:
7.1
Method Detail

getAssetAttribute

public AssetAttribute getAssetAttribute(java.lang.String name)
Return a custom attribute by name for this Asset

Since:
7.1

getCreationTime

public PersonTime getCreationTime()
Returns the amount of PersonTime taken to create this asset.

Since:
7.1

setCreationTime

public void setCreationTime(PersonTime creationTime)
Set the amount of time it took to create this asset.

Since:
7.1

getUsageTime

public PersonTime getUsageTime()
Returns the amount of time this asset has been utilized.

Since:
7.1

setUsageTime

public void setUsageTime(PersonTime usageTime)
Set the amount of time this asset was utilized.

Since:
7.1

getArtifactsRoot

public FolderArtifact getArtifactsRoot()
A folder artifact the is the root of all artifacts contained in the asset.

Since:
7.1

setArtifactsRoot

public void setArtifactsRoot(FolderArtifact root)
Since:
7.1

getCategorySchemas

public CategorySchema[] getCategorySchemas()
Returns a list of category schemas set on this asset.

Since:
7.1

getCategorySchema

public CategorySchema getCategorySchema(java.lang.String name)
Returns a category schema set on this asset by name

Parameters:
name -
Since:
7.1

setCategorySchemas

public void setCategorySchemas(CategorySchema[] schemas)
Set the set of CategorySchema to be applied to this asset.

Since:
7.1

getRelationships

public Relationship[] getRelationships()
Returns the relationships.

Since:
7.1

setRelationships

public void setRelationships(Relationship[] relationships)
Set the list of asset relationships for this asset.

Since:
7.1

getDescription

public java.lang.String getDescription()
Returns the description of this asset.

Since:
7.1

setDescription

public void setDescription(java.lang.String description)
Set the description of this asset.

Since:
7.1

getCommunity

public CommunityInformation getCommunity()
Returns the community this asset belongs to.

Since:
7.1

getCommunityName

public java.lang.String getCommunityName()
Overrides:
getCommunityName in class AssetInformation
Returns:
the name of the community this asset belongs to

setCommunity

public void setCommunity(CommunityInformation group)
Set the community this asset belongs to.

Since:
7.1

getAssetType

public AssetType getAssetType()
Get the Asset Type object

Since:
7.1

getTypeName

public java.lang.String getTypeName()
Overrides:
getTypeName in class AssetInformation
Returns:
Returns the name of this asset's type.

setAssetType

public void setAssetType(AssetType assetType)
Set the Asset Type

Since:
7.1

getOwners

public UserInformation[] getOwners()
Returns the owners of this asset

Since:
7.1

setOwners

public void setOwners(UserInformation[] owners)
Set the owners of this asset.

Since:
7.1

getState

public State getState()
Returns the State of the asset

Since:
7.1

setState

public void setState(State state)
Set the state of this asset.

Since:
7.1

getStateID

public int getStateID()
If state object is not null the id of the state object is used.

Overrides:
getStateID in class AssetInformation
Returns:
Returns the database id of an asset's state.
Since:
7.2

getStateName

public java.lang.String getStateName()
If state object is not null the name of the state object is used.

Overrides:
getStateName in class AssetInformation
Returns:
the name of an asset's state.
Since:
7.2

getAction

public Action getAction()
Returns:
Returns the action.
Since:
7.2

setAction

public void setAction(Action action)
Parameters:
action - The action to set.
Since:
7.2

getTags

public AssetTag[] getTags()
Returns the tags associated with an asset

Since:
7.1

setTags

public void setTags(AssetTag[] tags)
Set the tags for this asset.

Since:
7.1

getRatings

public AssetRatings getRatings()
The Asset's user ratings and feedback

Since:
7.1

setRatings

public void setRatings(AssetRatings ratings)
Set the rating on this asset.

Since:
7.1

getForums

public Forum[] getForums()
Returns the Forums available to this asset.

Since:
7.1

setForums

public void setForums(Forum[] forums)
Set the forums for this asset.

Since:
7.1

getAssetAttributes

public AssetAttribute[] getAssetAttributes()
Returns the list of asset attributes available to this asset.

Since:
7.1

setAssetAttributes

public void setAssetAttributes(AssetAttribute[] customAttributes)
Set the set of asset attributes on this asset.

Parameters:
customAttributes -
Since:
7.1

getResourceURI

public java.lang.String getResourceURI()
Return the URL of the XML Resource representation of this asset.

Since:
7.5

getInternalResourceURI

public java.lang.String getInternalResourceURI()
Return the URL of the internal XML Resource representation of this asset.

Since:
7.5

toString

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