Class UiComponentPolicyTypeProvider
java.lang.Object
io.jmix.uiconstraints.view.policytypeprovider.UiComponentPolicyTypeProvider
- All Implemented Interfaces:
ResourcePolicyTypeProvider
@SpringComponent("uicns_UiComponentPolicyTypeProvider")
public class UiComponentPolicyTypeProvider
extends Object
implements ResourcePolicyTypeProvider
Provides the UI component resource policy type support for the resource role details view.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends MultipleResourcePolicyModelCreateView>
Returns the class of the view used for creating new resource policies of the specific type.Class<? extends StandardDetailView<ResourcePolicyModel>>
Returns the class of the detail view used for editing resource policies of the specific type.Returns the localized name of the policy supported by this provider.boolean
Checks if the "effect" column should be visible in the policies grid of the resource role editor.boolean
Checks if the provider supports the given resource policy type.
-
Constructor Details
-
UiComponentPolicyTypeProvider
-
-
Method Details
-
getLocalizedPolicyName
Description copied from interface:ResourcePolicyTypeProvider
Returns the localized name of the policy supported by this provider.- Specified by:
getLocalizedPolicyName
in interfaceResourcePolicyTypeProvider
- Returns:
- the name of the policy
-
getCreatePolicyViewClass
Description copied from interface:ResourcePolicyTypeProvider
Returns the class of the view used for creating new resource policies of the specific type.- Specified by:
getCreatePolicyViewClass
in interfaceResourcePolicyTypeProvider
- Returns:
- the class of the view for creating new resource policies
-
getEditPolicyViewClass
Description copied from interface:ResourcePolicyTypeProvider
Returns the class of the detail view used for editing resource policies of the specific type.- Specified by:
getEditPolicyViewClass
in interfaceResourcePolicyTypeProvider
- Returns:
- the class of the detail view for editing resource policies
-
supports
Description copied from interface:ResourcePolicyTypeProvider
Checks if the provider supports the given resource policy type.- Specified by:
supports
in interfaceResourcePolicyTypeProvider
- Parameters:
resourcePolicyType
- the type of the resource policy- Returns:
- true if the provider supports the given type, false otherwise
-
isEffectColumnVisible
public boolean isEffectColumnVisible()Description copied from interface:ResourcePolicyTypeProvider
Checks if the "effect" column should be visible in the policies grid of the resource role editor.- Specified by:
isEffectColumnVisible
in interfaceResourcePolicyTypeProvider
- Returns:
- true if the effect column should be visible, false otherwise
-