Skip to content

Commit

Permalink
refact: renamed class attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg authored and chenejac committed Feb 13, 2024
1 parent f81efa2 commit 03517df
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

public class AttributeValueKey {

private AccessOperation ao;
private AccessObjectType aot;
private AccessOperation accessOperation;
private AccessObjectType accessObjectType;
private String role;
private String type;
private Set<String> namedKeyComponents = new HashSet<>();
Expand All @@ -24,36 +24,36 @@ public AttributeValueKey() {

public AttributeValueKey(AccessOperation ao, AccessObjectType aot, String role, String type,
String... namedKeyComponents) {
this.ao = ao;
this.aot = aot;
this.accessOperation = ao;
this.accessObjectType = aot;
this.role = role;
this.type = type;
this.namedKeyComponents = new HashSet<>(Arrays.asList(namedKeyComponents));
}

public AttributeValueKey(AccessOperation ao, AccessObjectType aot, String role, String type,
Set<String> namedKeyComponents) {
this.ao = ao;
this.aot = aot;
this.accessOperation = ao;
this.accessObjectType = aot;
this.role = role;
this.type = type;
this.namedKeyComponents = namedKeyComponents;
}

public AccessOperation getAccessOperation() {
return ao;
return accessOperation;
}

public void setOperation(AccessOperation ao) {
this.ao = ao;
this.accessOperation = ao;
}

public AccessObjectType getObjectType() {
return aot;
return accessObjectType;
}

public void setObjectType(AccessObjectType aot) {
this.aot = aot;
this.accessObjectType = aot;
}

public String getRole() {
Expand All @@ -77,11 +77,11 @@ public void addNamedKey(String key) {
}

public AttributeValueKey clone() {
return new AttributeValueKey(ao, aot, role, type, namedKeyComponents);
return new AttributeValueKey(accessOperation, accessObjectType, role, type, namedKeyComponents);
}

public boolean isEmpty() {
return ao == null && aot == null && role == null && type == null;
return accessOperation == null && accessObjectType == null && role == null && type == null;
}

@Override
Expand Down

0 comments on commit 03517df

Please sign in to comment.