Class OrganizationalChartSettingService
java.lang.Object
io.meeds.social.organizationalchart.service.OrganizationalChartSettingService
Saves the settings of an organizational chart application: the user the
chart is centered on and whether its header title is displayed. The settings
are read by the application's portlet when it renders.
-
Field Details
-
OBJECT_TYPE
- See Also:
-
CENTER_USER_SETTING_KEY
- See Also:
-
HAS_HEADER_TITLE_SETTING_KEY
- See Also:
-
CONNECTED_USER
The center user value that centers the chart on the user who views it- See Also:
-
INVALID_APPLICATION_MESSAGE
- See Also:
-
INVALID_CENTER_USER_MESSAGE
- See Also:
-
-
Constructor Details
-
OrganizationalChartSettingService
public OrganizationalChartSettingService()
-
-
Method Details
-
saveSettings
public void saveSettings(String applicationId, String centerUser, boolean hasHeaderTitle, String username) throws IllegalAccessException - Parameters:
applicationId- the id of the organizational chart applicationcenterUser- the identity id of the user the chart is centered on, orCONNECTED_USER, or null to keep the saved onehasHeaderTitle- whether the header title is displayedusername- the user who saves the settings- Throws:
IllegalAccessException- when the user isn't an administratorIllegalArgumentException- when the application id or the center user is invalid
-
canEdit
- Parameters:
username- the user to check- Returns:
- true when the user can edit the settings and the header title of the organizational chart applications
-