com.openexchange.admin.storage.sqlStorage
Class OXGroupSQLStorage

java.lang.Object
  extended by com.openexchange.admin.storage.interfaces.OXGroupStorageInterface
      extended by com.openexchange.admin.storage.sqlStorage.OXGroupSQLStorage
Direct Known Subclasses:
OXGroupMySQLStorage

public abstract class OXGroupSQLStorage
extends OXGroupStorageInterface

Author:
d7

Constructor Summary
OXGroupSQLStorage()
           
 
Method Summary
abstract  void addMember(Context ctx, int grp_id, User[] members)
          Adds a new member to the group.
abstract  void change(Context ctx, Group grp)
          Edit group data
abstract  int create(Context ctx, Group grp)
          Create new group in given context
abstract  void deleteAllRecoveryData(Context ctx, Connection con)
          Deletes all recoevery data for context ctx
abstract  void deleteRecoveryData(Context ctx, int group_id, Connection con)
          Removes entry in del_groups for group group_id and context ctx
abstract  User[] getMembers(Context ctx, int grp_id)
          Get all members of group grp_id in context ctx
abstract  Group[] list(Context ctx, String pattern)
          List all groups mathcing pattern in context ctx
abstract  void removeMember(Context ctx, int grp_id, User[] members)
          Removes member from group
 
Methods inherited from class com.openexchange.admin.storage.interfaces.OXGroupStorageInterface
delete, get, getGroupsForUser, getInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OXGroupSQLStorage

public OXGroupSQLStorage()
Method Detail

addMember

public abstract void addMember(Context ctx,
                               int grp_id,
                               User[] members)
                        throws StorageException
Description copied from class: OXGroupStorageInterface
Adds a new member to the group.

Specified by:
addMember in class OXGroupStorageInterface
Throws:
StorageException
See Also:
OXGroupStorageInterface.addMember(com.openexchange.admin.rmi.dataobjects.Context, int, User[])

change

public abstract void change(Context ctx,
                            Group grp)
                     throws StorageException
Description copied from class: OXGroupStorageInterface
Edit group data

Specified by:
change in class OXGroupStorageInterface
Throws:
StorageException
See Also:
OXGroupStorageInterface.change(com.openexchange.admin.rmi.dataobjects.Context, com.openexchange.admin.rmi.dataobjects.Group)

create

public abstract int create(Context ctx,
                           Group grp)
                    throws StorageException
Description copied from class: OXGroupStorageInterface
Create new group in given context

Specified by:
create in class OXGroupStorageInterface
Returns:
int with the id of the created group
Throws:
StorageException
See Also:
OXGroupStorageInterface.create(com.openexchange.admin.rmi.dataobjects.Context, com.openexchange.admin.rmi.dataobjects.Group)

getMembers

public abstract User[] getMembers(Context ctx,
                                  int grp_id)
                           throws StorageException
Description copied from class: OXGroupStorageInterface
Get all members of group grp_id in context ctx

Specified by:
getMembers in class OXGroupStorageInterface
Throws:
StorageException
See Also:
OXGroupStorageInterface.getMembers(com.openexchange.admin.rmi.dataobjects.Context, int)

list

public abstract Group[] list(Context ctx,
                             String pattern)
                      throws StorageException
Description copied from class: OXGroupStorageInterface
List all groups mathcing pattern in context ctx

Specified by:
list in class OXGroupStorageInterface
Throws:
StorageException
See Also:
OXGroupStorageInterface.list(com.openexchange.admin.rmi.dataobjects.Context, java.lang.String)

removeMember

public abstract void removeMember(Context ctx,
                                  int grp_id,
                                  User[] members)
                           throws StorageException
Description copied from class: OXGroupStorageInterface
Removes member from group

Specified by:
removeMember in class OXGroupStorageInterface
Throws:
StorageException
See Also:
OXGroupStorageInterface.removeMember(com.openexchange.admin.rmi.dataobjects.Context, int, User[])

deleteRecoveryData

public abstract void deleteRecoveryData(Context ctx,
                                        int group_id,
                                        Connection con)
                                 throws StorageException
Description copied from class: OXGroupStorageInterface
Removes entry in del_groups for group group_id and context ctx

Specified by:
deleteRecoveryData in class OXGroupStorageInterface
Throws:
StorageException
See Also:
OXGroupStorageInterface.deleteRecoveryData(com.openexchange.admin.rmi.dataobjects.Context, int, java.sql.Connection)

deleteAllRecoveryData

public abstract void deleteAllRecoveryData(Context ctx,
                                           Connection con)
                                    throws StorageException
Description copied from class: OXGroupStorageInterface
Deletes all recoevery data for context ctx

Specified by:
deleteAllRecoveryData in class OXGroupStorageInterface
Throws:
StorageException
See Also:
OXGroupStorageInterface.deleteAllRecoveryData(com.openexchange.admin.rmi.dataobjects.Context, java.sql.Connection)