Class Item.FederatedId

java.lang.Object
com.easydesk.om.Item.FederatedId
All Implemented Interfaces:
Serializable
Enclosing class:
Item

public static class Item.FederatedId extends Object implements Serializable
A FederatedId has this format: DOMAIN-CODE-ID For example: nannet.co.kr-PACS-1 The domain can also be null.
  • Constructor Details

    • FederatedId

      public FederatedId(String id)
      id 문자열로 FederatedId 를 생성한다. "1", "PACS-1", "nannet.co.kr-PACS-1" 형식을 지원한다.
      Parameters:
      id - item id 문자열
    • FederatedId

      public FederatedId(String domain, String prefix, int count)
      domain, prefix, count 로 FederatedId 를 생성한다.
      Parameters:
      domain - domain, 없으면 null
      prefix - module code
      count - module 내의 item sequence
  • Method Details

    • setUniqueId

      public void setUniqueId(String id)
      unique id 를 해석하여 prefix 와 count 를 설정한다.
      Parameters:
      id - The unique identifier for this item, generally a combination of code and sequence number (e.g. SCB-37).
    • getDomain

      public String getDomain()
      domain 을 구한다.
      Returns:
      The domain.
    • getPrefix

      public String getPrefix()
      prefix 를 구한다.
      Returns:
      The prefix (upper-cased).
    • getCount

      public int getCount()
      sequence 를 구한다.
      Returns:
      The sequence of this item within its code.
    • setDomain

      public void setDomain(String domainId)
      Set the domainId
      Parameters:
      domainId - domain
    • setPrefix

      public void setPrefix(String prefix)
      prefix 를 설정한다. 대문자로 변환한다.
      Parameters:
      prefix - The module code.
    • setCount

      public void setCount(int count)
      sequence 를 설정한다.
      Parameters:
      count - The sequence of this item within its code.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object