|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="5.5", sinceVersion="4.0") public interface IGroupManager
Manager Interface for Group operations
Field Summary | |
---|---|
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
|
Method Summary | |
---|---|
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)
VERIFICAR O NOME: getIdsByMemberId 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)
Verifies if a principal is a member, directly or indirectly, of one of the specified groups. |
boolean |
isMember(SessionConfig sessionConfig,
String groupId,
String principalId,
ITransaction transaction)
Verifies if a principal is a member, directly or indirectly, of a group. |
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. |
Methods inherited from interface lumis.portal.serialization.operation.IConfigDeleter |
---|
deleteConfig |
Field Detail |
---|
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
Method Detail |
---|
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
boolean isMember(SessionConfig sessionConfig, String groupId, String principalId, ITransaction transaction) throws DaoException, PortalException
sessionConfig
- the user session information.groupId
- the group identifier.principalId
- the principal identifier.transaction
- the transaction for persistence access.
DaoException
PortalException
boolean isMember(SessionConfig sessionConfig, Collection<String> groupIds, String principalId, ITransaction transaction) throws PortalException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |