com.aurel.track.fieldType.design.custom.select.config.bl
Class SimpleSelectConfigBL

java.lang.Object
  extended by com.aurel.track.fieldType.design.custom.select.config.bl.SelectConfigBaseBL
      extended by com.aurel.track.fieldType.design.custom.select.config.bl.SimpleSelectConfigBL

public class SimpleSelectConfigBL
extends SelectConfigBaseBL

Class implementing a simple select

Author:
Tamas Ruff

Constructor Summary
SimpleSelectConfigBL()
           
 
Method Summary
 void copyOptions(ListHierarchy listHierarchy)
          Makes a copy of the entire list
 void deleteOptions(java.lang.Integer listID)
          Deletes all options Before calling this method it should be tested whether no option from the list has workItem dependence
 void deleteOptionWithChild(java.lang.Integer optionID)
          Delete an option.
 java.util.List getDataSource(java.lang.Integer listID)
          Gets a data source for the list
 java.util.List getSortorderUnitListOrderedByLabel(java.lang.Integer listID, java.lang.Integer parentID, boolean ascending)
          Gets the list of options the sortorder matters ordered by label
 java.util.List getSortorderUnitListOrderedBySortorder(java.lang.Integer listID, java.lang.Integer parentID)
          Gets the list of options the sortorder matters ordered by sortorder
 boolean isOptionAssignedToWorkItem(java.lang.Integer optionID)
          Whether the option is associated with a workItem
static java.util.List loadByList(java.lang.Integer listID)
           
 void setDeleted(java.lang.Integer optionID, boolean flag)
          Sets an option as deleted
 
Methods inherited from class com.aurel.track.fieldType.design.custom.select.config.bl.SelectConfigBaseBL
deleteOption, loadByPrimaryKey, moveDown, moveUp, save, sortAphabetically
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSelectConfigBL

public SimpleSelectConfigBL()
Method Detail

loadByList

public static java.util.List loadByList(java.lang.Integer listID)

getDataSource

public java.util.List getDataSource(java.lang.Integer listID)
Gets a data source for the list

Specified by:
getDataSource in class SelectConfigBaseBL
Returns:

deleteOptionWithChild

public void deleteOptionWithChild(java.lang.Integer optionID)
Delete an option. For simple select no childs are defined

Specified by:
deleteOptionWithChild in class SelectConfigBaseBL

getSortorderUnitListOrderedBySortorder

public java.util.List getSortorderUnitListOrderedBySortorder(java.lang.Integer listID,
                                                             java.lang.Integer parentID)
Gets the list of options the sortorder matters ordered by sortorder

Specified by:
getSortorderUnitListOrderedBySortorder in class SelectConfigBaseBL
Parameters:
listID -
parentID - null for simple select lists

getSortorderUnitListOrderedByLabel

public java.util.List getSortorderUnitListOrderedByLabel(java.lang.Integer listID,
                                                         java.lang.Integer parentID,
                                                         boolean ascending)
Gets the list of options the sortorder matters ordered by label

Specified by:
getSortorderUnitListOrderedByLabel in class SelectConfigBaseBL
Parameters:
listID -
parentID - null for simple select lists
ascending -

setDeleted

public void setDeleted(java.lang.Integer optionID,
                       boolean flag)
Sets an option as deleted

Specified by:
setDeleted in class SelectConfigBaseBL
Parameters:
optionID -

deleteOptions

public void deleteOptions(java.lang.Integer listID)
Deletes all options Before calling this method it should be tested whether no option from the list has workItem dependence

Specified by:
deleteOptions in class SelectConfigBaseBL
Parameters:
listID -

isOptionAssignedToWorkItem

public boolean isOptionAssignedToWorkItem(java.lang.Integer optionID)
Whether the option is associated with a workItem

Specified by:
isOptionAssignedToWorkItem in class SelectConfigBaseBL
Parameters:
optionID -
Returns:

copyOptions

public void copyOptions(ListHierarchy listHierarchy)
Makes a copy of the entire list

Specified by:
copyOptions in class SelectConfigBaseBL
Parameters:
listID -


Issue Tracking with Track+: Home Page      Copyright © 2008 Trackplus. All Rights Reserved.