@Entity public class MutableAccessTokenImpl extends HibernateEntityObject implements MutableAccessToken
Constructor and Description |
---|
MutableAccessTokenImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Date |
getCreationDate() |
String |
getHashedToken() |
String |
getName() |
Set<AccessTokenPermission> |
getPermissions() |
int |
getPermissionsMask()
Get token permissions as mask.
|
String |
getTokenId() |
String |
getUserName() |
int |
hashCode() |
void |
setCreationDate(Date creationDate)
Set creation date
|
void |
setHashedToken(String hashedToken)
Set hashed token value
|
void |
setName(String name)
Set token name
|
void |
setPermissions(Iterable<AccessTokenPermission> permissions)
Set token permissions
|
void |
setPermissionsMask(int permissionsMask)
Set token permissions as mask.
|
void |
setTokenId(String tokenId)
Set token unique id
|
void |
setUserName(String userName)
Set token owner
|
AccessToken |
toAccessToken() |
getId, setId
clone, getCurrentDate, getLastModificationDate, setClock, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
@NotNull public String getHashedToken()
getHashedToken
in interface MutableAccessToken
public void setHashedToken(@NotNull String hashedToken)
MutableAccessToken
setHashedToken
in interface MutableAccessToken
@NotNull public String getTokenId()
getTokenId
in interface AccessToken
public void setTokenId(@NotNull String tokenId)
MutableAccessToken
setTokenId
in interface MutableAccessToken
@NotNull public String getName()
getName
in interface AccessToken
public void setName(@NotNull String name)
MutableAccessToken
setName
in interface MutableAccessToken
@NotNull public String getUserName()
getUserName
in interface AccessToken
public void setUserName(@NotNull String userName)
MutableAccessToken
setUserName
in interface MutableAccessToken
@NotNull public Date getCreationDate()
getCreationDate
in interface AccessToken
getCreationDate
in class com.atlassian.core.bean.EntityObject
public void setCreationDate(Date creationDate)
MutableAccessToken
setCreationDate
in interface MutableAccessToken
setCreationDate
in class com.atlassian.core.bean.EntityObject
public void setPermissions(@NotNull Iterable<AccessTokenPermission> permissions)
MutableAccessToken
setPermissions
in interface MutableAccessToken
@NotNull public Set<AccessTokenPermission> getPermissions()
getPermissions
in interface AccessToken
public int getPermissionsMask()
MutableAccessToken
getPermissionsMask
in interface MutableAccessToken
public void setPermissionsMask(int permissionsMask)
MutableAccessToken
setPermissionsMask
in interface MutableAccessToken
public AccessToken toAccessToken()
toAccessToken
in interface AccessToken
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.