DataobjectAccessType.javaprojectforge-business/src/main/java/org/projectforge/business/common/DataobjectAccessType.java containing Java code for the Component layer.Package: org.projectforge.business.common
Enums: DataobjectAccessType
Methods (3): hasAnyAccess, hasFullAccess, isIn
package org.projectforge.business.common;
/**
* @author Kai Reinhard (k.reinhard@me.de)
*/
public enum DataobjectAccessType {
OWNER, FULL, READONLY, MINIMAL, NONE;
/**
* @return true, if equals to OWNER, FULL, READONLY or MINIMAL, false otherwise (NONE).
*/
public boolean hasAnyAccess() {
return this != NONE;
}
/**
* @return true, if equals to OWNER or FULL, false otherwies.
*/
public boolean hasFullAccess() {
return this == OWNER || this == FULL;
}
public boolean isIn(final DataobjectAccessType... types) {
for (final DataobjectAccessType type : types) {
if (this == type) {
return true;
}
}
return false;
}
}
868d6abb7 2025 -> 2026 63081666f Source file headers: 2024-> 2025. b6092df09 Copyright 2023 -> 2024 ab45d51fa Copyright 2001-2022 -> 2001-2023. 5f7ef41b8 Copyright 2021 -> 2022