@StableMinor(version="12.4", sinceVersion="4.0") public interface IPrincipalManager extends IConfigKeyChecker
Modifier and Type | Method and Description |
---|---|
void |
add(SessionConfig sessionConfig,
PrincipalConfig principal,
ITransaction transaction)
Add a Principal.
|
void |
delete(SessionConfig sessionConfig,
String principalId,
ITransaction transaction)
Remove a Principal.
|
PrincipalConfig |
get(SessionConfig sessionConfig,
String principalId,
ITransaction transaction)
Get the Principal.
|
PrincipalConfig |
getByShortId(SessionConfig sessionConfig,
String shortId,
ITransaction transaction)
Get the Principal given the shortId.
|
Set<String> |
getPortalUserMembers(SessionConfig sessionConfig,
String principalId,
ITransaction transaction)
Returns the members that are (portal) users of the given principal.
The return value will be: If the given principal is a user: a set with a single entry that is the given user itself. If the given principal is a user segmentation: a set with the users that are members of the given segmentation. If the given principal is a group: a set containing the result of a recursion in this method with each direct member of the given group. |
Set<String> |
getPrincipals(SessionConfig sessionConfig,
String principalId,
ITransaction transaction)
Returns the principals of the given principal.
The return value will be: If the given principal is a user: a set with an entry that is the given user itself and the result of the recursion in this method for each group and segmentation the user is member of. |
boolean |
isMember(SessionConfig sessionConfig,
String portalUserId,
Collection<String> principalIds,
ITransaction transaction)
Check whether the principal is a member of any given principal.
|
void |
update(SessionConfig sessionConfig,
PrincipalConfig principal,
ITransaction transaction)
Update a Principal.
|
keyExists
PrincipalConfig get(SessionConfig sessionConfig, String principalId, ITransaction transaction) throws PortalException
sessionConfig
- principalId
- transaction
- PortalException
PrincipalConfig getByShortId(SessionConfig sessionConfig, String shortId, ITransaction transaction) throws PortalException
sessionConfig
- shortId
- transaction
- PortalException
void add(SessionConfig sessionConfig, PrincipalConfig principal, ITransaction transaction) throws PortalException
sessionConfig
- principal
- transaction
- PortalException
void update(SessionConfig sessionConfig, PrincipalConfig principal, ITransaction transaction) throws PortalException
sessionConfig
- principal
- transaction
- PortalException
void delete(SessionConfig sessionConfig, String principalId, ITransaction transaction) throws PortalException
sessionConfig
- principalId
- transaction
- PortalException
Set<String> getPortalUserMembers(SessionConfig sessionConfig, String principalId, ITransaction transaction) throws PortalException
sessionConfig
- the user's session.principalId
- the principal identifier.transaction
- the transaction.PortalException
Set<String> getPrincipals(SessionConfig sessionConfig, String principalId, ITransaction transaction) throws PortalException
sessionConfig
- the user's session.principalId
- the principal identifier.transaction
- the transaction.PortalException
boolean isMember(SessionConfig sessionConfig, String portalUserId, Collection<String> principalIds, ITransaction transaction) throws PortalException
sessionConfig
- the sesssion config.portalUserId
- the identifier of user.principalIds
- the identifiers of principals.transaction
- the transaction.PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.