org.nuiton.topia.taas.entities
Class TaasPrincipalAbstract

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by org.nuiton.topia.taas.entities.TaasPrincipalAbstract
All Implemented Interfaces:
Serializable, TopiaEntity, TaasPrincipal
Direct Known Subclasses:
TaasPrincipalImpl

public abstract class TaasPrincipalAbstract
extends TopiaEntityAbstract
implements TaasPrincipal

See Also:
Serialized Form

Field Summary
protected  Collection<TaasAuthorization> authorizations
          Nom de l'attribut en BD : authorizations
protected  String name
          Nom de l'attribut en BD : name
 
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
 
Fields inherited from interface org.nuiton.topia.taas.entities.TaasPrincipal
AUTHORIZATIONS, NAME
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
TaasPrincipalAbstract()
           
 
Method Summary
 void accept(EntityVisitor visitor)
          accept : Envoi via les methodes du visitor l'ensemble des champs de l'entity avec leur nom, type et valeur.
 void addAllAuthorizations(Collection<TaasAuthorization> authorizations)
          addAllAuthorizations :
 void addAuthorizations(TaasAuthorization authorizations)
          addAuthorizations :
 void clearAuthorizations()
          clearAuthorizations :
 List<TopiaEntity> getAggregate()
          getAggregate :
 Collection<TaasAuthorization> getAuthorizations()
          getAuthorizations :
 TaasAuthorization getAuthorizationsByTopiaId(String topiaId)
          getAuthorizationsByTopiaId :
 List<TopiaEntity> getComposite()
          getComposite :
 String getName()
          getName :
 boolean isAuthorizationsEmpty()
          isAuthorizationsEmpty :
 void removeAuthorizations(TaasAuthorization authorizations)
          removeAuthorizations :
 void setAuthorizations(Collection<TaasAuthorization> authorizations)
          setAuthorizations :
 void setName(String name)
          setName :
 int sizeAuthorizations()
          sizeAuthorizations :
 String toString()
          toString :
 
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Field Detail

name

protected String name
Nom de l'attribut en BD : name


authorizations

protected Collection<TaasAuthorization> authorizations
Nom de l'attribut en BD : authorizations

Constructor Detail

TaasPrincipalAbstract

public TaasPrincipalAbstract()
Method Detail

accept

public void accept(EntityVisitor visitor)
            throws TopiaException
accept : Envoi via les methodes du visitor l'ensemble des champs de l'entity avec leur nom, type et valeur.

Specified by:
accept in interface TopiaEntity
Parameters:
visitor - le visiteur de l'entite.
Throws:
TopiaException

setName

public void setName(String name)
setName :

Specified by:
setName in interface TaasPrincipal
Parameters:
name -

getName

public String getName()
getName :

Specified by:
getName in interface TaasPrincipal
Returns:
String

addAuthorizations

public void addAuthorizations(TaasAuthorization authorizations)
addAuthorizations :

Specified by:
addAuthorizations in interface TaasPrincipal
Parameters:
authorizations -

addAllAuthorizations

public void addAllAuthorizations(Collection<TaasAuthorization> authorizations)
addAllAuthorizations :

Specified by:
addAllAuthorizations in interface TaasPrincipal
Parameters:
authorizations -

setAuthorizations

public void setAuthorizations(Collection<TaasAuthorization> authorizations)
setAuthorizations :

Specified by:
setAuthorizations in interface TaasPrincipal
Parameters:
authorizations -

removeAuthorizations

public void removeAuthorizations(TaasAuthorization authorizations)
removeAuthorizations :

Specified by:
removeAuthorizations in interface TaasPrincipal
Parameters:
authorizations -

clearAuthorizations

public void clearAuthorizations()
clearAuthorizations :

Specified by:
clearAuthorizations in interface TaasPrincipal

getAuthorizations

public Collection<TaasAuthorization> getAuthorizations()
getAuthorizations :

Specified by:
getAuthorizations in interface TaasPrincipal
Returns:
Collection

getAuthorizationsByTopiaId

public TaasAuthorization getAuthorizationsByTopiaId(String topiaId)
getAuthorizationsByTopiaId :

Specified by:
getAuthorizationsByTopiaId in interface TaasPrincipal
Parameters:
topiaId -
Returns:
TaasAuthorization

sizeAuthorizations

public int sizeAuthorizations()
sizeAuthorizations :

Specified by:
sizeAuthorizations in interface TaasPrincipal
Returns:
int

isAuthorizationsEmpty

public boolean isAuthorizationsEmpty()
isAuthorizationsEmpty :

Specified by:
isAuthorizationsEmpty in interface TaasPrincipal
Returns:
boolean

getAggregate

public List<TopiaEntity> getAggregate()
                               throws TopiaException
getAggregate :

Specified by:
getAggregate in interface TopiaEntity
Overrides:
getAggregate in class TopiaEntityAbstract
Returns:
List
Throws:
TopiaException

getComposite

public List<TopiaEntity> getComposite()
                               throws TopiaException
getComposite :

Specified by:
getComposite in interface TopiaEntity
Overrides:
getComposite in class TopiaEntityAbstract
Returns:
List
Throws:
TopiaException

toString

public String toString()
toString :

Overrides:
toString in class Object
Returns:
String


Copyright © 2004-2011 CodeLutin. All Rights Reserved.