za.org.coefficient.modules.attribute
Class AttributeDataManagement

java.lang.Object
  extended by za.org.coefficient.modules.BaseModule
      extended by za.org.coefficient.modules.attribute.AttributeDataManagement
All Implemented Interfaces:
CoefficientEventPublisher, ModuleLocal

public class AttributeDataManagement
extends BaseModule


Field Summary
static java.lang.String ADD
           
static java.lang.String ATTRIBUTE
           
static java.lang.String ATTRIBUTES
           
static java.lang.String BUTTON
           
static java.lang.String CANNOTDELETEPAGE
           
static java.lang.String COLS
           
(package private)  java.lang.String[] commandRoles
           
static java.lang.String DATAPAGE
           
static java.lang.String DELETE
           
static java.lang.String DELETEPAGE
           
static java.lang.String DESCRIPTION
           
(package private)  java.lang.String[] doInitialWorkRoles
           
static java.lang.String EDIT
           
static java.lang.String ENTERFIELDS
           
static java.lang.String EQUALS
           
static java.lang.String ERROR
           
static java.lang.String HEADING
           
static java.lang.String HEADINGPAGE
           
static java.lang.String ID
           
static java.lang.String LINE
           
static java.lang.String LINES
           
static java.lang.String MODULE
           
static java.lang.String MORE
           
static java.lang.String NAME
           
static java.lang.String ON
           
static java.lang.String OP
           
static java.lang.String ROWS
           
static java.lang.String SELECT
           
static java.lang.String SIZE
           
static java.lang.String TDPAGE
           
static java.lang.String TEXTAREAPAGE
           
static java.lang.String TEXTPAGE
           
static java.lang.String TITLE
           
static java.lang.String UPDATE
           
 
Constructor Summary
AttributeDataManagement()
           
 
Method Summary
private  boolean canDelete(ProjectAttributeData pad)
           
 java.lang.String canExecuteForRole(CoefficientContext ctx, java.lang.String methodName, Role usersHighestRole)
          This is a base implementation that will allow all methods to be invoked without regard to roles
 CoefficientContext command(CoefficientContext ctx)
          executed by the project champion.
 CoefficientContext doInitialWork(CoefficientContext ctx)
           
 ProjectAttribute getAttributeByName(java.lang.String name)
           
 ProjectAttribute getAttributeByNumber(java.lang.Long id)
           
 java.util.List getExistingAttributes()
           
 java.util.List getExistingData(java.lang.Long attributeId)
           
 java.util.List getExistingDataKeywords(java.lang.Long attributeId)
           
 java.lang.String getMainMethod()
          This method is used to determine which method should be invoked when the module is requested without an operation.
 java.lang.String getModuleDescription()
          This method is used to find the description of the module
 java.lang.String getModuleDisplayName()
          This method is used to find the display name of the module
private  void setupSelect(CoefficientContext ctx, java.util.HashMap map)
           
 
Methods inherited from class za.org.coefficient.modules.BaseModule
createRSSItem, displayUsersData, getCoefficientContext, getModuleName, isProjectRequired, publishEvent, setCoefficientContext, showHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD

public static final java.lang.String ADD
See Also:
Constant Field Values

UPDATE

public static final java.lang.String UPDATE
See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
See Also:
Constant Field Values

SELECT

public static final java.lang.String SELECT
See Also:
Constant Field Values

EDIT

public static final java.lang.String EDIT
See Also:
Constant Field Values

ERROR

public static final java.lang.String ERROR
See Also:
Constant Field Values

HEADING

public static final java.lang.String HEADING
See Also:
Constant Field Values

ATTRIBUTE

public static final java.lang.String ATTRIBUTE
See Also:
Constant Field Values

ATTRIBUTES

public static final java.lang.String ATTRIBUTES
See Also:
Constant Field Values

LINES

public static final java.lang.String LINES
See Also:
Constant Field Values

LINE

public static final java.lang.String LINE
See Also:
Constant Field Values

MODULE

public static final java.lang.String MODULE
See Also:
Constant Field Values

OP

public static final java.lang.String OP
See Also:
Constant Field Values

ROWS

public static final java.lang.String ROWS
See Also:
Constant Field Values

COLS

public static final java.lang.String COLS
See Also:
Constant Field Values

SIZE

public static final java.lang.String SIZE
See Also:
Constant Field Values

EQUALS

public static final java.lang.String EQUALS
See Also:
Constant Field Values

BUTTON

public static final java.lang.String BUTTON
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
See Also:
Constant Field Values

TITLE

public static final java.lang.String TITLE
See Also:
Constant Field Values

MORE

public static final java.lang.String MORE
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

ON

public static final java.lang.String ON
See Also:
Constant Field Values

DATAPAGE

public static final java.lang.String DATAPAGE
See Also:
Constant Field Values

TEXTPAGE

public static final java.lang.String TEXTPAGE
See Also:
Constant Field Values

TEXTAREAPAGE

public static final java.lang.String TEXTAREAPAGE
See Also:
Constant Field Values

HEADINGPAGE

public static final java.lang.String HEADINGPAGE
See Also:
Constant Field Values

TDPAGE

public static final java.lang.String TDPAGE
See Also:
Constant Field Values

DELETEPAGE

public static final java.lang.String DELETEPAGE
See Also:
Constant Field Values

CANNOTDELETEPAGE

public static final java.lang.String CANNOTDELETEPAGE
See Also:
Constant Field Values

ENTERFIELDS

public static final java.lang.String ENTERFIELDS
See Also:
Constant Field Values

commandRoles

java.lang.String[] commandRoles

doInitialWorkRoles

java.lang.String[] doInitialWorkRoles
Constructor Detail

AttributeDataManagement

public AttributeDataManagement()
Method Detail

getMainMethod

public java.lang.String getMainMethod()
Description copied from interface: ModuleLocal
This method is used to determine which method should be invoked when the module is requested without an operation.

Specified by:
getMainMethod in interface ModuleLocal
Specified by:
getMainMethod in class BaseModule
Returns:
name of the method that should be invoked

getModuleDescription

public java.lang.String getModuleDescription()
Description copied from interface: ModuleLocal
This method is used to find the description of the module

Specified by:
getModuleDescription in interface ModuleLocal
Specified by:
getModuleDescription in class BaseModule
Returns:
the description of the module

getModuleDisplayName

public java.lang.String getModuleDisplayName()
Description copied from interface: ModuleLocal
This method is used to find the display name of the module

Specified by:
getModuleDisplayName in interface ModuleLocal
Specified by:
getModuleDisplayName in class BaseModule
Returns:
the display name of the module

canExecuteForRole

public java.lang.String canExecuteForRole(CoefficientContext ctx,
                                          java.lang.String methodName,
                                          Role usersHighestRole)
Description copied from class: BaseModule
This is a base implementation that will allow all methods to be invoked without regard to roles

Specified by:
canExecuteForRole in interface ModuleLocal
Overrides:
canExecuteForRole in class BaseModule
Returns:
null if we can execute the method an error message if not

getExistingAttributes

public java.util.List getExistingAttributes()

getAttributeByName

public ProjectAttribute getAttributeByName(java.lang.String name)

getAttributeByNumber

public ProjectAttribute getAttributeByNumber(java.lang.Long id)

getExistingData

public java.util.List getExistingData(java.lang.Long attributeId)

getExistingDataKeywords

public java.util.List getExistingDataKeywords(java.lang.Long attributeId)

command

public CoefficientContext command(CoefficientContext ctx)
executed by the project champion. gives full access to the task data


doInitialWork

public CoefficientContext doInitialWork(CoefficientContext ctx)

canDelete

private boolean canDelete(ProjectAttributeData pad)

setupSelect

private void setupSelect(CoefficientContext ctx,
                         java.util.HashMap map)


Copyright CSIR. All Rights Reserved.