|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.client.CollectionXConf
public class CollectionXConf
Class to represent a collection.xconf which holds the configuration data for a collection
| Nested Class Summary | |
|---|---|
protected class |
CollectionXConf.FullTextIndex
Represents the Full Text Index in the collection.xconf |
protected class |
CollectionXConf.FullTextIndexPath
|
protected class |
CollectionXConf.RangeIndex
Represents a Range Index in the collection.xconf |
protected class |
CollectionXConf.Trigger
Represents a Trigger in the collection.xconf |
| Field Summary | |
|---|---|
static java.lang.String |
ACTION_EXCLUDE
|
static java.lang.String |
ACTION_INCLUDE
|
static java.lang.String |
TYPE_PATH
|
static java.lang.String |
TYPE_QNAME
|
| Method Summary | |
|---|---|
void |
addFullTextIndex(java.lang.String type,
java.lang.String XPath,
java.lang.String action)
Add a path to the full text index |
void |
addRangeIndex(java.lang.String type,
java.lang.String XPath,
java.lang.String xsType)
Add a Range Index |
void |
addTrigger(java.lang.String triggerClass,
boolean STORE_DOCUMENT_EVENT,
boolean UPDATE_DOCUMENT_EVENT,
boolean REMOVE_DOCUMENT_EVENT,
boolean CREATE_COLLECTION_EVENT,
boolean RENAME_COLLECTION_EVENT,
boolean DELETE_COLLECTION_EVENT,
java.util.Properties parameters)
Add a Trigger |
void |
deleteFullTextIndex(int index)
Delete a path from the full text index |
void |
deleteRangeIndex(int index)
Delete a Range Index |
void |
deleteTrigger(int index)
Delete a Trigger |
boolean |
getFullTextIndexAlphanum()
Indicates whether the fulltext index indexes alphanumeric values |
boolean |
getFullTextIndexAttributes()
Indicates whether the fulltext index indexes attributes |
boolean |
getFullTextIndexDefaultAll()
Indicates whether the fulltext index defaults to indexing all nodes |
java.lang.String |
getFullTextIndexPath(int index)
Returns a full text index path |
java.lang.String |
getFullTextIndexPathAction(int index)
Returns a full text index path action |
java.lang.String |
getFullTextIndexType(int index)
|
int |
getFullTextPathCount()
Returns the number of full text index paths defined |
CollectionXConf.RangeIndex |
getRangeIndex(int index)
Returns n specific Range Index |
int |
getRangeIndexCount()
Returns the number of Range Indexes defined |
CollectionXConf.RangeIndex[] |
getRangeIndexes()
Returns an array of the Range Indexes |
CollectionXConf.Trigger |
getTrigger(int index)
Returns n specific Trigger |
int |
getTriggerCount()
Returns the number of Triggers defined |
CollectionXConf.Trigger[] |
getTriggers()
Returns an array of Triggers |
boolean |
hasChanged()
Indicates whether the collection configuration has changed |
boolean |
Save()
Saves the collection configuation back to the collection.xconf |
void |
setFullTextIndexAlphanum(boolean alphanum)
Set whether alphanumeric values should be indexed into the fulltext index |
void |
setFullTextIndexAttributes(boolean attributes)
Set whether attributes should be indexed into the fulltext index |
void |
setFullTextIndexDefaultAll(boolean defaultAll)
Set whether all nodes should be indexed into the fulltext index |
void |
updateFullTextIndex(int index,
java.lang.String type,
java.lang.String XPath,
java.lang.String action)
Update the details of a full text index path |
void |
updateRangeIndex(int index,
java.lang.String type,
java.lang.String XPath,
java.lang.String xsType)
Update the details of a Range Index |
void |
updateTrigger(int index,
java.lang.String triggerClass,
boolean STORE_DOCUMENT_EVENT,
boolean UPDATE_DOCUMENT_EVENT,
boolean REMOVE_DOCUMENT_EVENT,
boolean CREATE_COLLECTION_EVENT,
boolean RENAME_COLLECTION_EVENT,
boolean DELETE_COLLECTION_EVENT,
java.util.Properties parameters)
Update the details of a Trigger |
| 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 TYPE_QNAME
public static final java.lang.String TYPE_PATH
public static final java.lang.String ACTION_INCLUDE
public static final java.lang.String ACTION_EXCLUDE
| Method Detail |
|---|
public boolean getFullTextIndexDefaultAll()
public void setFullTextIndexDefaultAll(boolean defaultAll)
defaultAll - true indicates all nodes should be indexed, false indicates no nodes should be indexed by defaultpublic boolean getFullTextIndexAttributes()
public void setFullTextIndexAttributes(boolean attributes)
attributes - true indicates attributes should be indexed, false indicates attributes should not be indexedpublic boolean getFullTextIndexAlphanum()
public void setFullTextIndexAlphanum(boolean alphanum)
alphanum - true indicates alphanumeric values should be indexed, false indicates alphanumeric values should not be indexedpublic java.lang.String getFullTextIndexPath(int index)
index - The numeric index of the fulltext index path to retreive
public java.lang.String getFullTextIndexType(int index)
public java.lang.String getFullTextIndexPathAction(int index)
index - The numeric index of the fulltext index path action to retreive
public int getFullTextPathCount()
public void addFullTextIndex(java.lang.String type,
java.lang.String XPath,
java.lang.String action)
XPath - The XPath to indexaction - The action to take on the path, either "include" or "exclude"
public void updateFullTextIndex(int index,
java.lang.String type,
java.lang.String XPath,
java.lang.String action)
index - The numeric index of the path to updateXPath - The new XPath, or null to just set the actionaction - The new action, either "include" or "exclude", or null to just set the XPathpublic void deleteFullTextIndex(int index)
index - The numeric index of the path to deletepublic CollectionXConf.RangeIndex[] getRangeIndexes()
public CollectionXConf.RangeIndex getRangeIndex(int index)
index - The numeric index of the Range Index to return
public int getRangeIndexCount()
public void deleteRangeIndex(int index)
index - The numeric index of the Range Index to delete
public void updateRangeIndex(int index,
java.lang.String type,
java.lang.String XPath,
java.lang.String xsType)
index - The numeric index of the range index to updateXPath - The new XPath, or null to just set the typexsType - The new type of the path, a valid xs:type, or just null to set the path
public void addRangeIndex(java.lang.String type,
java.lang.String XPath,
java.lang.String xsType)
XPath - The XPath to indexxsType - The type of the path, a valid xs:typepublic CollectionXConf.Trigger[] getTriggers()
public CollectionXConf.Trigger getTrigger(int index)
index - The numeric index of the Trigger to return
public int getTriggerCount()
public void deleteTrigger(int index)
index - The numeric index of the Trigger to delete
public void updateTrigger(int index,
java.lang.String triggerClass,
boolean STORE_DOCUMENT_EVENT,
boolean UPDATE_DOCUMENT_EVENT,
boolean REMOVE_DOCUMENT_EVENT,
boolean CREATE_COLLECTION_EVENT,
boolean RENAME_COLLECTION_EVENT,
boolean DELETE_COLLECTION_EVENT,
java.util.Properties parameters)
index - The numeric index of the range index to updatetriggerClass - The name of the new class for the trigger
public void addTrigger(java.lang.String triggerClass,
boolean STORE_DOCUMENT_EVENT,
boolean UPDATE_DOCUMENT_EVENT,
boolean REMOVE_DOCUMENT_EVENT,
boolean CREATE_COLLECTION_EVENT,
boolean RENAME_COLLECTION_EVENT,
boolean DELETE_COLLECTION_EVENT,
java.util.Properties parameters)
triggerClass - The class for the Triggerpublic boolean hasChanged()
public boolean Save()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||