Package lumis.portal.principal
Interface IPrincipalDao
-
- All Known Implementing Classes:
PrincipalDaoJdbc
public interface IPrincipalDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(PrincipalConfig principal, ITransaction transaction)
Adds a new principaljava.util.Collection<PrincipalConfig>
bulkLoad(java.lang.String principalId, int numOfElements, ITransaction transaction)
Bulk loads principals and return them.void
delete(java.lang.String principalId, ITransaction transaction)
Delets a principalPrincipalConfig
get(java.lang.String principalId, ITransaction transaction)
Get the principal.PrincipalConfig
getByShortId(java.lang.String shortId, ITransaction transaction)
Get the principal by his's short Idvoid
update(PrincipalConfig principal, ITransaction transaction)
Updates a principal
-
-
-
Method Detail
-
add
void add(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
Adds a new principal- Parameters:
principal
-transaction
-- Throws:
DaoException
PortalException
-
delete
void delete(java.lang.String principalId, ITransaction transaction) throws DaoException, PortalException
Delets a principal- Parameters:
principalId
-transaction
-- Throws:
DaoException
PortalException
-
update
void update(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
Updates a principal- Parameters:
principal
-transaction
-- Throws:
DaoException
PortalException
-
get
PrincipalConfig get(java.lang.String principalId, ITransaction transaction) throws DaoException, PortalException
Get the principal.- Parameters:
principalId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
getByShortId
PrincipalConfig getByShortId(java.lang.String shortId, ITransaction transaction) throws DaoException, PortalException
Get the principal by his's short Id- Parameters:
shortId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
bulkLoad
java.util.Collection<PrincipalConfig> bulkLoad(java.lang.String principalId, int numOfElements, ITransaction transaction) throws PortalException
Bulk loads principals and return them.- Parameters:
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.- Returns:
- the principals.
- Throws:
PortalException
- Since:
- 10.1.1
-
-