Package com.easydesk.web.screen
Record Class ScreenAccess
java.lang.Object
java.lang.Record
com.easydesk.web.screen.ScreenAccess
- Record Components:
screenName- 검사한 화면 이름 (Screen Attribute 의 Option 이름)registered- Screen Option 과 그 Artifact 가 DB 에 등록되어 있는지requiredPermissions- 화면 Artifact 에 설정된 Permission 이름들 (미등록 화면은 [LoggedIn])groupName- 권한을 확인한 Group 이름. Group 까지 가지 않고 결정됐으면nulldecision- 결과reason- 결정 이유 (로그/디버그용)
public record ScreenAccess(String screenName, boolean registered, List<String> requiredPermissions, String groupName, ScreenAccess.Decision decision, String reason)
extends Record
화면 접근 검사 결과.
Torque OM 객체를 그대로 들고 다니지 않고 화면/로그에 필요한 값만 담는다
(Controller -> Template 데이터 전달 컨벤션과 같은 이유).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionScreenAccess(String screenName, boolean registered, List<String> requiredPermissions, String groupName, ScreenAccess.Decision decision, String reason) Creates an instance of aScreenAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondecision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupNamerecord component.final inthashCode()Returns a hash code value for this object.booleanreason()Returns the value of thereasonrecord component.booleanReturns the value of theregisteredrecord component.Returns the value of therequiredPermissionsrecord component.Returns the value of thescreenNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScreenAccess
public ScreenAccess(String screenName, boolean registered, List<String> requiredPermissions, String groupName, ScreenAccess.Decision decision, String reason) Creates an instance of aScreenAccessrecord class.- Parameters:
screenName- the value for thescreenNamerecord componentregistered- the value for theregisteredrecord componentrequiredPermissions- the value for therequiredPermissionsrecord componentgroupName- the value for thegroupNamerecord componentdecision- the value for thedecisionrecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
isAllowed
public boolean isAllowed() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
screenName
Returns the value of thescreenNamerecord component.- Returns:
- the value of the
screenNamerecord component
-
registered
public boolean registered()Returns the value of theregisteredrecord component.- Returns:
- the value of the
registeredrecord component
-
requiredPermissions
Returns the value of therequiredPermissionsrecord component.- Returns:
- the value of the
requiredPermissionsrecord component
-
groupName
Returns the value of thegroupNamerecord component.- Returns:
- the value of the
groupNamerecord component
-
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-