org.janux.bus.security
Interface AccountDaoGeneric<T extends Account>

All Superinterfaces:
GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>, GenericDaoReadOnlyWithFacets<T,Integer,org.janux.bus.search.SearchCriteria,AccountFacet>, GenericDaoWrite<T,Integer>

public interface AccountDaoGeneric<T extends Account>
extends GenericDaoWrite<T,Integer>, GenericDaoReadOnlyWithFacets<T,Integer,org.janux.bus.search.SearchCriteria,AccountFacet>

Used to create, save, retrieve, update and delete Account objects from persistent storage

Author:
Philippe Paravicini

Method Summary
 Account findByName(String name)
          Returns an Account by names, or null if the Account is not found.
 org.jasypt.digest.StringDigester getPasswordEncryptor()
           
 SortedSet<Account> loadAll(boolean initializeAccounts)
          Loads all Accounts defined in the system
 Account loadByName(String name)
          loads an Account object, or throws exception if Account with that name is not found
 Account newAccount()
          returns a new Account instance
 void setPasswordEncryptor(org.jasypt.digest.StringDigester passwordEncryptor)
           
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoWrite
attachClean, clear, delete, evict, flush, merge, refresh, save, saveOrUpdate, update
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnlyWithFacets
getDefaultFacetSetOnLoad, initialize, initialize, load, setDefaultFacetSetOnLoad
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnly
count, findByCriteria, load
 

Method Detail

findByName

Account findByName(String name)
Returns an Account by names, or null if the Account is not found.

Parameters:
name - the Account name

loadByName

Account loadByName(String name)
                   throws EntityNotFoundException
loads an Account object, or throws exception if Account with that name is not found

Parameters:
name - a name that uniquely identifies this Account
Throws:
EntityNotFoundException - if a Account object with that name is not found

loadAll

SortedSet<Account> loadAll(boolean initializeAccounts)
Loads all Accounts defined in the system


newAccount

Account newAccount()
returns a new Account instance


getPasswordEncryptor

org.jasypt.digest.StringDigester getPasswordEncryptor()

setPasswordEncryptor

void setPasswordEncryptor(org.jasypt.digest.StringDigester passwordEncryptor)


Copyright © 2005-2013 Janux. All Rights Reserved.