public interface IRoomInfo extends IRoomInfoReader
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| Modifier and Type | Method and Description |
|---|---|
boolean |
addGroupUsersToRole(IGroup group,
IRoomRole role,
boolean childMembers)
Assign all users who are member of a given group to a specific room role.
|
boolean |
addGroupUsersToRoles(IGroup group,
IRoomRole[] roles,
boolean childMembers)
Assign all users who are member of a given group to a a set of room roles.
|
boolean |
addPrincipalRoles(IRoomPrincipals refPrincipals)
Copy all user-role assignments and all principalSet-role assignments
from an IRoomPrincipals object to this object.
|
boolean |
addPrincipalSetToRole(String principalSetId,
IRoomRole role)
Assign a given principalSet to a specific room role.
|
boolean |
addPrincipalSetToRoles(String principalSetId,
IRoomRole[] roles)
Assign a principalSet to a a set of room roles.
|
boolean |
addRoomParameter(IRoomParameterValue param)
Add a room parameter
|
boolean |
addRoomParameter(String paramName,
String paramDesc,
String paramValue,
boolean hidden)
Add a room parameter
|
boolean |
addRoomParameters(IRoomParameterValue[] col)
Add multiple room parameters
|
boolean |
addUserRoles(IRoomUsers refUsers)
Copy all user-role assignments from an IRoomUsers object
to this object.
|
boolean |
addUserToRole(String userId,
IRoomRole role)
Assign an additional room role to a specific user
|
boolean |
addUserToRoles(String userId,
IRoomRole[] roles)
Assign multiple additional room roles to a specific user
|
boolean |
deleteAllRoomParameters()
Delete all room parameters
|
RoomCreationValidationErrors[] |
getValidationErrors()
Get a list of errors occurring in the consistency validation check.
|
boolean |
removeAllPrincipalSets()
Remove all principalSets from the collaboration room
|
boolean |
removeAllUsers()
Remove all user from the collaboration room
|
boolean |
removePrincipalSet(String principalSetId)
Remove a principalSet from the collaboration room
|
boolean |
removePrincipalSetFromRole(String principalSetId,
IRoomRole role)
Remove a principalSet from a specific room role
|
boolean |
removeUser(String userId)
Remove a user from the collaboration room
|
boolean |
removeUserFromAllRoles(String userId)
Remove a user from all room roles.
|
boolean |
removeUserFromRole(String userId,
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(String newDescription)
Set the description of the room
|
boolean |
setName(String newName)
Set the name of the room
|
boolean |
setOwnerId(String newOwnerId)
Set the owner of the room
|
boolean |
setPrivacy(RoomPrivacyType newPrivacy)
Set the privacy type of the room
|
boolean |
setTemplateName(String newTemplateName)
Set the template name of the room
|
boolean |
validate()
Validate all entered data.
|
getAdminRoleName, getAllRoomParameterNames, getAllRoomParameters, getAllRoomPrincipalSetIds, getAllRoomUserIds, getCategories, getDescription, getId, getInitialRoleName, getName, getOwnerId, getPrincipalSetRoles, getPrivacy, getRoomGroups, getRoomParameter, getRoomPrincipals, getRoomUsers, getStructureRid, getTemplateDescription, getTemplateName, getUserRoles, hasPublicRole, isOIFBasedboolean 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.RoomCreationValidationErrors[] getValidationErrors()
boolean setName(String newName)
newName - the new name for the roomboolean setDescription(String newDescription)
newDescription - the new description for the roomboolean setTemplateName(String newTemplateName)
newTemplateName - the name of the new template for the roomboolean 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 roomboolean setOwnerId(String newOwnerId)
newOwnerId - the uniqueID of the new owner for the roomboolean setPrivacy(RoomPrivacyType newPrivacy)
newPrivacy - the new privacy type of the roomboolean deleteAllRoomParameters()
boolean addRoomParameter(IRoomParameterValue param)
param - the new parameterboolean addRoomParameter(String paramName, String paramDesc, 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 parameterboolean addRoomParameters(IRoomParameterValue[] col)
col - Array containing the new parametersboolean addUserToRole(String userId, IRoomRole role)
userId - the uniqueID of the userrole - the new room role the user should be assigned toboolean addUserToRoles(String userId, IRoomRole[] roles)
userId - the uniqueID of the userroles - Array containing the new room roles the user should be
assigned toboolean addGroupUsersToRole(IGroup group, IRoomRole role, boolean childMembers)
group - the user grouprole - the role objectchildMembers - false means only direct members of the group are assignedboolean addPrincipalSetToRole(String principalSetId, IRoomRole role)
principalSetId - the uniqueID of the principalSetrole - the role objectboolean addGroupUsersToRoles(IGroup group, IRoomRole[] roles, boolean childMembers)
group - the user grouproles - Array containing the roles for the group userschildMembers - false means only direct members of the group are assignedboolean addPrincipalSetToRoles(String principalSetId, IRoomRole[] roles)
principalSetId - the uniqueID of the principalSetroles - Array containing the roles for the principalSetboolean addUserRoles(IRoomUsers refUsers)
refUsers - the IRoomUsers object containing the room-roleboolean addPrincipalRoles(IRoomPrincipals refPrincipals)
refPrincipals - the IRoomPrincipals object containing the
role assignments to be copiedboolean removeUserFromRole(String userId, IRoomRole role)
userId - the uniqueID of the userrole - the room role to be removed from the userboolean removePrincipalSetFromRole(String principalSetId, IRoomRole role)
principalSetId - the uniqueID of the principalSetrole - the room role to be removed from the principalSetboolean removeUserFromAllRoles(String userId)
removeUser(String userId).userId - the uniqueID of the user to be removedboolean removeUser(String userId)
userId - the uniqueID of the user to be removedboolean removePrincipalSet(String principalSetId)
principalSetId - the uniqueID of the principalSet to be removedboolean removeAllUsers()
boolean removeAllPrincipalSets()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-COLL
|
[sap.com] tc/kmc/coll/room
|
api
|
EP-KM-CRS
|
Copyright 2021 SAP SE Complete Copyright Notice