public class Job extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_JOB_CLASS |
static int |
DEFAULT_MAX_MEMBER |
static int |
NONE_JOB_ID |
| 构造器和说明 |
|---|
Job() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAuth(IAuth auth)
添加一个权限
|
void |
addAuthes(IAuth... auths)
添加一系列权限
|
int |
getAuth() |
int |
getJobClass() |
int |
getJobId() |
String |
getJobName() |
int |
getMaxMember() |
boolean |
hasAuth(IAuth auth)
是否拥有权限
|
void |
removeAuth(IAuth auth)
删除权限
|
void |
setAuth(int auth) |
void |
setJobClass(int jobClass) |
void |
setJobId(int jobId) |
void |
setJobName(String jobName) |
void |
setMaxMember(int maxMember) |
public static final transient int NONE_JOB_ID
public static final transient int DEFAULT_MAX_MEMBER
public static final transient int DEFAULT_JOB_CLASS
public void addAuthes(IAuth... auths) throws AuthIDErrorException, AuthIDDuplicatedException
auths - AuthIDErrorExceptionAuthIDDuplicatedExceptionpublic void addAuth(IAuth auth) throws AuthIDErrorException
auth - AuthIDErrorExceptionpublic void removeAuth(IAuth auth) throws AuthIDErrorException
auth - AuthIDErrorExceptionpublic boolean hasAuth(IAuth auth) throws AuthIDErrorException
auth - AuthIDErrorExceptionpublic int getJobId()
public void setJobId(int jobId)
public int getJobClass()
public void setJobClass(int jobClass)
public String getJobName()
public void setJobName(String jobName)
public int getMaxMember()
public void setMaxMember(int maxMember)
public int getAuth()
public void setAuth(int auth)
Copyright © 2017. All rights reserved.