|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.principal.PrincipalManager
public class PrincipalManager
Manage Principals.
Field Summary | |
---|---|
protected static int |
ACCESS_ADMINISTRATOR
|
protected static int |
ACCESS_OWNER
|
Constructor Summary | |
---|---|
PrincipalManager()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int ACCESS_OWNER
protected static final int ACCESS_ADMINISTRATOR
Constructor Detail |
---|
public PrincipalManager()
Method Detail |
---|
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 keys
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |