org.infolayer.templates.html
Class TE_operation

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.html.TE_operation

public class TE_operation
extends TemplateElement

The <t:operation> element creates a button that performs the operation denoted by the name attribute. The button can only be activated successfully if the current user has the required permissions.

If the operation is a query operation, a HTTP GET request is used. Otherwise, if the method has side effects, an HTTP POST request is generated.

If the operation provides an return value, this is used to generate the result page.

Attributes

name
The name of the operation to be executed.
label
An optional labed for the button. If not present, the name of the operation will be displayed.
followup
A followup command, determining the next page.

See Also:
Serialized Form

Field Summary
static int CONFIRM
           
static int CREATING
           
static int DEFAULT
           
static int IN_TABLE
           
static int SUBCLASSES
           
 
Constructor Summary
TE_operation()
           
 
Method Summary
 void apply(XmlSerializer xw, IlRequest context, Bindings bindings)
          Applies the template mechanism.
static void writeOperation(XmlSerializer xw, IlRequest context, Bindings bindings, UmlOperation operation, java.lang.String label, java.lang.String followup, int special)
           
 
Methods inherited from class org.infolayer.templates.TemplateElement
applyChildren, assertNoChildren, assertNoChildren, getAttributeValue, getVarDefs, init, readTextContent, setVarDefs, writeAttributes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

SUBCLASSES

public static final int SUBCLASSES
See Also:
Constant Field Values

CONFIRM

public static final int CONFIRM
See Also:
Constant Field Values

CREATING

public static final int CREATING
See Also:
Constant Field Values

IN_TABLE

public static final int IN_TABLE
See Also:
Constant Field Values
Constructor Detail

TE_operation

public TE_operation()
Method Detail

writeOperation

public static void writeOperation(XmlSerializer xw,
                                  IlRequest context,
                                  Bindings bindings,
                                  UmlOperation operation,
                                  java.lang.String label,
                                  java.lang.String followup,
                                  int special)
                           throws java.io.IOException
Throws:
java.io.IOException

apply

public void apply(XmlSerializer xw,
                  IlRequest context,
                  Bindings bindings)
           throws java.io.IOException
Description copied from class: TemplateElement
Applies the template mechanism. Must be overwritten in the

Overrides:
apply in class TemplateElement
Throws:
java.io.IOException