com.sap.ip.collaboration.room.api.relman

Interface IRelationManager


public interface IRelationManager

Interface describing relation manager used to relate and unrelate rooms via their room ids along relation types defined in the configuration framework.

See Also:
com.sap.ip.collaboration.room.api.relman.RelationManager

Method Summary
 void deleteRoomRelations(String roomId)
          Delete all room relations to and from the given room.
 void deleteRoomRelations(String roomId, String associationId)
          Delete all room relations using the given relation type to and from the given room.
 List getAllAssociationIds()
          Get all relation type ids as an unmodifiable list sorted alphabetically by the id.
 String getAssociationLabel(String associationId, Locale locale)
          Get localized relation type name by relation type id.
 Map getRelatedRoomsFromRoom(String sourceRoomId)
          Get all related rooms from the given room.
 List getRelatedRoomsFromRoom(String sourceRoomId, String associationId)
          Get all related rooms from the given room using the given relation type.
 Map getRelatedRoomsToRoom(String targetRoomId)
          Get all related rooms to the given room.
 List getRelatedRoomsToRoom(String targetRoomId, String associationId)
          Get all related rooms to the given room using the given relation type.
 void orderRoomRelation(String sourceRoomId, String targetRoomId, String associationId, IOrderedRelationPosition orderedRelationPosition)
          Order room relation, i.e. place the relation from source room to target room using the given relation type according to the given order position.
 void relateRoom(String sourceRoomId, String targetRoomId, String associationId)
          Relate source room to target room using the given relation type.
 void unrelateRoom(String sourceRoomId, String targetRoomId, String associationId)
          Unrelate source room from target room using the given relation type.
 

Method Detail

getAllAssociationIds

public List getAllAssociationIds()
Get all relation type ids as an unmodifiable list sorted alphabetically by the id.

Returns:
all relation type ids as an unmodifiable list sorted alphabetically by the id

getAssociationLabel

public String getAssociationLabel(String associationId,
                                  Locale locale)
Get localized relation type name by relation type id.

Parameters:
associationId - relation type id
locale - locale
Returns:
localized relation type name

relateRoom

public void relateRoom(String sourceRoomId,
                       String targetRoomId,
                       String associationId)
                throws ResourceException
Relate source room to target room using the given relation type.

Parameters:
sourceRoomId - source room id
targetRoomId - target room id
associationId - relation type id
Throws:
ResourceException - Exception raised in failure situation

unrelateRoom

public void unrelateRoom(String sourceRoomId,
                         String targetRoomId,
                         String associationId)
                  throws ResourceException
Unrelate source room from target room using the given relation type.

Parameters:
sourceRoomId - source room id
targetRoomId - target room id
associationId - relation type id
Throws:
ResourceException - Exception raised in failure situation

deleteRoomRelations

public void deleteRoomRelations(String roomId)
                         throws ResourceException
Delete all room relations to and from the given room.

Parameters:
roomId - room id
Throws:
ResourceException - Exception raised in failure situation

deleteRoomRelations

public void deleteRoomRelations(String roomId,
                                String associationId)
                         throws ResourceException
Delete all room relations using the given relation type to and from the given room.

Parameters:
roomId - room id
associationId - relation type id
Throws:
ResourceException - Exception raised in failure situation

orderRoomRelation

public void orderRoomRelation(String sourceRoomId,
                              String targetRoomId,
                              String associationId,
                              IOrderedRelationPosition orderedRelationPosition)
                       throws ResourceException
Order room relation, i.e. place the relation from source room to target room using the given relation type according to the given order position.

Parameters:
sourceRoomId - source room id
targetRoomId - target room id
associationId - relation type id
orderedRelationPosition - order position
Throws:
ResourceException - Exception raised in failure situation
See Also:
IOrderedRelationPosition

getRelatedRoomsFromRoom

public Map getRelatedRoomsFromRoom(String sourceRoomId)
                            throws ResourceException
Get all related rooms from the given room.

Parameters:
sourceRoomId - source room id
Returns:
map indexed by relation type ids of lists of related rooms sorted by its ordering position
Throws:
ResourceException - Exception raised in failure situation

getRelatedRoomsFromRoom

public List getRelatedRoomsFromRoom(String sourceRoomId,
                                    String associationId)
                             throws ResourceException
Get all related rooms from the given room using the given relation type.

Parameters:
sourceRoomId - source room id
associationId - relation type id
Returns:
list of related rooms sorted by its ordering position
Throws:
ResourceException - Exception raised in failure situation

getRelatedRoomsToRoom

public Map getRelatedRoomsToRoom(String targetRoomId)
                          throws ResourceException
Get all related rooms to the given room.

Parameters:
targetRoomId - target room id
Returns:
map indexed by relation type ids of lists of related rooms sorted by its ordering position
Throws:
ResourceException - Exception raised in failure situation

getRelatedRoomsToRoom

public List getRelatedRoomsToRoom(String targetRoomId,
                                  String associationId)
                           throws ResourceException
Get all related rooms to the given room using the given relation type.

Parameters:
targetRoomId - target room id
associationId - relation type id
Returns:
list of related rooms sorted by its ordering position
Throws:
ResourceException - Exception raised in failure situation


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.