public class FeatureFileUploadEntryController extends AbstractObjectUIController
Modifier and Type | Field and Description |
---|---|
static boolean |
refreshAPI |
Constructor and Description |
---|
FeatureFileUploadEntryController() |
Modifier and Type | Method and Description |
---|---|
void |
afterBind(Page page,
java.lang.String id,
ReportContext context) |
void |
afterMarshall(Page page,
java.lang.String id,
ReportContext context,
java.lang.Object pojo) |
void |
afterUnmarshall(Page page,
java.lang.String id,
ReportContext context,
java.lang.Object pojo) |
boolean |
areFeatureFileNamesUnique(java.lang.String jarFileName,
java.lang.String featureFileName,
java.lang.String featuresRepositoryLocation)
This method validates the current jar file name and feature file name
against all the features present inside the given folder that contains
all the features of the system.
|
void |
beforeMarshall(Page page,
java.lang.String id,
ReportContext context,
java.lang.Object pojo) |
void |
beforeUnmarshall(Page page,
java.lang.String id,
ReportContext context,
java.lang.Object pojo) |
java.util.Set<java.lang.String> |
checkForDuplicateMoPathId(java.lang.String oaModuleAPIMOFilePath,
java.lang.String destMoResourcePath)
Method checkForDuplicateMoPathId, reads the uploading Open Automation
Module's API's mo file checks matching Mo Id's against all the existing
API's .mo files and returns set of matching Mo Ids
|
java.util.List<java.lang.String> |
checkForDuplicateMoResourceName(java.lang.String oaModuleUrlMappingFileName,
java.lang.String destnationMoResourcesFolderName)
Method checkForDuplicateMoResourceName, reads the uploading Open
Automation Module's MO URL Mapping file checks its MO Resource names
against all the existing MO URL Mapping properties files and returns set
of matching Mo Ids
|
static void |
cleanDirectory(java.lang.String dirName,
boolean isRemoveDir) |
void |
moveOAMOResourceFilesToUploads() |
java.io.File |
renamePodFile(java.io.File originalFile,
java.lang.String renameTo)
This method will rename the pod definition xml to have a prefix of module
id followed by the users file name
|
public void afterBind(Page page, java.lang.String id, ReportContext context)
afterBind
in class AbstractObjectUIController
public void afterMarshall(Page page, java.lang.String id, ReportContext context, java.lang.Object pojo) throws java.lang.Exception
afterMarshall
in class AbstractObjectUIController
java.lang.Exception
public void beforeMarshall(Page page, java.lang.String id, ReportContext context, java.lang.Object pojo) throws java.lang.Exception
beforeMarshall
in class AbstractObjectUIController
java.lang.Exception
public void beforeUnmarshall(Page page, java.lang.String id, ReportContext context, java.lang.Object pojo) throws java.lang.Exception
beforeUnmarshall
in class AbstractObjectUIController
java.lang.Exception
public void afterUnmarshall(Page page, java.lang.String id, ReportContext context, java.lang.Object pojo) throws java.lang.Exception
afterUnmarshall
in class AbstractObjectUIController
java.lang.Exception
public static void cleanDirectory(java.lang.String dirName, boolean isRemoveDir)
public java.io.File renamePodFile(java.io.File originalFile, java.lang.String renameTo)
originalFile
- renameTo
- public void moveOAMOResourceFilesToUploads() throws java.io.IOException
java.io.IOException
public java.util.List<java.lang.String> checkForDuplicateMoResourceName(java.lang.String oaModuleUrlMappingFileName, java.lang.String destnationMoResourcesFolderName) throws java.lang.Exception
oaModuleUrlMappingFileName
- destnationMoResourcesFolderName
- java.lang.Exception
public java.util.Set<java.lang.String> checkForDuplicateMoPathId(java.lang.String oaModuleAPIMOFilePath, java.lang.String destMoResourcePath) throws java.lang.Exception
oaModuleAPIMOFilePath
- destMoResourcePath
- java.lang.Exception
public boolean areFeatureFileNamesUnique(java.lang.String jarFileName, java.lang.String featureFileName, java.lang.String featuresRepositoryLocation) throws java.lang.Exception
OA
- module's jarFileNameOA
- module's featureFileNamefeaturesRepositoryLocation
- - the folder that contains all the systems featuresjava.lang.Exception