public final class UserPermissions extends QTestBaseModel<UserPermissions>
NL, properties, RESERVED_NAME| Constructor and Description |
|---|
UserPermissions()
Creates the permission instance.
|
| Modifier and Type | Method and Description |
|---|---|
UserPermissions |
clone() |
java.lang.String |
elementName() |
Permissions |
getPermissions(java.lang.String name) |
java.lang.Long |
getProjectId() |
java.lang.Long |
getUserId() |
boolean |
hasPermission(java.lang.String permission)
Returns
true if the user has the given permission. |
java.lang.String |
jsonElementName() |
UserPermissions |
setPermissions(Permissions permissions)
Sets the user permissions.
|
UserPermissions |
setProjectId(java.lang.Long projectId)
Sets the user project.
|
UserPermissions |
setUserId(java.lang.Long userId)
Sets the given user identifier.
|
UserPermissions |
withPermissions(Permissions permissions)
Sets the user permissions.
|
UserPermissions |
withProjectId(java.lang.Long projectId)
Sets the given project identifier.
|
UserPermissions |
withUserId(java.lang.Long userId)
Sets the given user identifier.
|
getBinaryFromInputStream, getLinks, getWebUrl, setLinks, setWebUrl, validateInputStream, withLinks, withWebUrlappendPropertiesTo, appendPropertiesTo, asDate, asDate, asInteger, asInteger, asLong, asLong, asString, asString, getProperties, getProperty, getPropertyMap, hasProperties, hasProperty, isVisible, removeProperty, setPropertiesFrom, setProperty, toJson, toStringpublic UserPermissions setUserId(java.lang.Long userId)
userId - the given user identifier to set.public UserPermissions withUserId(java.lang.Long userId)
userId - the given user identifier to set.UserPermissions instance.public java.lang.Long getUserId()
public UserPermissions setProjectId(java.lang.Long projectId)
projectId - the given project identifier.public UserPermissions withProjectId(java.lang.Long projectId)
projectId - the given project identifier to set.UserPermissions instance.public java.lang.Long getProjectId()
public UserPermissions setPermissions(Permissions permissions)
permissions - the given user permissions to set.public UserPermissions withPermissions(Permissions permissions)
permissions - the given user permissions to set.UserPermissions object.public Permissions getPermissions(java.lang.String name)
name - namepublic boolean hasPermission(java.lang.String permission)
true if the user has the given permission.permission - the given permission to check.true if the user has the given permission, otherwise falsepublic UserPermissions clone()
clone in class PropertyContainerpublic java.lang.String jsonElementName()
jsonElementName in class PropertyContainerpublic java.lang.String elementName()
elementName in class PropertyContainer