Package io.meeds.social.space.plugin
Class SpacePermanentLinkPlugin
java.lang.Object
io.meeds.social.space.plugin.SpacePermanentLinkPlugin
- All Implemented Interfaces:
io.meeds.portal.permlink.plugin.PermanentLinkPlugin
@Component
public class SpacePermanentLinkPlugin
extends Object
implements io.meeds.portal.permlink.plugin.PermanentLinkPlugin
A plugin to generate a permanent link for a given space and to parse an url
to generate the an object represented by Type and Id
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccess(io.meeds.portal.permlink.model.PermanentLinkObject object, org.exoplatform.services.security.Identity identity) getDirectAccessUrl(io.meeds.portal.permlink.model.PermanentLinkObject object) voidinit()
-
Field Details
-
OBJECT_TYPE
- See Also:
-
URI_HASH
- See Also:
-
APPLICATION_URI
- See Also:
-
-
Constructor Details
-
SpacePermanentLinkPlugin
public SpacePermanentLinkPlugin()
-
-
Method Details
-
init
@PostConstruct public void init() -
getObjectType
- Specified by:
getObjectTypein interfaceio.meeds.portal.permlink.plugin.PermanentLinkPlugin
-
canAccess
public boolean canAccess(io.meeds.portal.permlink.model.PermanentLinkObject object, org.exoplatform.services.security.Identity identity) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
canAccessin interfaceio.meeds.portal.permlink.plugin.PermanentLinkPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getDirectAccessUrl
public String getDirectAccessUrl(io.meeds.portal.permlink.model.PermanentLinkObject object) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getDirectAccessUrlin interfaceio.meeds.portal.permlink.plugin.PermanentLinkPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-