|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="4.1", 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 |
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 |
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)
Get the group. |
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. |
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. |
boolean |
isMember(SessionConfig sessionConfig,
String groupId,
String principalId,
ITransaction transaction)
Verifies if a principal is a member 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. |
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
- groupId
- transaction
-
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
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
- groupId
- principalId
- transaction
-
DaoException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |