org.nuiton.wikitty.entities
Interface BusinessEntity

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
WikittyAccessStat, WikittyAuthorisation, WikittyGroup, WikittyHook, WikittyI18n, WikittyLabel, WikittyToken, WikittyTreeNode, WikittyUser
All Known Implementing Classes:
BusinessEntityImpl, WikittyAccessStatAbstract, WikittyAccessStatImpl, WikittyAuthorisationAbstract, WikittyAuthorisationImpl, WikittyGroupAbstract, WikittyGroupImpl, WikittyHookAbstract, WikittyHookImpl, WikittyI18nAbstract, WikittyI18nImpl, WikittyLabelAbstract, WikittyLabelImpl, WikittyTokenAbstract, WikittyTokenImpl, WikittyTreeNodeAbstract, WikittyTreeNodeImpl, WikittyUserAbstract, WikittyUserImpl

public interface BusinessEntity
extends Serializable, Cloneable

Used as parent interface to all Business class

Version:
$Revision: 805 $ Last update: $Date: 2011-04-13 18:59:23 +0200 (mer., 13 avril 2011) $ by : $Author: bpoussin $
Author:
poussin

Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add PropertyChangeListener.
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Add PropertyChangeListener on propertyName.
 void copyFrom(BusinessEntity source)
          Copy all field version included from source to current bean (only id is not copied, but must be the same)
 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.
 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 setWikittyVersion(String version)
          Only framework can use this method.
 

Method Detail

getWikittyId

String getWikittyId()
Return wikitty id (uuid).

Returns:
wikitty id

getWikittyVersion

String getWikittyVersion()
Return wikitty version (x.y).

Returns:
wikitty version

setWikittyVersion

void setWikittyVersion(String version)
Only framework can use this method.

Parameters:
version - version to set

getExtensionNames

Collection<String> getExtensionNames()
Return list of all extension for this object.

Returns:
extension names

getExtensionFields

Collection<String> getExtensionFields(String ext)
Return list of all field for this object.

Parameters:
ext - extension to get fields
Returns:
fields collections

getField

Object getField(String ext,
                String fieldName)
Return field value for the specific extension and field.

Parameters:
ext - extension
fieldName - field name
Returns:
field value

setField

void setField(String ext,
              String fieldName,
              Object value)
Set field value for the specific extension and field. This method don't check the type of value for this field.

Parameters:
ext - extension
fieldName - field name
value - value to set

copyFrom

void copyFrom(BusinessEntity source)
Copy all field version included from source to current bean (only id is not copied, but must be the same)

Parameters:
source -

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)
Add PropertyChangeListener.

Parameters:
listener - listener to add

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)
Remove PropertyChangeListener.

Parameters:
listener - listener to remove

addPropertyChangeListener

void addPropertyChangeListener(String propertyName,
                               PropertyChangeListener listener)
Add PropertyChangeListener on propertyName.

Parameters:
propertyName - property name
listener - listener to add

removePropertyChangeListener

void removePropertyChangeListener(String propertyName,
                                  PropertyChangeListener listener)
Remove PropertyChangeListener on propertyName

Parameters:
propertyName - property name
listener - listener listener to remove


Copyright © 2009-2011 CodeLutin. All Rights Reserved.