|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.group.GroupManager
public class GroupManager
Class responsible for managing operations on the portal groups.
Field Summary |
---|
Fields inherited from interface lumis.portal.group.IGroupManager |
---|
FILTER_TYPE_ONLY_GROUPS, FILTER_TYPE_ONLY_USERS, FILTER_TYPE_USERS_AND_GROUPS, GROUP_ID_ALL_REGISTERED_USERS, GROUP_ID_ALL_USERS |
Constructor Summary | |
---|---|
GroupManager()
|
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 |
deleteConfig(DeserializationContext deserializationContext,
String configId)
|
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 membersNodes,
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupManager()
Method Detail |
---|
public void addOrUpdate(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction) throws ManagerException, PortalException
addOrUpdate
in interface IGroupManager
ManagerException
PortalException
public String add(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
add
in interface IGroupManager
ManagerException
PortalException
public void update(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
update
in interface IGroupManager
ManagerException
PortalException
public GroupConfig get(SessionConfig sessionConfig, String groupId, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
get
in interface IGroupManager
ManagerException
PortalException
public void delete(SessionConfig sessionConfig, String groupId, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
delete
in interface IGroupManager
ManagerException
PortalException
public Collection<String> getIds(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
getIds
in interface IGroupManager
ManagerException
PortalException
public void addMember(SessionConfig sessionConfig, String groupId, String memberId, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
addMember
in interface IGroupManager
ManagerException
PortalException
public void deleteMember(SessionConfig sessionConfig, String groupId, String memberId, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
deleteMember
in interface IGroupManager
ManagerException
PortalException
public Collection<String> getMembers(SessionConfig sessionConfig, String groupId, int filterType, boolean recursively, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
getMembers
in interface IGroupManager
sessionConfig
- the user session information.groupId
- the group identifier.filterType
- defines how the result will be filtered. This may be one of IGroupManager.FILTER_TYPE_USERS_AND_GROUPS
, IGroupManager.FILTER_TYPE_ONLY_USERS
, IGroupManager.FILTER_TYPE_ONLY_GROUPS
.recursively
- true to search for members recursively, false otherwise.transaction
- the transaction for persistence access.
ManagerException
PortalException
public Collection<String> getMemberGroups(SessionConfig sessionConfig, String memberId, boolean recursively, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
getMemberGroups
in interface IGroupManager
ManagerException
PortalException
public Collection<GroupConfig> getByChannelId(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
getByChannelId
in interface IGroupManager
ManagerException
PortalException
public void serialize(SessionConfig sessionConfig, GroupConfig groupConfig, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
serialize
in interface IGroupManager
ManagerException
PortalException
public void serializeMembers(SessionConfig sessionConfig, GroupConfig groupConfig, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
serializeMembers
in interface IGroupManager
ManagerException
PortalException
public String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node groupNode, ITransaction transaction) throws ManagerException, PortalException
deserialize
in interface IGroupManager
ManagerException
PortalException
public void deserializeMembers(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node membersNodes, ITransaction transaction) throws ManagerException, PortalException
deserializeMembers
in interface IGroupManager
ManagerException
PortalException
public void deleteConfig(DeserializationContext deserializationContext, String configId) throws PortalException
deleteConfig
in interface IConfigDeleter
PortalException
public Collection<GroupConfig> getByOrigin(SessionConfig sessionConfig, String origin, ITransaction transaction) throws ManagerException, PortalException
IGroupManager
getByOrigin
in interface IGroupManager
origin
- the origin identifiertransaction
- the transaction for persistence access.
DaoException
PortalException
ManagerException
public void deleteAllMembers(SessionConfig sessionConfig, String groupId, ITransaction transaction) throws DaoException, PortalException
IGroupManager
deleteAllMembers
in interface IGroupManager
sessionConfig
- the user session information.groupId
- the group id.transaction
- the transaction for persistence access.
DaoException
PortalException
public boolean isMember(SessionConfig sessionConfig, String groupId, String principalId, ITransaction transaction) throws DaoException, PortalException
IGroupManager
isMember
in interface IGroupManager
DaoException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |