|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geebis.books.model.partner.Partner
org.geebis.books.model.partner.Employee
@Name(value="employee") public class Employee
| Constructor Summary | |
|---|---|
Employee()
|
|
Employee(java.lang.String name)
|
|
Employee(java.lang.String name,
java.lang.String username)
|
|
| Method Summary | |
|---|---|
void |
addPermission(Permission permission)
Adds the passed in permission to the user |
boolean |
can(Permission... permissions)
Returns true if the user has all of the passed in permissions or is an administrator, false otherwise |
boolean |
canAny(Permission... permissions)
Returns true if the user has any of the passed in permissions, or is an administrator, false otherwise |
java.lang.Boolean |
getAdmin()
Gets whether this employee is an administrator |
java.lang.String |
getEmployeeId()
Gets the employee id for this employee |
java.lang.String |
getPassword()
|
java.util.Set<EmployeePermission> |
getPermissions()
Gets the employee's permissions |
java.lang.String |
getUsername()
|
void |
removePermission(Permission permission)
Removes the passed in permission from the user |
void |
setAdmin(java.lang.Boolean admin)
Sets whether the employee is an administrator |
void |
setEmployeeId(java.lang.String employeeId)
Sets the employee id for this employee |
void |
setPassword(java.lang.String password)
|
void |
setPermissions(java.util.Set<EmployeePermission> permissions)
Sets the employees permissions |
void |
setUsername(java.lang.String username)
|
| Methods inherited from class org.geebis.books.model.partner.Partner |
|---|
getAccountsPayableAccount, getAccountsReceivableAccount, getCompanyName, getContact, getContactInformation, getDefaultTerms, getFirstName, getGenderTitle, getId, getLabels, getLastName, getMiddleInitial, getName, getVersion, setAccountsPayableAccount, setAccountsReceivableAccount, setCompanyName, setContact, setContactInformation, setDefaultTerms, setFirstName, setGenderTitle, setId, setLabels, setLastName, setMiddleInitial, setName, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Employee()
public Employee(java.lang.String name)
public Employee(java.lang.String name,
java.lang.String username)
| Method Detail |
|---|
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getEmployeeId()
public void setEmployeeId(java.lang.String employeeId)
employeeId - the new employee id for this employeepublic java.lang.Boolean getAdmin()
public void setAdmin(java.lang.Boolean admin)
admin - the new value that determins whether this employee is an administratorpublic java.util.Set<EmployeePermission> getPermissions()
public void setPermissions(java.util.Set<EmployeePermission> permissions)
permissions - the new permissions for this employeepublic void addPermission(Permission permission)
permission to the user
permission - the permission to addpublic void removePermission(Permission permission)
permission - the permission to removepublic boolean can(Permission... permissions)
permissions - the permissions to check for
public boolean canAny(Permission... permissions)
permissions - the permissions to check for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||