Package io.meeds.social.space.service
Class SpaceDirectoryService
java.lang.Object
io.meeds.social.space.service.SpaceDirectoryService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.meeds.social.category.service.CategoryServiceprotected org.exoplatform.portal.mop.service.LayoutServiceprotected io.meeds.portal.security.service.SecuritySettingServiceprotected SpaceDirectoryStorage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccessSpacesDirectory(String settingName) Checks whether the user can access Spaces Directory or notbooleanChecks whether the user can access Spaces Directory or notbooleanisPagePublicallyAccessible(String pageReference) Checks whether a page has access permission set to 'Everyone' or notbooleanisPagePublicallyAccessible(org.exoplatform.portal.config.model.Page page) Checks whether a page has access permission set to 'Everyone' or notvoidremoveSpacesDirectorySettings(String settingName) Removes a stored Spaces Directory instance settingsvoidsaveSpacesDirectorySettings(String settingName, io.meeds.social.space.model.SpaceDirectorySettings spaceDirectorySettings) Stores a Spaces Directory instance settings to be able to check on anonymous access permissions switch designated settings restrictions when the Platform Access is of type 'RESTRICTED'
-
Field Details
-
categoryService
@Autowired protected io.meeds.social.category.service.CategoryService categoryService -
layoutService
@Autowired protected org.exoplatform.portal.mop.service.LayoutService layoutService -
spaceDirectoryStorage
-
securitySettingService
@Autowired protected io.meeds.portal.security.service.SecuritySettingService securitySettingService
-
-
Constructor Details
-
SpaceDirectoryService
public SpaceDirectoryService()
-
-
Method Details
-
saveSpacesDirectorySettings
public void saveSpacesDirectorySettings(String settingName, io.meeds.social.space.model.SpaceDirectorySettings spaceDirectorySettings) Stores a Spaces Directory instance settings to be able to check on anonymous access permissions switch designated settings restrictions when the Platform Access is of type 'RESTRICTED'- Parameters:
settingName- Space Directory Setting name as referenced in portlet preferencespaceDirectorySettings-SpaceDirectorySettingswith Space Directory Settings List
-
removeSpacesDirectorySettings
Removes a stored Spaces Directory instance settings- Parameters:
settingName- Space Directory Setting name as referenced in portlet preference
-
canAccessSpacesDirectory
public boolean canAccessSpacesDirectory(String settingName, List<Long> categoryIds, List<Long> templateIds) Checks whether the user can access Spaces Directory or not- Parameters:
settingName- Space Directory Setting name as referenced in portlet preferencecategoryIds-Listof Category identifierstemplateIds-Listof Space Template identifiers- Returns:
- true if the user isn't anonymous or the Platform Access is 'OPEN' or the 'settingName' allows nonymously accessing the identified category ids or template ids
-
canAccessSpacesDirectory
Checks whether the user can access Spaces Directory or not- Parameters:
settingName- Space Directory Setting name as referenced in portlet preference- Returns:
- true if the user isn't anonymous or the Platform Access is 'OPEN' or the 'settingName' exists
-
isPagePublicallyAccessible
Checks whether a page has access permission set to 'Everyone' or not- Parameters:
pageReference-Pagereference id with format type::site_name::page_name- Returns:
- true if accessible to everyone, else false
-
isPagePublicallyAccessible
public boolean isPagePublicallyAccessible(org.exoplatform.portal.config.model.Page page) Checks whether a page has access permission set to 'Everyone' or not- Parameters:
page-Page- Returns:
- true if accessible to everyone, else false
-