|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.example.dna.repository.RepositoryClient
public class RepositoryClient
Nested Class Summary | |
---|---|
static class |
RepositoryClient.Api
|
Field Summary | |
---|---|
static String |
INMEMORY_REPOSITORY_SOURCE_CLASSNAME
|
static String |
JAAS_LOGIN_CONTEXT_NAME
|
Constructor Summary | |
---|---|
RepositoryClient()
|
Method Summary | |
---|---|
List<String> |
getNamesOfRepositories()
Get the names of the repositories. |
boolean |
getNodeInfo(String sourceName,
String pathToNode,
Map<String,Object[]> properties,
List<String> children)
Get the information about a node, using the API method. |
void |
logout()
Calling this will lose the context |
static void |
main(String[] args)
|
void |
setApi(RepositoryClient.Api api)
Set the API that this client should use to interact with the repositories. |
void |
setJaasContextName(String jaasContextName)
Set the JAAS context name that should be used. |
void |
setUserInterface(UserInterface userInterface)
|
void |
shutdown()
Shut down the components and services and blocking until all resources have been released. |
void |
startRepositories()
Start up the repositories. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INMEMORY_REPOSITORY_SOURCE_CLASSNAME
public static final String JAAS_LOGIN_CONTEXT_NAME
Constructor Detail |
---|
public RepositoryClient()
Method Detail |
---|
public static void main(String[] args)
args
- public void setUserInterface(UserInterface userInterface)
userInterface
- Sets userInterface to the specified value.public void setApi(RepositoryClient.Api api)
api
- The API that should be usedpublic void setJaasContextName(String jaasContextName)
jaasContextName
- the JAAS context name, or null if no authentication should be performedpublic void startRepositories() throws IOException, SAXException, NamingException
IOException
- if there is a problem initializing the repositories from the files.
SAXException
- if there is a problem with the SAX Parser
NamingException
- if there is a problem registering or looking up objects in JNDIpublic List<String> getNamesOfRepositories()
public void shutdown() throws InterruptedException, LoginException
InterruptedException
- if the thread was interrupted before completing the shutdown.
LoginException
public void logout() throws LoginException
LoginException
public boolean getNodeInfo(String sourceName, String pathToNode, Map<String,Object[]> properties, List<String> children) throws Throwable
API
method.
sourceName
- the name of the repository sourcepathToNode
- the path to the node in the repository that is to be retrievedproperties
- the map into which the property values will be placed; may be null if the properties are not to be
retrievedchildren
- the collection into which the child names should be placed; may be null if the children are not to be
retrieved
Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |