@StableMinor(version="12.3", sinceVersion="4.0") public interface IGroupManager extends IConfigDeleter
Modifier and Type | Field and Description |
---|---|
static int |
FILTER_TYPE_ONLY_GROUPS |
static int |
FILTER_TYPE_ONLY_USERS |
static int |
FILTER_TYPE_USERS_AND_GROUPS |
static String |
GROUP_ID_ALL_REGISTERED_USERS |
static String |
GROUP_ID_ALL_USERS |
Modifier and Type | Method and Description |
---|---|
String |
add(SessionConfig sessionConfig,
GroupConfig groupConfig,
ITransaction transaction)
Add a group.
|
void |
addGroupType(SessionConfig sessionConfig,
GroupType groupType,
ITransaction transaction)
Adds a group type.
|
void |
addMember(SessionConfig sessionConfig,
String groupId,
String memberId,
ITransaction transaction)
Add a member into the group.
|
void |
addOrUpdate(SessionConfig sessionConfig,
GroupConfig groupConfig,
ITransaction transaction) |
void |
delete(SessionConfig sessionConfig,
String groupId,
ITransaction transaction)
Delete a group.
|
void |
deleteAllMembers(SessionConfig sessionConfig,
String groupId,
ITransaction transaction)
Delete all member associations for the specified group.
|
void |
deleteGroupType(SessionConfig sessionConfig,
String groupTypeId,
ITransaction transaction)
Deletes a group type.
|
void |
deleteMember(SessionConfig sessionConfig,
String groupId,
String memberId,
ITransaction transaction)
Delete a member of the group.
|
String |
deserialize(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node groupNode,
ITransaction transaction) |
void |
deserializeMembers(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node membersNode,
ITransaction transaction) |
GroupConfig |
get(SessionConfig sessionConfig,
String groupId,
ITransaction transaction)
Returns the group with the specified identifier.
|
Collection<GroupConfig> |
getByChannelId(SessionConfig sessionConfig,
String channelId,
ITransaction transaction)
Get all local groups from the specified channel
|
Collection<GroupConfig> |
getByOrigin(SessionConfig sessionConfig,
String origin,
ITransaction transaction)
Get the local groups configuration for the specified origin.
|
String |
getGroupConfigurationInterfaceId(SessionConfig sessionConfig,
String groupTypeId,
ITransaction transaction)
Returns the interface identifier for editing membership configurations
of groups of a specific group type.
|
GroupType |
getGroupType(SessionConfig sessionConfig,
String groupTypeId,
ITransaction transaction)
Returns a group type.
|
String |
getGroupTypeConfigurationInterfaceId(SessionConfig sessionConfig,
String groupTypeId,
ITransaction transaction)
Returns the interface identifier for editing membership configurations
for a group type.
|
Collection<String> |
getIds(SessionConfig sessionConfig,
ITransaction transaction)
Get all groups.
|
Collection<String> |
getMemberGroups(SessionConfig sessionConfig,
String memberId,
boolean recursively,
ITransaction transaction)
Returns an array of groups of the given member.
|
Collection<String> |
getMembers(SessionConfig sessionConfig,
String groupId,
int filterType,
boolean recursively,
ITransaction transaction)
Returns the immediate group members.
|
void |
invalidateGroupMembershipProvider(SessionConfig sessionConfig,
String groupTypeId,
ITransaction transaction)
Invalidates the group membership provider of a group type.
|
boolean |
isMember(SessionConfig sessionConfig,
Collection<String> groupIds,
String principalId,
ITransaction transaction)
Deprecated.
since 11.2.0 replaced by
IPrincipalManager.isMember(SessionConfig, String, Collection, ITransaction) |
boolean |
isMember(SessionConfig sessionConfig,
String groupId,
String principalId,
ITransaction transaction)
Deprecated.
since 11.2.0 replaced by
IPrincipalManager.isMember(SessionConfig, String, Collection, ITransaction) |
void |
serialize(SessionConfig sessionConfig,
GroupConfig groupConfig,
OutputStream outputStream,
ITransaction transaction) |
void |
serializeMembers(SessionConfig sessionConfig,
GroupConfig groupConfig,
OutputStream outputStream,
ITransaction transaction) |
void |
update(SessionConfig sessionConfig,
GroupConfig groupConfig,
ITransaction transaction)
Update the group configuration.
|
void |
updateGroupType(SessionConfig sessionConfig,
GroupType groupType,
ITransaction transaction)
Updates a group type.
|
deleteConfig
static final int FILTER_TYPE_USERS_AND_GROUPS
static final int FILTER_TYPE_ONLY_USERS
static final int FILTER_TYPE_ONLY_GROUPS
static final String GROUP_ID_ALL_USERS
static final String GROUP_ID_ALL_REGISTERED_USERS
String add(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupConfig
- transaction
- ManagerException
PortalException
GroupConfig get(SessionConfig sessionConfig, String groupId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- the user session information.groupId
- the group identifier.transaction
- the transaction for persistence access.PortalObjectNotFoundException
- if no such group was found.ManagerException
PortalException
void delete(SessionConfig sessionConfig, String groupId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupId
- transaction
- ManagerException
PortalException
void update(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupConfig
- transaction
- ManagerException
PortalException
void addGroupType(SessionConfig sessionConfig, GroupType groupType, ITransaction transaction) throws PortalException
sessionConfig
- user session information.groupType
- the group type.transaction
- transaction for persistence access.PortalObjectAlreadyExistsException
- if a group type with the
same identifier already exists.PortalException
GroupType getGroupType(SessionConfig sessionConfig, String groupTypeId, ITransaction transaction) throws PortalException
sessionConfig
- user session information.groupTypeId
- the group type identifier.transaction
- transaction for persistence access.PortalObjectNotFoundException
- if no such group type was found.PortalException
void deleteGroupType(SessionConfig sessionConfig, String groupTypeId, ITransaction transaction) throws PortalException
sessionConfig
- user session information.groupTypeId
- the group type identifier.transaction
- transaction for persistence access.PortalObjectNotFoundException
- if no such group type was found.PortalException
void updateGroupType(SessionConfig sessionConfig, GroupType groupType, ITransaction transaction) throws PortalException
sessionConfig
- user session information.groupType
- the group type.transaction
- transaction for persistence access.PortalObjectNotFoundException
- if no such group type was found.PortalException
Collection<String> getIds(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- transaction
- ManagerException
PortalException
void addMember(SessionConfig sessionConfig, String groupId, String memberId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupId
- memberId
- transaction
- ManagerException
PortalException
void deleteMember(SessionConfig sessionConfig, String groupId, String memberId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupId
- memberId
- transaction
- ManagerException
PortalException
Collection<String> getMembers(SessionConfig sessionConfig, String groupId, int filterType, boolean recursively, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- the user session information.groupId
- the group identifier.filterType
- defines how the result will be filtered. This may be one of FILTER_TYPE_USERS_AND_GROUPS
, FILTER_TYPE_ONLY_USERS
, FILTER_TYPE_ONLY_GROUPS
.recursively
- true to search for members recursively, false otherwise.transaction
- the transaction for persistence access.ManagerException
PortalException
Collection<String> getMemberGroups(SessionConfig sessionConfig, String memberId, boolean recursively, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- memberId
- recursively
- transaction
- ManagerException
PortalException
Collection<GroupConfig> getByChannelId(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- channelId
- transaction
- ManagerException
PortalException
void serialize(SessionConfig sessionConfig, GroupConfig groupConfig, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupConfig
- outputStream
- transaction
- ManagerException
PortalException
void serializeMembers(SessionConfig sessionConfig, GroupConfig groupConfig, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupConfig
- outputStream
- transaction
- ManagerException
PortalException
String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node groupNode, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- deserializationConfig
- groupNode
- transaction
- ManagerException
PortalException
void deserializeMembers(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node membersNode, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- deserializationConfig
- membersNode
- transaction
- ManagerException
PortalException
void addOrUpdate(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
void deleteAllMembers(SessionConfig sessionConfig, String groupId, ITransaction transaction) throws DaoException, PortalException
sessionConfig
- the user session information.groupId
- the group id.transaction
- the transaction for persistence access.DaoException
PortalException
Collection<GroupConfig> getByOrigin(SessionConfig sessionConfig, String origin, ITransaction transaction) throws DaoException, PortalException
origin
- the origin identifiertransaction
- the transaction for persistence access.DaoException
PortalException
@Deprecated boolean isMember(SessionConfig sessionConfig, String groupId, String principalId, ITransaction transaction) throws DaoException, PortalException
IPrincipalManager.isMember(SessionConfig, String, Collection, ITransaction)
sessionConfig
- the user session information.groupId
- the group identifier.principalId
- the principal identifier.transaction
- the transaction for persistence access.DaoException
PortalException
@Deprecated boolean isMember(SessionConfig sessionConfig, Collection<String> groupIds, String principalId, ITransaction transaction) throws PortalException
IPrincipalManager.isMember(SessionConfig, String, Collection, ITransaction)
sessionConfig
- the user session information.groupIds
- the group identifiers.principalId
- the principal identifier.transaction
- the transaction for persistence access.PortalException
String getGroupTypeConfigurationInterfaceId(SessionConfig sessionConfig, String groupTypeId, ITransaction transaction) throws PortalException
The interface should receive the parameter groupTypeId with the identifier of the group type being configured.
sessionConfig
- user session information.groupTypeId
- the group type identifier.transaction
- the transaction for persistence access.PortalException
String getGroupConfigurationInterfaceId(SessionConfig sessionConfig, String groupTypeId, ITransaction transaction) throws PortalException
The interface should receive the parameter groupId with the identifier of the group being configured.
sessionConfig
- user session information.groupTypeId
- the group type identifier.transaction
- the transaction for persistence access.PortalException
void invalidateGroupMembershipProvider(SessionConfig sessionConfig, String groupTypeId, ITransaction transaction) throws PortalException
sessionConfig
- user session information.groupTypeId
- the group type identifier the group membership provider
is used in.transaction
- the transaction for persistence access.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.