public interface IPrincipalDao
Modifier and Type | Method and Description |
---|---|
void |
add(PrincipalConfig principal,
ITransaction transaction)
Adds a new principal
|
Collection<PrincipalConfig> |
bulkLoad(String principalId,
int numOfElements,
ITransaction transaction)
Bulk loads principals and return them.
|
void |
delete(String principalId,
ITransaction transaction)
Delets a principal
|
PrincipalConfig |
get(String principalId,
ITransaction transaction)
Get the principal.
|
PrincipalConfig |
getByShortId(String shortId,
ITransaction transaction)
Get the principal by his's short Id
|
void |
update(PrincipalConfig principal,
ITransaction transaction)
Updates a principal
|
void add(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
principal
- transaction
- DaoException
PortalException
void delete(String principalId, ITransaction transaction) throws DaoException, PortalException
principalId
- transaction
- DaoException
PortalException
void update(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
principal
- transaction
- DaoException
PortalException
PrincipalConfig get(String principalId, ITransaction transaction) throws DaoException, PortalException
principalId
- transaction
- DaoException
PortalException
PrincipalConfig getByShortId(String shortId, ITransaction transaction) throws DaoException, PortalException
shortId
- transaction
- DaoException
PortalException
Collection<PrincipalConfig> bulkLoad(String principalId, int numOfElements, ITransaction transaction) throws PortalException
principalId
- the identifier of principal that must be returned if it exists.numOfElements
- optimal number of principals to be returned. The actual number returned may not be exactly
this, but there will be a best effort, without performance hit, to return the nearest possible.transaction
- the transaction for persistence access.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.