Class EasyDeskUserImpl

java.lang.Object
com.easydesk.om.BaseEasyDeskUserImpl
com.easydesk.om.EasyDeskUserImpl
All Implemented Interfaces:
Cacheable, Artifactizable, EasyDeskUser, Identifiable<Long>, SecurityEntity<Long>, User, HttpSessionBindingListener, Serializable, EventListener, ColumnAccessByName, ObjectModel, Persistent

public class EasyDeskUserImpl extends BaseEasyDeskUserImpl implements HttpSessionBindingListener, EasyDeskUser, Artifactizable, Cacheable
The skeleton for this class was autogenerated by Torque on: [Thu Aug 06 20:45:01 KST 2026] 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.
Author:
Youngho Cho
  • Constructor Details

    • EasyDeskUserImpl

      public EasyDeskUserImpl()
      Creates a new EasyDeskUser object.
  • Method Details

    • valueBound

      public void valueBound(HttpSessionBindingEvent hsbe)
      Implement this method if you wish to be notified when the User has been Bound to the session.
      Specified by:
      valueBound in interface HttpSessionBindingListener
      Parameters:
      hsbe - Indication of value/session binding.
    • valueUnbound

      public void valueUnbound(HttpSessionBindingEvent hsbe)
      Implement this method if you wish to be notified when the User has been Unbound from the session.
      Specified by:
      valueUnbound in interface HttpSessionBindingListener
      Parameters:
      hsbe - Indication of value/session unbinding.
    • getName

      public String getName()
      LoginName 과 Name 분리, LoginName 은 외붑에 노출하지 않는다.
      Specified by:
      getName in interface SecurityEntity<Long>
      Returns:
      The Name of the SecurityEntity.
      See Also:
    • setName

      public void setName(String name)
      Description copied from interface: SecurityEntity
      Sets the Name of the SecurityEntity.
      Specified by:
      setName in interface SecurityEntity<Long>
      Parameters:
      name - Name of the SecurityEntity.
    • save

      public void save() throws Exception
      사용자 정보를 저장한다. 수정 시간을 현재 시간으로 설정한다.
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseEasyDeskUserImpl
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • isConfirmed

      public boolean isConfirmed()
      DOCUMENT ME!
      Specified by:
      isConfirmed in interface EasyDeskUser
      Returns:
      DOCUMENT ME!
    • isAnonymous

      public boolean isAnonymous()
      System Anonymous User or Not only check userId
      Specified by:
      isAnonymous in interface EasyDeskUser
      Returns:
      anonymous 사용자이면 true
    • isPasswordExpired

      public boolean isPasswordExpired() throws Exception
      Checks if the users password has expired.
      Specified by:
      isPasswordExpired in interface EasyDeskUser
      Returns:
      The passwordExpired value
      Throws:
      Exception - if problem querying for the password.
    • setPasswordExpire

      public void setPasswordExpire(Calendar expire) throws Exception
      Sets the password to expire on the specified date.
      Specified by:
      setPasswordExpire in interface EasyDeskUser
      Parameters:
      expire - a Calendar value specifying the expire date. If this value is null, the password will be set to expire 10 years from the current year. Since Logging in resets this value, it should be ok to have someone's password expire after 10 years.
      Throws:
      Exception - if problem updating the password.
    • getTemp

      public Object getTemp(String name)
      Get an object from temporary storage.
      Specified by:
      getTemp in interface EasyDeskUser
      Parameters:
      name - The object's name.
      Returns:
      An Object with the given name.
    • setTemp

      public void setTemp(String name, Object value)
      Put an object into temporary storage.
      Specified by:
      setTemp in interface EasyDeskUser
      Parameters:
      name - The object's name.
      value - The object.
    • removeTemp

      public Object removeTemp(String name)
      DOCUMENT ME!
      Specified by:
      removeTemp in interface EasyDeskUser
      Parameters:
      name - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • hasLoggedIn

      public boolean hasLoggedIn()
      The user is considered logged in if they have not timed out.
      Specified by:
      hasLoggedIn in interface EasyDeskUser
      Returns:
      Whether the user has logged in.
    • setHasLoggedIn

      public void setHasLoggedIn(Boolean value)
      This sets whether or not someone has logged in. hasLoggedIn() returns this value.
      Specified by:
      setHasLoggedIn in interface EasyDeskUser
      Parameters:
      value - Whether someone has logged in or not.
    • getArtifactType

      public ItemType getArtifactType() throws TorqueException
      itemable Object 의 itemType
      Specified by:
      getArtifactType in interface Artifactizable
      Returns:
      itemType
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getArtifact

      public Item getArtifact(Module module) throws TorqueException
      주어진 module 에서 이 사용자를 표현하는 User Item 을 구한다.
      Parameters:
      module - 대상 Module
      Returns:
      주어진 module 에 설정된 User Item
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getActivityMonitors

      public List<ActivitySet> getActivityMonitors(ActivitySetType activitySetType) throws TorqueException
      사용자의 진행중인 ActivitySet(monitor) 목록을 구한다.
      Parameters:
      activitySetType - 대상 ActivitySetType
      Returns:
      진행중인 ActivitySet 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • setLocale

      public void setLocale(Locale locale)
      DOCUMENT ME!
      Specified by:
      setLocale in interface EasyDeskUser
      Parameters:
      locale - DOCUMENT ME!
    • getLocale

      public Locale getLocale()
      DOCUMENT ME!
      Specified by:
      getLocale in interface EasyDeskUser
      Returns:
      DOCUMENT ME!
    • hasAnyRoleIn

      public boolean hasAnyRoleIn(Group group) throws DataBackendException
      주어진 Module 에 Guest/Anonymous 는 제외한 다른 역할을 가지고 있는지 확인한다. 즉 주어진 module 에 활동을 위한 가입을 한 사용자로서 어떠한 역할을 가지고 있는지를 확인한다.
      Specified by:
      hasAnyRoleIn in interface EasyDeskUser
      Parameters:
      group - 대상 group(module)
      Returns:
      true or not Guest/Anonymous 는 제외
      Throws:
      DataBackendException - 역할을 조회하는 중 오류가 발생한 경우
    • hasPermission

      public boolean hasPermission(Permission perm, Item item) throws Exception
             이 사용자의 주어진 Module 에 대한 주어진 Permission 이 있는지를 확인한다.
             만약 주어진 Module 에 대한 Permission 이 존재하지 않으면, Global Module 에서의 권한를 확인한다.
       
      Parameters:
      perm - permission name
      item - apply target module
      Returns:
      boolean true/false
      Throws:
      Exception - 권한 확인 중 오류가 발생한 경우
    • canChange

      public Object canChange(Item item, Transition transition, TransitionScopeEnum tScope, Attribute attribute, Map<Integer,AttributeValue> newAttVals)
      Parameters:
      item - scope item
      transition - if null then always accept
      tScope - transition scope, null 이면 attribute 유무에 따라 기본 scope 를 사용한다.
      attribute - 대상 attribute
      newAttVals - 새 속성값 map ({ attributeId, attributeValue })
      Returns:
      null ( no constraint ) or constraint object
    • getNotificationFilter

      public NotificationFilter getNotificationFilter(AttributeOption manager, ActivitySetType activitySetType, Module module) throws TorqueException
      사용자 AllModule Notificator, AllModule RoleName, Module Notificator, Module RoleName, User NotificationFilter 는 5 개를 구한다. Anonymous 를 제외한 System User Notificator, RoleName NotificationFilter 는 2 개를 구한다. Filter 적용은 AN, AR, MN, MR, U 의 순으로 적용한다.
      Parameters:
      manager - 통지 방법(notification manager) AttributeOption
      activitySetType - 대상 ActivitySetType
      module - 대상 Module
      Returns:
      이 사용자의 NotificationFilter
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getMethodCache

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

      public void clear()
      ManagerCached annotation 이 붙은 method 이름.
      Specified by:
      clear in interface Cacheable