|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumm.api.UMMAPI
public class UMMAPI
Field Summary | |
---|---|
static int |
APPLICATION
|
static int |
AUDIT
|
static int |
CONNECTION_FACTORY
|
static int |
DESTINATION
|
static int |
TEMPLATE
|
static java.lang.String |
UMM_XML_START
|
static java.lang.String |
UMM_XML_STOP
|
static int |
USER
|
Constructor Summary | |
---|---|
UMMAPI(java.util.Properties props)
|
|
UMMAPI(java.lang.String filename)
|
Method Summary | |
---|---|
void |
close()
close the UMM system. |
boolean |
deleteApplication(int applicationId)
Delete an Application. |
boolean |
deleteApplication(NameValue applicationNV)
Delete an Application. |
boolean |
deleteTemplate(int templateId)
Delete a Template. |
boolean |
deleteTemplate(NameValue templateNV)
Delete a Template. |
boolean |
deleteUser(int userId)
Delete an existing User. |
boolean |
deleteUser(NameValue userNV)
Delete an existing User. |
java.lang.String |
getApplication(int applicationId)
Get the XML for an Application. |
java.lang.String |
getApplication(NameValue applicationNV)
Get the XML for an Application. |
java.lang.String |
getApplication(java.lang.String name,
int type)
Get the XML for an Application. |
java.util.ArrayList<NameValue> |
getApplicationNames()
Returns a list of application NameValue objects that contains the name and id of each application. |
java.util.ArrayList<NameValue> |
getApplicationNames(int type)
Returns a list of application NameValue objects that contains the name and id of each application. |
java.util.ArrayList |
getAuditLog(long begin,
long end)
Get the Audit Log. |
java.lang.String |
getConfig(NameValue applicationNV,
int type)
Get the XML for an Application. |
java.lang.String |
getConfig(java.lang.String applicationName)
Get the XML for an Application. |
java.lang.String |
getConfig(java.lang.String applicationName,
int type)
Get the XML for an Application. |
java.lang.String |
getError()
Return the last error. |
java.lang.String |
getTemplate(int templateId)
Get the XML for a Template. |
java.lang.String |
getTemplate(NameValue templateNV)
Get the XML for a Template. |
java.util.ArrayList<NameValue> |
getTemplateNames()
Get all Template names. |
User |
getUser()
|
User |
getUser(int userId)
Get User information for an existing User. |
User |
getUser(NameValue userNV)
Get User information for an existing User. |
java.util.ArrayList<NameValue> |
getUserApplicationNames(int userId)
|
java.util.ArrayList<NameValue> |
getUserApplicationNames(NameValue userNV)
Returns the Applications that are assigned to a user. |
java.util.ArrayList<NameValue> |
getUserNames()
Get all the User names. |
boolean |
login(java.lang.String userName,
java.lang.String password)
Login into UMM system. |
boolean |
logOff()
Log off of the UMM system. |
boolean |
saveApplication(NameValue applicationNV,
java.lang.String xml)
Save the XML for a Application. |
boolean |
saveApplication(NameValue applicationNV,
java.lang.String xml,
int type)
Save the XML for a Application. |
NameValue |
saveApplication(java.lang.String name,
java.lang.String xml)
Save the XML for a Application. |
boolean |
saveTemplate(NameValue templateNV,
java.lang.String xml)
Save the XML for a Template. |
NameValue |
saveTemplate(java.lang.String name,
java.lang.String xml)
Save the XML for a Template. |
boolean |
saveUser(NameValue userNV,
User user)
Save the User. |
NameValue |
saveUser(java.lang.String name,
User user)
Save the User. |
boolean |
setAdmin(int userType)
Set the admin privilege. |
boolean |
setApplications(int userId,
java.util.ArrayList<NameValue> applicationList)
Set the Applications for a User. |
boolean |
setApplications(NameValue userNV,
java.util.ArrayList<NameValue> applicationList)
Set the Applications for a User. |
void |
setExceptionListener(java.beans.ExceptionListener listener)
Set an Exception Listener. |
boolean |
setTemplates(int applicationID,
java.util.ArrayList<NameValue> templates)
Set the Templates for an Application. |
boolean |
setTemplates(int applicationID,
java.util.ArrayList<NameValue> templates,
int type)
Set the Templates for an Application. |
boolean |
setTemplates(NameValue application,
java.util.ArrayList<NameValue> templates)
Save the XML for a Template. |
boolean |
setTemplates(NameValue application,
java.util.ArrayList<NameValue> templates,
int type)
Save the XML for a Template. |
boolean |
setTemplates(java.lang.String name,
java.util.ArrayList<NameValue> templates)
Set the Templates for an Application. |
boolean |
setUserPassword(int userID,
java.lang.String password)
Set the password for a user. |
boolean |
setUserPassword(NameValue nv,
java.lang.String password)
Set the password for a user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String UMM_XML_START
public static java.lang.String UMM_XML_STOP
public static final int APPLICATION
public static final int CONNECTION_FACTORY
public static final int DESTINATION
public static final int TEMPLATE
public static final int USER
public static final int AUDIT
Constructor Detail |
---|
public UMMAPI(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public UMMAPI(java.util.Properties props) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void close() throws java.sql.SQLException
java.sql.SQLException
public boolean login(java.lang.String userName, java.lang.String password) throws java.lang.Exception
userName
- The login name of the User. This needs to be an "admin"
user.password
- The password of the User.
java.lang.Exception
public boolean logOff()
public boolean setAdmin(int userType)
User.ADMIN,
- User.NORMAL.
public void setExceptionListener(java.beans.ExceptionListener listener)
listener
- public boolean deleteApplication(int applicationId) throws java.lang.Exception
applicationId
- The ID of the Application.
java.lang.Exception
public boolean deleteApplication(NameValue applicationNV) throws java.lang.Exception
applicationNV
- The NameValue that contains the id of the
Application.
java.lang.Exception
public boolean deleteTemplate(int templateId) throws java.lang.Exception
templateId
- The id of an existing Template.
java.lang.Exception
public boolean deleteTemplate(NameValue templateNV) throws java.lang.Exception
templateNV
- The NameValue object that contains the id of an
existing Template.
java.lang.Exception
public boolean deleteUser(int userId) throws java.lang.Exception
userId
-
java.lang.Exception
public boolean deleteUser(NameValue userNV) throws java.lang.Exception
userNV
- The NameValue object that contains the id of an existing
User.
java.lang.Exception
public User getUser(int userId) throws java.lang.Exception
userId
- The id of an existing User.
java.lang.Exception
public User getUser(NameValue userNV) throws java.lang.Exception
userNV
- The NameValue object that contains the id of an existing
User
java.lang.Exception
public boolean setUserPassword(int userID, java.lang.String password) throws java.lang.Exception
userId
- The id of an existing user.password
- The new password.
java.lang.Exception
public boolean setUserPassword(NameValue nv, java.lang.String password) throws java.lang.Exception
nv
- password
-
java.lang.Exception
public NameValue saveUser(java.lang.String name, User user) throws java.lang.Exception
name
- The name of the user.user
- This User object contains all of the user information.
java.lang.Exception
public boolean saveUser(NameValue userNV, User user) throws java.lang.Exception
userNV
- This must contain the user ID for an existing user or -1
for a new user.user
- This User object contains all of the user information.
java.lang.Exception
public boolean setTemplates(java.lang.String name, java.util.ArrayList<NameValue> templates) throws java.lang.Exception
name
- The application to assign the templates to.templates
- A list of templates to assign to the application.
java.lang.Exception
public boolean setTemplates(int applicationID, java.util.ArrayList<NameValue> templates) throws java.lang.Exception
applicationId
- The application to assign the templates to.templates
- A list of templates to assign to the application.
java.lang.Exception
public boolean setTemplates(int applicationID, java.util.ArrayList<NameValue> templates, int type) throws java.lang.Exception
applicationId
- The application to assign the templates to.templates
- A list of templates to assign to the application.
java.lang.Exception
public boolean setTemplates(NameValue application, java.util.ArrayList<NameValue> templates) throws java.lang.Exception
name
- The name of the template.List
- of templates.
java.lang.Exception
public boolean setTemplates(NameValue application, java.util.ArrayList<NameValue> templates, int type) throws java.lang.Exception
name
- The name of the template.List
- of templates.The
- Application type.
java.lang.Exception
public NameValue saveTemplate(java.lang.String name, java.lang.String xml) throws java.lang.Exception
name
- The name of the template.xml
- The xml that will associated with the template.
java.lang.Exception
public boolean saveTemplate(NameValue templateNV, java.lang.String xml) throws java.lang.Exception
templateNV
- This must contain the template ID for an existing
template or -1 for a new template.xml
- The xml that will associated with the template.
java.lang.Exception
public NameValue saveApplication(java.lang.String name, java.lang.String xml) throws java.lang.Exception
name
- The name of the application.xml
- The xml that will associated with the application.
java.lang.Exception
public boolean saveApplication(NameValue applicationNV, java.lang.String xml) throws java.lang.Exception
applicationNV
- This must contain the application ID for an existing
user or -1 for a new application.xml
- The xml that will associated with the application.
java.lang.Exception
public boolean saveApplication(NameValue applicationNV, java.lang.String xml, int type) throws java.lang.Exception
applicationNV
- This must contain the application ID for an existing
user or -1 for a new application.xml
- The xml that will associated with the application.type
- The applicatin type that will associated with the
application.
java.lang.Exception
public java.util.ArrayList<NameValue> getTemplateNames() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<NameValue> getApplicationNames() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<NameValue> getApplicationNames(int type) throws java.lang.Exception
type
- The application type that is associated with the application.
java.lang.Exception
public java.util.ArrayList<NameValue> getUserApplicationNames(int userId) throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<NameValue> getUserApplicationNames(NameValue userNV) throws java.lang.Exception
userNV
- - This must contain the user ID for an existing user.
java.lang.Exception
public boolean setApplications(int userId, java.util.ArrayList<NameValue> applicationList) throws java.lang.Exception
userId
- The ID of the user to assign applications to.applicationList
- The list of applications that are to be assign to
the User.
java.lang.Exception
public boolean setApplications(NameValue userNV, java.util.ArrayList<NameValue> applicationList) throws java.lang.Exception
userNV
- This must contain the user ID for an existing user.applicationList
- The list of applications that are to be assign to
the User.
java.lang.Exception
public java.util.ArrayList<NameValue> getUserNames() throws java.lang.Exception
java.lang.Exception
public java.lang.String getConfig(java.lang.String applicationName) throws java.lang.Exception
application
- This is the name of the application.
java.lang.Exception
public java.lang.String getConfig(java.lang.String applicationName, int type) throws java.lang.Exception
application
- This is the name of the application.
java.lang.Exception
public java.lang.String getConfig(NameValue applicationNV, int type) throws java.lang.Exception
applicationNV
- This must contain the the name of the application.
java.lang.Exception
public java.lang.String getApplication(java.lang.String name, int type) throws java.lang.Exception
applicationId
- The ID for an application.
java.lang.Exception
public java.lang.String getApplication(int applicationId) throws java.lang.Exception
applicationId
- The ID for an application.
java.lang.Exception
public java.lang.String getApplication(NameValue applicationNV) throws java.lang.Exception
applicationNV
- This must contain the id of the application.
java.lang.Exception
public java.lang.String getTemplate(int templateId) throws java.lang.Exception
templateId
- The ID for a template.
java.lang.Exception
public java.lang.String getTemplate(NameValue templateNV) throws java.lang.Exception
templateNV
- This must contain the id of the template.
java.lang.Exception
public java.util.ArrayList getAuditLog(long begin, long end) throws java.lang.Exception
begin
- The start time in milliseconds since 1970.end
- The end time in milliseconds since 1970.
java.lang.Exception
public User getUser()
public java.lang.String getError()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |