]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.akb/src/main/java/org/argeo/slc/akb/AkbService.java
1f5d998c6483cbcc8230cc25af8648b1bc17da6e
1 package org
.argeo
.slc
.akb
;
3 import java
.sql
.PreparedStatement
;
6 import javax
.jcr
.NodeIterator
;
7 import javax
.jcr
.RepositoryException
;
9 /** Provides method interfaces to manage an AKB repository */
10 public interface AkbService
{
12 /** Creates a pre-configured AKB Template */
13 public Node
createAkbTemplate(Node parent
, String name
)
14 throws RepositoryException
;
16 /** Creates a new pre-configured AKB connector Alias for the given template */
17 public Node
createConnectorAlias(Node templateNode
, String name
,
18 String connectorType
) throws RepositoryException
;
22 * @param connectorType
23 * if null, returns all defined connector for this template
25 * @throws RepositoryException
27 public NodeIterator
getDefinedAliases(Node templateNode
,
28 String connectorType
) throws RepositoryException
;
32 * an environment or a template
34 * the path of the parent alias in the corresponding template
35 * environment used as key
36 * @return the corresponding active connector if found
37 * @throws RepositoryException
39 public Node
getActiveConnectorByAlias(Node envNode
, String aliasPath
)
40 throws RepositoryException
;
43 * Shortcut to perform whatever test on a given connector only to check if
44 * URL is correctly defined, if the target system is there and if the
45 * current user has the sufficient credentials to connect
47 * If no active environment is defined, try to
49 public boolean testConnector(Node connector
);
52 * If no active environment is defined, tries to execute query with default
53 * connector defined for the template
55 * @param activeEnvironment
59 public PreparedStatement
prepareJdbcQuery(Node activeEnvironment
,
64 * @param activeEnvironment
68 public String
executeCommand(Node activeEnvironment
, Node itemNode
);
72 * @param activeEnvironment
76 public String
retrieveFile(Node activeEnvironment
, Node itemNode
);