Package com.logicaldoc.stamp
Interface StampDAO
- All Superinterfaces:
- com.logicaldoc.core.PersistentObjectDAO<Stamp>
- All Known Implementing Classes:
- HibernateStampDAO
DAO for 
Stamp handling.- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionfindByName(String name, long tenantId) Finds the stamp with the given namefindByNameAndUser(String name, long userId) Finds the stamp with the given name and userfindByUser(long userId, boolean enabledOnly) Finds the stamps for the given userbooleanisReadEnable(long id, long userId) This method is looking up for read permission for a stamp and an userbooleanisWriteEnable(long id, long userId) This method is looking up for write permission for a stamp and an userMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
- 
Method Details- 
findByNameFinds the stamp with the given name- Parameters:
- name- name of the stamp
- tenantId- identifier of the tenant
- Returns:
- the found stamp
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
findByNameAndUserFinds the stamp with the given name and user- Parameters:
- name- name of the stamp
- userId- identifier of the user
- Returns:
- the found stamp
- Throws:
- com.logicaldoc.core.PersistenceException- error at data layer
 
- 
findByUserList<Stamp> findByUser(long userId, boolean enabledOnly) throws com.logicaldoc.core.PersistenceException Finds the stamps for the given user- Parameters:
- userId- identifier of the user
- enabledOnly- if just the enabled stamps must be searched
- Returns:
- list of stamps
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
isWriteEnableboolean isWriteEnable(long id, long userId) throws com.logicaldoc.core.PersistenceException This method is looking up for write permission for a stamp and an user- Parameters:
- id- ID of the stamp
- userId- ID of the user
- Returns:
- id the user has write permission
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
isReadEnableboolean isReadEnable(long id, long userId) throws com.logicaldoc.core.PersistenceException This method is looking up for read permission for a stamp and an user- Parameters:
- id- ID of the stamp
- userId- ID of the user
- Returns:
- if the user can access the stamp
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
 
-