Class EasyDeskValidator

java.lang.Object
com.easydesk.om.BaseEasyDeskValidator
com.easydesk.om.EasyDeskValidator
All Implemented Interfaces:
Cacheable, Deletable, AttributeValueValidator, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class EasyDeskValidator extends BaseEasyDeskValidator implements AttributeValueValidator, Deletable, Cacheable
Version:
$id: EasyDeskValidator.java $Revision$, 03-08-22 11:43:05 PM KST
Author:
YounghoCho
  • Constructor Details

    • EasyDeskValidator

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

    • save

      public void save() throws Exception
      Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseEasyDeskValidator
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • delete

      public boolean delete(EasyDeskUser user) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • delete

      public boolean delete(EasyDeskUser user, boolean overrideLock) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      overrideLock - lock 이 걸려 있어도 삭제할지 여부
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • setActivitySet

      public void setActivitySet(ActivitySet activitySet)
      검증 대상 ActivitySet 을 설정한다.
      Specified by:
      setActivitySet in interface AttributeValueValidator
      Parameters:
      activitySet - 현재 처리중인 ActivitySet
    • getActivitySet

      public ActivitySet getActivitySet()
      검증 대상 ActivitySet 을 구한다.
      Specified by:
      getActivitySet in interface AttributeValueValidator
      Returns:
      current ActivitySet for this Validation
    • isValid

      public ValidateError[] isValid(AttributeValue value, Map<Integer,AttributeValue> newValues) throws Exception
      속성값이 올바른지 검증한다.
      Specified by:
      isValid in interface AttributeValueValidator
      Parameters:
      value - 검증할 AttributeValue
      newValues - 함께 저장되는 새 속성값 map ({ attributeId, attributeValue })
      Returns:
      ValidateError array
      Throws:
      Exception - 검증 중 오류가 발생한 경우
    • getValidator

      public AttributeValueValidator getValidator() throws Exception
      Throws:
      Exception
    • hasCondition

      protected boolean hasCondition()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isForNumberValidation

      protected boolean isForNumberValidation()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isForStringValidation

      protected boolean isForStringValidation()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • buildRule

      protected CharSequence buildRule()
      DOCUMENT ME!
      Returns:
      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