org.openwms.core.integration.jpa
Class SecurityObjectDaoImpl

java.lang.Object
  extended by org.openwms.core.integration.jpa.SecurityObjectDaoImpl
All Implemented Interfaces:
SecurityObjectDao

@Transactional(propagation=MANDATORY)
@Repository(value="securityObjectDao")
public class SecurityObjectDaoImpl
extends Object
implements SecurityObjectDao

A SecurityDaoImpl is a JPA implementation that is used as a repository to find, delete and save SecurityObjects. It can be injected by name "securityObjectDao".

All methods have to be invoked within an active transaction context.

Since:
0.1
Version:
$Revision: 1541 $
Author:
Heiko Scherrer

Field Summary
static String COMPONENT_NAME
          Springs component name.
 
Constructor Summary
SecurityObjectDaoImpl()
           
 
Method Summary
 void delete(List<Grant> grants)
          Delete a list of Grants.
 List<SecurityObject> findAll()
          Find and retrieve all SecurityObjects.
 List<Grant> findAllOfModule(String moduleName)
          Find and retrieve all SecurityObjects that belong to a given Module.
 SecurityObject merge(SecurityObject entity)
          Save a SecurityObject and return the updated instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_NAME

public static final String COMPONENT_NAME
Springs component name.

See Also:
Constant Field Values
Constructor Detail

SecurityObjectDaoImpl

public SecurityObjectDaoImpl()
Method Detail

delete

public void delete(List<Grant> grants)
Delete a list of Grants.

Specified by:
delete in interface SecurityObjectDao
Parameters:
grants - the Grants to delete
See Also:
SecurityObjectDao.delete(java.util.List)

findAll

public List<SecurityObject> findAll()
Find and retrieve all SecurityObjects.

Specified by:
findAll in interface SecurityObjectDao
Returns:
a list of SecurityObjects. null might be possible as well, see the particular implementation
See Also:
SecurityObjectDao.findAll()

findAllOfModule

public List<Grant> findAllOfModule(String moduleName)
Find and retrieve all SecurityObjects that belong to a given Module.

Specified by:
findAllOfModule in interface SecurityObjectDao
Parameters:
moduleName - The name of the Module
Returns:
a list of SecurityObjects. null might be possible as well, see the particular implementation
See Also:
SecurityObjectDao.findAllOfModule(java.lang.String)

merge

public SecurityObject merge(SecurityObject entity)
Save a SecurityObject and return the updated instance.

Specified by:
merge in interface SecurityObjectDao
Parameters:
entity - the SecurityObject to save
Returns:
the saved instance
See Also:
SecurityObjectDao.merge(org.openwms.core.domain.system.usermanagement.SecurityObject)


Copyright © 2005-2011 openwms.org. All Rights Reserved.