|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.api.Api
com.xpn.xwiki.api.Document
com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.DefaultSuperDocument
com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplication
public class XWikiApplication
This class manage an XWiki document containing XApp.XWikiApplicationClass object. It add some specifics methods, getters and setters for this type of object and fields.
DefaultSuperDocument| Field Summary |
|---|
| Fields inherited from class com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.DefaultSuperDocument |
|---|
isNew, objectId, sclass |
| Fields inherited from class com.xpn.xwiki.api.Document |
|---|
cloned, currentObj, doc |
| Fields inherited from class com.xpn.xwiki.api.Api |
|---|
context |
| Fields inherited from interface com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.SuperDocument |
|---|
SPACE_DOC_SEPARATOR, WIKI_SPACE_SEPARATOR |
| Constructor Summary | |
|---|---|
XWikiApplication(com.xpn.xwiki.doc.XWikiDocument xdoc,
int objectId,
com.xpn.xwiki.XWikiContext context)
Create new XWikiApplication managing provided XWikiDocument. |
|
| Method Summary | |
|---|---|
protected void |
addXWikiApplicationSet(XWikiApplication rootApplication,
java.util.Collection applicationList,
boolean recurse,
com.xpn.xwiki.XWikiContext context)
Add all applications on which current application depend. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getAppAuthors()
|
java.util.List |
getApplications()
|
java.lang.String |
getAppName()
|
java.lang.String |
getAppVersion()
|
java.util.List |
getDependencies()
|
java.lang.String |
getDescription()
|
java.util.Set |
getDocsNameToInclude(boolean recurse)
Get and resolve all documents names to include application contains. |
static java.util.Set |
getDocsNameToInclude(java.util.Collection applications)
Get and resolve all documents names to include applications XWikiApplication
list contains. |
java.util.Set |
getDocsNameToLink(boolean recurse)
Get and resolve all documents names to link application contains. |
static java.util.Set |
getDocsNameToLink(java.util.Collection applications)
Get and resolve all documents names to link applications XWikiApplication list
contains. |
java.util.List |
getDocsToInclude()
|
java.util.List |
getDocsToLink()
|
java.util.List |
getDocuments()
|
java.util.Set |
getDocumentsNames(boolean recurse,
boolean includeAppDesc)
Get and resolve all documents names application contains. |
java.lang.String |
getLicense()
|
java.util.List |
getTranslationDocs()
|
java.util.Set |
getXWikiApplicationSet(boolean recurse,
com.xpn.xwiki.XWikiContext context)
Get set of XWikiApplication containing all applications on which current application depend. |
int |
hashCode()
|
void |
setAppAuthors(java.lang.String appauthors)
Modify the authors of the application. |
void |
setApplications(java.util.List applications)
Modify the list of other applications on which current application depends. |
void |
setAppName(java.lang.String appname)
Modify the name of the application. |
void |
setAppVersion(java.lang.String appversion)
Modify the version of the application. |
void |
setDependencies(java.util.List dependencies)
Modify the list of plugins on which application depends. |
void |
setDescription(java.lang.String description)
Modify the description of the application. |
void |
setDocsToInclude(java.util.List docstoinclude)
Modify the list of document application contains that will be included in place of copy from wiki template. |
void |
setDocsToLink(java.util.List docstolink)
Modify the list of document application contains that will be included in place of copy from wiki template. |
void |
setDocuments(java.util.List documents)
Modify the list of documents application contains. |
void |
setLicense(java.lang.String license)
Modify the version of the application. |
void |
setTranslationDocs(java.util.List translationdocs)
Modify the list of documents containing translations strings. |
java.lang.String |
toString()
|
| Methods inherited from class com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.DefaultSuperDocument |
|---|
deleteDocument, getBaseObject, getBooleanValue, getDocumentApi, getIntValue, getLargeStringValue, getListValue, getObjectApi, getObjectId, getStringValue, getSuperClass, isNew, mergeObject, reload, saveDocument, setBooleanValue, setFullName, setIntValue, setLargeStringValue, setListValue, setStringValue |
| Methods inherited from class com.xpn.xwiki.api.Document |
|---|
addAttachment, addAttachment, addAttachments, addAttachments, addObjectFromRequest, addObjectFromRequest, addObjectFromRequest, addObjectsFromRequest, addObjectsFromRequest, checkAccess, createNewObject, delete, deleteWithProgrammingRights, display, display, display, display, display, display, displayEdit, displayForm, displayForm, displayForm, displayHidden, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayRendered, displayTooltip, displayTooltip, displayView, get, getActiveClass, getArchive, getAttachment, getAttachmentDiff, getAttachmentList, getAttachmentRevisionURL, getAttachmentRevisionURL, getAttachmentURL, getAttachmentURL, getAttachmentURL, getAuthor, getBacklinks, getClassDiff, getComment, getComments, getComments, getContent, getContentAuthor, getContentDiff, getContentUpdateDate, getCreationDate, getCreator, getCurrentMonthPageStats, getCurrentMonthRefStats, getCurrentMonthWebStats, getDate, getDefaultEditURL, getDefaultLanguage, getDefaultTemplate, getDisplayTitle, getDoc, getDocument, getDocumentArchive, getDocumentRevision, getEditURL, getEditURL, getEscapedContent, getExternalURL, getExternalURL, getExternalURL, getFirstObject, getFormat, getFullName, getId, getIncludedMacros, getIncludedPages, getLanguage, getLastChanges, getLinkedPages, getLinks, getLocked, getLockingDate, getLockingUser, getMetaDataDiff, getName, getObject, getObject, getObject, getObject, getObject, getObjectDiff, getObjectNumbers, getObjects, getObjects, getParent, getParentURL, getPrefixedFullName, getPreviousDocument, getPreviousVersion, getRCSVersion, getRealLanguage, getRecentRevisions, getRecentRevisions, getRenderedContent, getRenderedContent, getRenderedContentDiff, getRevisionInfo, getRevisions, getSpace, getTagList, getTags, getTagsPossibleValues, getTemplate, getTextArea, getTitle, getTOC, getTranslatedContent, getTranslatedContent, getTranslatedDocument, getTranslatedDocument, getTranslationList, getURL, getURL, getURL, getValue, getValue, getVersion, getVersionHashCode, getWeb, getWiki, getXMLContent, getXMLDiff, getxWikiClass, getxWikiClasses, getxWikiObjects, hasAccessLevel, hasAccessLevel, insertText, isAdvancedContent, isCreator, isCurrentLocalUserPage, isCurrentUserCreator, isCurrentUserPage, isFromCache, isMinorEdit, isMostRecent, isProgrammaticContent, newObject, removeObject, removeObjects, rename, rename, renameDocument, renameDocument, save, save, saveWithProgrammingRights, saveWithProgrammingRights, set, set, setComment, setContent, setCustomClass, setDefaultTemplate, setMinorEdit, setParent, setTitle, toXML, toXMLDocument, updateObjectFromRequest, updateObjectFromRequest, updateObjectsFromRequest, updateObjectsFromRequest, use, use, use, validate, validate |
| Methods inherited from class com.xpn.xwiki.api.Api |
|---|
checkProgrammingRights, getXWikiContext, hasAdminRights, hasProgrammingRights |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XWikiApplication(com.xpn.xwiki.doc.XWikiDocument xdoc,
int objectId,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
xdoc - the encapsulated XWikiDocumentobjectId - the id of the XWiki object included in the document to manage.context - the XWiki context
com.xpn.xwiki.XWikiException - error when:
DefaultSuperDocument.reload(XWikiContext)DefaultSuperDocument.DefaultSuperDocument(com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.SuperClass,
XWikiDocument, int, XWikiContext)| Method Detail |
|---|
public java.lang.String getAppName()
setAppName(String)public void setAppName(java.lang.String appname)
appname - the new name of the application.getAppName()public java.lang.String getDescription()
setDescription(String)public void setDescription(java.lang.String description)
description - the new description of the application.getDescription()public java.lang.String getAppVersion()
setAppVersion(String)public void setAppVersion(java.lang.String appversion)
appversion - the version of the application.getAppVersion()public java.lang.String getAppAuthors()
setAppAuthors(String)public void setAppAuthors(java.lang.String appauthors)
appauthors - the authors of the application.getAppAuthors()public java.lang.String getLicense()
setLicense(String)public void setLicense(java.lang.String license)
license - the license of the application.getAppVersion()public java.util.List getDependencies()
setDependencies(List)public void setDependencies(java.util.List dependencies)
dependencies - the new list of plugins on which application depends.getDependencies()public java.util.List getApplications()
public void setApplications(java.util.List applications)
applications - the new list of other applications on which current application depends.getApplications()public java.util.List getDocuments()
setDocuments(List)public void setDocuments(java.util.List documents)
documents - the new list of documents application contains.getDocuments()public java.util.List getDocsToInclude()
setDocsToInclude(List)public void setDocsToInclude(java.util.List docstoinclude)
docstoinclude - the new list of document application contains that will be included in
place of copy from a wiki template.getDocsToInclude()public java.util.List getDocsToLink()
setDocsToLink(List)public void setDocsToLink(java.util.List docstolink)
docstolink - the new list of document application contains that will be linked in place
of copy from a wiki template.getDocsToLink()public java.util.List getTranslationDocs()
Theses documents are added to XWiki.XWikiPreferences "documentBundles" field at application installation.
public void setTranslationDocs(java.util.List translationdocs)
Theses documents are added to XWiki.XWikiPreferences "documentBundles" field at application installation.
translationdocs - the new list of documents containing translations strings. Theses
documents are added to XWiki.XWikiPreferences "documentBundles" field at
application installation.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object object)
equals in class com.xpn.xwiki.api.DocumentDocument.equals(java.lang.Object)
protected void addXWikiApplicationSet(XWikiApplication rootApplication,
java.util.Collection applicationList,
boolean recurse,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
rootApplication - the root application containing recursively all in
applicationList.applicationList - the applications.recurse - if true it add recursively all applications dependencies, if false return only
direct dependencies.context - the XWiki context.
com.xpn.xwiki.XWikiException - error when getting application descriptor document from the database.getApplications()
public java.util.Set getXWikiApplicationSet(boolean recurse,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
recurse - if true it add recursively all applications dependencies, if false return only
direct dependencies.context - the XWiki context.
com.xpn.xwiki.XWikiException - error when getting application descriptor document from the database.getApplications()
public java.util.Set getDocumentsNames(boolean recurse,
boolean includeAppDesc)
throws com.xpn.xwiki.XWikiException
For each of these documents names, if are between "[" and "]", are considered as SQL matching string to use with "like".
recurse - if true it follow recursively all applications dependencies, if false parse
only direct dependencies.includeAppDesc - if true application descriptor document names is add to
docsNames.
com.xpn.xwiki.XWikiException - error when:
getDocuments(),
XWikiApplicationClass.FIELD_DOCUMENTS
public java.util.Set getDocsNameToInclude(boolean recurse)
throws com.xpn.xwiki.XWikiException
For each of these documents names, if are between "[" and "]", are considered as SQL matching string to use with "like".
recurse - if true it follow recursively all applications dependencies, if false parse
only direct dependencies.
com.xpn.xwiki.XWikiException - error when:
getDocsToInclude(),
XWikiApplicationClass.FIELD_DOCSTOINCLUDE
public static java.util.Set getDocsNameToInclude(java.util.Collection applications)
throws com.xpn.xwiki.XWikiException
applications XWikiApplication
list contains.
For each of these documents names, if are between "[" and "]", are considered as SQL matching string to use with "like".
applications - the applications containing documents names to resolve and add to
docsNames.
applications contains.
com.xpn.xwiki.XWikiException - error when:
getDocsToInclude(),
XWikiApplicationClass.FIELD_DOCSTOINCLUDE
public java.util.Set getDocsNameToLink(boolean recurse)
throws com.xpn.xwiki.XWikiException
For each of these documents names, if are between "[" and "]", are considered as SQL matching string to use with "like".
recurse - if true it follow recursively all applications dependencies, if false parse
only direct dependencies.
com.xpn.xwiki.XWikiException - error when:
getDocsToLink(),
XWikiApplicationClass.FIELD_DOCSTOLINK
public static java.util.Set getDocsNameToLink(java.util.Collection applications)
throws com.xpn.xwiki.XWikiException
applications XWikiApplication list
contains.
For each of these documents names, if are between "[" and "]", are considered as SQL matching string to use with "like".
applications - the applications containing documents names to resolve and add to
docsNames.
applications contains.
com.xpn.xwiki.XWikiException - error when:
getDocsToLink(),
XWikiApplicationClass.FIELD_DOCSTOLINK
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||