Class CompiledGuiProfile
java.lang.Object
com.evolveum.midpoint.model.api.authentication.CompiledGuiProfile
- All Implemented Interfaces:
DebugDumpable
,Serializable
Compiled user profile. This class contains information about configuration and customization
of individual parts of user interface and user preferences. This class contains pre-processed
information in a form that is suitable to direct use by user interface code. The GUI should not
be required to do any complex processing on this.
This idea is to compile the profile just once, on login time. Therefore only the authentication
code (GuiProfiledPrincipalManager) should modify this object. It should be considered read-only for all other
purposes.
Later it may be split to interface and implementation parts.
- Since:
- 4.0
- Author:
- Radovan Semancik
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondebugDump
(int indent) boolean
derivedFrom
(String oid) Returns true if compiled profile is derived from provided OID<O extends ObjectType>
@NotNull List<CompiledObjectCollectionView>findAllApplicableArchetypeViews
(@NotNull Class<O> objectType) <O extends ObjectType>
@NotNull List<CompiledObjectCollectionView>findAllApplicableArchetypeViews
(@NotNull Class<O> objectType, OperationTypeType operationType) @NotNull List<CompiledObjectCollectionView>
findAllApplicableArchetypeViews
(@NotNull QName objectType, OperationTypeType operationTypeType) Find all archetype views that are applicable for a particular object type.@NotNull List<CompiledObjectCollectionView>
findAllApplicableObjectCollectionViews
(@NotNull QName objectType) Find all views that are applicable for a particular object type.<O extends ObjectType>
@NotNull List<CompiledObjectCollectionView>findAllApplicableObjectCollectionViews
(Class<O> compileTimeClass) Find all views that are applicable for a particular object type.<O extends ObjectType>
@Nullable CompiledObjectCollectionViewfindApplicableArchetypeView
(@NotNull String archetypeOid) Find archetype view for archetype defined by oid.findFeature
(String identifier) static <T extends UserInterfaceFeatureType>
TfindFeature
(List<T> features, String identifier) findObjectCollectionView
(@NotNull QName objectType, String viewName) Compiled information about object list view for a particular type.<O extends ObjectType>
GuiObjectDetailsPageTypefindObjectDetailsConfiguration
(Class<O> compileTimeClass) <O extends ObjectType>
GuiObjectDetailsPageTypefindObjectDetailsConfiguration
(QName typeQName) findPrincipalFocusDetailsPanel
(@NotNull QName focusType, @NotNull String panelType) <O extends ObjectType>
GuiResourceDetailsPageTypefindResourceDetailsConfiguration
(String connectorOid) findShadowCollectionView
(@NotNull String resourceOid, ShadowKindType kindType, String intent) <O extends ObjectType>
GuiShadowDetailsPageTypefindShadowDetailsConfiguration
(ResourceShadowCoordinates coordinates) @NotNull List<RichHyperlinkType>
Default list view setting should never be needed publicly.getFeatureVisibility
(String identifier) byte[]
@NotNull List<CompiledObjectCollectionView>
Compiled information about all configured object list views.May change in the future.@NotNull List<CompiledShadowCollectionView>
@NotNull List<RichHyperlinkType>
Very likely to change in the future (for "flexible dashboards" feature).boolean
isFeatureVisible
(String identifier) boolean
isFeatureVisible
(String identifier, BooleanSupplier automaticPredicate) boolean
static boolean
isVisible
(UserInterfaceElementVisibilityType visibility, BooleanSupplier automaticPredicate) void
void
setAccessRequest
(AccessRequestType accessRequest) void
setApprovals
(AdminGuiApprovalsConfigurationType approvals) void
setDefaultExportSettings
(GuiExportSettingsType defaultExportSettings) void
setDefaultObjectCollectionView
(CompiledObjectCollectionView defaultObjectCollectionView) void
setDefaultTimezone
(String defaultTimezone) void
setDependencies
(Set<String> value) void
setDisplayFormats
(AdminGuiConfigurationDisplayFormatsType displayFormats) void
setEnableExperimentalFeatures
(Boolean enableExperimentalFeatures) void
setFeedbackMessagesHook
(FeedbackMessagesHookType feedbackMessagesHook) void
setHomePage
(HomePageType homePage) void
setJpegPhoto
(byte[] jpegPhoto) void
void
setObjectDetails
(GuiObjectDetailsSetType objectDetails) void
setPreferredDataLanguage
(String preferredDataLanguage) void
setRoleManagement
(AdminGuiConfigurationRoleManagementType roleManagement) void
setSelfProfilePage
(GuiObjectDetailsPageType selfProfilePage) void
setUseNewDesign
(Boolean useNewDesign) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
CompiledGuiProfile
public CompiledGuiProfile()
-
-
Method Details
-
getDefaultTimezone
-
setDefaultTimezone
-
getPreferredDataLanguage
-
setPreferredDataLanguage
-
isEnableExperimentalFeatures
-
setEnableExperimentalFeatures
-
setUseNewDesign
-
isUseNewDesign
-
getSelfProfilePage
-
setSelfProfilePage
-
getAdditionalMenuLink
-
getUserDashboardLink
Very likely to change in the future (for "flexible dashboards" feature). -
getConfigurableDashboards
-
getObjectCollectionViews
Compiled information about all configured object list views. -
getShadowCollectionViews
-
findObjectCollectionView
public CompiledObjectCollectionView findObjectCollectionView(@NotNull @NotNull QName objectType, String viewName) Compiled information about object list view for a particular type. If viewName is null then it returns view definition for "all objects" view, e.g. "all users", "all roles". -
findShadowCollectionView
public CompiledShadowCollectionView findShadowCollectionView(@NotNull @NotNull String resourceOid, ShadowKindType kindType, String intent) -
findAllApplicableObjectCollectionViews
@NotNull public @NotNull List<CompiledObjectCollectionView> findAllApplicableObjectCollectionViews(@NotNull @NotNull QName objectType) Find all views that are applicable for a particular object type. Returns views for all collections and archetypes that are applicable for that type. Ideal to be used in constructing menus. -
findAllApplicableArchetypeViews
@NotNull public @NotNull List<CompiledObjectCollectionView> findAllApplicableArchetypeViews(@NotNull @NotNull QName objectType, OperationTypeType operationTypeType) Find all archetype views that are applicable for a particular object type. Returns views for archetypes that are applicable for that type. -
findAllApplicableArchetypeViews
@NotNull public <O extends ObjectType> @NotNull List<CompiledObjectCollectionView> findAllApplicableArchetypeViews(@NotNull @NotNull Class<O> objectType) -
findAllApplicableArchetypeViews
@NotNull public <O extends ObjectType> @NotNull List<CompiledObjectCollectionView> findAllApplicableArchetypeViews(@NotNull @NotNull Class<O> objectType, OperationTypeType operationType) -
findApplicableArchetypeView
@Nullable public <O extends ObjectType> @Nullable CompiledObjectCollectionView findApplicableArchetypeView(@NotNull @NotNull String archetypeOid) Find archetype view for archetype defined by oid. -
findAllApplicableObjectCollectionViews
@NotNull public <O extends ObjectType> @NotNull List<CompiledObjectCollectionView> findAllApplicableObjectCollectionViews(Class<O> compileTimeClass) Find all views that are applicable for a particular object type. Returns views for all collections and archetypes that are applicable for that type. Ideal to be used in costructing menus. -
getDefaultObjectCollectionView
Default list view setting should never be needed publicly. Always check setting for specific object type (and archetype). -
setDefaultObjectCollectionView
public void setDefaultObjectCollectionView(CompiledObjectCollectionView defaultObjectCollectionView) -
getDefaultExportSettings
-
setDefaultExportSettings
-
getObjectDetails
May change in the future. -
setObjectDetails
-
findObjectDetailsConfiguration
public <O extends ObjectType> GuiObjectDetailsPageType findObjectDetailsConfiguration(Class<O> compileTimeClass) -
findObjectDetailsConfiguration
public <O extends ObjectType> GuiObjectDetailsPageType findObjectDetailsConfiguration(QName typeQName) -
findResourceDetailsConfiguration
public <O extends ObjectType> GuiResourceDetailsPageType findResourceDetailsConfiguration(String connectorOid) -
findShadowDetailsConfiguration
public <O extends ObjectType> GuiShadowDetailsPageType findShadowDetailsConfiguration(ResourceShadowCoordinates coordinates) -
getFeedbackMessagesHook
-
setFeedbackMessagesHook
-
getRoleManagement
-
setRoleManagement
-
getApprovals
-
setApprovals
-
isExpandRolesOnApprovalPreview
-
getFeatures
-
findFeature
-
findFeature
public static <T extends UserInterfaceFeatureType> T findFeature(List<T> features, String identifier) -
getDisplayFormats
-
setDisplayFormats
-
getJpegPhoto
public byte[] getJpegPhoto() -
setJpegPhoto
public void setJpegPhoto(byte[] jpegPhoto) -
getLocale
-
setLocale
-
getFeatureVisibility
-
isFeatureVisible
-
isFeatureVisible
-
isVisible
public static boolean isVisible(UserInterfaceElementVisibilityType visibility, BooleanSupplier automaticPredicate) -
getAccessRequest
-
setAccessRequest
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
derivedFrom
Returns true if compiled profile is derived from provided OID -
markInvalid
public void markInvalid() -
isInvalid
public boolean isInvalid() -
setDependencies
-
getDependencies
-
getHomePage
-
setHomePage
-
findPrincipalFocusDetailsPanel
public ContainerPanelConfigurationType findPrincipalFocusDetailsPanel(@NotNull @NotNull QName focusType, @NotNull @NotNull String panelType)
-