org.eclipse.stardust.engine.api.runtime
Interface ResourceInfo

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
Document, DocumentInfo, Folder, FolderInfo, Resource
All Known Implementing Classes:
DmsDocumentBean, org.eclipse.stardust.engine.extensions.dms.data.DmsResourceBean

public interface ResourceInfo
extends java.io.Serializable

The ResourceInfo interface keeps information common to both existing and not yet existing JCR resources (document or folder).

Version:
$Revision$
Author:
sauer

Method Summary
 java.util.Date getDateCreated()
          Gets the date of creation of the JCR resource.
 java.util.Date getDateLastModified()
          Gets the date of last modification of the JCR resource.
 java.lang.String getDescription()
          Gets the description of the JCR resource.
 java.lang.String getName()
          Get the name of the JCR resource.
 java.lang.String getOwner()
          Gets the owner of the JCR resource.
 java.util.Map getProperties()
          Gets all custom properties of the JCR resource.
 java.io.Serializable getProperty(java.lang.String name)
          Gets a single custom property of the JCR resource.
 void setDescription(java.lang.String description)
          Sets the description of the JCR resource.
 void setName(java.lang.String name)
          Sets the name of the JCR resource.
 void setOwner(java.lang.String owner)
          Sets the owner of the JCR resource.
 void setProperties(java.util.Map properties)
          Sets all custom properties of the JCR resource.
 void setProperty(java.lang.String name, java.io.Serializable value)
          Sets a single custom property of the JCR resource.
 

Method Detail

getName

java.lang.String getName()
Get the name of the JCR resource. This property is mandatory and must be always set.

Returns:
the name of the JCR resource.

setName

void setName(java.lang.String name)
Sets the name of the JCR resource. This property is mandatory and must be always set.

Parameters:
name - the name of the JCR resource.

getDescription

java.lang.String getDescription()
Gets the description of the JCR resource.

Returns:
the description of the JCR resource.

setDescription

void setDescription(java.lang.String description)
Sets the description of the JCR resource.

Parameters:
description - the description of the JCR resource.

getOwner

java.lang.String getOwner()
Gets the owner of the JCR resource.

Returns:
the owner of the JCR resource.

setOwner

void setOwner(java.lang.String owner)
Sets the owner of the JCR resource.

Parameters:
owner - the owner of the JCR resource.

getDateCreated

java.util.Date getDateCreated()
Gets the date of creation of the JCR resource.

Returns:
the date of creation of the JCR resource.

getDateLastModified

java.util.Date getDateLastModified()
Gets the date of last modification of the JCR resource.

Returns:
the date of last modification of the JCR resource.

getProperties

java.util.Map getProperties()
Gets all custom properties of the JCR resource. The properties are represented by a java.util.Map where the property name (String) is the key.

Returns:
the custom properties of the JCR resource.

setProperties

void setProperties(java.util.Map properties)
Sets all custom properties of the JCR resource. The properties should be organized in a java.util.Map where the property name (String) is the key.

Parameters:
properties - the custom properties of the JCR resource.

getProperty

java.io.Serializable getProperty(java.lang.String name)
Gets a single custom property of the JCR resource.

Parameters:
name - the property name.
Returns:
the property value.

setProperty

void setProperty(java.lang.String name,
                 java.io.Serializable value)
Sets a single custom property of the JCR resource.

Parameters:
name - the property name.
value - the property value.


Copyright © 2013 SunGard CSA LLC. All Rights Reserved.