public class Approval extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Approval.ApprovalStatus |
Modifier | Constructor and Description |
---|---|
protected |
Approval() |
|
Approval(String userId,
String clientId,
String scope,
Date expiresAt,
Approval.ApprovalStatus status) |
|
Approval(String userId,
String clientId,
String scope,
Date expiresAt,
Approval.ApprovalStatus status,
Date lastUpdatedAt) |
|
Approval(String userId,
String clientId,
String scope,
int expiresIn,
Approval.ApprovalStatus status) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getClientId() |
Date |
getExpiresAt() |
Date |
getLastUpdatedAt() |
String |
getScope() |
Approval.ApprovalStatus |
getStatus() |
String |
getUserId() |
int |
hashCode() |
boolean |
isApproved() |
boolean |
isCurrentlyActive() |
void |
setClientId(String clientId) |
void |
setExpiresAt(Date expiresAt) |
void |
setLastUpdatedAt(Date lastUpdatedAt) |
void |
setScope(String scope) |
void |
setStatus(Approval.ApprovalStatus status) |
void |
setUserId(String userId) |
String |
toString() |
public Approval(String userId, String clientId, String scope, int expiresIn, Approval.ApprovalStatus status)
public Approval(String userId, String clientId, String scope, Date expiresAt, Approval.ApprovalStatus status)
public Approval(String userId, String clientId, String scope, Date expiresAt, Approval.ApprovalStatus status, Date lastUpdatedAt)
protected Approval()
public String getUserId()
public void setUserId(String userId)
public String getClientId()
public void setClientId(String clientId)
public String getScope()
public void setScope(String scope)
public Date getExpiresAt()
public void setExpiresAt(Date expiresAt)
public Date getLastUpdatedAt()
public void setLastUpdatedAt(Date lastUpdatedAt)
public boolean isCurrentlyActive()
public boolean isApproved()
public void setStatus(Approval.ApprovalStatus status)
public Approval.ApprovalStatus getStatus()
Copyright © 2019. All rights reserved.