|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the item class extending XObjectDocument.public interface XClassManager<T extends XObjectDocument>
Interface that give way to manage a XWiki class.
| Field Summary | |
|---|---|
static java.lang.String |
XWIKI_CLASS_SPACE_PREFIX
Default prefix for a document's space containing a class. |
static java.lang.String |
XWIKI_CLASS_SPACE_SUFFIX
Default suffix for a document's space containing a class. |
static java.lang.String |
XWIKI_CLASS_SUFFIX
Default suffix for the document containing the class. |
static java.lang.String |
XWIKI_CLASSSHEET_SPACE_SUFFIX
Default suffix for a document's space containing a class sheet. |
static java.lang.String |
XWIKI_CLASSSHEET_SUFFIX
Default suffix for a document containing a class sheet. |
static java.lang.String |
XWIKI_CLASSTEMPLATE_SPACE_SUFFIX
Default suffix for a document's space containing a class template. |
static java.lang.String |
XWIKI_CLASSTEMPLATE_SUFFIX
Default suffix for a document containing a class template. |
| Method Summary | |
|---|---|
java.lang.String |
createWhereClause(java.lang.Object[][] fieldDescriptors,
java.util.List<java.lang.Object> parameterValues)
Construct HQL where clause to use with XWikiStoreInterface "searchDocuments" methods. |
com.xpn.xwiki.objects.classes.BaseClass |
getBaseClass()
|
com.xpn.xwiki.api.Document |
getClassDocument(com.xpn.xwiki.XWikiContext context)
Get the document containing the class in this context's database. |
java.lang.String |
getClassFullName()
|
java.lang.String |
getClassName()
|
java.lang.String |
getClassPrefix()
|
java.lang.String |
getClassSheetDefaultContent()
|
com.xpn.xwiki.api.Document |
getClassSheetDocument(com.xpn.xwiki.XWikiContext context)
Get the document containing the class sheet for this context's database. |
java.lang.String |
getClassSheetFullName()
|
java.lang.String |
getClassSheetName()
|
java.lang.String |
getClassSheetSpace()
|
java.lang.String |
getClassSpace()
|
java.lang.String |
getClassSpacePrefix()
|
java.lang.String |
getClassTemplateDefaultContent()
|
com.xpn.xwiki.api.Document |
getClassTemplateDocument(com.xpn.xwiki.XWikiContext context)
Get the document containing the class template for this context's database. |
java.lang.String |
getClassTemplateFullName()
|
java.lang.String |
getClassTemplateName()
|
java.lang.String |
getClassTemplateSpace()
|
java.lang.String |
getItemDefaultName(java.lang.String docFullName)
Get item name extracted from document full name. |
java.lang.String |
getItemDocumentDefaultFullName(java.lang.String itemName,
com.xpn.xwiki.XWikiContext context)
Get document full name from item name item. |
java.lang.String |
getItemDocumentDefaultName(java.lang.String itemName,
com.xpn.xwiki.XWikiContext context)
Get document name from item name item. |
T |
getXObjectDocument(java.lang.String itemName,
int objectId,
boolean validate,
com.xpn.xwiki.XWikiContext context)
Get document by full name from item name itemName. |
boolean |
isInstance(com.xpn.xwiki.api.Document doc)
Determines if the specified doc is compatible with this xwiki class (if he contains class object). |
boolean |
isInstance(com.xpn.xwiki.doc.XWikiDocument doc)
Determines if the specified doc is compatible with this xwiki class (if he contains class object). |
T |
newXObjectDocument(java.lang.String docFullName,
int objId,
com.xpn.xwiki.XWikiContext context)
Create new super document containing object of class getClassFullName(). |
T |
newXObjectDocument(com.xpn.xwiki.XWikiContext context)
Create new super document containing object of class getClassFullName(). |
T |
newXObjectDocument(com.xpn.xwiki.doc.XWikiDocument doc,
int objId,
com.xpn.xwiki.XWikiContext context)
Create new super document containing object of class getClassFullName(). |
java.util.List<T> |
newXObjectDocumentList(java.util.List<com.xpn.xwiki.doc.XWikiDocument> documents,
com.xpn.xwiki.XWikiContext context)
Create new super document for each object of class getClassFullName() of each XWikiDocument in
the list and return it. |
java.util.List<T> |
newXObjectDocumentList(com.xpn.xwiki.doc.XWikiDocument documents,
com.xpn.xwiki.XWikiContext context)
Create new super documents for each object of class getClassFullName() for provided
XWikiDocument and return it. |
| Field Detail |
|---|
static final java.lang.String XWIKI_CLASS_SUFFIX
static final java.lang.String XWIKI_CLASSSHEET_SUFFIX
static final java.lang.String XWIKI_CLASSTEMPLATE_SUFFIX
static final java.lang.String XWIKI_CLASS_SPACE_PREFIX
static final java.lang.String XWIKI_CLASS_SPACE_SUFFIX
static final java.lang.String XWIKI_CLASSSHEET_SPACE_SUFFIX
static final java.lang.String XWIKI_CLASSTEMPLATE_SPACE_SUFFIX
| Method Detail |
|---|
java.lang.String getClassSpacePrefix()
java.lang.String getClassPrefix()
getClassSpace()java.lang.String getClassSpace()
getClassSpacePrefix(),
XWIKI_CLASS_SPACE_SUFFIXjava.lang.String getClassName()
getClassFullName(),
getClassPrefix(),
XWIKI_CLASS_SUFFIXjava.lang.String getClassFullName()
getClassName(),
getClassSpace()java.lang.String getClassTemplateSpace()
getClassPrefix(),
XWIKI_CLASSTEMPLATE_SPACE_SUFFIXjava.lang.String getClassTemplateName()
getClassPrefix(),
getClassTemplateFullName(),
XWIKI_CLASSTEMPLATE_SUFFIXjava.lang.String getClassTemplateFullName()
getClassTemplateSpace(),
getClassTemplateName()java.lang.String getClassSheetSpace()
getClassSpacePrefix(),
XWIKI_CLASSSHEET_SPACE_SUFFIXjava.lang.String getClassSheetName()
getClassPrefix(),
getClassSheetFullName(),
XWIKI_CLASSSHEET_SUFFIXjava.lang.String getClassSheetFullName()
getClassSheetSpace(),
getClassSheetName()com.xpn.xwiki.objects.classes.BaseClass getBaseClass()
com.xpn.xwiki.api.Document getClassDocument(com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
context - the XWiki context.
com.xpn.xwiki.XWikiException - error when getting class document from the database.java.lang.String getClassSheetDefaultContent()
com.xpn.xwiki.api.Document getClassSheetDocument(com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
context - the XWiki context.
com.xpn.xwiki.XWikiException - error when getting class sheet document from the database.java.lang.String getClassTemplateDefaultContent()
com.xpn.xwiki.api.Document getClassTemplateDocument(com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
context - the XWiki context.
com.xpn.xwiki.XWikiException - error when getting class template document from the database.boolean isInstance(com.xpn.xwiki.doc.XWikiDocument doc)
doc is compatible with this xwiki class (if he contains class object).
doc - the XWikidocument to test.
doc support this class, false otherwise.boolean isInstance(com.xpn.xwiki.api.Document doc)
doc is compatible with this xwiki class (if he contains class object).
doc - the XWikidocument to test.
doc support this class, false otherwise.
java.lang.String getItemDocumentDefaultName(java.lang.String itemName,
com.xpn.xwiki.XWikiContext context)
item. Usually a Document name is DocumentTypeItemName.
itemName - the name of the item to find.context - the XWiki context.
getItemDocumentDefaultFullName(String, XWikiContext),
getItemDefaultName(String)
java.lang.String getItemDocumentDefaultFullName(java.lang.String itemName,
com.xpn.xwiki.XWikiContext context)
item. Usually a Document full name is
Space.DocumentTypeItemName.
itemName - the name of the item.context - the XWiki context.
getItemDocumentDefaultName(String, XWikiContext),
getItemDefaultName(String)java.lang.String getItemDefaultName(java.lang.String docFullName)
docFullName - the full name of the document.
getItemDocumentDefaultFullName(String, XWikiContext)
T getXObjectDocument(java.lang.String itemName,
int objectId,
boolean validate,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
itemName.
itemName - the full name of the item.objectId - the id of the XWiki object included in the document to manage.validate - indicate if it return new T or throw exception if wiki descriptor does not exist.context - the XWiki context.
com.xpn.xwiki.XWikiException - error when getting document from the database.getItemDefaultName(String),
getItemDocumentDefaultFullName(String, XWikiContext)
java.lang.String createWhereClause(java.lang.Object[][] fieldDescriptors,
java.util.List<java.lang.Object> parameterValues)
XWikiStoreInterface "searchDocuments" methods.
fieldDescriptors - the list of fields name/value constraints. Format : [[fieldName1, typeField1,
valueField1][fieldName2, typeField2, valueField2]].parameterValues - the where clause values filled by the method that replace the question marks (?).
T newXObjectDocument(com.xpn.xwiki.doc.XWikiDocument doc,
int objId,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
getClassFullName(). If document already exist it
is returned with new object if it does not contains any.
doc - the XWiki document to manage.objId - the id of the XWiki object included in the document to manage.context - the XWiki context.
com.xpn.xwiki.XWikiException - error when calling XObjectDocument implementation constructor.
T newXObjectDocument(com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
getClassFullName(). If document already exist it
is returned with new object if it does not contains any.
context - the XWiki context.
com.xpn.xwiki.XWikiException - error when calling T constructor.
T newXObjectDocument(java.lang.String docFullName,
int objId,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
getClassFullName(). If document already exist it
is returned with new object if it does not contains any.
docFullName - the full name of document to manage.objId - the id of the XWiki object included in the document to manage.context - the XWiki context.
com.xpn.xwiki.XWikiException - error when calling T constructor.getClassFullName()
java.util.List<T> newXObjectDocumentList(com.xpn.xwiki.doc.XWikiDocument documents,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
getClassFullName() for provided
XWikiDocument and return it.
documents - the list of XWikiDocument.context - the XWiki context.
T.
com.xpn.xwiki.XWikiException - error when calling XObjectDocument implementation constructor.
java.util.List<T> newXObjectDocumentList(java.util.List<com.xpn.xwiki.doc.XWikiDocument> documents,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
getClassFullName() of each XWikiDocument in
the list and return it.
documents - the list of XWikiDocument.context - the XWiki context.
T.
com.xpn.xwiki.XWikiException - error when calling XObjectDocument implementation constructor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||