|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.clientapi.ApplicationAPI
public class ApplicationAPI
This class provides API for creating complete project application It includes the following: 1. Creation of Project Application 2. Creation of Project Workflows, States 3. Copy Query Template, Node from the Source Application 4. Assignment of Node to States 5. Role Assignments 6. Menu Assignment
Field Summary | |
---|---|
java.lang.String |
SourceApplicationName
|
Constructor Summary | |
---|---|
ApplicationAPI()
Default Constructor. |
|
ApplicationAPI(java.lang.String servletURL)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
assignApplicationToRoles(java.lang.Double applicationID,
java.util.ArrayList roleNames)
assign application to the given roles |
java.lang.Double |
createProjectPlanApplication(java.lang.String applicationName,
java.lang.String userName,
java.lang.String sourceApplicationName)
creates project application for the given information |
java.util.ArrayList |
createWorkflow(java.lang.Double ApplicationId,
java.lang.Double WorkflowId,
java.util.ArrayList statesInfo,
java.lang.String NodeTypeFlag)
creates flow of the work - includes states and operations, for the given workflow |
java.lang.Double |
createWorkflowHeader(java.lang.Double ApplicationId,
java.lang.String workflowName)
creates workflow header for the given workflow name in the selected project application |
java.util.ArrayList |
getAllCategoriesForApplication(java.lang.String applicationName)
Getting all categories for the application using applicationName. |
java.util.ArrayList |
getApplicationCategoriesForRoleUser(java.lang.String applicationName,
java.lang.String roleName,
java.lang.String userName)
Gets the application categories for role user. |
java.util.HashMap |
getEntireCategoryObject()
Gets the entire category object. |
java.util.ArrayList |
getProjectPlanApplications()
Gets the project plan applications. |
java.lang.Object |
getRoleCategoriesForApplication(java.lang.String roleName,
java.lang.String applicationName)
Gets the role categories for application using roleName and applicationName |
java.lang.String |
getSourceApplicationName()
|
void |
setSourceApplicationName(java.lang.String sourceApplicationName)
|
java.util.HashMap |
subscribeEntireCategoryObject()
Subscribe entire category object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String SourceApplicationName
Constructor Detail |
---|
public ApplicationAPI()
public ApplicationAPI(java.lang.String servletURL)
servletURL
- the servlet urlMethod Detail |
---|
public java.lang.String getSourceApplicationName()
public void setSourceApplicationName(java.lang.String sourceApplicationName)
public java.util.ArrayList getAllCategoriesForApplication(java.lang.String applicationName) throws java.lang.Exception
applicationName
- the application name
java.lang.Exception
- the exceptionpublic java.lang.Object getRoleCategoriesForApplication(java.lang.String roleName, java.lang.String applicationName) throws java.lang.Exception
roleName
- the role nameapplicationName
- the application name
java.lang.Exception
- the exceptionpublic java.util.ArrayList getProjectPlanApplications() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic java.util.HashMap getEntireCategoryObject() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic java.util.HashMap subscribeEntireCategoryObject() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic java.util.ArrayList getApplicationCategoriesForRoleUser(java.lang.String applicationName, java.lang.String roleName, java.lang.String userName) throws java.lang.Exception
applicationName
- the application nameroleName
- the role nameuserName
- the user name
java.lang.Exception
- the exceptionpublic java.lang.Double createProjectPlanApplication(java.lang.String applicationName, java.lang.String userName, java.lang.String sourceApplicationName) throws java.lang.Exception
applicationName
- String - name of the project applicationuserName
- String - who creates the project applicationsourceApplicationName
- String - used for copy from for Query Template and Node
java.lang.Exception
- the exceptionpublic java.lang.Double createWorkflowHeader(java.lang.Double ApplicationId, java.lang.String workflowName) throws java.lang.Exception
ApplicationId
- DoubleworkflowName
- String - name of the workflow
java.lang.Exception
- the exceptionpublic java.util.ArrayList createWorkflow(java.lang.Double ApplicationId, java.lang.Double WorkflowId, java.util.ArrayList statesInfo, java.lang.String NodeTypeFlag) throws java.lang.Exception
ApplicationId
- DoubleWorkflowId
- DoublestatesInfo
- ArrayList - The ArrayList should contain the following template:
[[state1, type (STATE/WORKFLOW), predecessor],[state2, type (STATE/WORKFLOW),predecessor (State1)],[],....]sourceApplicationName
- String - used for copy from for Query Template and Node
java.lang.Exception
- the exceptionpublic java.lang.String assignApplicationToRoles(java.lang.Double applicationID, java.util.ArrayList roleNames) throws java.lang.Exception
applicationID
- the application idroleNames
- ArrayList - list of role names, to whom the given application should be assigned
java.lang.Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |