public class Account extends java.lang.Object implements Entity, java.io.Serializable
| Constructor and Description |
|---|
Account() |
| Modifier and Type | Method and Description |
|---|---|
PermissionTarget |
asPermissionTarget() |
boolean |
isDefaultAdmin()
Default built-in admin?
|
boolean |
isGranted(java.lang.Class<? extends GlobalFunction> fn) |
boolean |
isGranted(int projectId,
java.lang.Class<? extends ProjectFunction> fn) |
Account |
lock() |
static Account |
of(java.lang.String name,
java.lang.String fullName,
java.lang.String email,
SecurityRole role,
AuthenticationSource authenticationSource) |
Account |
update(AccountInput input) |
Account |
withGlobalRole(java.util.Optional<GlobalRole> globalRole) |
Account |
withGroup(AccountGroup accountGroup) |
Account |
withGroups(java.util.Collection<AccountGroup> groups) |
Account |
withId(ID id) |
Account |
withProjectRole(ProjectRoleAssociation projectRoleAssociation) |
Account |
withProjectRoles(java.util.Collection<ProjectRoleAssociation> projectRoleAssociations) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, id, isEntityDefined, isEntityNewpublic static Account of(java.lang.String name, java.lang.String fullName, java.lang.String email, SecurityRole role, AuthenticationSource authenticationSource)
public boolean isGranted(java.lang.Class<? extends GlobalFunction> fn)
public boolean isGranted(int projectId,
java.lang.Class<? extends ProjectFunction> fn)
public Account lock()
public Account update(AccountInput input)
public Account withGroup(AccountGroup accountGroup)
public Account withGroups(java.util.Collection<AccountGroup> groups)
public Account withGlobalRole(java.util.Optional<GlobalRole> globalRole)
public Account withProjectRoles(java.util.Collection<ProjectRoleAssociation> projectRoleAssociations)
public Account withProjectRole(ProjectRoleAssociation projectRoleAssociation)
public boolean isDefaultAdmin()
public PermissionTarget asPermissionTarget()