org.drools.guvnor.client.security
Class Capabilities
java.lang.Object
org.drools.guvnor.client.security.Capabilities
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable
public class Capabilities
- extends Object
- implements com.google.gwt.user.client.rpc.IsSerializable
This is used to turn off GUI functionality. The server decides what should be visible
based on roles and permissions granted. This is essentially a security and permissions function.
(however the Capabilities do not enforce actions on the server - these are more for GUI convenience so elements are not displayed
that are not relevant to a given users role).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHOW_PACKAGE_VIEW
public static final Integer SHOW_PACKAGE_VIEW
SHOW_CREATE_NEW_ASSET
public static final Integer SHOW_CREATE_NEW_ASSET
SHOW_CREATE_NEW_PACKAGE
public static final Integer SHOW_CREATE_NEW_PACKAGE
SHOW_ADMIN
public static final Integer SHOW_ADMIN
SHOW_QA
public static final Integer SHOW_QA
SHOW_DEPLOYMENT
public static final Integer SHOW_DEPLOYMENT
SHOW_DEPLOYMENT_NEW
public static final Integer SHOW_DEPLOYMENT_NEW
list
public List<Integer> list
prefs
public Map<String,String> prefs
- This is the list of features that are enabled.
Capabilities
public Capabilities()
all
public static Capabilities all(Map<String,String> prefs)
- Grants all capabilities.
Only used for when there is basically no login.
Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.