public interface ApplicationManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addJob(java.lang.String applicationName,
ApplicationJobDetails applicationJobDetails) |
void |
clone(java.lang.String applicationName)
Clone application
|
void |
compileScript(java.lang.String scriptText)
This API method will validate compilation of given groovy script.
|
void |
create(Application application)
Create application
|
boolean |
createBackup(Application app) |
void |
createInstanceFromApplication(Application application)
Create instance from Application
Newly created application will share the Schema,Provisioning and Reconciliation configurations.
|
void |
createTemplate(Application application)
Create a Template.
|
void |
deleteApplicationJob(java.lang.String applicationName,
java.lang.String jobName)
Delete given schedule job and remove its entry from given template as well
|
void |
disableJob(java.lang.String jobName) |
void |
enableJob(java.lang.String jobName) |
java.util.List |
findApplications(SearchCriteria searchCriteria,
java.util.HashMap configParams)
Returns the list of the Applications based on the search criteria published in user's organization scope and has VIEW_SEARCH privilege on application.
|
ApplicationDiff |
findDiff(Application app) |
java.util.List |
findFlatFieConnectedApplications(SearchCriteria searchCriteria,
java.util.HashMap configParams)
Returns the list of the FlatFile Configurations for a Connected Application based on the search criteria published in user's organization scope and has VIEW_SEARCH privilege on application.
|
java.util.List |
findTemplates(SearchCriteria searchCriteria)
Returns a list of templates based on given search criteria
which are saved as a template from UI or imported through Deployment Manager.
|
boolean |
flushBackup(Application app) |
java.util.List |
getAllJobsForApplication(java.lang.String applicationName) |
Application |
getApplication(java.lang.String appName)
Retrieves the application detail by name
|
ApplicationUIMetadata |
getApplicationUIMetadata()
Get UI related static metadata
|
java.util.List |
getAvailableUpgrades() |
java.util.List |
getConnectorServers()
Get the list of names of all the Connector Servers.
|
ApplicationJobDetails |
getDetailsOfJob(java.lang.String applicationName,
java.lang.String jobName) |
java.util.List |
getHeaders(java.lang.String fileLocation,
Application app)
To get list of headers of given CSV file
This api will parse given csv file and return list of headers
|
java.util.List |
getHistoryofJob(java.lang.String jobName) |
ApplicationJobReport |
getReportofJob(java.lang.Double historyId) |
java.util.List |
getResultsofJobHistory(java.lang.Double historyId) |
Application |
getTemplate(java.lang.String templateName)
Get the Template based on given template name.
|
Application |
getTemplateFromBundle(java.lang.String connectorName,
java.lang.String connectorVersion,
boolean isAuthoritative)
Return java representation of XML based Application Template for the requested connector
|
Application |
getTemplateFromBundle(java.lang.String connectorName,
java.lang.String connectorVersion,
java.lang.String connectorPkgPath,
boolean isAuthoritative)
Return java representation of XML based Application Template for the requested connector
|
java.util.List |
getUpgradeStatus() |
java.util.List |
getUpgradeStatus(java.lang.String connectorName,
java.lang.String connectorVersion) |
java.util.List |
listAvailableConnectors(boolean isAuthoritative)
Returns the list of available Connector bundles reside in ConnectorDefaultDirectory based on isAuthoritative parameter value.
|
java.util.List |
listAvailableConnectors(java.lang.String alternatePath,
boolean isAuthoritative)
Returns the list of available Connector bundles reside in alternate deployment Directory based on isAuthoritative parameter value.
|
Application |
populateTargetSchema(Application application) |
java.util.List |
readSchemaAttributesFromBundle(Application application,
java.lang.String objectClassName)
Read schema attributes for the given Object Class from the connector bundle
|
void |
retrySingleAppUpgrade(java.lang.String appName) |
void |
retryUpgrade(java.util.List diffs) |
void |
runJob(java.lang.String jobName) |
void |
stopJob(java.lang.String jobName) |
void |
testConnection(Application application)
This API method will verify whether the application is able to connect to
the actual target successfully.
|
void |
update(Application application)
Update application or instace application
application will be considered as instance application if baseApplicationName is supplied.
|
void |
updateJob(java.lang.String applicationName,
ApplicationJobDetails applicationJobDetails) |
void |
updateTemplate(Application application)
Update existing Template.
|
void |
upgrade(java.util.List diffs) |
java.util.List findApplications(SearchCriteria searchCriteria, java.util.HashMap configParams) throws java.lang.Exception
searchCriteria
- The Search criteria based on which Applications will be retrieved
from the backend.configParams
- Parameter to further configure the search operation.
You can provide name,displayName,connectorName,connectorVersion,disconnected,authoritative,SORTEDBY and SORTORDER as search parameter.
The 'name' search configuration parameter indicates application name.
The 'displayName' search configuration parameter indicates application display name.
The 'connectorName' search configuration parameter indicates Connector display name of the application.
The 'connectorVersion' search configuration parameter indicates Connector version of the application.
The 'disconnected' search configuration parameter indicates whether application is Disconnected on not. Pass 'true' to search for disconnected application only.
The 'authoritative' search configuration parameter indicates whether application is Authoritative on not
Pass 'true' to search for Authoritative application only. The 'name' search configuration parameter indicates name of the application instance
The 'name' search configuration parameter indicates name of the application instance
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional.
The SORTORDER configuration parameter indicates the sorting order of the result, SortOrder.ASCENDING and SortOrder.DESCENDING. This parameter is optional.
java.lang.Exception
java.util.List findFlatFieConnectedApplications(SearchCriteria searchCriteria, java.util.HashMap configParams) throws java.lang.Exception
searchCriteria
- The Search criteria based on which Configurations will be retrieved
from the backend.configParams
- Parameter to further configure the search operation.
You can provide name,displayName,SORTEDBY and SORTORDER as search parameter.
The 'name' search configuration parameter indicates flatfile configuration name.
The 'displayName' search configuration parameter indicates flatfile configuration display name. *
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional.
The SORTORDER configuration parameter indicates the sorting order of the result, SortOrder.ASCENDING and SortOrder.DESCENDING. This parameter is optional.
java.lang.Exception
void testConnection(Application application) throws java.lang.Exception
application
- The Application VO for which to test the connection,
with the configuration properties configured.java.lang.Exception
void compileScript(java.lang.String scriptText) throws java.lang.Exception
scriptText-
- script source code as Stringjava.lang.Exception
- in case of compilation failure or exception in generating script class-java.util.List listAvailableConnectors(java.lang.String alternatePath, boolean isAuthoritative) throws java.lang.Exception
alternatePath
- - absolute path of the alternate DirectoryisAuthoritative
- - this boolean flag indicates filter criteria among list of connectors deployed
set 'true' to get list of connectors which has template for Authoritative source
set 'false' to get a list of connectors which has template for Target Resourcejava.lang.Exception
java.util.List listAvailableConnectors(boolean isAuthoritative) throws java.lang.Exception
isAuthoritative
- - this boolean flag indicates filter criteria among list of connectors deployed
set 'true' to get list of connectors which has template for Authoritative source
set 'false' to get a list of connectors which has template for Target Resourcejava.lang.Exception
void clone(java.lang.String applicationName) throws java.lang.Exception
applicationName
- Name of applicationjava.lang.Exception
void create(Application application) throws java.lang.Exception
applicationName
- Name of applicationjava.lang.Exception
void update(Application application) throws java.lang.Exception
application
- Application instancejava.lang.Exception
Application getTemplate(java.lang.String templateName) throws java.lang.Exception
templateName
- Name of the templatejava.lang.Exception
java.util.List findTemplates(SearchCriteria searchCriteria) throws java.lang.Exception
searchCriteria
- Search criteria based on which Templates will be retrievedjava.lang.Exception
Application getTemplateFromBundle(java.lang.String connectorName, java.lang.String connectorVersion, boolean isAuthoritative) throws java.io.FileNotFoundException, java.lang.Exception
connectorName
- - Display name of the connectorconnectorVersion
- - Display version of the connectorFileNotFoundException,Exception
- A XML based Application template must be present inside the bundle package under xml folderjava.io.FileNotFoundException
java.lang.Exception
Application getTemplateFromBundle(java.lang.String connectorName, java.lang.String connectorVersion, java.lang.String connectorPkgPath, boolean isAuthoritative) throws java.io.FileNotFoundException, java.lang.Exception
connectorName
- - Display name of the connectorconnectorVersion
- - Display version of the connectorconnectorPkgPath
- - Absolute path of the connector bundle package deployed into OIMFileNotFoundException,Exception
- A XML based Application template must be present inside the bundle package under xml folderjava.io.FileNotFoundException
java.lang.Exception
java.util.List readSchemaAttributesFromBundle(Application application, java.lang.String objectClassName) throws java.lang.Exception
application
- - Application Template instanceobjectClassName
- - Name of the target system Object class(__ACCOUNT__,__GROUP__ etc.)java.lang.Exception
void updateTemplate(Application application) throws java.lang.Exception
application
- - Application Template instancejava.lang.Exception
void createTemplate(Application application) throws java.lang.Exception
application
- java.lang.Exception
Application getApplication(java.lang.String appName) throws java.lang.Exception
appName
- Name of the application instancejava.lang.Exception
java.util.List getConnectorServers() throws java.lang.Exception
Exceptions
java.lang.Exception
ApplicationUIMetadata getApplicationUIMetadata() throws java.lang.Exception
java.lang.Exception
void createInstanceFromApplication(Application application) throws java.lang.Exception
application
- Application vo with base application namejava.lang.Exception
- Exception will be thrown if
1. Application is not successfully validated against application.xsd
2. Application does not contains required parameter
3. Application Name is not unique
4. Application does not contains valid base application name.java.util.List getAllJobsForApplication(java.lang.String applicationName) throws java.lang.Exception
java.lang.Exception
ApplicationJobDetails getDetailsOfJob(java.lang.String applicationName, java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
java.util.List getHistoryofJob(java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
java.util.List getResultsofJobHistory(java.lang.Double historyId) throws java.lang.Exception
java.lang.Exception
void runJob(java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
void stopJob(java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
void enableJob(java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
void disableJob(java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
Application populateTargetSchema(Application application) throws java.lang.Exception
java.lang.Exception
void updateJob(java.lang.String applicationName, ApplicationJobDetails applicationJobDetails) throws java.lang.Exception
java.lang.Exception
java.lang.String addJob(java.lang.String applicationName, ApplicationJobDetails applicationJobDetails) throws java.lang.Exception
java.lang.Exception
ApplicationJobReport getReportofJob(java.lang.Double historyId) throws java.lang.Exception
java.lang.Exception
java.util.List getHeaders(java.lang.String fileLocation, Application app) throws java.lang.Exception
fileLocation
- location csv filejava.lang.Exception
void deleteApplicationJob(java.lang.String applicationName, java.lang.String jobName) throws java.lang.Exception
applicationName
- Application NamejobName
- Job Namejava.lang.Exception
java.util.List getAvailableUpgrades() throws java.lang.Exception
java.lang.Exception
ApplicationDiff findDiff(Application app) throws java.lang.Exception
java.lang.Exception
boolean createBackup(Application app) throws java.lang.Exception
java.lang.Exception
boolean flushBackup(Application app) throws java.lang.Exception
java.lang.Exception
void upgrade(java.util.List diffs) throws java.lang.Exception
java.lang.Exception
void retrySingleAppUpgrade(java.lang.String appName) throws java.lang.Exception
java.lang.Exception
java.util.List getUpgradeStatus(java.lang.String connectorName, java.lang.String connectorVersion) throws java.lang.Exception
java.lang.Exception
java.util.List getUpgradeStatus() throws java.lang.Exception
java.lang.Exception
void retryUpgrade(java.util.List diffs) throws java.lang.Exception
java.lang.Exception