com.businessobjects.sdk.plugin.desktop.overload
Interface IRowOverload


public interface IRowOverload

Contains six methods that allow you to identify which database row should be restricted.

Represents a row in a database table that cannot be accessed in a universe by certain groups or users. This interface contains methods that allow you to identify which database row should be restricted.

Note: Restrictions on a group are inherited by its members. If a user inherits an object restriction from the parent group, that restriction cannot be changed for the user, while the user remains a member of that group. Furthermore, if a user is a member of more than one group, then the sum of object restrictions for each group is applied to the user.


Method Summary
 void addBranchNumbers(java.util.List branchNumbers)
           Add the branch numbers for the aggregated overload.
 int getBranchCount()
           Returns the count of branch numbers.
 int getBranchNumber(int ith)
           Returns the ith branch number.
 java.util.List getBranchNumbers()
           Returns the branch numbers.
 int getRestrictedTableID()
           Returns the database table ID.
 java.lang.String getRestrictedTableName()
           Returns the database table name.
 java.lang.String getWhereClause()
           Returns the SQL Where clause.
 void setRestrictedTableID(int tableID)
           Sets the database table ID.
 void setRestrictedTableName(java.lang.String tableName)
           Sets the database table name.
 void setWhereClause(java.lang.String whereClause)
           Sets the SQL Where clause.
 

Method Detail

getRestrictedTableID

int getRestrictedTableID()

Returns the database table ID.

Note: Use this method to identify the database table ID that contains the row(s) that will be restricted from the final view of a universe or Web Intelligence document.

Returns:
An int that identifies the table ID; returns -1 if the object does not exist.

setRestrictedTableID

void setRestrictedTableID(int tableID)

Sets the database table ID.

Note: Use this method to specify the database table ID that contains the row(s) that will be restricted from the final view of a universe or Web Intelligence document.

Parameters:
tableID - An int that specifies the table ID.

getRestrictedTableName

java.lang.String getRestrictedTableName()

Returns the database table name.

Note: Use this method to identify the database table name that contains the row(s) that will be restricted from the final view of a universe or Web Intelligence document.

Returns:
A String that identifies the table name; returns null if object does not exist.

setRestrictedTableName

void setRestrictedTableName(java.lang.String tableName)

Sets the database table name.

Note: Use this method to specify the database table name that contains the row(s) that will be restricted from the final view of a universe or Web Intelligence document.

Parameters:
tableName - A String that specifies the table name.

getWhereClause

java.lang.String getWhereClause()
                                throws SDKException

Returns the SQL Where clause.

Note: Use this method to identify the condition that restricts the rows in the database table.

Returns:
A String that identifies the Where clause. This string is appended to the query to restrict certain rows from being accessed.
Throws:
SDKException - Throws exception if property is not found

setWhereClause

void setWhereClause(java.lang.String whereClause)

Sets the SQL Where clause.

Note: Use this method to specify the condition that restricts the rows in the database table.

Parameters:
whereClause - A String that identifies the Where clause. This string is appended to the query to restrict certain rows from being accessed.

getBranchNumbers

java.util.List getBranchNumbers()

Returns the branch numbers.

Note: Use this method to build the additional where clauses when generating SQL.

Returns:
A Vector of Integers when the AND/OR option is enabled, otherwise a null value.

getBranchCount

int getBranchCount()

Returns the count of branch numbers.

Note: Use this method to build the additional where clauses when generating SQL.

Returns:
An int when the AND/OR option is enabled, otherwise -1.

getBranchNumber

int getBranchNumber(int ith)

Returns the ith branch number.

Note: Use this method to build the additional where clauses when generating SQL.

Returns:
A int which is the ith branch number when the AND/OR option is enabled and 0 <= ith < getBranchCount(), otherwise -1.

addBranchNumbers

void addBranchNumbers(java.util.List branchNumbers)

Add the branch numbers for the aggregated overload.

Note: Use this method only to compute an aggregated overload for a given user/group and a universe with AND/OR option enabled. The branch numbers are not persistent.