org.ujoframework
Interface UjoAction

All Known Implementing Classes:
UjoActionImpl

public interface UjoAction

An action constants of UJO Framework.

Author:
Pavel Ponec
See Also:
Ujo

Field Summary
static int ACTION_CLONE
          An authorization action (of a UjoProperty) for a method: UjoManager.clone(Ujo ujo, int depth) .
static int ACTION_COPY
          An authorization action (of a UjoProperty) for a method: UjoManager.copy(Ujo source, Ujo target, UjoProperty... properties) .
static int ACTION_CSV_EXPORT
          An authorization action (of a UjoProperty) for a CSV export.
static int ACTION_CSV_IMPORT
          An authorization action (of a UjoProperty) for a CSV import.
static int ACTION_RESBUNDLE_EXPORT
          An authorization action (of a UjoProperty) for a Resource Bundle export.
static int ACTION_RESBUNDLE_IMPORT
          An authorization action (of a UjoProperty) for a Resource Bundle import.
static int ACTION_TABLE_SHOW
          An authorization action for class UjoContentTabModel.
static int ACTION_TO_STRING
          An authorization action (of a UjoProperty) for a method: toString()
static int ACTION_UNDEFINED
          This is an undefined action.
static int ACTION_XML_ELEMENT
          Deprecated. 
static int ACTION_XML_EXPORT
          An authorization action (of a UjoProperty) for a XML export.
static int ACTION_XML_IMPORT
          An authorization action (of a UjoProperty) for a XML import.
static int ACTION_ZERO_REPLACE
          Deprecated. use the UjoProperty.getDefault() value instead of.
static UjoAction DUMMY
          A dummy action have got an ACTION_UNDEFINED id and the null context.
 
Method Summary
 java.lang.Object getContext()
          Returns a conetxt of the action.
 int getType()
          Returns a type of the action.
 

Field Detail

ACTION_UNDEFINED

static final int ACTION_UNDEFINED
This is an undefined action.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_XML_EXPORT

static final int ACTION_XML_EXPORT
An authorization action (of a UjoProperty) for a XML export.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_XML_IMPORT

static final int ACTION_XML_IMPORT
An authorization action (of a UjoProperty) for a XML import.
Note: the authoriazation is not implemented yet.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_XML_ELEMENT

@Deprecated
static final int ACTION_XML_ELEMENT
Deprecated. 
Some properties can be exported (or imported) to (from) XML file like an attribute. If readAuthorization(...) method returns value FALSE, then the property is attribute, otherwise TRUE value means element.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_RESBUNDLE_EXPORT

static final int ACTION_RESBUNDLE_EXPORT
An authorization action (of a UjoProperty) for a Resource Bundle export.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_RESBUNDLE_IMPORT

static final int ACTION_RESBUNDLE_IMPORT
An authorization action (of a UjoProperty) for a Resource Bundle import.
Note: the authoriazation is not implemented yet.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_CSV_IMPORT

static final int ACTION_CSV_IMPORT
An authorization action (of a UjoProperty) for a CSV import.
Note: the authoriazation is not implemented yet.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_CSV_EXPORT

static final int ACTION_CSV_EXPORT
An authorization action (of a UjoProperty) for a CSV export.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_CLONE

static final int ACTION_CLONE
An authorization action (of a UjoProperty) for a method: UjoManager.clone(Ujo ujo, int depth) .

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_COPY

static final int ACTION_COPY
An authorization action (of a UjoProperty) for a method: UjoManager.copy(Ujo source, Ujo target, UjoProperty... properties) .

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_TO_STRING

static final int ACTION_TO_STRING
An authorization action (of a UjoProperty) for a method: toString()

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_ZERO_REPLACE

static final int ACTION_ZERO_REPLACE
Deprecated. use the UjoProperty.getDefault() value instead of.
An authorization action (of a UjoProperty) for a Zero provider. The constant enable/disable a Zero Provide management.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

ACTION_TABLE_SHOW

static final int ACTION_TABLE_SHOW
An authorization action for class UjoContentTabModel. Can by displayed the property in a JTable like a row?.

See Also:
Ujo.readAuthorization(UjoAction, UjoProperty, Object), Constant Field Values

DUMMY

static final UjoAction DUMMY
A dummy action have got an ACTION_UNDEFINED id and the null context.

Method Detail

getType

int getType()
Returns a type of the action. The default type is ACTION_UNDEFINED.
The number can be useful for a resolution of an action for a different purpose (e.g. export to 2 different XML files).


getContext

java.lang.Object getContext()
Returns a conetxt of the action. The value is dedicated to a user usage and the value can be null.



Copyright © 2010. All Rights Reserved.