org.glite.rgma
Class TableAuthorization

java.lang.Object
  extended by org.glite.rgma.TableAuthorization

public class TableAuthorization
extends java.lang.Object

Authorization rules for a table.


Constructor Summary
TableAuthorization()
          Create an empty TableAuthorization object.
 
Method Summary
 void addRule(java.lang.String rule)
          Adds a rule to this TableAuthorization.
 int getNumRules()
          Returns the number of rules in this TableAuthorization.
 java.lang.String getRule(int ruleNum)
          Gets the specified rule.
 java.util.List getRules()
          Returns the List of rules.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableAuthorization

public TableAuthorization()
Create an empty TableAuthorization object.

Method Detail

getNumRules

public int getNumRules()
Returns the number of rules in this TableAuthorization.

Returns:
The number of rules.

getRule

public java.lang.String getRule(int ruleNum)
Gets the specified rule.

Parameters:
ruleNum - Number of the rule to retrieve.
Returns:
Specified rule.

getRules

public java.util.List getRules()
Returns the List of rules.

Returns:
The List of rules (all String objects).

addRule

public void addRule(java.lang.String rule)
Adds a rule to this TableAuthorization. A rule consists of a view on a table (a parameterized SELECT statement) and a set of allowed credentials specifying which users can access the view, separated by a colon.

Parameters:
rule - Rule to add.