|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.tools.XMLTools | +--org.apache.xindice.tools.XMLAdminTools
Implementation of the XMLTools interface for Admin users
Field Summary | |
static java.lang.String |
ACTION
|
static java.lang.String |
AUTO_KEY
|
static java.lang.String |
COLLECTION
|
static java.lang.String |
DB_SERVER
|
static java.lang.String |
EXTENSION
|
static java.lang.String |
FILE_PATH
|
static java.lang.String |
FORCE
|
static java.lang.String |
HOST
|
static java.lang.String |
IMPL_CLASS
|
static java.lang.String |
MAX_KEY_SIZE
|
static java.lang.String |
NAME_OF
|
static java.lang.String |
PAGE_SIZE
|
static java.lang.String |
PASSWORD
|
static java.lang.String |
PATTERN
|
static java.lang.String |
PORT
|
static java.lang.String |
QUERY
|
static java.lang.String |
TYPE
|
static java.lang.String |
URI
|
static java.lang.String |
USER
|
static java.lang.String |
VERBOSE
|
static java.lang.String |
XML_OBJECT_URI
|
Constructor Summary | |
XMLAdminTools()
|
Method Summary | |
boolean |
execute()
This method is to carry out execution, after instance variables being setup by process( args ) |
java.lang.String |
getAction()
getAction returns the action type that will be passed to the command line tool. |
java.lang.String |
getCollectionName()
getCollectionName returns the collection name that will be passed to the command line tool. |
java.lang.String |
getDatabaseServer()
getDatabaseServer returns the Database server that will be passed to the command line tool. |
java.lang.String |
getDocumentName()
getDocumentName returns the document that will be passed to the command line tool. |
java.lang.String |
getFilePath()
getFilePath returns the file path that will be passed to the command |
java.lang.String |
getHost()
getPort returns the host that will be passed to the command line tool. |
java.lang.String |
getImplementClass()
getImplementClass returns the implmented class path that will be passed to the command line tool. |
java.lang.String |
getName()
getName returns the name for XMLObjects that will be passed to the command line tool. |
java.lang.String |
getPassword()
getPassword returns the password that will be passed to the command line tool and will be used in conjunction with the userName value. |
java.lang.String |
getPort()
getPort returns the port that will be passed to the command line tool. |
java.lang.String |
getQuery()
getQuery returns the Query for Document passed to the command line tool. |
java.lang.String |
getURI()
getURI gets returns the database URI (protocol://host:port/name) that will be passed to the command line tool |
java.lang.String |
getUser()
getUser returns the user that will be passed to the command line tool and will be used in Security issues. |
boolean |
handleOption(java.lang.String option,
ArgTokenizer at)
|
void |
init()
Carries out necessary initialization of this class. |
boolean |
isAdmin()
Return true if this class has admin access |
static void |
main(java.lang.String[] args)
|
void |
printHelp()
|
void |
process(java.lang.String[] args)
The Process function is designed for the implementation of the command line tools, as well as, making the command line easier to use. |
void |
setAction(java.lang.String actionType)
setAction sets the action type that will be passed to the command line. |
void |
setCollectionName(java.lang.String collectionName)
setCollectionName sets the collection name that will be passed to the command line. |
void |
setDatabaseServer(java.lang.String appName)
setDatabaseServer sets the Database server name that will be passed to the command line tool. |
void |
setDocumentName(java.lang.String documentName)
setDocumentName sets the document that will be passed to the command line tool. |
void |
setFilePath(java.lang.String fPath)
setFilePath sets the file path that will passed to the command line tool. |
void |
setHost(java.lang.String hostName)
setHost sets the host that will passed to the command line tool. |
void |
setImplementClass(java.lang.String imClassName)
setImplementClass sets the implemented class path that will be passed to the command line tool. |
void |
setName(java.lang.String name)
setName sets the name for XMLObjects passed to the command line tool. |
void |
setPassword(java.lang.String pswd)
setPassword sets the password that will be passed to the command line tool and will be used in conjunction with the userName value. |
void |
setPort(java.lang.String portName)
setPort sets the port that will passed to the command line tool. |
void |
setQuery(java.lang.String query)
setQuery sets the Query variable for Document Query from the command line. |
void |
setURI(java.lang.String URI)
setURI sets the database URI (protocol://host:port/name) that will be passed to the command line |
void |
setUser(java.lang.String userName)
setUser sets the user that will be passed to the command line tool and will be used in Security issues. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COLLECTION
public static final java.lang.String EXTENSION
public static final java.lang.String FILE_PATH
public static final java.lang.String ACTION
public static final java.lang.String IMPL_CLASS
public static final java.lang.String NAME_OF
public static final java.lang.String XML_OBJECT_URI
public static final java.lang.String PATTERN
public static final java.lang.String QUERY
public static final java.lang.String URI
public static final java.lang.String VERBOSE
public static final java.lang.String FORCE
public static final java.lang.String TYPE
public static final java.lang.String PAGE_SIZE
public static final java.lang.String MAX_KEY_SIZE
public static final java.lang.String DB_SERVER
public static final java.lang.String PORT
public static final java.lang.String HOST
public static final java.lang.String USER
public static final java.lang.String PASSWORD
public static final java.lang.String AUTO_KEY
Constructor Detail |
public XMLAdminTools()
Method Detail |
public boolean isAdmin()
isAdmin
in class org.apache.xindice.tools.XMLTools
public static void main(java.lang.String[] args)
public void init() throws XindiceException, java.io.FileNotFoundException
public void process(java.lang.String[] args) throws XindiceException, java.lang.Exception
public boolean execute() throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.Exception
public boolean handleOption(java.lang.String option, ArgTokenizer at)
public void setAction(java.lang.String actionType)
actionType
- The action valuepublic java.lang.String getAction()
public void setCollectionName(java.lang.String collectionName)
collectionName
- The collection valuepublic java.lang.String getCollectionName()
public void setDocumentName(java.lang.String documentName)
documentName
- The docName valuepublic java.lang.String getDocumentName()
public void setQuery(java.lang.String query)
query
- - The query stringpublic java.lang.String getQuery()
public void setName(java.lang.String name)
name
- The docName valuepublic java.lang.String getName()
public void setDatabaseServer(java.lang.String appName)
appName
- The dbServ valuepublic java.lang.String getDatabaseServer()
public void setPort(java.lang.String portName)
portName
- The port valuepublic java.lang.String getPort()
public void setHost(java.lang.String hostName)
hostName
- The host valuepublic java.lang.String getHost()
public void setFilePath(java.lang.String fPath)
fPath
- The filePath valuepublic java.lang.String getFilePath()
public void setURI(java.lang.String URI)
URI
- The URI for the databasepublic java.lang.String getURI()
public void setImplementClass(java.lang.String imClassName)
imClassName
- The implClass valuepublic java.lang.String getImplementClass()
public void setUser(java.lang.String userName)
userName
- The user valuepublic java.lang.String getUser()
public void setPassword(java.lang.String pswd)
pswd
- The passwrd valuepublic java.lang.String getPassword()
public void printHelp()
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |