Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.security
Interface PersonDAO  view PersonDAO download PersonDAO.java

All Superinterfaces:
ru.gammalabs.ice.framework.DAO
All Known Implementing Classes:
PersonDAOOracle

public interface PersonDAO
extends ru.gammalabs.ice.framework.DAO


Method Summary
 void assignRole(long id, long roleId)
          Assign role to person
 void create(PersonModel model)
          Create person.
 java.util.List findAll()
          List of all persons
 PersonModel findByKey(java.lang.String key)
          Find person by key
 PersonModel findByLogin(java.lang.String login)
          Find person by login.
 PersonModel findByLoginAndPassword(java.lang.String login, java.lang.String password)
           
 java.util.List findByLoginSubstring(java.lang.String login)
           
 java.util.List findByLoginSubstringPermited(java.lang.String login, java.util.Set partitions)
          Поиск персон по подстроке логина, имеющих доступ на чтение к разделам, указанных в списке разделов
 java.util.List findByPartitionsList(java.util.Set partitionsIds)
          Получаем список персон, имеющих доступ на просмотр разделов из списка
 PersonModel findByPrimaryKey(long personId)
           
 java.util.List findByRolePrimaryKey(long roleId)
          Получаем список пользователей определенной роли
 PersonModel findByTrustedKey(java.lang.String key)
           
 java.util.List findSubscibers(long partitionId)
          Найти всех подписчиков.
 void remove(long id)
          Remove person with specified id.
 void removeRole(long id, long roleId)
          Remove role from person
 void update(PersonModel model)
          Update person information.
 
Methods inherited from interface ru.gammalabs.ice.framework.DAO
disconnect, setConnection
 

Method Detail

findByLoginAndPassword

public PersonModel findByLoginAndPassword(java.lang.String login,
                                          java.lang.String password)
                                   throws ru.gammalabs.ice.framework.ObjectNotFoundException

findByPrimaryKey

public PersonModel findByPrimaryKey(long personId)
                             throws ru.gammalabs.ice.framework.ObjectNotFoundException

findByLogin

public PersonModel findByLogin(java.lang.String login)
                        throws ru.gammalabs.ice.framework.ObjectNotFoundException
Find person by login.


findByLoginSubstring

public java.util.List findByLoginSubstring(java.lang.String login)

findByLoginSubstringPermited

public java.util.List findByLoginSubstringPermited(java.lang.String login,
                                                   java.util.Set partitions)
Поиск персон по подстроке логина, имеющих доступ на чтение к разделам, указанных в списке разделов


findByKey

public PersonModel findByKey(java.lang.String key)
                      throws ru.gammalabs.ice.framework.ObjectNotFoundException
Find person by key


findAll

public java.util.List findAll()
List of all persons


update

public void update(PersonModel model)
            throws DuplicateLoginException
Update person information.


create

public void create(PersonModel model)
            throws DuplicateLoginException
Create person.


remove

public void remove(long id)
Remove person with specified id.


assignRole

public void assignRole(long id,
                       long roleId)
Assign role to person


removeRole

public void removeRole(long id,
                       long roleId)
Remove role from person


findSubscibers

public java.util.List findSubscibers(long partitionId)
Найти всех подписчиков.


findByRolePrimaryKey

public java.util.List findByRolePrimaryKey(long roleId)
Получаем список пользователей определенной роли


findByPartitionsList

public java.util.List findByPartitionsList(java.util.Set partitionsIds)
Получаем список персон, имеющих доступ на просмотр разделов из списка


findByTrustedKey

public PersonModel findByTrustedKey(java.lang.String key)
                             throws ru.gammalabs.ice.framework.ObjectNotFoundException