org.nuiton.wikitty
Class BusinessEntityWikitty

java.lang.Object
  extended by org.nuiton.wikitty.BusinessEntityWikitty
All Implemented Interfaces:
Serializable, Cloneable, BusinessEntity
Direct Known Subclasses:
LabelAbstract, SecurityTokenAbstract, TreeNodeAbstract, WikittyAuthorisationAbstract, WikittyGroupAbstract, WikittyUserAbstract

public class BusinessEntityWikitty
extends Object
implements BusinessEntity

Version:
$Revision: 57 $ Each business object will inherit of this class. Last update: $Date: 2010-05-17 12:30:16 +0200 (lun., 17 mai 2010) $ by : $Author: echatellier $
Author:
poussin
See Also:
Serialized Form

Field Summary
protected  PropertyChangeSupport propertyChangeSupport
          Property change support.
protected  Wikitty wikitty
           
 
Constructor Summary
BusinessEntityWikitty()
           
BusinessEntityWikitty(Wikitty wi)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add PropertyChangeListener.
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Add PropertyChangeListener on propertyName.
 Collection<String> getExtensionFields(String ext)
          Return list of all field for this object.
 Collection<String> getExtensionNames()
          Return list of all extension for this object.
 Object getField(String ext, String fieldName)
          Return field value for the specific extension and field.
 FieldType getFieldType(String ext, String fieldName)
          Return the field type.
protected  PropertyChangeSupport getPropertyChangeSupport()
           
 Collection<WikittyExtension> getStaticExtensions()
           
 Wikitty getWikitty()
           
 String getWikittyId()
          Return wikitty id (uuid).
 String getWikittyVersion()
          Return wikitty version (x.y).
 void removePropertyChangeListener(PropertyChangeListener listener)
          Remove PropertyChangeListener.
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Remove PropertyChangeListener on propertyName
 void setField(String ext, String fieldName, Object value)
          Set field value for the specific extension and field.
 void setWikitty(Wikitty wikitty)
           
 void setWikittyVersion(String version)
          Only framework can use this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChangeSupport

protected transient PropertyChangeSupport propertyChangeSupport
Property change support. Warning, this transient field is null after deserialization.


wikitty

protected Wikitty wikitty
Constructor Detail

BusinessEntityWikitty

public BusinessEntityWikitty(Wikitty wi)

BusinessEntityWikitty

public BusinessEntityWikitty()
Method Detail

getPropertyChangeSupport

protected PropertyChangeSupport getPropertyChangeSupport()

getWikittyId

public String getWikittyId()
Description copied from interface: BusinessEntity
Return wikitty id (uuid).

Specified by:
getWikittyId in interface BusinessEntity
Returns:
wikitty id

getWikittyVersion

public String getWikittyVersion()
Description copied from interface: BusinessEntity
Return wikitty version (x.y).

Specified by:
getWikittyVersion in interface BusinessEntity
Returns:
wikitty version

setWikittyVersion

public void setWikittyVersion(String version)
Description copied from interface: BusinessEntity
Only framework can use this method.

Specified by:
setWikittyVersion in interface BusinessEntity
Parameters:
version - version to set

setWikitty

public void setWikitty(Wikitty wikitty)

getWikitty

public Wikitty getWikitty()

getExtensionNames

public Collection<String> getExtensionNames()
Description copied from interface: BusinessEntity
Return list of all extension for this object.

Specified by:
getExtensionNames in interface BusinessEntity
Returns:
extension names

getExtensionFields

public Collection<String> getExtensionFields(String ext)
Description copied from interface: BusinessEntity
Return list of all field for this object.

Specified by:
getExtensionFields in interface BusinessEntity
Parameters:
ext - extension to get fields
Returns:
fields collections

getFieldType

public FieldType getFieldType(String ext,
                              String fieldName)
Description copied from interface: BusinessEntity
Return the field type.

Specified by:
getFieldType in interface BusinessEntity
Parameters:
ext - extension
fieldName - field name
Returns:
feild type

getField

public Object getField(String ext,
                       String fieldName)
Description copied from interface: BusinessEntity
Return field value for the specific extension and field.

Specified by:
getField in interface BusinessEntity
Parameters:
ext - extension
fieldName - field name
Returns:
field value

setField

public void setField(String ext,
                     String fieldName,
                     Object value)
Description copied from interface: BusinessEntity
Set field value for the specific extension and field. This method don't check the type of value for this field.

Specified by:
setField in interface BusinessEntity
Parameters:
ext - extension
fieldName - field name
value - value to set

getStaticExtensions

public Collection<WikittyExtension> getStaticExtensions()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Add PropertyChangeListener.

Specified by:
addPropertyChangeListener in interface BusinessEntity
Parameters:
listener - listener to add

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Remove PropertyChangeListener.

Specified by:
removePropertyChangeListener in interface BusinessEntity
Parameters:
listener - listener to remove

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Add PropertyChangeListener on propertyName.

Specified by:
addPropertyChangeListener in interface BusinessEntity
Parameters:
propertyName - property name
listener - listener to add

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Remove PropertyChangeListener on propertyName

Specified by:
removePropertyChangeListener in interface BusinessEntity
Parameters:
propertyName - property name
listener - listener listener to remove


Copyright © 2009-2010 CodeLutin. All Rights Reserved.