Class PermissionSubject
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.PermissionSubject
PermissionSubject
The user or group that the permission applies to.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPermissionSubject(String type, String identifier) Constructs a validated instance ofPermissionSubject.Constructs a validated instance ofPermissionSubject. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.identifier(String identifier) for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.toString()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
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.
-
PermissionSubject
protected PermissionSubject()
-
-
Method 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. -
type
- Returns:
this.
-
identifier
for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-