za.org.coefficient.modules.attribute
Class AttributeManagement

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

public class AttributeManagement
extends BaseModule


Field Summary
static java.lang.String ADD
           
static java.lang.String ADDMSG
           
static java.lang.String ADMINPAGE
           
static java.lang.String ATTRIBUTE
           
static java.lang.String ATTRIBUTES
           
static java.lang.String BUTTON
           
(package private)  java.lang.String[] commandRoles
           
static java.lang.String COMPLETEDMSG
           
static java.lang.String DELETE
           
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 ERROR
           
static java.lang.String ERRORPAGE
           
static java.lang.String ID
           
static java.lang.String INDEXPAGE
           
static java.lang.String LISTPAGE
           
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 TITLE
           
static java.lang.String UPDATE
           
 
Constructor Summary
AttributeManagement()
           
 
Method Summary
 boolean canDelete(ProjectAttribute pa)
           
 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)
           
 java.util.List getExistingAttributes()
           
 java.util.List getExistingData(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
 
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

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

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

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

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

ERRORPAGE

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

ADMINPAGE

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

LISTPAGE

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

INDEXPAGE

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

ADDMSG

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

COMPLETEDMSG

public static final java.lang.String COMPLETEDMSG
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

AttributeManagement

public AttributeManagement()
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

command

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


canDelete

public boolean canDelete(ProjectAttribute pa)

doInitialWork

public CoefficientContext doInitialWork(CoefficientContext ctx)

getExistingAttributes

public java.util.List getExistingAttributes()

getExistingData

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


Copyright CSIR. All Rights Reserved.