Style Intelligence v12.0

inetsoft.uql.asset
Class MirrorConditionAssembly

java.lang.Object
  extended by inetsoft.uql.asset.AbstractAssembly
      extended by inetsoft.uql.asset.AbstractWSAssembly
          extended by inetsoft.uql.asset.MirrorConditionAssembly
All Implemented Interfaces:
Assembly, AssetObject, AttachedAssembly, ConditionAssembly, inetsoft.uql.asset.internal.VariableProvider, MirrorAssembly, WSAssembly, ConditionListWrapper, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class MirrorConditionAssembly
extends AbstractWSAssembly
implements ConditionAssembly, MirrorAssembly

MirrorConditionAssembly, the mirror of a condition assembly.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.asset.AbstractWSAssembly
info, ws
 
Fields inherited from interface inetsoft.uql.asset.AttachedAssembly
COLUMN_ATTACHED, DATA_TYPE_ATTACHED, NONE_ATTACHED, SOURCE_ATTACHED
 
Fields inherited from interface inetsoft.uql.asset.Assembly
CUBE_VS, DETAIL, EMBEDDED, FIELD, SELECTION, TABLE_VS
 
Constructor Summary
MirrorConditionAssembly()
          Constructor.
MirrorConditionAssembly(Worksheet ws, String name, AssetEntry entry, boolean outer, WSAssembly assembly)
          Constructor.
 
Method Summary
 void checkValidity()
          Check if the mirror assembly is valid.
protected  inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
          Create assembly info.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 Assembly getAssembly()
          Get the assembly.
 String getAssemblyName()
          Get the assembly name.
 int getAssemblyType()
          Get the type.
 DataRef getAttachedAttribute()
          Get the attached attribute.
 String getAttachedDataType()
          Get the attached data type.
 SourceInfo getAttachedSource()
          Get the attached source.
 int getAttachedType()
          Get the attached type.
 ConditionItem getConditionItem(int index)
          Get the ConditionItem at the specified index.
 ConditionList getConditionList()
          Get the condition.
 int getConditionSize()
          Get the size.
 void getDependeds(Set set)
          Get the assemblies depended on.
 AssetEntry getEntry()
          Get the worksheet entry.
 HierarchyItem getItem(int index)
          Get the HierarchyItem at the specified index.
 JunctionOperator getJunctionOperator(int index)
          Get the JunctionOperator at the specified index.
 long getLastModified()
          Get the last modified time.
 Dimension getMinimumSize()
          Get the minimum size.
 void isAttachedValid()
          Check if the attached assembly is valid.
 boolean isAutoUpdate()
          Check if is auto update.
 boolean isConditionItem(int index)
          Check if the item at the specified index is a ConditionItem.
 boolean isEmpty()
          Check if this list is empty.
 boolean isJunctionOperator(int index)
          Check if the item at the specified index is a JunctionOperator.
 boolean isOuterMirror()
          Check if is outer mirror.
 void renameDepended(String oname, String nname)
          Rename the assemblies depended on.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void setAttachedAttribute(DataRef ref)
          Set the attached attribute.
 void setAttachedDataType(String dtype)
          Set the attached data type.
 void setAttachedSource(SourceInfo info)
          Set the attached source.
 void setAttachedType(int type)
          Set the attached type.
 void setAutoUpdate(boolean auto)
          Set auto update.
 void setConditionList(ConditionList conditions)
          Set the condition list.
 void setEntry(AssetEntry entry)
          Set the worksheet entry.
 void setLastModified(long modified)
          Set last modified time.
 void setWorksheet(Worksheet ws)
          Set the worksheet.
 boolean update()
          Update the inner mirror assembly.
 void updateMirror(AssetRepository engine, Principal user)
          Update the outer mirror assembly.
 
Methods inherited from class inetsoft.uql.asset.AbstractWSAssembly
checkDependency, clone, copyAssembly, createWSAssembly, getClassName, getDescription, getInfo, getName, getPosition, getSheet, getSize, getWorksheet, getWSAssemblyInfo, isComposed, isCondition, isDateCondition, isIconized, isNamedGroup, isOuter, isTable, isVariable, reset, setDescription, setIconized, setName, setOuter, setPosition, setSize, setVisible
 
Methods inherited from class inetsoft.uql.asset.AbstractAssembly
addr, equals, getAbsoluteName, getAssemblyEntry, getBounds, hashCode, isEditable, isVisible, parseAttributes, parseContents, parseXML, setBounds, toString, writeAttributes, writeContents, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface inetsoft.uql.asset.AttachedAssembly
clone
 
Methods inherited from interface inetsoft.uql.asset.WSAssembly
copyAssembly, getDescription, getWorksheet, getWSAssemblyInfo, isComposed, isCondition, isDateCondition, isIconized, isNamedGroup, isOuter, isTable, isVariable, reset, setDescription, setIconized, setOuter, setVisible
 
Methods inherited from interface inetsoft.uql.asset.Assembly
addr, checkDependency, getAbsoluteName, getAssemblyEntry, getBounds, getInfo, getName, getPosition, getSheet, getSize, isEditable, isVisible, setBounds, setPosition, setSize
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 
Methods inherited from interface inetsoft.uql.ConditionListWrapper
clone
 
Methods inherited from interface inetsoft.uql.asset.MirrorAssembly
clone
 

Constructor Detail

MirrorConditionAssembly

public MirrorConditionAssembly()
Constructor.


MirrorConditionAssembly

public MirrorConditionAssembly(Worksheet ws,
                               String name,
                               AssetEntry entry,
                               boolean outer,
                               WSAssembly assembly)
Constructor.

Method Detail

createInfo

protected inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
Create assembly info.

Overrides:
createInfo in class AbstractWSAssembly
Returns:
the associated assembly info.

getAssemblyType

public int getAssemblyType()
Get the type.

Specified by:
getAssemblyType in interface Assembly
Returns:
the type of the assembly.

setWorksheet

public void setWorksheet(Worksheet ws)
Set the worksheet.

Specified by:
setWorksheet in interface WSAssembly
Overrides:
setWorksheet in class AbstractWSAssembly
Parameters:
ws - the specified worksheet.

getMinimumSize

public Dimension getMinimumSize()
Get the minimum size.

Specified by:
getMinimumSize in interface Assembly
Returns:
the minimum size of the assembly.

replaceVariables

public void replaceVariables(VariableTable vars)
Replace all embeded user variables.

Specified by:
replaceVariables in interface WSAssembly
Specified by:
replaceVariables in interface ConditionListWrapper
Parameters:
vars - the specified variable table.

getAllVariables

public UserVariable[] getAllVariables()
Get all variables in the condition value list.

Specified by:
getAllVariables in interface inetsoft.uql.asset.internal.VariableProvider
Specified by:
getAllVariables in interface ConditionListWrapper
Returns:
the variable list.

getEntry

public AssetEntry getEntry()
Get the worksheet entry.

Specified by:
getEntry in interface MirrorAssembly
Returns:
the worksheet entry of the mirror assembly.

setEntry

public void setEntry(AssetEntry entry)
Set the worksheet entry.

Specified by:
setEntry in interface MirrorAssembly
Parameters:
entry - the specified worksheet entry.

getAssemblyName

public String getAssemblyName()
Get the assembly name.

Specified by:
getAssemblyName in interface MirrorAssembly
Returns:
the assembly name.

isOuterMirror

public boolean isOuterMirror()
Check if is outer mirror.

Specified by:
isOuterMirror in interface MirrorAssembly
Returns:
true if yes, false otherwise.

getLastModified

public long getLastModified()
Get the last modified time.

Specified by:
getLastModified in interface MirrorAssembly
Returns:
the last modified time of the assembly.

setLastModified

public void setLastModified(long modified)
Set last modified time.

Specified by:
setLastModified in interface MirrorAssembly
Parameters:
modified - the specified last modified time.

isAutoUpdate

public boolean isAutoUpdate()
Check if is auto update.

Specified by:
isAutoUpdate in interface MirrorAssembly
Returns:
true if yes, false otherwise.

setAutoUpdate

public void setAutoUpdate(boolean auto)
Set auto update.

Specified by:
setAutoUpdate in interface MirrorAssembly
Parameters:
auto - true to open auto update.

update

public boolean update()
Update the inner mirror assembly.

Specified by:
update in interface MirrorAssembly
Specified by:
update in interface WSAssembly
Overrides:
update in class AbstractWSAssembly
Returns:
true if successful, false otherwise.

updateMirror

public void updateMirror(AssetRepository engine,
                         Principal user)
                  throws Exception
Update the outer mirror assembly.

Specified by:
updateMirror in interface MirrorAssembly
Parameters:
engine - the specified asset repository.
user - the specified user.
Throws:
Exception

getAssembly

public Assembly getAssembly()
Get the assembly.

Specified by:
getAssembly in interface MirrorAssembly
Returns:
the assembly of the mirror assembly.

checkValidity

public void checkValidity()
                   throws Exception
Check if the mirror assembly is valid.

Specified by:
checkValidity in interface MirrorAssembly
Specified by:
checkValidity in interface WSAssembly
Overrides:
checkValidity in class AbstractWSAssembly
Throws:
Exception

getConditionList

public ConditionList getConditionList()
Get the condition.

Specified by:
getConditionList in interface ConditionAssembly
Specified by:
getConditionList in interface ConditionListWrapper
Returns:
the condition of the condition assembly.

isEmpty

public boolean isEmpty()
Check if this list is empty.

Specified by:
isEmpty in interface ConditionListWrapper
Returns:
true if empty, false otherwise.

setConditionList

public void setConditionList(ConditionList conditions)
Set the condition list.

Specified by:
setConditionList in interface ConditionAssembly
Parameters:
conditions - the specified condition list.

getConditionSize

public int getConditionSize()
Get the size.

Specified by:
getConditionSize in interface ConditionListWrapper
Returns:
size of the ConditionList.

getItem

public HierarchyItem getItem(int index)
Get the HierarchyItem at the specified index.

Specified by:
getItem in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
the HierarchyItem at the specified index.

isConditionItem

public boolean isConditionItem(int index)
Check if the item at the specified index is a ConditionItem.

Specified by:
isConditionItem in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
true if is a ConditionItem.

isJunctionOperator

public boolean isJunctionOperator(int index)
Check if the item at the specified index is a JunctionOperator.

Specified by:
isJunctionOperator in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
true if is a JunctionOperator.

getConditionItem

public ConditionItem getConditionItem(int index)
Get the ConditionItem at the specified index.

Specified by:
getConditionItem in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
the ConditionItem at the specified index.

getJunctionOperator

public JunctionOperator getJunctionOperator(int index)
Get the JunctionOperator at the specified index.

Specified by:
getJunctionOperator in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
the JunctionOperator at the specified index.

getAttachedType

public int getAttachedType()
Get the attached type.

Specified by:
getAttachedType in interface AttachedAssembly
Returns:
the attached type.

setAttachedType

public void setAttachedType(int type)
Set the attached type.

Specified by:
setAttachedType in interface AttachedAssembly
Parameters:
type - the specified type.

getAttachedSource

public SourceInfo getAttachedSource()
Get the attached source.

Specified by:
getAttachedSource in interface AttachedAssembly
Returns:
the attached source.

setAttachedSource

public void setAttachedSource(SourceInfo info)
Set the attached source.

Specified by:
setAttachedSource in interface AttachedAssembly
Parameters:
info - the specified source.

getAttachedAttribute

public DataRef getAttachedAttribute()
Get the attached attribute.

Specified by:
getAttachedAttribute in interface AttachedAssembly
Returns:
the attached attribute.

setAttachedAttribute

public void setAttachedAttribute(DataRef ref)
Set the attached attribute.

Specified by:
setAttachedAttribute in interface AttachedAssembly
Parameters:
ref - the specified attribute.

getAttachedDataType

public String getAttachedDataType()
Get the attached data type.

Specified by:
getAttachedDataType in interface AttachedAssembly
Returns:
the attached data type.

setAttachedDataType

public void setAttachedDataType(String dtype)
Set the attached data type.

Specified by:
setAttachedDataType in interface AttachedAssembly

isAttachedValid

public void isAttachedValid()
                     throws Exception
Check if the attached assembly is valid.

Specified by:
isAttachedValid in interface AttachedAssembly
Throws:
Exception

getDependeds

public void getDependeds(Set set)
Get the assemblies depended on.

Specified by:
getDependeds in interface Assembly
Parameters:
set - the set stores the assemblies depended on.

renameDepended

public void renameDepended(String oname,
                           String nname)
Rename the assemblies depended on.

Specified by:
renameDepended in interface Assembly
Specified by:
renameDepended in interface MirrorAssembly
Parameters:
oname - the specified old name.
nname - the specified new name.

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