Ontimize 5.2072EN

com.ontimize.gui.table
Class Table.ComponentsPermissionsStore

java.lang.Object
  extended bycom.ontimize.gui.table.Table.ComponentsPermissionsStore
Enclosing class:
Table

protected static class Table.ComponentsPermissionsStore
extends java.lang.Object

Class that stores all the permissions for all the table components


Constructor Summary
protected Table.ComponentsPermissionsStore()
           
 
Method Summary
 int addKey(java.lang.String key)
          Adds a new component key to the components key collection, and returns the index set.
 void addTableFormPermission(java.lang.String key, java.lang.String type, TableFormPermission tableFormPermission)
          Adds a new Permission to the corresponding pair component-permission type.
 int addType(java.lang.String type)
          Adds a new type to the types collection, and returns the index set to the new type.
 TableFormPermission get(java.lang.String key, java.lang.String type)
          Returns the permission form the component key corresponding to the permission determined by type.
 int getIdKey(java.lang.String key)
          Returns the index corresponding to the key passed as parameter.
 int getTypeId(java.lang.String type)
          Returns the index corresponding to the different permissions set for this table, for example "visible" or "enabled"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table.ComponentsPermissionsStore

protected Table.ComponentsPermissionsStore()
Method Detail

get

public TableFormPermission get(java.lang.String key,
                               java.lang.String type)
Returns the permission form the component key corresponding to the permission determined by type.

Parameters:
key - the component
type - the permission
Returns:
the corresponding permission or null if the permission is not set

getIdKey

public int getIdKey(java.lang.String key)
Returns the index corresponding to the key passed as parameter. In case that the key is not set, the method will return null.

Parameters:
key - a component key
Returns:

getTypeId

public int getTypeId(java.lang.String type)
Returns the index corresponding to the different permissions set for this table, for example "visible" or "enabled"

Parameters:
type - the permission type
Returns:
the index in case the permission exists or null in other case

addType

public int addType(java.lang.String type)
Adds a new type to the types collection, and returns the index set to the new type.

Parameters:
type - the type to add
Returns:
the index set

addKey

public int addKey(java.lang.String key)
Adds a new component key to the components key collection, and returns the index set.

Parameters:
key - new component key to add
Returns:
the index set

addTableFormPermission

public void addTableFormPermission(java.lang.String key,
                                   java.lang.String type,
                                   TableFormPermission tableFormPermission)
Adds a new Permission to the corresponding pair component-permission type.

Parameters:
key -
type -
tableFormPermission -

Ontimize