com.ibm.ram.client
Class RAMAsset

java.lang.Object
  extended by com.ibm.ram.common.data.AssetInformation
      extended by com.ibm.ram.common.data.Asset
          extended by com.ibm.ram.client.RAMAsset

public class RAMAsset
extends Asset

Represents the metadata of an asset. getContents() returns an input stream to download the RAS file.

Since:
7.1
Author:
kbauer

Method Summary
 RAMRelationship addRelatedAsset(Asset relatedAsset, RelationshipType relationType)
          Add a relationship to another asset
 void addSubscription(RAMSubscription subscription)
          Adds a subscription to an asset.
 RAMAssetTag[] addTags(java.lang.String tags)
          Adds tags to the current asset Multiple tags can be entered comma or space separated.
 void categorize(Category category, java.lang.String categorization)
          Sets the value of a specific Asset category if it is a free form value it just sets the value.
 void categorize(SubCategory subCategory)
          Categorizes and asset as a specific sub category
 RAMForum createForum(java.lang.String title, java.lang.String description)
          Create a new forum with the given name and description
 RAMAction getAction()
          Returns the current action that will be performed when an asset is passed to the put or putAssets method Supported actions are...
 RAMAssetActivity[] getActivites(int[] activityTypes, long fromTime, long toTime)
          Returns all activities for this asset matching the criteria passed in
 CategorySchema[] getAllAvailableCategorySchemas()
          Returns all category schema's available to an asset Note this will return an empty list until you have set both the community and asset type Use RAMSession.getAllCategorySchemas() to get all schemas defined on the repository
 FolderArtifact getArtifactsRoot()
          Returns a root Object of all the assets Artifacts.
 AssetAttribute getAssetAttribute(java.lang.String name)
          Return a custom attribute by name for this Asset
 AssetAttribute[] getAssetAttributes()
          Return a list of the custom attributes for this Asset
 AssetType getAssetType()
          Gets the asset type for the asset
 RAMAction[] getAvailableActions()
          The actions available for the current state
 CategorySchema getAvailableCategorySchema(java.lang.String name)
          Returns a category schema available to an asset by name Note this will return an empty list until you have set both the community and asset type Use RAMSession.getAllCategorySchemas() to get all schemas defined on the repository
 double getAverageRating()
           
 java.lang.String[] getCategorizations(Category category)
          Given a Category this method returns a list of the sub-categorizations that have been set on this asset as paths relative to the Category Utility method to just get the list of all sub catgeories set on an asset for a given category
 CategorySchema getCategorySchema(java.lang.String name)
          Returns a category schema set on this asset or null if it has not been set Use RAMSession.getCategorySchema(String) to get a schema defined on the repository Use getAvailableCategorySchema(String) to get a schema available to this asset
 CategorySchema[] getCategorySchemas()
          Returns only the category schema's set on an asset Use getAllAvailableCategorySchemas() to get all schemas available to the asset Use RAMSession.getAllCategorySchemas() to get all schemas defined on the repository
 CommunityInformation getCommunity()
          Returns the community this asset belongs to.
 java.lang.String getCommunityName()
           
 java.io.InputStream getContents()
          Returns an InputStream to download the asset as a RAS file.
 PersonTime getCreationTime()
          The estimated creation time
 RAMStateHistory getCurrentStateHistory()
          Current state history
 java.lang.String getDescription()
          Gets the description value for this Asset.
 Forum[] getForums()
          Returns the Forums available to this asset.
 java.lang.String getGUID()
          Deprecated. use RAMAsset#getIdentification()#getGUID()
 AssetIdentification getIdentification()
          Overrides the method AssetInformation.getIdentification() This method returns a copy of the AssetIdentifaction.
 long getLastModified()
           
 AssetIdentification getMainAssetId()
          If this is a pending Asset, a revision of an approved asset that is in draft or under review, this method will return the identification of the main asset.
 int getManagementStyle()
           
 java.lang.String getManifestAsString()
          Return the Asset's manifest as a String
 java.lang.String getName()
           
 UserInformation[] getOwners()
          Returns the owners of this asset
 AssetIdentification getPendingAssetId()
          If there is a pending revision of this Asset (one under review or a draft) this method will return the AssetIdentifcation of that pending asset.
 AssetRatings getRatings()
          The Asset's user ratings and feedback
 Relationship[] getRelationships()
          Returns the relationships.
 int getRevisionCount()
          An Asset's full version is defined by it's GUID version and database revision.
 RAMSession getSession()
          Returns the session object that created this Asset object.
 java.lang.String getShortDescription()
          Gets the shortDescription value for this AssetInformation.
 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.
 RAMSubscription[] getSubscriptions()
          Return all the subscriptions
 AssetTag[] getTags()
          Return the tags set on the asset
 java.lang.String getTypeName()
           
 PersonTime getUsageTime()
          The estimated usage time
 java.lang.String getVersion()
          Deprecated. use RAMAsset#getIdentification()#getVersion()
 java.lang.String[] getVersions()
          Returns an array of published versions of this asset This method uses the search index so there will be delay from when an asset is submitted to when it becomes visible to this API.
 boolean isDirty()
          Returns true if the Object has been modified from the copy on the server
 boolean isUpdate()
          Is this asset marked for update or creation.
 void recordActivity(AssetActivity activity)
          Add an AssetActivity to be recored when the asset is uploaded.
 void refresh()
          Reload from the server
 void removeRelationship(Relationship rel)
          Remove the relationship to another asset
 void removeRelationshipRange(Asset relatedAsset, RelationshipType relationshipType)
          Removes the relationship range from the relationships of the relatedAsset with the relationshipType
 void removeTag(AssetTag tag)
          Removes a tag from the current asset
 void setAction(RAMAction action)
          Set the action that will be performed when an asset is passed to the put or putAssets method Supported actions are...
 void setArtifactsRoot(FolderArtifact root)
          Returns a root Object of all the assets Artifacts.
 void setAssetAttributes(AssetAttribute[] customAttributes)
          Set the set of asset attributes on this asset.
 void setAssetType(AssetType assetType)
          Sets the asset type for the asset
 void setAverageRating(double averageRating)
           
 void setCategorySchemas(CategorySchema[] schemas)
          Set the set of CategorySchema to be applied to this asset.
 void setCommunity(CommunityInformation community)
          Sets the community for the asset
 void setCommunityName(java.lang.String communityName)
           
 void setCreationTime(PersonTime creationTime)
          The estimated creation time
 void setDescription(java.lang.String description)
          Sets the description value for this Asset.
 void setForums(Forum[] forums)
          Set the forums for this asset.
 void setGUID(java.lang.String guid)
          Deprecated. use RAMAsset#getIdentification()#setGUID(String)
 void setIdentification(AssetIdentification identification)
          Set the unique identifier for this asset.
 void setLastModified(long lastModified)
           
 void setMainAssetId(AssetIdentification mainAsset)
          Set the Main Asset's Identification.
 void setManagementStyle(int managementStyle)
           
 void setName(java.lang.String name)
           
 void setOwners(UserInformation[] owners)
          Sets the owners for the asset
 void setPendingAssetId(AssetIdentification pendingAsset)
          Set the Pending Asset's Identification.
 void setRatings(AssetRatings ratings)
          Set the rating on this asset.
 RAMRelationship[] setRelationshipRange(Asset relatedAsset, RelationshipType relationshipType, RelationshipRange relationshipRange)
          Sets relationships to another assets that satisfy the range.
 void setRelationships(Relationship[] relationships)
          Set the list of asset relationships for this asset.
 void setShortDescription(java.lang.String shortDescription)
          Sets the shortDescription value for this AssetInformation.
 void setState(State state)
          Set the state of this asset.
 void setStateID(int stateID)
           
 void setStateName(java.lang.String stateName)
           
 void setTags(AssetTag[] tags)
          Set the tags for this asset.
 void setTypeName(java.lang.String typeName)
           
 void setUsageTime(PersonTime usageTime)
          The estimated usage time
 void setVersion(java.lang.String version)
          Deprecated. use RAMAsset#getIdentification()#setVersion(String)
 java.lang.String toString()
           
 void uncategorize(Category category, java.lang.String categorization)
          Remove a specific categorization from the asset
 void uncategorize(SubCategory subCategory)
          Remove a specific categorization from the asset
 RAMAssetValidation[] validate()
          Validate this asset and return a list of validation messages.
 
Methods inherited from class com.ibm.ram.common.data.Asset
getInternalResourceURI, getResourceURI, setAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAvailableActions

public RAMAction[] getAvailableActions()
                                throws RAMRuntimeException
The actions available for the current state

Returns:
The actions available for the current state
Throws:
RAMRuntimeException
Since:
7.2

getName

public java.lang.String getName()
Overrides:
getName in class AssetInformation
Returns:
the name of this asset.

setName

public void setName(java.lang.String name)
Overrides:
setName in class AssetInformation
Parameters:
name - The new name of the asset
Since:
7.1

getGUID

public java.lang.String getGUID()
                         throws RAMRuntimeException
Deprecated. use RAMAsset#getIdentification()#getGUID()

Overrides:
getGUID in class AssetInformation
Returns:
the unique id for this asset.
Throws:
RAMRuntimeException
Since:
7.1

setGUID

public void setGUID(java.lang.String guid)
Deprecated. use RAMAsset#getIdentification()#setGUID(String)

Overrides:
setGUID in class AssetInformation
Parameters:
the - unique id for this asset.
Since:
7.1

getIdentification

public AssetIdentification getIdentification()
Overrides the method AssetInformation.getIdentification() This method returns a copy of the AssetIdentifaction. Changes to this object will not change the Identification of the asset. Each call will return a new copy.

Overrides:
getIdentification in class AssetInformation
Returns:
See Also:
RAMSession.createAsset(String), RAMSession.createAsset(Asset, String), RAMSession.createAsset(Asset, String, String), RAMSession.createAssetNewVersion(Asset, String), RAMSession.replaceAssetNewVersion(Asset, String)

getMainAssetId

public AssetIdentification getMainAssetId()
Description copied from class: AssetInformation
If this is a pending Asset, a revision of an approved asset that is in draft or under review, this method will return the identification of the main asset. Otherwise this method will return null.

Overrides:
getMainAssetId in class AssetInformation

getPendingAssetId

public AssetIdentification getPendingAssetId()
Description copied from class: AssetInformation
If there is a pending revision of this Asset (one under review or a draft) this method will return the AssetIdentifcation of that pending asset. Otherwise this method will return null.

Overrides:
getPendingAssetId in class AssetInformation

setIdentification

public void setIdentification(AssetIdentification identification)
Description copied from class: AssetInformation
Set the unique identifier for this asset. This includes the GUID, version and if it is the main or pending asset.

Overrides:
setIdentification in class AssetInformation

setMainAssetId

public void setMainAssetId(AssetIdentification mainAsset)
Description copied from class: AssetInformation
Set the Main Asset's Identification. A main asset is a revision of this asset that has been approved with this asset is reviewed or in draft.

Overrides:
setMainAssetId in class AssetInformation

setPendingAssetId

public void setPendingAssetId(AssetIdentification pendingAsset)
Description copied from class: AssetInformation
Set the Pending Asset's Identification. A pending asset is a revision of this asset that is in draft or under review.

Overrides:
setPendingAssetId in class AssetInformation

getVersion

public java.lang.String getVersion()
Deprecated. use RAMAsset#getIdentification()#getVersion()

Overrides:
getVersion in class AssetInformation
Returns:
the version of this asset.
Since:
7.1

setVersion

public void setVersion(java.lang.String version)
Deprecated. use RAMAsset#getIdentification()#setVersion(String)

Overrides:
setVersion in class AssetInformation
Parameters:
version - the version of this asset.
Since:
7.1

getDescription

public java.lang.String getDescription()
Gets the description value for this Asset.

Overrides:
getDescription in class Asset
Returns:
description
Since:
7.1

setDescription

public void setDescription(java.lang.String description)
Sets the description value for this Asset.

Overrides:
setDescription in class Asset
Parameters:
description -
Since:
7.1

validate

public RAMAssetValidation[] validate()
Validate this asset and return a list of validation messages. Successful validation is when the number of validation messages is zero.

Since:
7.1

getShortDescription

public java.lang.String getShortDescription()
Gets the shortDescription value for this AssetInformation.

Overrides:
getShortDescription in class AssetInformation
Returns:
shortDescription
Since:
7.1

setShortDescription

public void setShortDescription(java.lang.String shortDescription)
Sets the shortDescription value for this AssetInformation.

Overrides:
setShortDescription in class AssetInformation
Parameters:
shortDescription -
Since:
7.1

getRevisionCount

public int getRevisionCount()
                     throws RAMRuntimeException
An Asset's full version is defined by it's GUID version and database revision. The revision is only setable by the server.

Returns:
Get the revision of this asset
Throws:
RAMRuntimeException
Since:
7.1.1

getRelationships

public Relationship[] getRelationships()
                                throws RAMRuntimeException
Description copied from class: Asset
Returns the relationships.

Overrides:
getRelationships in class Asset
Throws:
RAMRuntimeException

addRelatedAsset

public RAMRelationship addRelatedAsset(Asset relatedAsset,
                                       RelationshipType relationType)
                                throws RAMRuntimeException
Add a relationship to another asset

Parameters:
relatedAsset -
relationType -
Throws:
RAMRuntimeException
Since:
7.1

addSubscription

public void addSubscription(RAMSubscription subscription)
Adds a subscription to an asset. Use RAMSession.put(asset) to commit this and other changes to the asset.

Since:
7.5

getSubscriptions

public RAMSubscription[] getSubscriptions()
Return all the subscriptions

Since:
7.5

setRelationshipRange

public RAMRelationship[] setRelationshipRange(Asset relatedAsset,
                                              RelationshipType relationshipType,
                                              RelationshipRange relationshipRange)
                                       throws RAMRuntimeException
Sets relationships to another assets that satisfy the range. If no assets are found satisfying the range then it will throw a RAMRuntimeException. The method will remove the relationships for the relationshipType that are not in the range and create the relationships to the asset versions that are in the range.

Parameters:
relatedAsset -
relationshipType -
relationshipRange -
Returns:
RAMRelationship[] relationships that were added
Throws:
RAMRuntimeException
Since:
7.1.1

removeRelationshipRange

public void removeRelationshipRange(Asset relatedAsset,
                                    RelationshipType relationshipType)
                             throws RAMRuntimeException
Removes the relationship range from the relationships of the relatedAsset with the relationshipType

Parameters:
relatedAsset -
relationshipType -
relationshipRange -
Throws:
RAMRuntimeException
Since:
7.1.1

removeRelationship

public void removeRelationship(Relationship rel)
Remove the relationship to another asset

Parameters:
relatedAsset -
Since:
7.1

recordActivity

public void recordActivity(AssetActivity activity)
                    throws RAMRuntimeException
Add an AssetActivity to be recored when the asset is uploaded. The only support AssetActivity type for now is CustomAssetActivity In 7.1.1, support has been added for AssetBuildActivity and AssetDevActivity, in addition to CustomAssetActivity

Parameters:
activity -
Throws:
RAMRuntimeException - if passing in AssetDevActivity or AssetBuildActivity on a server prior to 711
Since:
7.1
See Also:
CustomAssetActivity, AssetBuildActivity, AssetDevActivity

getArtifactsRoot

public FolderArtifact getArtifactsRoot()
                                throws RAMRuntimeException
Returns a root Object of all the assets Artifacts.

Overrides:
getArtifactsRoot in class Asset
Returns:
an array of the asset's artifacts
Throws:
RAMRuntimeException
Since:
7.1

setArtifactsRoot

public void setArtifactsRoot(FolderArtifact root)
                      throws RAMRuntimeException
Returns a root Object of all the assets Artifacts.

Overrides:
setArtifactsRoot in class Asset
Throws:
RAMRuntimeException
Since:
7.1

getCommunity

public CommunityInformation getCommunity()
Description copied from class: Asset
Returns the community this asset belongs to.

Overrides:
getCommunity in class Asset

getManifestAsString

public java.lang.String getManifestAsString()
Return the Asset's manifest as a String

Since:
7.1.1

setCommunity

public void setCommunity(CommunityInformation community)
                  throws RAMRuntimeException
Sets the community for the asset

Overrides:
setCommunity in class Asset
Parameters:
assetType -
Throws:
RAMRuntimeException
Since:
7.1

getAssetAttributes

public AssetAttribute[] getAssetAttributes()
                                    throws RAMRuntimeException
Return a list of the custom attributes for this Asset

Overrides:
getAssetAttributes in class Asset
Throws:
RAMRuntimeException
Since:
7.1

getAssetAttribute

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

Overrides:
getAssetAttribute in class Asset
Throws:
RAMRuntimeException
Since:
7.1

getAction

public RAMAction getAction()
Returns the current action that will be performed when an asset is passed to the put or putAssets method Supported actions are...

Overrides:
getAction in class Asset
Returns:
the action
Since:
7.1
See Also:
RAMAction.CREATE, RAMAction.UPDATE, RAMAction.DELETE, RAMAction#CREATE_ASIS, RAMAction#SAVE_AS_DRAFT

setAction

public void setAction(RAMAction action)
Set the action that will be performed when an asset is passed to the put or putAssets method Supported actions are...

Parameters:
action - the action to set
Since:
7.1
See Also:
RAMAction.CREATE, RAMAction.UPDATE, RAMAction.DELETE, RAMAction.CREATE_AS_IS, RAMAction.CREATE_DRAFT, RAMAction.RETIRE, RAMAction.ARCHIVE

getVersions

public java.lang.String[] getVersions()
Returns an array of published versions of this asset This method uses the search index so there will be delay from when an asset is submitted to when it becomes visible to this API.

Returns:
a String array of all the published assets with this GUID
Since:
7.1

categorize

public void categorize(SubCategory subCategory)
                throws RAMRuntimeException
Categorizes and asset as a specific sub category

Parameters:
subCategory -
Throws:
RAMRuntimeException
Since:
7.1

createForum

public RAMForum createForum(java.lang.String title,
                            java.lang.String description)
Create a new forum with the given name and description

Since:
7.1

categorize

public void categorize(Category category,
                       java.lang.String categorization)
                throws RAMRuntimeException
Sets the value of a specific Asset category if it is a free form value it just sets the value. If it is a node category it trys to find the value as a category node path in the form category/sub-category/sub-category. And sets this value for this category. This will clear any other node values set use addValue() to build multi-valued categories.

Parameters:
value -
Throws:
RAMRuntimeException
Since:
7.1

uncategorize

public void uncategorize(SubCategory subCategory)
Remove a specific categorization from the asset

Parameters:
category -
value -
Since:
7.1

uncategorize

public void uncategorize(Category category,
                         java.lang.String categorization)
Remove a specific categorization from the asset

Parameters:
ramCategory -
value -
Since:
7.1

getCategorizations

public java.lang.String[] getCategorizations(Category category)
Given a Category this method returns a list of the sub-categorizations that have been set on this asset as paths relative to the Category Utility method to just get the list of all sub catgeories set on an asset for a given category

Parameters:
ramCategory -
Returns:
Since:
7.1

getAllAvailableCategorySchemas

public CategorySchema[] getAllAvailableCategorySchemas()
Returns all category schema's available to an asset Note this will return an empty list until you have set both the community and asset type Use RAMSession.getAllCategorySchemas() to get all schemas defined on the repository

Since:
7.1

getActivites

public RAMAssetActivity[] getActivites(int[] activityTypes,
                                       long fromTime,
                                       long toTime)
                                throws EntitlementException,
                                       AssetNotFoundException,
                                       RAMException
Returns all activities for this asset matching the criteria passed in

Throws:
EntitlementException
AssetNotFoundException
RAMException
Since:
7.1

getAvailableCategorySchema

public CategorySchema getAvailableCategorySchema(java.lang.String name)
Returns a category schema available to an asset by name Note this will return an empty list until you have set both the community and asset type Use RAMSession.getAllCategorySchemas() to get all schemas defined on the repository

Since:
7.1

getCategorySchemas

public CategorySchema[] getCategorySchemas()
Returns only the category schema's set on an asset Use getAllAvailableCategorySchemas() to get all schemas available to the asset Use RAMSession.getAllCategorySchemas() to get all schemas defined on the repository

Overrides:
getCategorySchemas in class Asset
Since:
7.1

getCategorySchema

public CategorySchema getCategorySchema(java.lang.String name)
Returns a category schema set on this asset or null if it has not been set Use RAMSession.getCategorySchema(String) to get a schema defined on the repository Use getAvailableCategorySchema(String) to get a schema available to this asset

Overrides:
getCategorySchema in class Asset
Parameters:
name -
Returns:
Since:
7.1

getAssetType

public AssetType getAssetType()
Gets the asset type for the asset

Overrides:
getAssetType in class Asset
Returns:
the asset's community
Since:
7.1

setAssetType

public void setAssetType(AssetType assetType)
                  throws RAMRuntimeException
Sets the asset type for the asset

Overrides:
setAssetType in class Asset
Parameters:
assetType -
Throws:
RAMRuntimeException
Since:
7.1

getOwners

public UserInformation[] getOwners()
Description copied from class: Asset
Returns the owners of this asset

Overrides:
getOwners in class Asset

setOwners

public void setOwners(UserInformation[] owners)
               throws RAMRuntimeException
Sets the owners for the asset

Overrides:
setOwners in class Asset
Parameters:
owners -
Throws:
RAMRuntimeException
Since:
7.1

getContents

public java.io.InputStream getContents()
                                throws RAMRuntimeException,
                                       java.io.IOException
Returns an InputStream to download the asset as a RAS file.

Returns:
The Asset as a RAS file from the server through an InputStream
Throws:
RAMRuntimeException
java.io.IOException
Since:
7.1

getSession

public RAMSession getSession()
Returns the session object that created this Asset object.

Returns:
The connection to the RAM Server

isDirty

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

Returns:

isUpdate

public boolean isUpdate()
Is this asset marked for update or creation.

Returns:
Since:
7.1

getAverageRating

public double getAverageRating()
Overrides:
getAverageRating in class AssetInformation
Returns:
Returns the averageRating.

getCommunityName

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

getLastModified

public long getLastModified()
Overrides:
getLastModified in class AssetInformation
Returns:
the date of the last modification to this asset.

getStateID

public int getStateID()
Description copied from class: Asset
If state object is not null the id of the state object is used.

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

getStateName

public java.lang.String getStateName()
Description copied from class: Asset
If state object is not null the name of the state object is used.

Overrides:
getStateName in class Asset
Returns:
the name of an asset's state.

getTypeName

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

getState

public State getState()
               throws RAMRuntimeException
Description copied from class: Asset
Returns the State of the asset

Overrides:
getState in class Asset
Throws:
RAMRuntimeException

getTags

public AssetTag[] getTags()
                   throws RAMRuntimeException
Return the tags set on the asset

Overrides:
getTags in class Asset
Returns:
A list of the Tags set on an asset
Throws:
RAMRuntimeException
Since:
7.1

addTags

public RAMAssetTag[] addTags(java.lang.String tags)
                      throws RAMRuntimeException
Adds tags to the current asset Multiple tags can be entered comma or space separated. Use quotation marks to group strings into one tag

Parameters:
tag -
Returns:
The list of tags that will be added to the asset
Throws:
RAMRuntimeException
Since:
7.1

removeTag

public void removeTag(AssetTag tag)
               throws RAMRuntimeException
Removes a tag from the current asset

Parameters:
tag -
Throws:
RAMRuntimeException
Since:
7.1

getRatings

public AssetRatings getRatings()
Description copied from class: Asset
The Asset's user ratings and feedback

Overrides:
getRatings in class Asset
Returns:
The cumulitive user rating of this asset.
Throws:
RAMRuntimeException
Since:
7.1

getForums

public Forum[] getForums()
                  throws RAMRuntimeException
Description copied from class: Asset
Returns the Forums available to this asset.

Overrides:
getForums in class Asset
Throws:
RAMRuntimeException

refresh

public void refresh()
             throws RAMRuntimeException
Reload from the server

Throws:
RAMRuntimeException
Since:
7.1

getUsageTime

public PersonTime getUsageTime()
The estimated usage time

Overrides:
getUsageTime in class Asset
Returns:
the usageTime
Since:
7.1

setUsageTime

public void setUsageTime(PersonTime usageTime)
The estimated usage time

Overrides:
setUsageTime in class Asset
Parameters:
usageTime - the usageTime to set
Since:
7.1

getCreationTime

public PersonTime getCreationTime()
The estimated creation time

Overrides:
getCreationTime in class Asset
Returns:
the creationTime
Since:
7.1

setCreationTime

public void setCreationTime(PersonTime creationTime)
The estimated creation time

Overrides:
setCreationTime in class Asset
Parameters:
creationTime - the creationTime to set
Since:
7.1

toString

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

setAssetAttributes

public void setAssetAttributes(AssetAttribute[] customAttributes)
Set the set of asset attributes on this asset. If an attribute is not found in the asset definition a local attribute will be created which will be scoped to the asset.

Overrides:
setAssetAttributes in class Asset
Parameters:
customAttributes -
Since:
7.1

setCategorySchemas

public void setCategorySchemas(CategorySchema[] schemas)
Description copied from class: Asset
Set the set of CategorySchema to be applied to this asset.

Overrides:
setCategorySchemas in class Asset

setForums

public void setForums(Forum[] forums)
Description copied from class: Asset
Set the forums for this asset.

Overrides:
setForums in class Asset

setRatings

public void setRatings(AssetRatings ratings)
Description copied from class: Asset
Set the rating on this asset.

Overrides:
setRatings in class Asset

setRelationships

public void setRelationships(Relationship[] relationships)
Description copied from class: Asset
Set the list of asset relationships for this asset.

Overrides:
setRelationships in class Asset

setState

public void setState(State state)
Description copied from class: Asset
Set the state of this asset.

Overrides:
setState in class Asset

setTags

public void setTags(AssetTag[] tags)
Description copied from class: Asset
Set the tags for this asset.

Overrides:
setTags in class Asset

getManagementStyle

public int getManagementStyle()
Overrides:
getManagementStyle in class AssetInformation
Returns:
Returns the managementStyle.

setAverageRating

public void setAverageRating(double averageRating)
Overrides:
setAverageRating in class AssetInformation
Parameters:
averageRating - The averageRating to set.

setCommunityName

public void setCommunityName(java.lang.String communityName)
Overrides:
setCommunityName in class AssetInformation

setLastModified

public void setLastModified(long lastModified)
Overrides:
setLastModified in class AssetInformation

setManagementStyle

public void setManagementStyle(int managementStyle)
Overrides:
setManagementStyle in class AssetInformation
Parameters:
managementStyle - The managementStyle to set.

setStateID

public void setStateID(int stateID)
Overrides:
setStateID in class AssetInformation
Parameters:
stateID - The stateID to set.

setStateName

public void setStateName(java.lang.String stateName)
Overrides:
setStateName in class AssetInformation
Parameters:
stateName - the name of the state this asset is in.

setTypeName

public void setTypeName(java.lang.String typeName)
Overrides:
setTypeName in class AssetInformation

getCurrentStateHistory

public RAMStateHistory getCurrentStateHistory()
                                       throws RAMRuntimeException
Current state history

Returns:
Current state history
Throws:
RAMRuntimeException
Since:
7.2.0.2