Class GPTPermissionInfo.GPTPermissionInfoItem
- java.lang.Object
-
- com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
-
- Enclosing class:
- GPTPermissionInfo
public static class GPTPermissionInfo.GPTPermissionInfoItem extends Object
One set of permissions.
-
-
Constructor Summary
Constructors Constructor Description GPTPermissionInfoItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allows(String service, String resourceType)
static GPTPermissionInfo.GPTPermissionInfoItem
from(GPTPermissionConfiguration config)
Reads out the services and component regex information, the other stuff has to be checked elsewhere.List<String>
getAllowedComponents()
Regular expressions for allowed components.List<String>
getDeniedComponents()
Regular expressions for denied components.List<String>
getServices()
The name of the service this applies to - one of the SERVICE_ constants.void
setAllowedComponents(List<String> allowedComponents)
void
setDeniedComponents(List<String> deniedComponents)
void
setService(List<String> service)
String
toString()
-
-
-
Method Detail
-
getServices
public List<String> getServices()
The name of the service this applies to - one of the SERVICE_ constants.
-
getAllowedComponents
public List<String> getAllowedComponents()
Regular expressions for allowed components. If not present, no components are allowed.
-
getDeniedComponents
public List<String> getDeniedComponents()
Regular expressions for denied components. Takes precedence over allowed components.
-
from
@Nonnull public static GPTPermissionInfo.GPTPermissionInfoItem from(@Nonnull GPTPermissionConfiguration config)
Reads out the services and component regex information, the other stuff has to be checked elsewhere.
-
-