@PublicAPI public abstract class UserIdentification extends Object implements Serializable, Comparable<UserIdentification>
Modifier and Type | Field and Description |
---|---|
static int |
ASC_ORDER |
static int |
DESC_ORDER |
static int |
SORT_BY_CONNECTION |
static int |
SORT_BY_HOST |
static int |
SORT_BY_LASTSUBMIT |
static int |
SORT_BY_NAME
Value for
|
static int |
SORT_BY_SUBMIT |
protected boolean |
toRemove |
Constructor and Description |
---|
UserIdentification() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UserIdentification user) |
abstract long |
getConnectionTime()
Get the time of the connection of this user.
|
abstract String |
getDomain()
Return the domain name associated with the current user, or null if no domain is associated
|
abstract Set<String> |
getGroups()
To get the groups associated with this user name
|
abstract String |
getHostName()
Get the host name of this user.
|
abstract long |
getLastSubmitTime()
Get the last time this user has submit a job.
|
abstract TimerTask |
getSession()
Get the session for this user (timer task)
|
abstract int |
getSubmitNumber()
Get the number of submit for this user.
|
abstract String |
getTenant()
Return the tenant associated with the current user, or null if no tenant is associated
|
abstract String |
getUsername()
To get the user name
|
abstract boolean |
isAllJobPlannerPermission()
Check if the user has all job planner permission
|
abstract boolean |
isAllTenantPermission() |
abstract boolean |
isCanCreateAssociationPermission()
Check if the user can create a job-planner association
|
abstract boolean |
isHandleOnlyMyJobsPermission()
Check if the user has permission to handle only its jobs
|
abstract boolean |
isMyEventsOnly()
Get the myEventsOnly.
|
abstract boolean |
isNotificationAdminPermission()
Check if the user has all Notification Service permissions;
|
abstract boolean |
isOtherUsersJobReadPermission()
Check if the user has permission to read other users' jobs
|
abstract boolean |
isPcaAdminPermission()
Check if the user has all Service Automation permissions
|
abstract boolean |
isRMCoreAllPermission()
Check if the user has all Resource Manager permissions
|
abstract boolean |
isSchedulerAdminPermission()
Check if the user has all Scheduler permissions
|
boolean |
isToRemove()
Returns true if this user has to be removed, false if not.
|
static void |
setSortingBy(int sortBy)
Set the field to sort on.
|
static void |
setSortingOrder(int order)
Set the order for the next sort.
|
public static final int SORT_BY_NAME
public static final int SORT_BY_SUBMIT
public static final int SORT_BY_HOST
public static final int SORT_BY_CONNECTION
public static final int SORT_BY_LASTSUBMIT
public static final int ASC_ORDER
public static final int DESC_ORDER
protected volatile boolean toRemove
public abstract String getUsername()
public abstract Set<String> getGroups()
public abstract boolean isAllTenantPermission()
public abstract boolean isAllJobPlannerPermission()
public abstract boolean isCanCreateAssociationPermission()
public abstract boolean isPcaAdminPermission()
public abstract boolean isNotificationAdminPermission()
public abstract boolean isRMCoreAllPermission()
public abstract boolean isSchedulerAdminPermission()
public abstract boolean isHandleOnlyMyJobsPermission()
public abstract boolean isOtherUsersJobReadPermission()
public abstract String getTenant()
public abstract String getDomain()
public abstract int getSubmitNumber()
public abstract String getHostName()
public abstract long getConnectionTime()
public abstract long getLastSubmitTime()
public abstract boolean isMyEventsOnly()
public abstract TimerTask getSession()
public static void setSortingBy(int sortBy)
sortBy
- the field on which the sort will be made.public static void setSortingOrder(int order)
order
- the new order to set.public int compareTo(UserIdentification user)
compareTo
in interface Comparable<UserIdentification>
user
- The user to compare to this user.Comparable.compareTo(java.lang.Object)
public boolean isToRemove()