Package io.meeds.portal.permlink.plugin
Interface PermanentLinkPlugin
public interface PermanentLinkPlugin
A plugin to generate and parse permanent link for one or multiple given
object type(s)
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccess(PermanentLinkObject object, org.exoplatform.services.security.Identity identity) return supported object type.
-
Method Details
-
getObjectType
String getObjectType()return supported object type. This can be by example of type: space, application, profile, program, action, realization, activity, news, notes, kudos... -
canAccess
boolean canAccess(PermanentLinkObject object, org.exoplatform.services.security.Identity identity) throws org.exoplatform.commons.exception.ObjectNotFoundException - Parameters:
object-PermanentLinkObjectidentity-Identityaccessing the object- Returns:
- true if can access else false
- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- when the designated object doesn't exists
-
getDirectAccessUrl
String getDirectAccessUrl(PermanentLinkObject object) throws org.exoplatform.commons.exception.ObjectNotFoundException - Parameters:
object-PermanentLinkObjectcontaining the object Type and Id with additional parameters when relevant to build a full URL- Returns:
- the direct access URL
- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- when the designated object doesn't exists
-