|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an OpenGroupware.org Project. A project is a file store on the OpenGroupware.org server. It provides a root directory under which the files belonging to the project can be arranged (in directories). Thus the Project class offers a filesystem-like interface to the projects, with commands similar to the Unix file commands (eg. ls, rm, ...).
Method Summary | |
boolean |
assignToProject(Job job)
|
boolean |
assignToProject(Job job,
java.lang.String log_text)
|
Attribute |
attr(java.lang.String path)
|
java.util.List |
attr(java.lang.String[] paths)
|
boolean |
cd(java.lang.String path)
|
boolean |
cp(java.lang.String[] files,
java.lang.String target)
|
boolean |
cp(java.lang.String file,
java.lang.String target)
|
java.lang.String |
cwd()
|
boolean |
detachFromProject(Job job)
|
boolean |
detachFromProject(Job job,
java.lang.String log_text)
|
boolean |
exists(java.lang.String file)
|
void |
flush()
|
java.lang.String |
getId()
|
boolean |
isDir(java.lang.String dir)
|
boolean |
isLink(java.lang.String link)
|
boolean |
ln(java.lang.String source,
java.lang.String target)
|
byte[] |
loadDocumentAsByteArray(java.lang.String path)
|
java.util.List |
ls()
|
java.util.List |
ls(java.lang.String path)
|
java.util.List |
ls(java.lang.String[] paths)
|
boolean |
mkDir(java.lang.String path)
|
boolean |
mkDir(java.lang.String[] paths)
|
boolean |
mv(java.lang.String[] files,
java.lang.String target)
|
boolean |
mv(java.lang.String file,
java.lang.String target)
|
boolean |
newDocument(java.lang.String path,
java.lang.String content,
Attribute attr)
|
boolean |
rm(java.lang.String path)
|
boolean |
rm(java.lang.String[] paths)
|
boolean |
rmDir(java.lang.String path)
|
boolean |
rmDir(java.lang.String[] paths)
|
boolean |
saveDocument(java.lang.String path,
java.lang.String content)
Updates the document with the provided content. |
byte[] |
zipAsByteArray(java.util.List files)
|
java.util.zip.ZipInputStream |
zipAsZipInputStream(java.util.List files)
Zips Files in the project and returns the resulting Zip file as ZipInputStream. |
Method Detail |
public boolean assignToProject(Job job) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean detachFromProject(Job job) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean assignToProject(Job job, java.lang.String log_text) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean detachFromProject(Job job, java.lang.String log_text) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.lang.String cwd() throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean cd(java.lang.String path) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.List ls(java.lang.String[] paths) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.List ls(java.lang.String path) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.List ls() throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean mkDir(java.lang.String[] paths) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean mkDir(java.lang.String path) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean rmDir(java.lang.String[] paths) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean rmDir(java.lang.String path) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.List attr(java.lang.String[] paths) throws OgoException, ConnectionException
OgoException
ConnectionException
public Attribute attr(java.lang.String path) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.lang.String getId() throws OgoException, ConnectionException
OgoException
ConnectionException
public byte[] zipAsByteArray(java.util.List files) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.zip.ZipInputStream zipAsZipInputStream(java.util.List files) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean rm(java.lang.String[] paths) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean rm(java.lang.String path) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean cp(java.lang.String[] files, java.lang.String target) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean cp(java.lang.String file, java.lang.String target) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean mv(java.lang.String[] files, java.lang.String target) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean mv(java.lang.String file, java.lang.String target) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean ln(java.lang.String source, java.lang.String target) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean exists(java.lang.String file) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean isDir(java.lang.String dir) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean isLink(java.lang.String link) throws OgoException, ConnectionException
OgoException
ConnectionException
public void flush() throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean newDocument(java.lang.String path, java.lang.String content, Attribute attr) throws OgoException, ConnectionException
OgoException
ConnectionException
public byte[] loadDocumentAsByteArray(java.lang.String path) throws OgoException, ConnectionException
OgoException
ConnectionException
public boolean saveDocument(java.lang.String path, java.lang.String content) throws OgoException, ConnectionException
path
- content
-
true
ist the document was saved successfully, otherwise
false
OgoException
ConnectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |