public class PrincipalManager extends Object implements IPrincipalManager
Modifier and Type | Field and Description |
---|---|
protected static int |
ACCESS_ADMINISTRATOR |
protected static int |
ACCESS_OWNER |
Constructor and Description |
---|
PrincipalManager() |
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.
|
boolean |
keyExists(SessionConfig sessionConfig,
Object configKey,
Object config,
ITransaction transaction)
Checks if configId matches an already persisted object
|
void |
update(SessionConfig sessionConfig,
PrincipalConfig principal,
ITransaction transaction)
Update a Principal.
|
protected int |
validateAccess(SessionConfig sessionConfig,
PrincipalConfig principal,
ITransaction transaction) |
protected void |
validateAdministrationAccess(SessionConfig sessionConfig,
PrincipalConfig principal,
ITransaction transaction) |
protected static final int ACCESS_OWNER
protected static final int ACCESS_ADMINISTRATOR
public void add(SessionConfig sessionConfig, PrincipalConfig principal, ITransaction transaction) throws PortalException
IPrincipalManager
add
in interface IPrincipalManager
PortalException
public void update(SessionConfig sessionConfig, PrincipalConfig principal, ITransaction transaction) throws PortalException
IPrincipalManager
update
in interface IPrincipalManager
PortalException
public void delete(SessionConfig sessionConfig, String principalId, ITransaction transaction) throws PortalException
IPrincipalManager
delete
in interface IPrincipalManager
PortalException
public PrincipalConfig get(SessionConfig sessionConfig, String principalId, ITransaction transaction) throws PortalException
IPrincipalManager
get
in interface IPrincipalManager
PortalException
public PrincipalConfig getByShortId(SessionConfig sessionConfig, String shortId, ITransaction transaction) throws PortalException
IPrincipalManager
getByShortId
in interface IPrincipalManager
PortalException
protected void validateAdministrationAccess(SessionConfig sessionConfig, PrincipalConfig principal, ITransaction transaction) throws PortalException
PortalException
protected int validateAccess(SessionConfig sessionConfig, PrincipalConfig principal, ITransaction transaction) throws PortalException
PortalException
public boolean keyExists(SessionConfig sessionConfig, Object configKey, Object config, ITransaction transaction)
IConfigKeyChecker
keyExists
in interface IConfigKeyChecker
config
- Optional, allows a checker to read aditional fields to check composed keysLumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.