Class MCRAccessKey
java.lang.Object
org.mycore.mcr.acl.accesskey.model.MCRAccessKey
-
Constructor Summary
ModifierConstructorDescriptionprotected
MCRAccessKey
(String secret, String type) Creates a new access key with secret and type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getId()
getType()
void
setComment
(String comment) void
setCreated
(Date created) void
setCreatedBy
(String createdBy) void
setExpiration
(Date expiration) void
setId
(int id) void
setIsActive
(Boolean isActive) void
setLastModified
(Date lastModified) void
setLastModifiedBy
(String lastModifiedBy) void
setObjectId
(MCRObjectID objectId) void
void
-
Constructor Details
-
MCRAccessKey
protected MCRAccessKey() -
MCRAccessKey
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
- Returns:
- the linked objectId
-
setObjectId
- Parameters:
objectId
- theMCRObjectID
to set
-
getId
public int getId()- Returns:
- internal id
-
setId
public void setId(int id) - Parameters:
id
- internal id
-
getSecret
- Returns:
- the key secret
-
setSecret
- Parameters:
secret
- key secret
-
getType
- Returns:
- permission type
-
setType
- Parameters:
type
- permission type
-
getIsActive
- Returns:
- active or not
-
setIsActive
- Parameters:
isActive
- the state
-
getExpiration
- Returns:
- expiration date
-
setExpiration
- Parameters:
expiration
- the expiration date
-
getComment
- Returns:
- comment
-
setComment
- Parameters:
comment
- the comment
-
getCreated
- Returns:
- date of creation
-
setCreated
- Parameters:
created
- date of creation
-
getCreatedBy
- Returns:
- name of creator
-
setCreatedBy
- Parameters:
createdBy
- name of creator
-
getLastModified
- Returns:
- date of last modification
-
setLastModified
- Parameters:
lastModified
- date of last modification
-
getLastModifiedBy
- Returns:
- name of last modifier
-
setLastModifiedBy
- Parameters:
lastModifiedBy
- name of last modifier
-
equals
-