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:
java.io.Serializable, TopiaEntity, TaasPrincipal
Direct Known Subclasses:
TaasPrincipalImpl

public abstract class TaasPrincipalAbstract
extends TopiaEntityAbstract
implements TaasPrincipal

Implantation POJO pour l'entité TaasPrincipal.

See Also:
Serialized Form

Field Summary
 java.util.Collection<TaasAuthorization> authorizations
           
protected  java.lang.String 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
 
Constructor Summary
TaasPrincipalAbstract()
          Constructeur de TaasPrincipalAbstract par défaut.
 
Method Summary
 void accept(EntityVisitor visitor)
          Envoi via les methodes du visitor l'ensemble des champs de l'entity avec leur nom, type et valeur.
 void addAllAuthorizations(java.util.Collection<TaasAuthorization> values)
           
 void addAuthorizations(TaasAuthorization authorizations)
           
 void clearAuthorizations()
          Vide la Collection de authorizations.
 void delete()
           
 java.util.List<TopiaEntity> getAggregate()
           
 java.util.Collection<TaasAuthorization> getAuthorizations()
           
 TaasAuthorization getAuthorizationsByTopiaId(java.lang.String topiaId)
          Recupère l'attribut authorizations à partir de son topiaId.
 java.util.List<TopiaEntity> getComposite()
           
 java.lang.String getName()
           
 boolean isAuthorizationsEmpty()
           
 void removeAuthorizations(TaasAuthorization value)
           
 void setAuthorizations(java.util.Collection<TaasAuthorization> values)
           
 void setName(java.lang.String value)
           
 int sizeAuthorizations()
           
 java.lang.String toString()
           
 void update()
           
 
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, hashCode, postCreate, 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, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Field Detail

name

protected java.lang.String name

authorizations

public java.util.Collection<TaasAuthorization> authorizations
Constructor Detail

TaasPrincipalAbstract

public TaasPrincipalAbstract()
Constructeur de TaasPrincipalAbstract par défaut.

Method Detail

update

public void update()
            throws TopiaException
Specified by:
update in interface TopiaEntity
Overrides:
update in class TopiaEntityAbstract
Throws:
TopiaException

delete

public void delete()
            throws TopiaException
Specified by:
delete in interface TopiaEntity
Overrides:
delete in class TopiaEntityAbstract
Throws:
TopiaException

accept

public void accept(EntityVisitor visitor)
            throws TopiaException
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 - if any pb while visit

getAggregate

public java.util.List<TopiaEntity> getAggregate()
                                         throws TopiaException
Specified by:
getAggregate in interface TopiaEntity
Overrides:
getAggregate in class TopiaEntityAbstract
Throws:
TopiaException

getComposite

public java.util.List<TopiaEntity> getComposite()
                                         throws TopiaException
Specified by:
getComposite in interface TopiaEntity
Overrides:
getComposite in class TopiaEntityAbstract
Throws:
TopiaException

setName

public void setName(java.lang.String value)
Specified by:
setName in interface TaasPrincipal
Parameters:
value - La valeur de l'attribut name à positionner.

getName

public java.lang.String getName()
Specified by:
getName in interface TaasPrincipal
Returns:
La valeur de l'attribut name.

addAuthorizations

public void addAuthorizations(TaasAuthorization authorizations)
Specified by:
addAuthorizations in interface TaasPrincipal
Parameters:
authorizations - L'instance de authorizations à ajouter.

addAllAuthorizations

public void addAllAuthorizations(java.util.Collection<TaasAuthorization> values)
Specified by:
addAllAuthorizations in interface TaasPrincipal
Parameters:
values - Les instances de authorizations à ajouter.

getAuthorizationsByTopiaId

public TaasAuthorization getAuthorizationsByTopiaId(java.lang.String topiaId)
Description copied from interface: TaasPrincipal
Recupère l'attribut authorizations à partir de son topiaId.

Specified by:
getAuthorizationsByTopiaId in interface TaasPrincipal
Parameters:
topiaId - le topia id de l'entité recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

setAuthorizations

public void setAuthorizations(java.util.Collection<TaasAuthorization> values)
Specified by:
setAuthorizations in interface TaasPrincipal
Parameters:
values - La Collection de authorizations à positionner.

removeAuthorizations

public void removeAuthorizations(TaasAuthorization value)
Specified by:
removeAuthorizations in interface TaasPrincipal
Parameters:
value - L'instance de authorizations à retirer.

clearAuthorizations

public void clearAuthorizations()
Description copied from interface: TaasPrincipal
Vide la Collection de authorizations.

Specified by:
clearAuthorizations in interface TaasPrincipal

getAuthorizations

public java.util.Collection<TaasAuthorization> getAuthorizations()
Specified by:
getAuthorizations in interface TaasPrincipal
Returns:
La Liste de authorizations.

sizeAuthorizations

public int sizeAuthorizations()
Specified by:
sizeAuthorizations in interface TaasPrincipal
Returns:
Le nombre d'éléments de la collection authorizations.

isAuthorizationsEmpty

public boolean isAuthorizationsEmpty()
Specified by:
isAuthorizationsEmpty in interface TaasPrincipal
Returns:
true si la collection authorizations est vide.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2009 CodeLutin. All Rights Reserved.