|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Interface describing a snapshot of a collaboration room
There are two Interfaces describing a collaboration room: IRoom
and this one (IRoomInfo). The difference between both is that IRoom
represents the persisted room instance itself whereas IRoomInfo is a snapshot
of all properties of a room instance in memory. That means: If you call
set...() Methods on an instance of IRoom the new value is applied directly to
the room. If you call the same set...() Method on an instance of IRoomInfo
the new value is set only in memory and doesn't affect any room at all in the
first place.
You can obtain an instance of IRoomInfo in two ways:
getRoomInfo(). This
snapshot can be used to simply query or display values or also to modify some
of the properties using the set...() methods and then create a new room based
on this instance of IRoomInfo. This mechanism allows you to "copy"
collaboration rooms.
getRoomCreationInfo(). Such an
empty instance can be used to create a new room after calling all necessary
set...() Methods.
createRoom(IRoomInfo, boolean).
IRoom| Method Summary | |
boolean |
addRoomParameter(com.sap.ip.collaboration.room.api.template.IRoomParameterValue param)
Add a room parameter |
boolean |
addRoomParameter(java.lang.String paramName,
java.lang.String paramDesc,
java.lang.String paramValue,
boolean hidden)
Add a room parameter |
boolean |
addRoomParameters(com.sap.ip.collaboration.room.api.template.IRoomParameterValue[] col)
Add multiple room parameters |
boolean |
addUserToRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
Assign an additional room role to a specific user |
boolean |
addUserToRoles(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole[] roles)
Assign multiple additional room roles to a specific user |
boolean |
deleteAllRoomParameters()
Delete all room parameters |
RoomCreationValidationErrors[] |
getValidationErrors()
Get a list of errors ocurring in the consistency validation check. |
boolean |
removeAllUsers()
Remove all user from the collaboration room |
boolean |
removeUser(java.lang.String userId)
Remove a user from the collaboration room |
boolean |
removeUserFromAllRoles(java.lang.String userId)
Remove a user from all room roles. This call has the same effect than removing the user from the whole room using the method removeUser(String userId). |
boolean |
removeUserFromRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
Remove a user from a specific room role |
boolean |
setCategories(IRoomCategory[] newCategories)
Set the categories of the collaboration room You can create new instances of IRoomCategory using
the IRoomCategoryFactory which you will get
using the method IRooms.getRoomCategoryFactory(). |
boolean |
setDescription(java.lang.String newDescription)
Set the description of the room |
boolean |
setName(java.lang.String newName)
Set the name of the room |
boolean |
setOwnerId(java.lang.String newOwnerId)
Set the owner of the room |
boolean |
setPrivacy(com.sap.ip.collaboration.room.api.types.RoomPrivacyType newPrivacy)
Set the privacy type of the room |
boolean |
setTemplateName(java.lang.String newTemplateName)
Set the template name of the room |
boolean |
validate()
Validate all entered data. |
| Method Detail |
public boolean validate()
When creating a new collaboration room based on an instance of
IRoomInfo there are some consistency checks required. This method checks
for missing or inconsistent data in the fields of the instance. This check
is done by the system automatically when the createRoom(IRoomInfo, boolean) method
is called. And if the check fails the room is not created.
To avoid this situation the validate() method may be called manually prior to the room creation.
getValidationErrors() to get a List of the actual Errors that have ocurred
during the check.public RoomCreationValidationErrors[] getValidationErrors()
public boolean setName(java.lang.String newName)
newName - the new name for the roompublic boolean setDescription(java.lang.String newDescription)
newDescription - the new description for the roompublic boolean setTemplateName(java.lang.String newTemplateName)
newTemplateName - the name of the new template for the roompublic boolean setCategories(IRoomCategory[] newCategories)
You can create new instances of IRoomCategory using
the IRoomCategoryFactory which you will get
using the method IRooms.getRoomCategoryFactory().
newCategories - Array containing the new categories for the roompublic boolean setOwnerId(java.lang.String newOwnerId)
newOwnerId - the uniqueID of the new owner for the roompublic boolean setPrivacy(com.sap.ip.collaboration.room.api.types.RoomPrivacyType newPrivacy)
newPrivacyType - the new privacy type of the roompublic boolean deleteAllRoomParameters()
public boolean addRoomParameter(com.sap.ip.collaboration.room.api.template.IRoomParameterValue param)
param - the new parameter
public boolean addRoomParameter(java.lang.String paramName,
java.lang.String paramDesc,
java.lang.String paramValue,
boolean hidden)
paramName - the name of the new parameterparamDesc - the description of the new parameterparamValue - the value of the new parameterhidden - hidden flag for the new parameterpublic boolean addRoomParameters(com.sap.ip.collaboration.room.api.template.IRoomParameterValue[] col)
col - Array containing the new parameters
public boolean addUserToRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
userId - the uniqueID of the userrole - the new room role the user should be assigned to
public boolean addUserToRoles(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole[] roles)
userId - the uniqueID of the userroles - Array containing the new room roles the user should be
assigned to
public boolean removeUserFromRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
userId - the uniqueID of the userrole - the room role to be removed from the userpublic boolean removeUserFromAllRoles(java.lang.String userId)
removeUser(String userId).userId - the uniqueID of the user to be removedpublic boolean removeUser(java.lang.String userId)
userId - the uniqueID of the user to be removedpublic boolean removeAllUsers()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||