]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.akb/src/main/java/org/argeo/slc/akb/AkbService.java
86975817570dc329322ac418a17fc3cef0543798
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 alias of the node to get
36 * @throws RepositoryException
38 public Node
getConnectorByAlias(Node envNode
, String aliasName
)
39 throws RepositoryException
;
42 * Shortcut to perform whatever test on a given connector only to check if
43 * URL is correctly defined, if the target system is there and if the
44 * current user has the sufficient credentials to connect
46 * If no active environment is defined, try to
48 public boolean testConnector(Node connector
);
51 * If no active environment is defined, tries to execute query with default
52 * connector defined for the template
54 public PreparedStatement
prepareJdbcQuery(Node activeEnvironment
, Node node
);
56 public String
executeCommand(Node activeEnvironment
, Node node
);
58 public String
retrieveFile(Node activeEnvironment
, Node node
);