Class ApplicationDescriptorProcessorImpl
java.lang.Object
com.aeontronix.enhancedmule.tools.ApplicationDescriptorProcessorImpl
- All Implemented Interfaces:
ApplicationDescriptorProcessor
public class ApplicationDescriptorProcessorImpl extends Object implements ApplicationDescriptorProcessor
-
Field Summary
Fields Modifier and Type Field Description static StringAPIstatic StringAPI_ID_PROPERTYstatic StringAPI_VERSIONstatic StringASSETstatic StringASSET_MAIN_FILEstatic StringCLIENTstatic StringCLIENT_ID_PROPERTYstatic StringCLIENT_SECRET_PROPERTYstatic StringCONTENTstatic StringCREATEstatic StringDESCRIPTIONstatic StringICONstatic StringIDstatic StringNAMEstatic StringPAGESstatic StringPATHstatic StringPORTALstatic StringPROPERTIESstatic StringTYPEstatic StringVERSION -
Constructor Summary
Constructors Constructor Description ApplicationDescriptorProcessorImpl(String descriptor, org.apache.maven.project.MavenProject project, File assetPagesDir, File apiSpecDir, boolean apikit) -
Method Summary
Modifier and Type Method Description static StringfindAPISpecFile(String assetId, File dir)ApplicationDescriptorgetAnypointDescriptor()com.fasterxml.jackson.databind.node.ObjectNodegetApplicationDescriptorJson()com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()voidlegacyConvert()voidsetApplicationDescriptor(String json)voidsetDefaultValues(boolean inheritNameAndDesc)voidwriteToFile(File file, boolean addToProject)
-
Field Details
-
DESCRIPTION
- See Also:
- Constant Field Values
-
ID
- See Also:
- Constant Field Values
-
NAME
- See Also:
- Constant Field Values
-
VERSION
- See Also:
- Constant Field Values
-
API_ID_PROPERTY
- See Also:
- Constant Field Values
-
PROPERTIES
- See Also:
- Constant Field Values
-
ICON
- See Also:
- Constant Field Values
-
CREATE
- See Also:
- Constant Field Values
-
ASSET_MAIN_FILE
- See Also:
- Constant Field Values
-
PORTAL
- See Also:
- Constant Field Values
-
PAGES
- See Also:
- Constant Field Values
-
CONTENT
- See Also:
- Constant Field Values
-
PATH
- See Also:
- Constant Field Values
-
API_VERSION
- See Also:
- Constant Field Values
-
ASSET
- See Also:
- Constant Field Values
-
CLIENT
- See Also:
- Constant Field Values
-
CLIENT_ID_PROPERTY
- See Also:
- Constant Field Values
-
CLIENT_SECRET_PROPERTY
- See Also:
- Constant Field Values
-
TYPE
- See Also:
- Constant Field Values
-
API
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ApplicationDescriptorProcessorImpl
public ApplicationDescriptorProcessorImpl(@Nullable String descriptor, @NotNull org.apache.maven.project.MavenProject project, File assetPagesDir, File apiSpecDir, boolean apikit) throws IOException- Throws:
IOException
-
-
Method Details
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setApplicationDescriptor
public void setApplicationDescriptor(String json) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
writeToFile
- Specified by:
writeToFilein interfaceApplicationDescriptorProcessor- Throws:
IOException
-
getAnypointDescriptor
- Specified by:
getAnypointDescriptorin interfaceApplicationDescriptorProcessor- Throws:
IOException
-
getApplicationDescriptorJson
public com.fasterxml.jackson.databind.node.ObjectNode getApplicationDescriptorJson()- Specified by:
getApplicationDescriptorJsonin interfaceApplicationDescriptorProcessor
-
setDefaultValues
- Specified by:
setDefaultValuesin interfaceApplicationDescriptorProcessor- Throws:
IOException
-
findAPISpecFile
-
legacyConvert
public void legacyConvert()- Specified by:
legacyConvertin interfaceApplicationDescriptorProcessor
-