org.openwms.core.service.spring
Class SecurityServiceImpl

java.lang.Object
  extended by org.openwms.core.service.spring.SecurityServiceImpl
All Implemented Interfaces:
SecurityService

@Transactional
@Service(value="securityService")
public class SecurityServiceImpl
extends Object
implements SecurityService

A SecurityServiceImpl.

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

Field Summary
static String COMPONENT_NAME
          Springs component name.
 
Constructor Summary
SecurityServiceImpl()
           
 
Method Summary
 void login()
          Force a login.
 List<Grant> mergeGrants(String moduleName, List<Grant> grants)
          Merge a list of persisted, detached or transient Grants of a particular Module.
 
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

SecurityServiceImpl

public SecurityServiceImpl()
Method Detail

login

@Transactional(readOnly=true)
public void login()
Force a login. Call this method to access the security filter chain. The implementation does not need to execute anything. Marked as readOnly transactional method. Only a trace message is written. This method is solely responsible to activate the security filter chain.

Specified by:
login in interface SecurityService

mergeGrants

@FireAfterTransaction(events=UserChangedEvent.class)
public List<Grant> mergeGrants(String moduleName,
                                                                                List<Grant> grants)
Merge a list of persisted, detached or transient Grants of a particular Module.

Specified by:
mergeGrants in interface SecurityService
Parameters:
moduleName - The moduleName
grants - The list of Grants to merge
Returns:
All existing Grants
See Also:
SecurityService.mergeGrants(java.lang.String, java.util.List)


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