Class ResourcesPermissionsMapping
java.lang.Object
org.bonitasoft.engine.authorization.properties.ConfigurationFile
org.bonitasoft.engine.authorization.properties.ResourcesPermissionsMapping
- Direct Known Subclasses:
DynamicPermissionsChecks
- Author:
- Anthony Birembaut, Baptiste Mesta, Fabio Lombardi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringDefault name of the preferences filestatic final Stringstatic final StringFields inherited from class org.bonitasoft.engine.authorization.properties.ConfigurationFile
cacheKey, CONFIGURATION_FILES_CACHE, setKeysToLowerCase -
Constructor Summary
ConstructorsConstructorDescriptionResourcesPermissionsMapping(CacheService cacheService, ConfigurationFilesManager configurationFilesManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildResourceKey(String method, String apiName, String resourceName, List<String> resourceQualifiers) protected StringgetResourcePermissions(String method, String apiName, String resourceName) getResourcePermissions(String method, String apiName, String resourceName, List<String> resourceQualifiers) getResourcePermissionsWithWildCard(String method, String apiName, String resourceName, List<String> resourceQualifiers) getResourceQualifiersWithWildCard(List<String> resourceQualifiers, int wildCardPosition) protected booleanprotected booleanMethods inherited from class org.bonitasoft.engine.authorization.properties.ConfigurationFile
getProperty, getPropertyAsSet, readPropertiesAndStoreThemInCache, readPropertiesFromClasspathAndStoreThemInCache, readPropertiesFromDatabaseAndStoreThemInCache, removeCustomProperty, removeInternalProperty, removeProperty, setCustomProperty, setCustomPropertyAsSet, setInternalProperty, setInternalPropertyAsSet, setProperty, setPropertyAsSet
-
Field Details
-
RESOURCE_IDS_SEPARATOR
- See Also:
-
API_METHOD_SEPARATOR
- See Also:
-
WILDCARD
- See Also:
-
PROPERTIES_FILENAME
Default name of the preferences file- See Also:
-
-
Constructor Details
-
ResourcesPermissionsMapping
public ResourcesPermissionsMapping(CacheService cacheService, ConfigurationFilesManager configurationFilesManager)
-
-
Method Details
-
getPropertiesFileName
- Specified by:
getPropertiesFileNamein classConfigurationFile
-
getResourcePermissions
-
getResourcePermissionsWithWildCard
-
getResourceQualifiersWithWildCard
-
buildResourceKey
-
getResourcePermissions
-
hasCustomVersion
protected boolean hasCustomVersion()- Specified by:
hasCustomVersionin classConfigurationFile
-
hasInternalVersion
protected boolean hasInternalVersion()- Specified by:
hasInternalVersionin classConfigurationFile
-