org.nuiton.topia.security.entities.authorization
Class TopiaEntityAuthorizationDAOAbstract<E extends TopiaEntityAuthorization>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.nuiton.topia.security.entities.authorization.TopiaAuthorizationDAOAbstract<E>
          extended by org.nuiton.topia.security.entities.authorization.TopiaAuthorizationDAOImpl<E>
              extended by org.nuiton.topia.security.entities.authorization.TopiaEntityAuthorizationDAOAbstract<E>
All Implemented Interfaces:
TopiaDAO<E>
Direct Known Subclasses:
TopiaEntityAuthorizationDAOImpl

public abstract class TopiaEntityAuthorizationDAOAbstract<E extends TopiaEntityAuthorization>
extends TopiaAuthorizationDAOImpl<E>
implements TopiaDAO<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
TopiaEntityAuthorizationDAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 List<E> findAllByActions(int v)
          findAllByActions : Retourne les éléments ayant comme valeur pour l'attribut actions le paramètre.
 List<E> findAllByExpression(String v)
          findAllByExpression : Retourne les éléments ayant comme valeur pour l'attribut expression le paramètre.
 List<E> findAllByPrincipals(Set v)
          findAllByPrincipals : Retourne les éléments ayant comme valeur pour l'attribut principals le paramètre.
 Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> findAllUsages(E entity)
          findAllUsages :
 E findByActions(int v)
          findByActions : Retourne le premier élément trouvé ayant comme valeur pour l'attribut actions le paramètre.
 E findByExpression(String v)
          findByExpression : Retourne le premier élément trouvé ayant comme valeur pour l'attribut expression le paramètre.
 E findByPrincipals(Set v)
          findByPrincipals : Retourne le premier élément trouvé ayant comme valeur pour l'attribut principals le paramètre.
<U extends TopiaEntity>
List<U>
findUsages(Class<U> type, E entity)
          findUsages :
 Class<E> getEntityClass()
          getEntityClass :
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
addTopiaEntityListener, addTopiaEntityVetoable, count, countByQuery, create, create, create, createQuery, createQuery, existByProperties, existByQuery, existByTopiaId, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, getContext, getId, getId, getRequestPermission, init, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, size, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaDAO
addTopiaEntityListener, addTopiaEntityVetoable, count, countByQuery, create, create, create, createQuery, createQuery, existByProperties, existByQuery, existByTopiaId, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, getContext, getRequestPermission, init, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, size, update
 

Constructor Detail

TopiaEntityAuthorizationDAOAbstract

public TopiaEntityAuthorizationDAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
getEntityClass :

Specified by:
getEntityClass in interface TopiaDAO<E extends TopiaEntityAuthorization>
Overrides:
getEntityClass in class TopiaAuthorizationDAOAbstract<E extends TopiaEntityAuthorization>
Returns:
Class

delete

public void delete(E entity)
            throws TopiaException
delete :

Specified by:
delete in interface TopiaDAO<E extends TopiaEntityAuthorization>
Overrides:
delete in class TopiaAuthorizationDAOAbstract<E extends TopiaEntityAuthorization>
Parameters:
entity -
Throws:
TopiaException

findByExpression

public E findByExpression(String v)
                                                    throws TopiaException
findByExpression : Retourne le premier élément trouvé ayant comme valeur pour l'attribut expression le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByExpression

public List<E> findAllByExpression(String v)
                                                             throws TopiaException
findAllByExpression : Retourne les éléments ayant comme valeur pour l'attribut expression le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByActions

public E findByActions(int v)
                                                 throws TopiaException
findByActions : Retourne le premier élément trouvé ayant comme valeur pour l'attribut actions le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByActions

public List<E> findAllByActions(int v)
                                                          throws TopiaException
findAllByActions : Retourne les éléments ayant comme valeur pour l'attribut actions le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByPrincipals

public E findByPrincipals(Set v)
                                                    throws TopiaException
findByPrincipals : Retourne le premier élément trouvé ayant comme valeur pour l'attribut principals le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByPrincipals

public List<E> findAllByPrincipals(Set v)
                                                             throws TopiaException
findAllByPrincipals : Retourne les éléments ayant comme valeur pour l'attribut principals le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findUsages

public <U extends TopiaEntity> List<U> findUsages(Class<U> type,
                                                  E entity)
                                       throws TopiaException
findUsages :

Specified by:
findUsages in interface TopiaDAO<E extends TopiaEntityAuthorization>
Overrides:
findUsages in class TopiaAuthorizationDAOAbstract<E extends TopiaEntityAuthorization>
Parameters:
type -
entity -
Returns:
List
Throws:
TopiaException

findAllUsages

public Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> findAllUsages(E entity)
                                                                            throws TopiaException
findAllUsages :

Specified by:
findAllUsages in interface TopiaDAO<E extends TopiaEntityAuthorization>
Overrides:
findAllUsages in class TopiaAuthorizationDAOAbstract<E extends TopiaEntityAuthorization>
Parameters:
entity -
Returns:
Map, List>
Throws:
TopiaException


Copyright © 2004-2011 CodeLutin. All Rights Reserved.