|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.ooql.sdk.FileOperator
public class FileOperator
Class used to perform operations on ObjectObj attached files
| Field Summary | |
|---|---|
static int |
FILE_COPYFROM
Copy a file from another object |
static int |
FILE_COPYTO
Copy a file to another object |
static int |
FILE_DELETE
Remove a file from an object |
static int |
FILE_GET
Retrieve a file from an object |
static int |
FILE_LOCK
Copy a file to another object |
static int |
FILE_MOVEFROM
Move a file from another object |
static int |
FILE_MOVETO
Move a file to another object |
static int |
FILE_PUT
Attach a file to an object |
static int |
FILE_RENAME
Rename a object attached file |
static int |
FILE_UNLOCK
Copy a file to another object |
| Constructor Summary | |
|---|---|
FileOperator()
|
|
| Method Summary | |
|---|---|
void |
addFileGetName(java.lang.String fileName)
Add a file to the file download (get) list |
void |
addFilePutName(java.lang.String fileName)
Add a file to the file upload (put) list |
void |
changeFileSpace(java.lang.String fileSpaceName)
Set the operator type as FILE_RENAME (Change the FileSpace) |
void |
changeFileType(java.lang.String fileType)
Set the operator type as FILE_RENAME (Change the FileType) |
void |
copyFrom(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
Set the operator type as FILE_COPYFROM (Copy a file from another ObjectObj) |
void |
copyTo(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
Set the operator type as FILE_COPYTO (Copy a file to another ObjectObj ) |
void |
delete()
Set the operator type as FILE_DELETE (Remove a file from an ObjectObj) |
void |
get()
Set the operator type as FILE_GET (Download a file from an ObjectObj) |
boolean |
getAllOption()
Return the "get-all" flag |
java.util.Vector<java.lang.String> |
getFileGetNames()
Return the download (get) file list |
java.util.Vector<java.lang.String> |
getFilePutNames()
Return the upload (put) file list |
java.lang.String |
getFromFileType()
Return the "get" FileType |
boolean |
getLock()
Get the lock flag |
int |
getOperation()
Get the operator type |
java.lang.String |
getOperationCommand(java.lang.String sObjectID,
int counter)
Return the OOQL command to update this ObjectObj with the modified properties. |
boolean |
getOverwrite()
Get the overwrite flag for PUT operations |
ProgressCounter |
getProgressCounter()
Return the ProgressCounter |
java.lang.String[] |
getRefObject()
Get the reference ObjectObj |
boolean |
getServerSide()
Get the server side flag |
java.lang.String |
getToFileSpace()
Return the "put" FileSpace name |
java.lang.String |
getToFileType()
Return the "put" FileType |
java.lang.String |
getToPath()
Return the "get" download path |
boolean |
isGetForce()
Get the force flag for GET operations |
boolean |
isGetSync()
Get the sync flag for GET operations |
boolean |
isIndexed()
Get the indexed flag for PUT operations |
void |
lock()
Set the operator type as FILE_LOCK (Lock a file for an ObjectObj) |
void |
moveFrom(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
Set the operator type as FILE_MOVEFROM (Get/Move a file from another ObjectObj) |
void |
moveTo(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
Set the operator type as FILE_MOVETO (Move a file to another ObjectObj ) |
java.lang.String |
operationToString()
Get the operator type as a String |
void |
put()
Set the operator type as FILE_PUT (Upload/Attach a file to an ObjectObj) |
void |
resetFileNames()
Reset the file list |
void |
setAllOption(boolean getAll)
Set the "get-all" flag |
void |
setFromFileType(java.lang.String fileType)
Set the "get" FileType |
void |
setGetForce(boolean force)
Set the force flag for GET operations |
void |
setGetSync(boolean synchronize)
Set the sync flag for GET operations |
void |
setIndexed(boolean indexed)
Set the indexed flag for PUT operations |
void |
setLock(boolean lock)
Set the lock flag |
void |
setOverwrite(boolean overwrite)
Set the overwrite flag for PUT operations |
void |
setProgressCounter(ProgressCounter counter)
Set the ProgressCounter |
void |
setServerSide(boolean serverSide)
Set the server side flag |
void |
setToFileSpace(java.lang.String fileSpaceName)
Set the "put" FileSpace |
void |
setToFileType(java.lang.String fileType)
Set the "put" FileType |
void |
setToPath(java.lang.String path)
Set the "get" download path |
java.lang.String |
toString()
Return the FileOperator as a single String |
void |
unlock()
Set the operator type as FILE_UNLOCK (Unlock a file for an ObjectObj) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FILE_PUT
public static final int FILE_GET
public static final int FILE_DELETE
public static final int FILE_RENAME
public static final int FILE_MOVEFROM
public static final int FILE_COPYFROM
public static final int FILE_MOVETO
public static final int FILE_COPYTO
public static final int FILE_LOCK
public static final int FILE_UNLOCK
| Constructor Detail |
|---|
public FileOperator()
| Method Detail |
|---|
public void setLock(boolean lock)
lock - true to lock the ObjectObj's file after the operation (default: true)public boolean getLock()
setLock(boolean)public void setServerSide(boolean serverSide)
serverSide - true to load / write the file from/to a server side folderpublic boolean getServerSide()
public void setOverwrite(boolean overwrite)
overwrite - if true all files associated to the ObjectObj for the same FileTypepublic boolean getOverwrite()
setOverwrite(boolean)public void setIndexed(boolean indexed)
indexed - if true the file content and metadata will be indexed for searchingpublic boolean isIndexed()
setIndexed(boolean)public void setGetSync(boolean synchronize)
synchronize - if true the file will be synchronized with the filespace and the user localarea during the GET operationpublic boolean isGetSync()
setGetSync(boolean)public void setGetForce(boolean force)
force - if true try to retrieve the file from alternative locations when the user or the most updated is not accessiblepublic boolean isGetForce()
setGetForce(boolean)public void setFromFileType(java.lang.String fileType)
fileType - attached files are subdivided into one or more filetypes, this methodFileType for the relative file-get operationpublic java.lang.String getFromFileType()
FileType
setFromFileType(String)public void setToFileType(java.lang.String fileType)
fileType - attached files are subdivided into one or more filetypes, this methodFileType for the relative file-put operationpublic java.lang.String getToFileType()
FileType
setToFileType(String)public void setToFileSpace(java.lang.String fileSpaceName)
fileSpaceName - attached files are stored into different FileSpaces; this methodFileSpace name for the relative file-put operationpublic java.lang.String getToFileSpace()
FileSpace name
setToFileSpace(String)public void addFileGetName(java.lang.String fileName)
fileName - the (full path) file namepublic java.util.Vector<java.lang.String> getFileGetNames()
public void addFilePutName(java.lang.String fileName)
fileName - the (full path) file namepublic java.util.Vector<java.lang.String> getFilePutNames()
public void resetFileNames()
public void setToPath(java.lang.String path)
path - set the download path for the "get" operationpublic java.lang.String getToPath()
public void setAllOption(boolean getAll)
getAll - true to download all object attached files for the given FileTypepublic boolean getAllOption()
setAllOption(boolean)public void put()
FILE_PUT (Upload/Attach a file to an ObjectObj)
public void get()
FILE_GET (Download a file from an ObjectObj)
public void delete()
FILE_DELETE (Remove a file from an ObjectObj)
public void lock()
FILE_LOCK (Lock a file for an ObjectObj)
public void unlock()
FILE_UNLOCK (Unlock a file for an ObjectObj)
public void changeFileSpace(java.lang.String fileSpaceName)
FILE_RENAME (Change the FileSpace)
fileSpaceName - the destination FileSpace namepublic void changeFileType(java.lang.String fileType)
FILE_RENAME (Change the FileType)
fileType - the destination FileType
public void moveFrom(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
FILE_MOVEFROM (Get/Move a file from another ObjectObj)
id_class - the original ObjectObj ID or Class namename - the original ObjectObj namerevision - the original ObjectObj revisionfileTypeName - the original FileType name
public void copyFrom(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
FILE_COPYFROM (Copy a file from another ObjectObj)
id_class - the reference ObjectObj ID or Class namename - the reference ObjectObj namerevision - the reference ObjectObj revisionfileTypeName - the reference FileType name
public void moveTo(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
FILE_MOVETO (Move a file to another ObjectObj )
id_class - the destination ObjectObj ID or Class namename - the destination ObjectObj namerevision - the destination ObjectObj revisionfileTypeName - the destination FileType name
public void copyTo(java.lang.String id_class,
java.lang.String name,
java.lang.String revision,
java.lang.String fileTypeName)
FILE_COPYTO (Copy a file to another ObjectObj )
id_class - the destination ObjectObj ID or Class namename - the destination ObjectObj namerevision - the destination ObjectObj revisionfileTypeName - the destination FileType namepublic int getOperation()
public java.lang.String[] getRefObject()
ObjectObj
Class name; String[1]=ObjectObj name; String[2]=ObjectObj revisionpublic java.lang.String operationToString()
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String getOperationCommand(java.lang.String sObjectID,
int counter)
public void setProgressCounter(ProgressCounter counter)
public ProgressCounter getProgressCounter()
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||