Class PermissionSubject
The user or group that the permission applies to.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.PermissionSubject(String type, String identifier) Constructs a validated instance ofPermissionSubject.Constructs a validated instance ofPermissionSubject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the value of identifier.getType()Gets the value of type.inthashCode()Fluent getter for identifier.identifier(String identifier) Fluent setter for identifier.voidsetIdentifier(String identifier) Sets the value of identifier.voidSets the value of type.toString()type()Fluent getter for type.Fluent setter for type.
-
Field Details
-
type
-
identifier
for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
-
-
Constructor Details
-
PermissionSubject
Constructs a validated instance ofPermissionSubject.- Parameters:
spec- the specification to process
-
PermissionSubject
@Internal protected PermissionSubject()Protected no-args constructor for use by serialization frameworks. -
PermissionSubject
Constructs a validated instance ofPermissionSubject.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
PermissionSubject(Consumer)instead.- Parameters:
type- typeidentifier- for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
-
-
Method Details
-
type
-
type
Fluent setter for type.- Parameters:
type- type- Returns:
- this
-
getType
-
setType
-
identifier
Fluent getter for identifier.for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
- Returns:
- identifier
-
identifier
Fluent setter for identifier.for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
- Parameters:
identifier- identifier- Returns:
- this
-
getIdentifier
Gets the value of identifier.for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
- Returns:
- identifier
-
setIdentifier
Sets the value of identifier.for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
- Parameters:
identifier- identifier
-
equals
-
hashCode
-
toString
-