Package io.meeds.portal.permlink.service
Class PermanentLinkServiceImpl
java.lang.Object
io.meeds.portal.permlink.service.PermanentLinkServiceImpl
- All Implemented Interfaces:
io.meeds.portal.permlink.service.PermanentLinkService,org.picocontainer.Startable
public class PermanentLinkServiceImpl
extends Object
implements io.meeds.portal.permlink.service.PermanentLinkService, org.picocontainer.Startable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.exoplatform.commons.api.settings.data.Contextstatic final Stringstatic final org.exoplatform.commons.api.settings.data.Scopestatic final Patternstatic final Stringstatic final org.exoplatform.commons.api.settings.data.ScopeFields inherited from interface io.meeds.portal.permlink.service.PermanentLinkService
PERMANENT_LINK_URL_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionPermanentLinkServiceImpl(org.exoplatform.container.PortalContainer container, org.exoplatform.commons.api.settings.SettingService settingService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(io.meeds.portal.permlink.plugin.PermanentLinkPlugin plugin) getDirectAccessUrl(String permanentLinkId, org.exoplatform.services.security.Identity identity) getLink(io.meeds.portal.permlink.model.PermanentLinkObject object) getPermanentLink(io.meeds.portal.permlink.model.PermanentLinkObject object) protected voidprotected voidinitSalt()voidstart()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.picocontainer.Startable
stop
-
Field Details
-
PERMANEN_LINK_CONTEXT
public static final org.exoplatform.commons.api.settings.data.Context PERMANEN_LINK_CONTEXT -
PERMANENT_LINK_SCOPE
public static final org.exoplatform.commons.api.settings.data.Scope PERMANENT_LINK_SCOPE -
PERMANENT_LINK_IDS_SCOPE
public static final org.exoplatform.commons.api.settings.data.Scope PERMANENT_LINK_IDS_SCOPE -
PERMANENT_LINK_SALT_NAME
- See Also:
-
PERMANENT_LINK_PATTERN
-
PERMANENT_LINK_FOMRAT
- See Also:
-
-
Constructor Details
-
PermanentLinkServiceImpl
public PermanentLinkServiceImpl(org.exoplatform.container.PortalContainer container, org.exoplatform.commons.api.settings.SettingService settingService)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
getPermanentLink
- Specified by:
getPermanentLinkin interfaceio.meeds.portal.permlink.service.PermanentLinkService
-
getLink
public String getLink(io.meeds.portal.permlink.model.PermanentLinkObject object) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getLinkin interfaceio.meeds.portal.permlink.service.PermanentLinkService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getDirectAccessUrl
public String getDirectAccessUrl(String permanentLinkId, org.exoplatform.services.security.Identity identity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getDirectAccessUrlin interfaceio.meeds.portal.permlink.service.PermanentLinkService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
initPlugins
protected void initPlugins() -
addPlugin
public void addPlugin(io.meeds.portal.permlink.plugin.PermanentLinkPlugin plugin) - Specified by:
addPluginin interfaceio.meeds.portal.permlink.service.PermanentLinkService
-
initSalt
protected void initSalt()
-