public class UserIdentificationImpl extends UserIdentification
ASC_ORDER, DESC_ORDER, SORT_BY_CONNECTION, SORT_BY_HOST, SORT_BY_LASTSUBMIT, SORT_BY_NAME, SORT_BY_SUBMIT, toRemove
Constructor and Description |
---|
UserIdentificationImpl() |
UserIdentificationImpl(String username,
Set<String> groups,
String tenant,
String domain,
int submitNumber,
String hostName,
long connectionTime,
long lastSubmitTime,
boolean myEventsOnly) |
Modifier and Type | Method and Description |
---|---|
long |
getConnectionTime()
Get the time of the connection of this user.
|
String |
getDomain()
Return the domain name associated with the current user, or null if no domain is associated
|
Set<String> |
getGroups()
To get the groups associated with this user name
|
String |
getHostName()
Get the host name of this user.
|
long |
getLastSubmitTime()
Get the last time this user has submit a job.
|
TimerTask |
getSession()
Get the session for this user (timer task)
|
int |
getSubmitNumber()
Get the number of submit for this user.
|
String |
getTenant()
Return the tenant associated with the current user, or null if no tenant is associated
|
String |
getUsername()
To get the user name
|
boolean |
isAllJobPlannerPermission()
Check if the user has all job planner permission
|
boolean |
isAllTenantPermission() |
boolean |
isCanCreateAssociationPermission()
Check if the user can create a job-planner association
|
boolean |
isHandleOnlyMyJobsPermission()
Check if the user has permission to handle only its jobs
|
boolean |
isMyEventsOnly()
Get the myEventsOnly.
|
boolean |
isNotificationAdminPermission()
Check if the user has all Notification Service permissions;
|
boolean |
isOtherUsersJobReadPermission()
Check if the user has permission to read other users' jobs
|
boolean |
isPcaAdminPermission()
Check if the user has all Service Automation permissions
|
boolean |
isRMCoreAllPermission()
Check if the user has all Resource Manager permissions
|
boolean |
isSchedulerAdminPermission()
Check if the user has all Scheduler permissions
|
void |
setConnectionTime(long connectionTime) |
void |
setGroups(Set<String> groups) |
void |
setHostName(String hostName) |
void |
setLastSubmitTime(long lastSubmitTime) |
void |
setMyEventsOnly(boolean myEventsOnly) |
void |
setSubmitNumber(int submitNumber) |
void |
setTenant(String tenant) |
void |
setUsername(String username) |
compareTo, isToRemove, setSortingBy, setSortingOrder
public String getUsername()
UserIdentification
getUsername
in class UserIdentification
public Set<String> getGroups()
UserIdentification
getGroups
in class UserIdentification
public String getTenant()
UserIdentification
getTenant
in class UserIdentification
public String getDomain()
UserIdentification
getDomain
in class UserIdentification
public boolean isAllTenantPermission()
isAllTenantPermission
in class UserIdentification
public boolean isCanCreateAssociationPermission()
UserIdentification
isCanCreateAssociationPermission
in class UserIdentification
public boolean isAllJobPlannerPermission()
UserIdentification
isAllJobPlannerPermission
in class UserIdentification
public boolean isHandleOnlyMyJobsPermission()
UserIdentification
isHandleOnlyMyJobsPermission
in class UserIdentification
public boolean isOtherUsersJobReadPermission()
UserIdentification
isOtherUsersJobReadPermission
in class UserIdentification
public boolean isPcaAdminPermission()
UserIdentification
isPcaAdminPermission
in class UserIdentification
public boolean isNotificationAdminPermission()
UserIdentification
isNotificationAdminPermission
in class UserIdentification
public boolean isRMCoreAllPermission()
UserIdentification
isRMCoreAllPermission
in class UserIdentification
public boolean isSchedulerAdminPermission()
UserIdentification
isSchedulerAdminPermission
in class UserIdentification
public int getSubmitNumber()
UserIdentification
getSubmitNumber
in class UserIdentification
public String getHostName()
UserIdentification
getHostName
in class UserIdentification
public long getConnectionTime()
UserIdentification
getConnectionTime
in class UserIdentification
public long getLastSubmitTime()
UserIdentification
getLastSubmitTime
in class UserIdentification
public boolean isMyEventsOnly()
UserIdentification
isMyEventsOnly
in class UserIdentification
public TimerTask getSession()
UserIdentification
getSession
in class UserIdentification
public void setUsername(String username)
public void setTenant(String tenant)
public void setSubmitNumber(int submitNumber)
public void setHostName(String hostName)
public void setConnectionTime(long connectionTime)
public void setLastSubmitTime(long lastSubmitTime)
public void setMyEventsOnly(boolean myEventsOnly)