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

All Superinterfaces:
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 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
 Date getDateCreated()
          Gets the date of creation of the JCR resource.
 Date getDateLastModified()
          Gets the date of last modification of the JCR resource.
 String getDescription()
          Gets the description of the JCR resource.
 String getName()
          Get the name of the JCR resource.
 String getOwner()
          Gets the owner of the JCR resource.
 Map getProperties()
          Gets all custom properties of the JCR resource.
 Serializable getProperty(String name)
          Gets a single custom property of the JCR resource.
 void setDescription(String description)
          Sets the description of the JCR resource.
 void setName(String name)
          Sets the name of the JCR resource.
 void setOwner(String owner)
          Sets the owner of the JCR resource.
 void setProperties(Map properties)
          Sets all custom properties of the JCR resource.
 void setProperty(String name, Serializable value)
          Sets a single custom property of the JCR resource.
 

Method Detail

getName

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(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

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

Returns:
the description of the JCR resource.

setDescription

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

Parameters:
description - the description of the JCR resource.

getOwner

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

Returns:
the owner of the JCR resource.

setOwner

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

Parameters:
owner - the owner of the JCR resource.

getDateCreated

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

Returns:
the date of creation of the JCR resource.

getDateLastModified

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

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

getProperties

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(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

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

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

setProperty

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

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


Copyright © 2017 Eclipse Stardust. All Rights Reserved.