|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.erm.VpmObject
inetsoft.uql.erm.VirtualPrivateModel
public class VirtualPrivateModel
VirtualPrivateModel, to restrict the visibility of table columns and the data returned from executed queries based upon some security criteria.
| Constructor Summary | |
|---|---|
VirtualPrivateModel()
Create a virtual private model. |
|
VirtualPrivateModel(String name)
Create a virtual private model. |
|
| Method Summary | |
|---|---|
void |
addCondition(VpmCondition vcond)
Add a vpm condition to this virtual private model. |
Object |
clone()
Clone the object. |
boolean |
containsCondition(VpmCondition vcond)
Check if contains a vpm condition in this virtual private model. |
boolean |
containsTable(String table)
Determine if the specified table is assigned to this virtual private model. |
boolean |
evaluate(String[] tables,
String[] columns,
VariableTable vars,
Principal user)
Check if the virtual private model should be applied. |
boolean |
evaluate(String[] tables,
String[] columns,
VariableTable vars,
Principal user,
String partition)
Check if the virtual private model should be applied. |
VpmCondition |
getCondition(String name)
Get the vpm condition in this virtual private model. |
Enumeration |
getConditions()
Get all the vpm conditions. |
String |
getDescription()
Get the description of this virtual private model. |
HiddenColumns |
getHiddenColumns()
Get the hidden columns. |
protected void |
parseContents(Element elem)
Parse contents. |
void |
removeCondition(String name)
Remove a vpm condition from this virtual private model. |
void |
removeCondition(VpmCondition vcond)
Remove a vpm condition from this virtual private model. |
void |
removeConditions()
Remove all the vpm conditions from this virtual private model. |
void |
setDescription(String desc)
Set the description of this virtual private model. |
void |
setHiddenColumns(HiddenColumns hidden)
Set the hidden columns. |
String |
toString()
Get the string representaion. |
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, writeAttributes, writeEnd, writeStart, writeXML |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VirtualPrivateModel()
public VirtualPrivateModel(String name)
name - the specified name for the virtual private model.| Method Detail |
|---|
public String getDescription()
public void setDescription(String desc)
desc - the specified description.public boolean containsTable(String table)
table - the name of the table.
true if the specified table is assigned to this
model, false otherwise.public void addCondition(VpmCondition vcond)
vcond - the specified vpm condition to add.public boolean containsCondition(VpmCondition vcond)
vcond - the specified vpm condition.
public VpmCondition getCondition(String name)
name - the specified name of the vpm condition.
public Enumeration getConditions()
public void removeCondition(String name)
name - the name of the vpm condition to remove.public void removeCondition(VpmCondition vcond)
vcond - the specified vpm condition to remove.public void removeConditions()
public HiddenColumns getHiddenColumns()
public void setHiddenColumns(HiddenColumns hidden)
hidden - the specified hidden columns to hide columns when executing
a query.
public boolean evaluate(String[] tables,
String[] columns,
VariableTable vars,
Principal user)
throws Exception
tables - the specified tables.columns - the specified query columns.vars - the specified variable table.user - the specified principal.
Exception
public boolean evaluate(String[] tables,
String[] columns,
VariableTable vars,
Principal user,
String partition)
throws Exception
tables - the specified tables.columns - the specified query columns.vars - the specified variable table.user - the specified principal.
Exceptionpublic Object clone()
clone in class VpmObjectprotected void writeContents(PrintWriter writer)
writeContents in class VpmObjectwriter - the specified writer.
protected void parseContents(Element elem)
throws Exception
parseContents in class VpmObjectelem - the specified xml element.
Exceptionpublic String toString()
toString in class VpmObject
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||