org.olat.instantMessaging.syncservice
Class RemoteGroupCreationOverXMPP

java.lang.Object
  extended by org.olat.instantMessaging.syncservice.RemoteGroupCreationOverXMPP
All Implemented Interfaces:
InstantMessagingGroupSynchronisation

public class RemoteGroupCreationOverXMPP
extends java.lang.Object
implements InstantMessagingGroupSynchronisation

Description:
creates groups on the remote IM server

Initial Date: 31.07.2008

Author:
guido

Constructor Summary
RemoteGroupCreationOverXMPP()
           
 
Method Summary
 boolean addUsersToSharedGroup(java.lang.String groupId, java.util.List<java.lang.String> users)
           
 boolean addUserToSharedGroup(java.lang.String groupId, java.lang.String username)
           
 boolean createSharedGroup(java.lang.String groupId, java.lang.String displayName)
          creates an empty shared group
 boolean createSharedGroup(java.lang.String groupId, java.lang.String displayName, java.util.List<java.lang.String> initialMembers)
          Creates a shared buddy group where all members see each other on their rosters
 boolean deleteSharedGroup(java.lang.String groupId)
           
 boolean removeUserFromSharedGroup(java.lang.String groupId, java.lang.String username)
           
 boolean removeUsersFromSharedGroup(java.lang.String groupId, java.lang.String[] users)
           
 boolean renameSharedGroup(java.lang.String groupId, java.lang.String displayName)
          Rename shared buddy group on the IM server
 void setConnection(AdminUserConnection adminUser)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteGroupCreationOverXMPP

public RemoteGroupCreationOverXMPP()
Method Detail

setConnection

public void setConnection(AdminUserConnection adminUser)

addUserToSharedGroup

public boolean addUserToSharedGroup(java.lang.String groupId,
                                    java.lang.String username)
Specified by:
addUserToSharedGroup in interface InstantMessagingGroupSynchronisation
See Also:
org.olat.instantMessaging.InstantMessagingGroupSynchronisation#addUserToSharedGroup(java.lang.String, org.olat.core.id.Identity)

addUsersToSharedGroup

public boolean addUsersToSharedGroup(java.lang.String groupId,
                                     java.util.List<java.lang.String> users)
Specified by:
addUsersToSharedGroup in interface InstantMessagingGroupSynchronisation
See Also:
org.olat.instantMessaging.InstantMessagingGroupSynchronisation#addUsersToSharedGroup(java.lang.String, java.util.List)

createSharedGroup

public boolean createSharedGroup(java.lang.String groupId,
                                 java.lang.String displayName,
                                 java.util.List<java.lang.String> initialMembers)
Description copied from interface: InstantMessagingGroupSynchronisation
Creates a shared buddy group where all members see each other on their rosters

Specified by:
createSharedGroup in interface InstantMessagingGroupSynchronisation
Parameters:
groupId - olat ressource id
displayName - name shown in the roster
initialMembers - array with olat usernames
See Also:
org.olat.instantMessaging.InstantMessagingGroupSynchronisation#createSharedGroup(java.lang.String, java.lang.String, java.util.List)

createSharedGroup

public boolean createSharedGroup(java.lang.String groupId,
                                 java.lang.String displayName)
Description copied from interface: InstantMessagingGroupSynchronisation
creates an empty shared group

Specified by:
createSharedGroup in interface InstantMessagingGroupSynchronisation

deleteSharedGroup

public boolean deleteSharedGroup(java.lang.String groupId)
Specified by:
deleteSharedGroup in interface InstantMessagingGroupSynchronisation
See Also:
org.olat.instantMessaging.InstantMessagingGroupSynchronisation#deleteSharedGroup(java.lang.String)

removeUserFromSharedGroup

public boolean removeUserFromSharedGroup(java.lang.String groupId,
                                         java.lang.String username)
Specified by:
removeUserFromSharedGroup in interface InstantMessagingGroupSynchronisation
See Also:
org.olat.instantMessaging.InstantMessagingGroupSynchronisation#removeUserFromSharedGroup(java.lang.String, java.lang.String)

removeUsersFromSharedGroup

public boolean removeUsersFromSharedGroup(java.lang.String groupId,
                                          java.lang.String[] users)
Specified by:
removeUsersFromSharedGroup in interface InstantMessagingGroupSynchronisation
See Also:
org.olat.instantMessaging.InstantMessagingGroupSynchronisation#removeUsersFromSharedGroup(java.lang.String, java.lang.String[])

renameSharedGroup

public boolean renameSharedGroup(java.lang.String groupId,
                                 java.lang.String displayName)
Description copied from interface: InstantMessagingGroupSynchronisation
Rename shared buddy group on the IM server

Specified by:
renameSharedGroup in interface InstantMessagingGroupSynchronisation
See Also:
org.olat.instantMessaging.InstantMessagingGroupSynchronisation#renameSharedGroup(java.lang.String, java.lang.String)