Class MCRAccessKey

java.lang.Object
org.mycore.mcr.acl.accesskey.model.MCRAccessKey

@Entity public class MCRAccessKey extends Object
  • Constructor Details

    • MCRAccessKey

      protected MCRAccessKey()
    • MCRAccessKey

      public MCRAccessKey(String secret, String type)
      Creates a new access key with secret and type.
      Parameters:
      secret - the secret the user must know to acquire permission.
      type - the type of permission.
  • Method Details

    • getObjectId

      public MCRObjectID getObjectId()
      Returns:
      the linked objectId
    • setObjectId

      public void setObjectId(MCRObjectID objectId)
      Parameters:
      objectId - the MCRObjectID to set
    • getId

      public int getId()
      Returns:
      internal id
    • setId

      public void setId(int id)
      Parameters:
      id - internal id
    • getSecret

      public String getSecret()
      Returns:
      the key secret
    • setSecret

      public void setSecret(String secret)
      Parameters:
      secret - key secret
    • getType

      public String getType()
      Returns:
      permission type
    • setType

      public void setType(String type)
      Parameters:
      type - permission type
    • getIsActive

      public Boolean getIsActive()
      Returns:
      active or not
    • setIsActive

      public void setIsActive(Boolean isActive)
      Parameters:
      isActive - the state
    • getExpiration

      public Date getExpiration()
      Returns:
      expiration date
    • setExpiration

      public void setExpiration(Date expiration)
      Parameters:
      expiration - the expiration date
    • getComment

      public String getComment()
      Returns:
      comment
    • setComment

      public void setComment(String comment)
      Parameters:
      comment - the comment
    • getCreated

      public Date getCreated()
      Returns:
      date of creation
    • setCreated

      public void setCreated(Date created)
      Parameters:
      created - date of creation
    • getCreatedBy

      public String getCreatedBy()
      Returns:
      name of creator
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Parameters:
      createdBy - name of creator
    • getLastModified

      public Date getLastModified()
      Returns:
      date of last modification
    • setLastModified

      public void setLastModified(Date lastModified)
      Parameters:
      lastModified - date of last modification
    • getLastModifiedBy

      public String getLastModifiedBy()
      Returns:
      name of last modifier
    • setLastModifiedBy

      public void setLastModifiedBy(String lastModifiedBy)
      Parameters:
      lastModifiedBy - name of last modifier
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object