org.drools.guvnor.client.security
Class Capabilities

java.lang.Object
  extended by 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).


Field Summary
 List<Integer> list
           
 Map<String,String> prefs
          This is the list of features that are enabled.
static Integer SHOW_ADMIN
           
static Integer SHOW_CREATE_NEW_ASSET
           
static Integer SHOW_CREATE_NEW_PACKAGE
           
static Integer SHOW_DEPLOYMENT
           
static Integer SHOW_DEPLOYMENT_NEW
           
static Integer SHOW_PACKAGE_VIEW
           
static Integer SHOW_QA
           
 
Constructor Summary
Capabilities()
           
 
Method Summary
static Capabilities all(Map<String,String> prefs)
          Grants all capabilities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

Capabilities

public Capabilities()
Method Detail

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.