Skip navigation links

Oracle® Imaging and Process Management Java API Reference
11g Release 1 (11.1.1)

E12853-01


oracle.imaging
Interface ConnectionService


public interface ConnectionService

Method Summary
 NameId createConnection(Connection connection)
          Saves the given Connection object to the IPM data store for use in the system.
 void deleteConnection(NameId connNameId)
          Removes the specified Connection from the repository.
 Connection getConnection(NameId connNameId, Connection.SectionSet sectionSet)
          Retrieves the Connection for the given id
 java.util.List<Connection> getConnections(java.util.List<NameId> connNameIds, Connection.SectionSet sectionSet)
          Retrieves a set of Connection objects that correspond to the list of ID's given.
 java.util.List<NameId> listConnections(Connection.Ability ability)
          Returns a list of Connection ID's that the user has access to for the given ability
 void modifyConnection(Connection connection, Connection.SectionSet sectionSet)
          Saves the changes to the given Connection to the IPM repository

 

Method Detail

createConnection

NameId createConnection(Connection connection)
                        throws ImagingException,
                               ValidationException
Saves the given Connection object to the IPM data store for use in the system. createConnection is synchronized internally so that only one connection can be created at a time.
Parameters:
connection - The Connection to save
Returns:
The NameId of the created Connection
Throws:
ImagingException
ValidationException

modifyConnection

void modifyConnection(Connection connection,
                      Connection.SectionSet sectionSet)
                      throws ImagingException,
                             ValidationException
Saves the changes to the given Connection to the IPM repository
Parameters:
connection - The updated Connection object
sectionSet - The sections of the Connection to save
Throws:
ImagingException
ValidationException

listConnections

java.util.List<NameId> listConnections(Connection.Ability ability)
                                       throws ImagingException
Returns a list of Connection ID's that the user has access to for the given ability
Parameters:
ability - The desired security level to the connection
Returns:
A list of ID's of the Connections that match the security level.
Throws:
ImagingException

getConnection

Connection getConnection(NameId connNameId,
                         Connection.SectionSet sectionSet)
                         throws ImagingException
Retrieves the Connection for the given id
Parameters:
connNameId - The ID of the Connection to retrieve
sectionSet - The sections of the Connection to return
Returns:
The Connection object requested.
Throws:
ImagingException

getConnections

java.util.List<Connection> getConnections(java.util.List<NameId> connNameIds,
                                          Connection.SectionSet sectionSet)
                                          throws ImagingException
Retrieves a set of Connection objects that correspond to the list of ID's given.
Parameters:
connNameIds - The list of Connection ID's to get
sectionSet - The portions of the definition to fill out
Returns:
The Connections for the ID's specified.
Throws:
ImagingException - If there is an error retrieving any of the Connections of if an ID is invalid.

deleteConnection

void deleteConnection(NameId connNameId)
                      throws ImagingException
Removes the specified Connection from the repository.
Parameters:
connNameId - The ID of the Connection to remove
Throws:
ImagingException

Skip navigation links

Oracle® Imaging and Process Management Java API Reference
11g Release 1 (11.1.1)

E12853-01


Copyright © 2010, Oracle. All rights reserved.