|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.example.dna.sequencers.SequencingClient
public class SequencingClient
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_JACKRABBIT_CONFIG_PATH
|
static char[] |
DEFAULT_PASSWORD
|
static java.lang.String |
DEFAULT_REPOSITORY_NAME
|
static java.lang.String |
DEFAULT_USERNAME
|
static java.lang.String |
DEFAULT_WORKING_DIRECTORY
|
static java.lang.String |
DEFAULT_WORKSPACE_NAME
|
| Constructor Summary | |
|---|---|
SequencingClient()
|
|
| Method Summary | |
|---|---|
protected javax.jcr.Session |
createSession()
Utility method to create a new JCR session from the execution context's SessionFactory. |
protected java.lang.String |
getMimeType(java.net.URL file)
|
org.jboss.dna.repository.sequencers.SequencingService.Statistics |
getStatistics()
Get the sequencing statistics. |
static void |
main(java.lang.String[] args)
|
void |
search()
Perform a search of the repository for all image metadata automatically created by the image sequencer. |
protected void |
setJackrabbitConfigPath(java.lang.String jackrabbitConfigPath)
|
protected void |
setRepositoryInformation(java.lang.String repositoryName,
java.lang.String workspaceName,
java.lang.String username,
char[] password)
|
void |
setUserInterface(UserInterface userInterface)
Set the user interface that this client should use. |
protected void |
setWorkingDirectory(java.lang.String workingDirectoryPath)
|
void |
shutdownDnaServices()
Shut down the DNA services. |
void |
shutdownRepository()
Shutdown the repository. |
void |
startDnaServices()
Start the DNA services. |
void |
startRepository()
Start up the JCR repository. |
void |
uploadFile()
Prompt the user interface for the file to upload into the JCR repository, then upload it using the JCR API. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_JACKRABBIT_CONFIG_PATH
public static final java.lang.String DEFAULT_WORKING_DIRECTORY
public static final java.lang.String DEFAULT_REPOSITORY_NAME
public static final java.lang.String DEFAULT_WORKSPACE_NAME
public static final java.lang.String DEFAULT_USERNAME
public static final char[] DEFAULT_PASSWORD
| Constructor Detail |
|---|
public SequencingClient()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
protected void setWorkingDirectory(java.lang.String workingDirectoryPath)
protected void setJackrabbitConfigPath(java.lang.String jackrabbitConfigPath)
protected void setRepositoryInformation(java.lang.String repositoryName,
java.lang.String workspaceName,
java.lang.String username,
char[] password)
public void setUserInterface(UserInterface userInterface)
userInterface -
public void startRepository()
throws java.lang.Exception
java.lang.Exception
public void shutdownRepository()
throws java.lang.Exception
java.lang.Exception
public void startDnaServices()
throws java.lang.Exception
java.lang.Exception
public void shutdownDnaServices()
throws java.lang.Exception
java.lang.Exceptionpublic org.jboss.dna.repository.sequencers.SequencingService.Statistics getStatistics()
public void uploadFile()
throws java.lang.Exception
java.lang.Exception
public void search()
throws java.lang.Exception
java.lang.Exception
protected javax.jcr.Session createSession()
throws javax.jcr.RepositoryException
SessionFactory.
javax.jcr.RepositoryExceptionprotected java.lang.String getMimeType(java.net.URL file)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||