Class ModuleAttribute

java.lang.Object
com.easydesk.om.BaseModuleAttribute
com.easydesk.om.ModuleAttribute
All Implemented Interfaces:
Cacheable, Deletable, Orderable<ModuleAttribute>, Serializable, Comparable<ModuleAttribute>, ColumnAccessByName, ObjectModel, Persistent

public class ModuleAttribute extends BaseModuleAttribute implements Deletable, Orderable<ModuleAttribute>, Cacheable
The skeleton for this class was autogenerated by Torque on: [Sun Nov 14 20:29:22 KST 2021] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
  • Constructor Details

    • ModuleAttribute

      public ModuleAttribute()
      새로운 ModuleAttribute 인스턴스를 생성한다.
  • Method Details

    • getModule

      public Module getModule() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • setModule

      public void setModule(Module module)
      DOCUMENT ME!
      Parameters:
      module - DOCUMENT ME!
    • save

      public void save() throws Exception
      (non-Javadoc)
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseModuleAttribute
      Throws:
      Exception - if an error occurs during saving.
      See Also:
    • getModuleItemType

      public ModuleItemType getModuleItemType() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getItemTypeAttribute

      public ItemTypeAttribute getItemTypeAttribute() throws TorqueException
      ItemTypeAttribute 를 구한다 존재하지 않은면 null 을 return
      Returns:
      ItemTypeAttribute, 없으면 null
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getModuleOption

      public ModuleOption getModuleOption(AttributeOption option) throws TorqueException
      DOCUMENT ME!
      Parameters:
      option - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getModuleOptions

      public List<ModuleOption> getModuleOptions() throws TorqueException
      Active ModuleOption List 를 구한다. 만약 attribute null 이면 empty list 를 보낸다. attribute 가 Option Attribute 가 아니면 empty list 를 보낸다.
      Returns:
      active ModuleOption 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getModuleOptions

      public List<ModuleOption> getModuleOptions(boolean activeOnly) throws TorqueException
      ModuleOption List 를 구한다. 만약 attribute null 이면 empty list 를 보낸다. attribute 가 Option Attribute 가 아니면 empty list 를 보낸다.
      Parameters:
      activeOnly - active 인 ModuleOption 만 구할지 여부
      Returns:
      ModuleOption 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAllModuleOptions

      protected List<ModuleOption> getAllModuleOptions() throws TorqueException
      모든 ModuleOption 을 구한다
      Returns:
      moduleOption list
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getOptionTree

      public List<ModuleOption> getOptionTree() throws TorqueException
      Gets a list of active ModuleOptions which have had their level within the options for this module set.
      Returns:
      a List value
      Throws:
      TorqueException - if an error occurs
    • getOptionTree

      public List<ModuleOption> getOptionTree(boolean activeOnly) throws TorqueException
      Gets a list of ModuleOptions which have had their level within the options for this module set. ( Order 보다 Parent-Child 가 우선 적용된다. )
      Parameters:
      activeOnly - a boolean value
      Returns:
      a List value
      Throws:
      TorqueException - if an error occurs
    • getOptionTreeDepth

      public int getOptionTreeDepth() throws TorqueException
      Gets a list of active ModuleOptions which have had their level within the options for this module set.
      Returns:
      a max depthint value
      Throws:
      TorqueException - if an error occurs
    • has

      public boolean has(AttributeOption option) throws TorqueException
      ModuleAttribute 에 option 이 등록되어 있는지 확인한다.
      Parameters:
      option - 확인할 AttributeOption
      Returns:
      true/false
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAvailableAttributeOptions

      public List<AttributeOption> getAvailableAttributeOptions() throws Exception
      gets a list of all of the Attribute options that are not associated with this module and attribute.
      Returns:
      attributeOption list
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • delete

      public boolean delete(EasyDeskUser user) throws Exception
      DOCUMENT ME!
      Specified by:
      delete in interface Deletable
      Parameters:
      user - DOCUMENT ME!
      Returns:
      true success false not success
      Throws:
      Exception - DOCUMENT ME!
    • delete

      public boolean delete(EasyDeskUser user, boolean overrideLock) throws Exception
      DOCUMENT ME!
      Specified by:
      delete in interface Deletable
      Parameters:
      user - DOCUMENT ME!
      overrideLock - lock 이 걸려 있어도 삭제할지 여부
      Returns:
      true success false not success
      Throws:
      Exception - DOCUMENT ME!
    • getOrderDiff

      public int getOrderDiff(String first, String second) throws TorqueException
      first order - second order 를 구한다.
      Parameters:
      first - 첫 번째 option 이름
      second - 두 번째 option 이름
      Returns:
      두 option 의 순서 차이
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
      IllegalArgumentException - option 속성이 아닌 경우
    • getLeafModuleOptions

      public List<ModuleOption> getLeafModuleOptions() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
      TorqueException
    • getLeafModuleOptions

      public List<ModuleOption> getLeafModuleOptions(boolean activeOnly) throws TorqueException
      Option List 의 Leaf 만 구한다. ( 검색에서 사용 )
      Parameters:
      activeOnly - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
      TorqueException
    • getValueFormatter

      public ValueFormatter getValueFormatter() throws TorqueException
      Date, Number, String 등의 Format String 을 구한다. ModuleAttribute 에 정의되어 있지 않으면 ItemTypeAttribute 에서 구한다.
      Returns:
      ValueFormatter
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getValidator

      public EasyDeskValidator getValidator() throws TorqueException
      Validator 를 구한다. 없으면 ItemTypeAttribute 의 것을 구한다.
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getMethodCache

      public MethodResultCache getMethodCache()
      Specified by:
      getMethodCache in interface Cacheable
      Returns:
      MethodResultCache
    • clear

      public void clear()
      Description copied from interface: Cacheable
      clear this Serializable instance cache
      Specified by:
      clear in interface Cacheable