com.xpn.xwiki.plugin.packaging
Class DocumentInfo

java.lang.Object
  extended by com.xpn.xwiki.plugin.packaging.DocumentInfo

public class DocumentInfo
extends java.lang.Object


Field Summary
private  int action
           
static int ACTION_MERGE
           
static int ACTION_NOT_DEFINED
           
static int ACTION_OVERWRITE
           
static int ACTION_SKIP
           
static int ACTION_SKIP_INSTALL
           
private  XWikiDocument doc
           
private  int fileType
           
static int INSTALL_ALREADY_EXIST
           
static int INSTALL_ERROR
           
static int INSTALL_IMPOSSIBLE
           
static int INSTALL_OK
           
private  int installable
           
private static org.apache.commons.logging.Log log
           
static int TYPE_NORMAL
           
static int TYPE_SAMPLE
           
 
Constructor Summary
DocumentInfo(XWikiDocument doc)
           
 
Method Summary
static int actionToInt(java.lang.String status)
           
static java.lang.String actionToString(int status)
           
 void changeSpace(java.lang.String Space)
           
 int getAction()
           
 XWikiDocument getDoc()
           
 int getFileType()
           
 java.lang.String getFullName()
           
 java.lang.String getLanguage()
           
static java.lang.String installStatusToString(int status)
           
 int isInstallable()
           
 boolean isNew()
           
 void setAction(int action)
           
 void setDoc(XWikiDocument doc)
           
 void setFileType(int fileType)
           
 int testInstall(XWikiContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

doc

private XWikiDocument doc

installable

private int installable

action

private int action

fileType

private int fileType

TYPE_SAMPLE

public static final int TYPE_SAMPLE
See Also:
Constant Field Values

TYPE_NORMAL

public static final int TYPE_NORMAL
See Also:
Constant Field Values

ACTION_NOT_DEFINED

public static final int ACTION_NOT_DEFINED
See Also:
Constant Field Values

ACTION_OVERWRITE

public static final int ACTION_OVERWRITE
See Also:
Constant Field Values

ACTION_SKIP

public static final int ACTION_SKIP
See Also:
Constant Field Values

ACTION_MERGE

public static final int ACTION_MERGE
See Also:
Constant Field Values

ACTION_SKIP_INSTALL

public static final int ACTION_SKIP_INSTALL
See Also:
Constant Field Values

INSTALL_IMPOSSIBLE

public static final int INSTALL_IMPOSSIBLE
See Also:
Constant Field Values

INSTALL_ALREADY_EXIST

public static final int INSTALL_ALREADY_EXIST
See Also:
Constant Field Values

INSTALL_OK

public static final int INSTALL_OK
See Also:
Constant Field Values

INSTALL_ERROR

public static final int INSTALL_ERROR
See Also:
Constant Field Values
Constructor Detail

DocumentInfo

public DocumentInfo(XWikiDocument doc)
Method Detail

getDoc

public XWikiDocument getDoc()

isNew

public boolean isNew()

changeSpace

public void changeSpace(java.lang.String Space)

getFileType

public int getFileType()

setFileType

public void setFileType(int fileType)

getFullName

public java.lang.String getFullName()

getLanguage

public java.lang.String getLanguage()

isInstallable

public int isInstallable()

testInstall

public int testInstall(XWikiContext context)

installStatusToString

public static java.lang.String installStatusToString(int status)

actionToString

public static java.lang.String actionToString(int status)

actionToInt

public static int actionToInt(java.lang.String status)

getAction

public int getAction()

setAction

public void setAction(int action)

setDoc

public void setDoc(XWikiDocument doc)


Copyright 2003 Ludovic Dubost