Package org.ametys.plugins.linkdirectory
Class LinkDirectoryService
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.service.StaticService
org.ametys.plugins.linkdirectory.LinkDirectoryService
- All Implemented Interfaces:
Model,ModelItemAccessor,ModelItemContainer,LogEnabled,PluginAware,Labelable,Service,Disposable,Configurable,Contextualizable,Serviceable
Service for the link directory : not cacheable when dealing with links that have a limited access or internal url
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of service's parameter holding the configurable optionstatic final StringName of service's parameter holding the display user links optionFields inherited from class org.ametys.web.service.StaticService
_context, _featureName, _manager, _modelItems, _paramsScript, _pluginName, _repeaterDefinitionParser, _serviceParameterDefinitionParser, _view, _viewAndParametersParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCacheable(Page currentPage, ZoneItem zoneItem) Returns true if the result of this service may be cached, depending on theZoneItemcontaining an instance of this service.voidservice(ServiceManager smanager) Methods inherited from class org.ametys.web.service.StaticService
_configureClass, _configureImports, _configureScript, configure, configureDialogBoxDimension, configureIndexation, configureParameters, contextualize, dispose, getCategory, getCreationBoxHeight, getCreationBoxWidth, getCSSFiles, getDescription, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getModelItems, getName, getParameters, getParametersScript, getPluginName, getRight, getSmallIcon, getURL, getView, index, isPrivate, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItemMethods inherited from interface org.ametys.web.service.Service
getFamilyId
-
Field Details
-
DISPLAY_USER_LINKS_PARAMETER
Name of service's parameter holding the display user links option- See Also:
-
CONFIGURABLE_LINKS_PARAMETER
Name of service's parameter holding the configurable option- See Also:
-
-
Constructor Details
-
LinkDirectoryService
public LinkDirectoryService()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticService- Throws:
ServiceException
-
isCacheable
Description copied from interface:ServiceReturns true if the result of this service may be cached, depending on theZoneItemcontaining an instance of this service.- Specified by:
isCacheablein interfaceService- Overrides:
isCacheablein classStaticService- Parameters:
currentPage- the currentPagecontaining the service.zoneItem- theZoneItemcontaining an instance of this service.
N.B: The ZoneItem can belong to a page that is not the current page, when it is inherited.- Returns:
- true if the result of this service may be cached.
-