public class GenericServiceDocumentationGenerator extends Object implements IServiceDocumentationGenerator
Modifier and Type | Field and Description |
---|---|
protected IResource |
docResource |
Constructor and Description |
---|
GenericServiceDocumentationGenerator() |
Modifier and Type | Method and Description |
---|---|
protected String |
documentationGetServiceDescription(ServiceConfig serviceConfig,
IResource resource,
Locale locale,
IDocumentationTemplate template,
ITransaction transaction)
Returns the HTML detailed description of the service.
|
protected String |
documentationGetServiceName(ServiceConfig serviceConfig,
IResource resource,
Locale locale,
IDocumentationTemplate template,
ITransaction transaction) |
protected String |
documentationGetServiceSummary(ServiceConfig serviceConfig,
IResource resource,
Locale locale,
IDocumentationTemplate template,
ITransaction transaction) |
protected void |
documentationSetTemplateSections(ServiceConfig serviceConfig,
IResource resource,
Locale locale,
IDocumentationTemplate template,
ITransaction transaction)
Generates the documentation sections for the service principal documentation.
|
void |
generateDocumentationForService(String serviceId,
Locale locale,
IDocumentationTemplate template)
Generates HTML documentation for the service.
|
void |
generateDocumentationForServiceInterface(String interfaceId,
Locale locale,
boolean reGenerateImages,
IDocumentationTemplate template)
Generates HTML documentation for the given service interface.
|
protected String |
getDefaultServiceDetailedDescription(ServiceConfig serviceConfig,
IResource resource,
Locale locale,
IDocumentationTemplate template,
ITransaction transaction)
Used by inherited Classes (ex.
|
protected IServiceInterfaceDocumentationGenerator |
getServiceInterfaceDocumentationGenerator(IServiceInterface si) |
protected IResource docResource
public GenericServiceDocumentationGenerator()
public void generateDocumentationForService(String serviceId, Locale locale, IDocumentationTemplate template) throws PortalException
IServiceDocumentationGenerator
The HTML documentation should be generated in the root directory provided.
generateDocumentationForService
in interface IServiceDocumentationGenerator
locale
- locale the locale in which the documentation should be generated.template
- the template where the generated information should be sent to for rendering.PortalException
protected String documentationGetServiceName(ServiceConfig serviceConfig, IResource resource, Locale locale, IDocumentationTemplate template, ITransaction transaction) throws PortalException
PortalException
protected String documentationGetServiceSummary(ServiceConfig serviceConfig, IResource resource, Locale locale, IDocumentationTemplate template, ITransaction transaction) throws PortalException
PortalException
protected String documentationGetServiceDescription(ServiceConfig serviceConfig, IResource resource, Locale locale, IDocumentationTemplate template, ITransaction transaction) throws PortalException
serviceConfig
- the service for which detailed documentation should be generated.resource
- used to translate strings.locale
- the locale in which the documentation should be generated.template
- the documentation template used to generate documentation files.transaction
- PortalException
protected void documentationSetTemplateSections(ServiceConfig serviceConfig, IResource resource, Locale locale, IDocumentationTemplate template, ITransaction transaction) throws PortalException
serviceConfig
- resource
- used to translate strings.locale
- the locale in which the documentation should be generated.template
- the documentation template used to generate documentation files.transaction
- PortalException
protected String getDefaultServiceDetailedDescription(ServiceConfig serviceConfig, IResource resource, Locale locale, IDocumentationTemplate template, ITransaction transaction) throws ManagerException, PortalException
serviceConfig
- resource
- used to translate strings.locale
- the locale in which the documentation should be generated.template
- the documentation template used to generate documentation files.transaction
- ManagerException
PortalException
public void generateDocumentationForServiceInterface(String interfaceId, Locale locale, boolean reGenerateImages, IDocumentationTemplate template) throws PortalException
IServiceDocumentationGenerator
generateDocumentationForServiceInterface
in interface IServiceDocumentationGenerator
interfaceId
- the interface for which documentation should be generatedlocale
- locale the locale in which the documentation should be generated.reGenerateImages
- flags whether images should be generated. This may cause documentation take longer to generate.template
- the template where the generated information should be sent to for rendering.PortalException
protected IServiceInterfaceDocumentationGenerator getServiceInterfaceDocumentationGenerator(IServiceInterface si) throws PortalException
PortalException
Lumisportal 9.0.0.160603 - Copyright © 2006–2016 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.