org.drools.guvnor.server.security
Class SecurityServiceImpl

java.lang.Object
  extended by org.drools.guvnor.server.security.SecurityServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, SecurityService

public class SecurityServiceImpl
extends Object
implements SecurityService

This implements security related services.


Field Summary
static String GUEST_LOGIN
           
 
Constructor Summary
SecurityServiceImpl()
           
 
Method Summary
 UserSecurityContext getCurrentUser()
           
 Capabilities getUserCapabilities()
          This will return the capabilities which determine what is shown in the GUI.
 boolean login(String userName, String password)
          This will do a password authentication, using the configured JAAS provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUEST_LOGIN

public static final String GUEST_LOGIN
See Also:
Constant Field Values
Constructor Detail

SecurityServiceImpl

public SecurityServiceImpl()
Method Detail

login

public boolean login(String userName,
                     String password)
Description copied from interface: SecurityService
This will do a password authentication, using the configured JAAS provider. This may be a default one (which allows anything in).

Specified by:
login in interface SecurityService
Returns:
true if user is logged in successfully.

getCurrentUser

public UserSecurityContext getCurrentUser()
Specified by:
getCurrentUser in interface SecurityService
Returns:
This returns the current user's name if they are logged in. If not then null is returned (inside a context). Will also return some other handy stuff for changing the GUI based on security context.

getUserCapabilities

public Capabilities getUserCapabilities()
Description copied from interface: SecurityService
This will return the capabilities which determine what is shown in the GUI. Based on the users roles and permissions.

Specified by:
getUserCapabilities in interface SecurityService


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.