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 booleanallows(String service, String resourceType)static GPTPermissionInfo.GPTPermissionInfoItemfrom(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.voidsetAllowedComponents(List<String> allowedComponents)voidsetDeniedComponents(List<String> deniedComponents)voidsetService(List<String> service)StringtoString() 
 - 
 
- 
- 
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. 
 - 
 
 -