com.gentics.api.lib.resolving
Class ChangeableBean

java.lang.Object
  extended by com.gentics.api.lib.resolving.ResolvableBean
      extended by com.gentics.api.lib.resolving.ChangeableBean
All Implemented Interfaces:
Changeable, Resolvable, java.io.Serializable

public abstract class ChangeableBean
extends ResolvableBean
implements Changeable

ChangeableBean serves as base class for JavaBeans that need to be Changeable. The implementation of the Changeable and Resolvable interfaces map properties to the corresponding getter and setter methods (when they exist). To use this JavaBean integration into Portal.Node, simply let your BeanObject extend this class and create getter/setter methods for all properties.

Author:
norbert
See Also:
Serialized Form

Constructor Summary
ChangeableBean()
           
 
Method Summary
 boolean setProperty(java.lang.String name, java.lang.Object value)
          Set (modify) the property name to resolve to the given value
 
Methods inherited from class com.gentics.api.lib.resolving.ResolvableBean
canResolve, get, getProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.gentics.api.lib.resolving.Resolvable
canResolve, get, getProperty
 

Constructor Detail

ChangeableBean

public ChangeableBean()
Method Detail

setProperty

public boolean setProperty(java.lang.String name,
                           java.lang.Object value)
                    throws InsufficientPrivilegesException
Description copied from interface: Changeable
Set (modify) the property name to resolve to the given value

Specified by:
setProperty in interface Changeable
Parameters:
name - name of the property to set/modify
value - (new) value to set
Returns:
true if property was set successful, false otherwise.
Throws:
InsufficientPrivilegesException - when the property may not be changed


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.