Package lumis.service.wiki
Class WikiService
- java.lang.Object
-
- lumis.portal.service.GenericService
-
- lumis.doui.service.DouiService
-
- lumis.content.service.ContentService
-
- lumis.service.wiki.WikiService
-
- All Implemented Interfaces:
IDouiService
,IHyperLinkResolver
,IService
,IServiceClockDefinitionProvider
public class WikiService extends ContentService
Wiki service class.- Since:
- 5.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class lumis.doui.service.DouiService
EVENT_REST_CALL
-
Fields inherited from class lumis.portal.service.GenericService
serviceConfig
-
-
Constructor Summary
Constructors Constructor Description WikiService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initializeServiceInstanceContent(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction)
Creates the wiki main article, if the service instance has no content.void
instanceAdded(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction)
When a wiki service instance is added, the main wiki article is automatically created.void
instanceDeserialized(SessionConfig sessionConfig, java.lang.String serviceInstanceId, DeserializationConfig deserializationConfig, org.w3c.dom.Node node, ITransaction transaction)
Called after an service instance is deserialized.void
instanceDeserialized(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
Called after an service instance is deserialized.boolean
usesWidgetRepository(ITransaction transaction)
Indicates if this service uses a widget repository.-
Methods inherited from class lumis.content.service.ContentService
checkFileAccess, deleteContent, deserializeContent, getClocks, getDefaultServiceInstanceMenu, getResourceClassName, instanceDeleted, instanceSerialized, instanceSerialized, postRegister, preUnregister, registerActivityObjectTypes, resolveHyperLink, restLumGetContent, setMetaDataField, setMetaDataField, setMetaDataFieldIfRequested, setMetaDataFields, setSourceFieldAttributes, unregisterActivityObjectTypes
-
Methods inherited from class lumis.doui.service.DouiService
addDefaultDouiDefinitionValues, autoAddDependencies, getReturnType, hasHtmlField, restCallProcessAction, restDoProcessAction, restDoProcessActionWithActionId, restGetProcessActionRestHelp, restLumGetDataGet, restLumGetDataPost, setDataTypeAttributes, setDisplayAttributes, setIncludeAlwaysAttributes, setLookupAttributes, setPositionAttributes, setPriorityOptions, setValidationAttributes, usesDocumentService, usesFileManager, usesImageService, usesMediaRepository
-
Methods inherited from class lumis.portal.service.GenericService
instanceLoaded, instanceMoved, instanceMoved, instanceUnloaded, load, postUnregister, preRegister, unload
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.service.IService
instanceLoaded, instanceMoved, instanceMoved, instanceMoved, instanceUnloaded, load, postUnregister, preRegister, unload
-
-
-
-
Method Detail
-
instanceDeserialized
public void instanceDeserialized(SessionConfig sessionConfig, java.lang.String serviceInstanceId, DeserializationConfig deserializationConfig, org.w3c.dom.Node node, ITransaction transaction) throws PortalException
Description copied from interface:IService
Called after an service instance is deserialized.- Specified by:
instanceDeserialized
in interfaceIService
- Overrides:
instanceDeserialized
in classContentService
- Parameters:
sessionConfig
- user session information.serviceInstanceId
- the service instance id.deserializationConfig
- the deserialization configuration.node
- the deserialized acl node.transaction
- the transaction for persistence access.- Throws:
PortalException
- See Also:
IService.instanceSerialized(SessionConfig, String, OutputStream, ITransaction)
-
instanceDeserialized
public void instanceDeserialized(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext) throws PortalException
Description copied from interface:IService
Called after an service instance is deserialized.- Specified by:
instanceDeserialized
in interfaceIService
- Overrides:
instanceDeserialized
in classContentService
- Throws:
PortalException
-
instanceAdded
public void instanceAdded(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws PortalException
When a wiki service instance is added, the main wiki article is automatically created.- Specified by:
instanceAdded
in interfaceIService
- Overrides:
instanceAdded
in classContentService
serviceInstanceConfig
- aServiceInstanceConfig
object containing the service's configuration- Throws:
ServiceException
PortalException
- Since:
- 5.0.0
-
initializeServiceInstanceContent
protected void initializeServiceInstanceContent(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws PortalException
Creates the wiki main article, if the service instance has no content.- Parameters:
sessionConfig
- the user session information.serviceInstanceConfig
- the wiki service instance.transaction
- the transaction for persistence access.- Throws:
PortalException
- Since:
- 5.0.0
-
usesWidgetRepository
public boolean usesWidgetRepository(ITransaction transaction) throws PortalException
Description copied from interface:IDouiService
Indicates if this service uses a widget repository.- Specified by:
usesWidgetRepository
in interfaceIDouiService
- Overrides:
usesWidgetRepository
in classDouiService
- Parameters:
transaction
- the transaction for persistence access.- Returns:
- true if this service uses a widget repository, false otherwise.
- Throws:
PortalException
-
-