org.drools.guvnor.server.security
Class SecurityServiceImpl
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUEST_LOGIN
public static final String GUEST_LOGIN
- See Also:
- Constant Field Values
SecurityServiceImpl
public SecurityServiceImpl()
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.