Style Intelligence v12.0

inetsoft.uql.erm
Class HiddenColumns

java.lang.Object
  extended by inetsoft.uql.erm.VpmObject
      extended by inetsoft.uql.erm.HiddenColumns
All Implemented Interfaces:
inetsoft.util.xml.XMLStorage.XMLFragment, inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable

public class HiddenColumns
extends VpmObject

HiddenColumns defines hidden columns to hide columns when executing a query.

See Also:
Serialized Form

Constructor Summary
HiddenColumns()
          Constructor.
 
Method Summary
 void addHiddenColumn(DataRef column)
          Add a hidden column to this virtual private model.
 void addRole(String role)
          Assign a role to this virtual private model.
 Object clone()
          Clone the object.
 boolean containsRole(String role)
          Determine if the specified role is assigned to this virtual private model.
 String[] evaluate(String[] tables, String[] columns, VariableTable vars, Principal user)
          Check if the virtual private model should be applied.
 Enumeration getHiddenColumns()
          Get all the hidden columns.
 Enumeration getRoles()
          Get all the assigned roles.
protected  void parseContents(Element elem)
          Parse contents.
 void removeHiddenColumn(DataRef column)
          Remove a hidden column from this virtual private model.
 void removeHiddenColumns()
          Remove all the hidden columns from this virtual private model.
 void removeRole(String role)
          Remove a role from this virtual private model.
 void removeRoles()
          Remove all the roles from this virtual private model.
protected  void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.uql.erm.VpmObject
compareTo, createVpmObject, equals, getName, getScript, hashCode, parseAttributes, parseXML, setName, setScript, toString, writeAttributes, writeEnd, writeStart, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HiddenColumns

public HiddenColumns()
Constructor.

Method Detail

addRole

public void addRole(String role)
Assign a role to this virtual private model.

Parameters:
role - the name of the role.

containsRole

public boolean containsRole(String role)
Determine if the specified role is assigned to this virtual private model.

Parameters:
role - the name of the role.
Returns:
true if the specified role is assigned to this model, false otherwise.

getRoles

public Enumeration getRoles()
Get all the assigned roles.

Returns:
all the assigned roles.

removeRole

public void removeRole(String role)
Remove a role from this virtual private model.

Parameters:
role - the name of the role to remove.

removeRoles

public void removeRoles()
Remove all the roles from this virtual private model.


addHiddenColumn

public void addHiddenColumn(DataRef column)
Add a hidden column to this virtual private model.

Parameters:
column - the specified hidden column to add.

getHiddenColumns

public Enumeration getHiddenColumns()
Get all the hidden columns.

Returns:
all the hidden columns.

removeHiddenColumn

public void removeHiddenColumn(DataRef column)
Remove a hidden column from this virtual private model.

Parameters:
column - the hidden column to remove.

removeHiddenColumns

public void removeHiddenColumns()
Remove all the hidden columns from this virtual private model.


evaluate

public String[] evaluate(String[] tables,
                         String[] columns,
                         VariableTable vars,
                         Principal user)
                  throws Exception
Check if the virtual private model should be applied.

Parameters:
tables - the specified query tables.
columns - the specified query columns.
vars - the specified variable table.
user - the specified principal.
Returns:
the to be hidden columns.
Throws:
Exception

clone

public Object clone()
Clone the object.

Overrides:
clone in class VpmObject
Returns:
the cloned object.

writeContents

protected void writeContents(PrintWriter writer)
Write contents.

Overrides:
writeContents in class VpmObject
Parameters:
writer - the specified writer.

parseContents

protected void parseContents(Element elem)
                      throws Exception
Parse contents.

Overrides:
parseContents in class VpmObject
Parameters:
elem - the specified xml element.
Throws:
Exception

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.