Class CompiledGuiProfile
- java.lang.Object
-
- com.evolveum.midpoint.model.api.authentication.CompiledGuiProfile
-
- All Implemented Interfaces:
DebugDumpable
,Serializable
@Experimental public class CompiledGuiProfile extends Object implements 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description CompiledGuiProfile()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
getDefaultTimezone
public String getDefaultTimezone()
-
setDefaultTimezone
public void setDefaultTimezone(String defaultTimezone)
-
getPreferredDataLanguage
public String getPreferredDataLanguage()
-
setPreferredDataLanguage
public void setPreferredDataLanguage(String preferredDataLanguage)
-
isEnableExperimentalFeatures
public Boolean isEnableExperimentalFeatures()
-
setEnableExperimentalFeatures
public void setEnableExperimentalFeatures(Boolean enableExperimentalFeatures)
-
getAdditionalMenuLink
@NotNull public @NotNull List<RichHyperlinkType> getAdditionalMenuLink()
-
getUserDashboardLink
@Experimental @NotNull public @NotNull List<RichHyperlinkType> getUserDashboardLink()
Very likely to change in the future (for "flexible dashboards" feature).
-
getUserDashboard
@Experimental public DashboardLayoutType getUserDashboard()
Very likely to change in the future (for "flexible dashboards" feature).
-
setUserDashboard
@Experimental public void setUserDashboard(DashboardLayoutType userDashboard)
-
getConfigurableDashboards
public List<CompiledDashboardType> getConfigurableDashboards()
-
getObjectCollectionViews
@NotNull public @NotNull List<CompiledObjectCollectionView> getObjectCollectionViews()
Compiled information about all configured object list views.
-
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".
-
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)
Find all archetype views that are applicable for a particular object type. Returns views for archetypes that are applicable for that type.
-
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
public CompiledObjectCollectionView 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
public GuiExportSettingsType getDefaultExportSettings()
-
setDefaultExportSettings
public void setDefaultExportSettings(GuiExportSettingsType defaultExportSettings)
-
getObjectForms
@Experimental public ObjectFormsType getObjectForms()
May change in the future.
-
setObjectForms
@Experimental public void setObjectForms(ObjectFormsType objectForms)
-
getObjectDetails
@Experimental public GuiObjectDetailsSetType getObjectDetails()
May change in the future.
-
setObjectDetails
@Experimental public void setObjectDetails(GuiObjectDetailsSetType objectDetails)
-
findObjectDetailsConfiguration
public <O extends ObjectType> GuiObjectDetailsPageType findObjectDetailsConfiguration(Class<O> compileTimeClass)
-
getFeedbackMessagesHook
public FeedbackMessagesHookType getFeedbackMessagesHook()
-
setFeedbackMessagesHook
public void setFeedbackMessagesHook(FeedbackMessagesHookType feedbackMessagesHook)
-
getRoleManagement
public AdminGuiConfigurationRoleManagementType getRoleManagement()
-
setRoleManagement
public void setRoleManagement(AdminGuiConfigurationRoleManagementType roleManagement)
-
getApprovals
public AdminGuiApprovalsConfigurationType getApprovals()
-
setApprovals
public void setApprovals(AdminGuiApprovalsConfigurationType approvals)
-
isExpandRolesOnApprovalPreview
public Boolean isExpandRolesOnApprovalPreview()
-
getFeatures
public List<UserInterfaceFeatureType> getFeatures()
-
findFeature
public UserInterfaceFeatureType findFeature(String identifier)
-
findFeature
public static <T extends UserInterfaceFeatureType> T findFeature(List<T> features, String identifier)
-
getDisplayFormats
public AdminGuiConfigurationDisplayFormatsType getDisplayFormats()
-
setDisplayFormats
public void setDisplayFormats(AdminGuiConfigurationDisplayFormatsType displayFormats)
-
getJpegPhoto
public byte[] getJpegPhoto()
-
setJpegPhoto
public void setJpegPhoto(byte[] jpegPhoto)
-
getFeatureVisibility
public UserInterfaceElementVisibilityType getFeatureVisibility(String identifier)
-
isFeatureVisible
public boolean isFeatureVisible(String identifier)
-
isFeatureVisible
public boolean isFeatureVisible(String identifier, BooleanSupplier automaticPredicate)
-
isVisible
public static boolean isVisible(UserInterfaceElementVisibilityType visibility, BooleanSupplier automaticPredicate)
-
findUserDashboardWidget
@Experimental public DashboardWidgetType findUserDashboardWidget(String widgetIdentifier)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
-