Record Class ControlPanelWriteAccess
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.core.security.ControlPanelWriteAccess
- Record Components:
allowed- whether write operations are allowedreason- reason to show when write operations are disabled
-
Constructor Summary
ConstructorsConstructorDescriptionControlPanelWriteAccess(boolean allowed, String reason) Creates an instance of aControlPanelWriteAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowed()Returns the value of theallowedrecord component.static ControlPanelWriteAccessstatic ControlPanelWriteAccessfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ControlPanelWriteAccess
-
-
Method Details
-
allowedAccess
- Returns:
- allowed write access
-
deniedAccess
- Returns:
- denied write access with the default UI reason
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
allowed
-
reason
-