org.nuxeo.core.resources.model
Interface IPropertyManager

All Superinterfaces:
ISiteService
All Known Implementing Classes:
PropertyManager

public interface IPropertyManager
extends ISiteService

A Property manager service
It is associating a property to a resource so that properties may be retrieved later given a resource and a property name.

The properties are persistent, so that they are preserved between sessions

Author:
Bogdan Stefanescu

Method Summary
 void copy(ISiteResource source, ISiteResource destination)
          Copy the properties of the source resource to the destination resource
 java.lang.Object getProperty(ISiteResource resource, java.lang.String property)
          Get the property having the given nbame and bound to the given resource
 void remove(ISiteResource resource)
          Remove all properties defined for the given resource
 void setProperty(ISiteResource resource, java.lang.String property, java.lang.Object value)
          Get the property having the given nbame and bound to the given resource
 
Methods inherited from interface org.nuxeo.core.resources.model.ISiteService
shutdown, startup
 

Method Detail

getProperty

java.lang.Object getProperty(ISiteResource resource,
                             java.lang.String property)
Get the property having the given nbame and bound to the given resource

Parameters:
resource - the resource
property - the property name
Returns:
the property value or null if none

setProperty

void setProperty(ISiteResource resource,
                 java.lang.String property,
                 java.lang.Object value)
Get the property having the given nbame and bound to the given resource

Parameters:
resource -
property -
value -

remove

void remove(ISiteResource resource)
Remove all properties defined for the given resource

Parameters:
resource - the resource to remove properties for

copy

void copy(ISiteResource source,
          ISiteResource destination)
Copy the properties of the source resource to the destination resource

Parameters:
source -
destination -