Package io.meeds.social.link.service
Class LinkServiceImpl
java.lang.Object
io.meeds.social.link.service.LinkServiceImpl
- All Implemented Interfaces:
io.meeds.social.link.service.LinkService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLinkServiceImpl(org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.upload.UploadService uploadService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.services.resources.LocaleConfigService localeConfigService, io.meeds.social.cms.service.CMSService cmsService, LinkStorage linkStorage) -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.social.link.model.LinkDatagetLinkData(String linkSettingName) getLinkIconStream(String linkSettingName, long linkId) List<io.meeds.social.link.model.Link> List<io.meeds.social.link.model.Link> io.meeds.social.link.model.LinkSettinggetLinkSetting(long linkSettingId) io.meeds.social.link.model.LinkSettinggetLinkSetting(String linkSettingName) io.meeds.social.link.model.LinkSettinggetLinkSetting(String linkSettingName, String language, boolean includeTranslations) io.meeds.social.link.model.LinkSettinggetLinkSetting(String linkSettingName, String language, org.exoplatform.services.security.Identity identity) io.meeds.social.link.model.LinkSettinggetLinkSettingByLinkId(long linkId) booleanhasAccessPermission(String linkSettingName, org.exoplatform.services.security.Identity identity) booleanhasEditPermission(String linkSettingName, org.exoplatform.services.security.Identity identity) booleanhasLinkSetting(String linkSettingName) io.meeds.social.link.model.LinkSettinginitLinkSetting(String name, String pageReference, long spaceId) voidsaveLinkData(String linkSettingName, io.meeds.social.link.model.LinkData linkData) io.meeds.social.link.model.LinkSettingsaveLinkSetting(io.meeds.social.link.model.LinkSetting linkSetting, List<io.meeds.social.link.model.Link> links) io.meeds.social.link.model.LinkSettingsaveLinkSetting(io.meeds.social.link.model.LinkSetting linkSetting, List<io.meeds.social.link.model.Link> links, org.exoplatform.services.security.Identity identity)
-
Field Details
-
LINKS_CREATED_EVENT
- See Also:
-
LINKS_UPDATED_EVENT
- See Also:
-
NO_ASSOCIATED_PAGE_TO_LINK
- See Also:
-
PAGE_NOT_ACCESSIBLE_FOR_USER
- See Also:
-
PAGE_NOT_EDITABLE_BY_USER
- See Also:
-
LINK_SETTING_PAGE_IS_MANDATORY
- See Also:
-
LINK_SETTING_NAME_IS_MANDATORY
- See Also:
-
ERROR_READING_ICON
- See Also:
-
LINK_SETTINGS_HEADER_FIELD
- See Also:
-
LINK_NAME_FIELD
- See Also:
-
LINK_DESCRIPTION_FIELD
- See Also:
-
-
Constructor Details
-
LinkServiceImpl
public LinkServiceImpl(org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.upload.UploadService uploadService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.services.resources.LocaleConfigService localeConfigService, io.meeds.social.cms.service.CMSService cmsService, LinkStorage linkStorage)
-
-
Method Details
-
getLinkSetting
public io.meeds.social.link.model.LinkSetting getLinkSetting(String linkSettingName, String language, org.exoplatform.services.security.Identity identity) throws IllegalAccessException - Specified by:
getLinkSettingin interfaceio.meeds.social.link.service.LinkService- Throws:
IllegalAccessException
-
getLinkSetting
- Specified by:
getLinkSettingin interfaceio.meeds.social.link.service.LinkService
-
getLinkSetting
public io.meeds.social.link.model.LinkSetting getLinkSetting(String linkSettingName, String language, boolean includeTranslations) - Specified by:
getLinkSettingin interfaceio.meeds.social.link.service.LinkService
-
getLinkSetting
public io.meeds.social.link.model.LinkSetting getLinkSetting(long linkSettingId) - Specified by:
getLinkSettingin interfaceio.meeds.social.link.service.LinkService
-
hasLinkSetting
- Specified by:
hasLinkSettingin interfaceio.meeds.social.link.service.LinkService
-
getLinkSettingByLinkId
public io.meeds.social.link.model.LinkSetting getLinkSettingByLinkId(long linkId) - Specified by:
getLinkSettingByLinkIdin interfaceio.meeds.social.link.service.LinkService
-
initLinkSetting
public io.meeds.social.link.model.LinkSetting initLinkSetting(String name, String pageReference, long spaceId) - Specified by:
initLinkSettingin interfaceio.meeds.social.link.service.LinkService
-
saveLinkSetting
public io.meeds.social.link.model.LinkSetting saveLinkSetting(io.meeds.social.link.model.LinkSetting linkSetting, List<io.meeds.social.link.model.Link> links, org.exoplatform.services.security.Identity identity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
saveLinkSettingin interfaceio.meeds.social.link.service.LinkService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
saveLinkSetting
public io.meeds.social.link.model.LinkSetting saveLinkSetting(io.meeds.social.link.model.LinkSetting linkSetting, List<io.meeds.social.link.model.Link> links) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
saveLinkSettingin interfaceio.meeds.social.link.service.LinkService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
saveLinkData
public void saveLinkData(String linkSettingName, io.meeds.social.link.model.LinkData linkData) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
saveLinkDatain interfaceio.meeds.social.link.service.LinkService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getLinkData
public io.meeds.social.link.model.LinkData getLinkData(String linkSettingName) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getLinkDatain interfaceio.meeds.social.link.service.LinkService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getLinks
- Specified by:
getLinksin interfaceio.meeds.social.link.service.LinkService
-
getLinks
public List<io.meeds.social.link.model.Link> getLinks(String linkSettingName, String language, boolean includeTranslations) - Specified by:
getLinksin interfaceio.meeds.social.link.service.LinkService
-
getLinkIconStream
- Specified by:
getLinkIconStreamin interfaceio.meeds.social.link.service.LinkService- Throws:
IOException
-
hasAccessPermission
public boolean hasAccessPermission(String linkSettingName, org.exoplatform.services.security.Identity identity) - Specified by:
hasAccessPermissionin interfaceio.meeds.social.link.service.LinkService
-
hasEditPermission
public boolean hasEditPermission(String linkSettingName, org.exoplatform.services.security.Identity identity) - Specified by:
hasEditPermissionin interfaceio.meeds.social.link.service.LinkService
-