fr.paris.lutece.portal.business.workgroup
Interface IAdminWorkgroupDAO

All Known Implementing Classes:
AdminWorkgroupDAO

public interface IAdminWorkgroupDAO

Interface for AdminWorkgroup DAO


Method Summary
 boolean checkExistWorkgroup(java.lang.String strWorkgroupKey)
          Check that the given key points to an existing workgroup
 void delete(java.lang.String strWorkgroupKey)
          Delete a record from the table
 ReferenceList getUserWorkgroups(int nIdUser)
          Returns the list of all workgroups the user is member
 void insert(AdminWorkgroup workgroup)
          Insert a new record in the table.
 boolean isUserInWorkgroup(int nIdUser, java.lang.String strWorkgroup)
          Is the user member of the workgroup
 AdminWorkgroup load(java.lang.String strWorkgroupKey)
          Load the data of AdminWorkgroup from the table
 java.util.Collection<AdminWorkgroup> selectWorkgroupList()
          Load the list of workgroups
 void store(java.lang.String strWorkgroupKey, AdminWorkgroup workgroup)
          Update the record identified by the given workgroup key with the given workgroup in the table
 

Method Detail

checkExistWorkgroup

boolean checkExistWorkgroup(java.lang.String strWorkgroupKey)
Check that the given key points to an existing workgroup

Parameters:
strNewWorkgroupKey -
Returns:
true if the workgroup exists, false otherwise

delete

void delete(java.lang.String strWorkgroupKey)
Delete a record from the table

Parameters:
workgroup - The AdminWorkgroup object

insert

void insert(AdminWorkgroup workgroup)
Insert a new record in the table.

Parameters:
workgroup - The workgroup object

load

AdminWorkgroup load(java.lang.String strWorkgroupKey)
Load the data of AdminWorkgroup from the table

Parameters:
nWorkgroupId - The identifier of AdminWorkgroup
Returns:
the instance of the AdminWorkgroup

selectWorkgroupList

java.util.Collection<AdminWorkgroup> selectWorkgroupList()
Load the list of workgroups

Returns:
The Collection of the Workgroups

store

void store(java.lang.String strWorkgroupKey,
           AdminWorkgroup workgroup)
Update the record identified by the given workgroup key with the given workgroup in the table

Parameters:
strWorkgroupKey - the key of the workgroup to modify
workgroup - The reference of workgroup to be the new one

isUserInWorkgroup

boolean isUserInWorkgroup(int nIdUser,
                          java.lang.String strWorkgroup)
Is the user member of the workgroup

Parameters:
nIdUser - The user Id
strWorkgroup - The workgroup key

getUserWorkgroups

ReferenceList getUserWorkgroups(int nIdUser)
Returns the list of all workgroups the user is member

Parameters:
nIdUser - The user Id


Copyright © 2007 Mairie de Paris. All Rights Reserved.