lumis.portal.group
Class GroupDaoJdbc

Package class diagram package GroupDaoJdbc
java.lang.Object
  extended by lumis.portal.group.GroupDaoJdbc
All Implemented Interfaces:
IGroupDao

public class GroupDaoJdbc
extends Object
implements IGroupDao

Group DAO jdbc-based implementation.

Since:
4.0.0

Field Summary
 
Fields inherited from interface lumis.portal.group.IGroupDao
TYPE_FRAMEWORK_GROUP
 
Constructor Summary
GroupDaoJdbc()
           
 
Method Summary
 void add(GroupConfig groupConfig, ITransaction transaction)
          Add the group.
 void addMember(String groupId, String memberId, ITransaction transaction)
          Add the member in the group.
 void delete(String groupId, ITransaction transaction)
          Delete the group.
 void deleteAllMembers(String groupId, ITransaction transaction)
          Delete all members of the group.
 void deleteMember(String groupId, String memberId, ITransaction transaction)
          Delete the member of the group.
 GroupConfig get(String groupId, ITransaction transaction)
          Get the group.
 Collection<String> getByChannelId(String channelId, ITransaction transaction)
          Get the local groups ids for the specified channel
 Collection<String> getByOrigin(String origin, ITransaction transaction)
          Get the local groups ids for the specified origin
 Collection<String> getIds(ITransaction transaction)
          Get all group ids.
 Collection<String> getMemberGroups(String memberId, ITransaction transaction)
          Get the groups of the member.
 Collection<String> getMembers(String groupId, int filterType, ITransaction transaction)
          Get the members of the group.
 boolean isMember(String memberId, String groupId, ITransaction transaction)
          Verify if given id is a member of the group.
 void update(GroupConfig groupConfig, ITransaction transaction)
          Update the group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupDaoJdbc

public GroupDaoJdbc()
Method Detail

get

public GroupConfig get(String groupId,
                       ITransaction transaction)
                throws DaoException,
                       PortalException
Description copied from interface: IGroupDao
Get the group.

Specified by:
get in interface IGroupDao
Returns:
Throws:
DaoException
PortalException

add

public void add(GroupConfig groupConfig,
                ITransaction transaction)
         throws DaoException,
                PortalException
Description copied from interface: IGroupDao
Add the group.

Specified by:
add in interface IGroupDao
Throws:
DaoException
PortalException

update

public void update(GroupConfig groupConfig,
                   ITransaction transaction)
            throws DaoException,
                   PortalException
Description copied from interface: IGroupDao
Update the group.

Specified by:
update in interface IGroupDao
Throws:
DaoException
PortalException

delete

public void delete(String groupId,
                   ITransaction transaction)
            throws DaoException,
                   PortalException
Description copied from interface: IGroupDao
Delete the group.

Specified by:
delete in interface IGroupDao
Throws:
DaoException
PortalException

getIds

public Collection<String> getIds(ITransaction transaction)
                          throws DaoException,
                                 PortalException
Description copied from interface: IGroupDao
Get all group ids.

Specified by:
getIds in interface IGroupDao
Throws:
DaoException
PortalException

addMember

public void addMember(String groupId,
                      String memberId,
                      ITransaction transaction)
               throws DaoException,
                      PortalException
Description copied from interface: IGroupDao
Add the member in the group.

Specified by:
addMember in interface IGroupDao
Throws:
DaoException
PortalException

deleteMember

public void deleteMember(String groupId,
                         String memberId,
                         ITransaction transaction)
                  throws DaoException,
                         PortalException
Description copied from interface: IGroupDao
Delete the member of the group.

Specified by:
deleteMember in interface IGroupDao
Throws:
DaoException
PortalException

deleteAllMembers

public void deleteAllMembers(String groupId,
                             ITransaction transaction)
                      throws DaoException,
                             PortalException
Description copied from interface: IGroupDao
Delete all members of the group.

Specified by:
deleteAllMembers in interface IGroupDao
Throws:
DaoException
PortalException

isMember

public boolean isMember(String memberId,
                        String groupId,
                        ITransaction transaction)
                 throws DaoException,
                        PortalException
Description copied from interface: IGroupDao
Verify if given id is a member of the group.

Specified by:
isMember in interface IGroupDao
Returns:
Throws:
DaoException
PortalException

getMembers

public Collection<String> getMembers(String groupId,
                                     int filterType,
                                     ITransaction transaction)
                              throws DaoException,
                                     PortalException
Description copied from interface: IGroupDao
Get the members of the group.

Specified by:
getMembers in interface IGroupDao
Returns:
Throws:
DaoException
PortalException

getMemberGroups

public Collection<String> getMemberGroups(String memberId,
                                          ITransaction transaction)
                                   throws DaoException,
                                          PortalException
Description copied from interface: IGroupDao
Get the groups of the member.

Specified by:
getMemberGroups in interface IGroupDao
Returns:
Throws:
DaoException
PortalException

getByChannelId

public Collection<String> getByChannelId(String channelId,
                                         ITransaction transaction)
                                  throws DaoException,
                                         PortalException
Description copied from interface: IGroupDao
Get the local groups ids for the specified channel

Specified by:
getByChannelId in interface IGroupDao
Returns:
Throws:
DaoException
PortalException

getByOrigin

public Collection<String> getByOrigin(String origin,
                                      ITransaction transaction)
                               throws DaoException,
                                      PortalException
Description copied from interface: IGroupDao
Get the local groups ids for the specified origin

Specified by:
getByOrigin in interface IGroupDao
Returns:
Throws:
DaoException
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.