|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.ooql.sdk.OBBase
com.oberon.ooql.sdk.ObjectBase
com.oberon.ooql.sdk.ObjectObj
public class ObjectObj
OBEROn object: defines application contextual objects
| Field Summary | |
|---|---|
static int |
OBJ_CLONE
Clone a Object |
static int |
OBJ_CREATE
Create new Object |
static int |
OBJ_REVISE
Revise a Object |
static int |
REV_ALL
Object revision sequence: all revisions |
static int |
REV_FIRST
Object revision sequence: first revision |
static int |
REV_LAST
Object revision sequence: last revision |
static int |
REV_NEXT
Object revision sequence: next revision |
static int |
REV_PREV
Object revision sequence: previous revision |
| Fields inherited from class com.oberon.ooql.sdk.ObjectBase |
|---|
bHasAccess, bsOptions, HIST_ADDLINK, HIST_CHANGECLASS, HIST_CHANGEHOLDER, HIST_CHANGELIFECYCLE, HIST_CHANGENAME, HIST_CHANGESPACE, HIST_CHANGETYPE, HIST_CLONE, HIST_CREATE, HIST_CUSTOM, HIST_DELEGATE, HIST_EDIT, HIST_FILEDELETE, HIST_FILEGET, HIST_FILELOCK, HIST_FILEPUT, HIST_FILERENAME, HIST_FILEUNLOCK, HIST_IGNORE, HIST_Length, HIST_LOCK, HIST_PROGRESS, HIST_REFUSE, HIST_REGRESS, HIST_REMOVELINK, HIST_REVISE, HIST_REVOKE, HIST_SETSTAGE, HIST_UNDO, HIST_UNLOCK, HIST_VALIDATE, LINK_HIST, OBJ_HIST |
| Constructor Summary | |
|---|---|
ObjectObj()
|
|
ObjectObj(boolean imported)
Create a new ObjectObj instance |
|
ObjectObj(java.lang.String objectID)
Create a new ObjectObj instance |
|
ObjectObj(java.lang.String className,
java.lang.String name,
java.lang.String revision)
Create a new ObjectObj instance |
|
| Method Summary | |
|---|---|
void |
autocreate(java.lang.String autoNumberName,
Framework framework)
Create the new ObjectObj instance on the database using an AutoNumber |
void |
clone(boolean copyFiles,
Framework framework)
Create the new ObjectObj instance on the database, cloning it from this ObjectObj |
void |
clone(java.lang.String newName,
java.lang.String newRevision,
boolean copyFiles,
Framework framework)
Create the new ObjectObj instance on the database cloning it from this ObjectObj |
void |
create(Framework framework)
Create the new ObjectObj instance on the database |
void |
delegate(ObjectDelegation delegation,
Framework framework)
Enable one or more delegate Users to perform ObjectObj manipulation in place of the delegator User(s). |
void |
destroy(Framework framework)
Remove the ObjectObj from the database. |
void |
execute(java.lang.String methodName,
java.util.Vector<?> args,
Framework framework)
Execute a ObjectObj method. |
void |
filedelete(FileOperator fileOperator,
Framework framework)
Remove one or more files from ObjectObj |
void |
fileget(FileOperator fileOperator,
Framework framework)
Extract one or more files from the ObjectObj |
void |
filelock(FileOperator fileOperator,
Framework framework)
Lock one or more files attached to the ObjectObj |
void |
fileput(FileOperator fileOperator,
Framework framework)
Attach one or more files to the ObjectObj |
void |
filerename(FileOperator fileOperator,
Framework framework)
Rename / Move one or more files |
void |
fileunlock(FileOperator fileOperator,
Framework framework)
UnLock one or more files attached to the ObjectObj |
void |
fromXML(org.jdom.Element rootElement)
Load the ObjectObj properties from XML element tree |
void |
fromXML(org.jdom.Element rootElement,
java.lang.String attachmentsPath)
Load the ObjectObj properties from XML element tree |
java.util.Vector<java.lang.String> |
getActionNames(java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Get the available action MenuItems for this object, according to framework user rights |
java.util.Vector<MenuItem> |
getActions(java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Get the available action MenuItems for this object, according to framework user rights |
java.lang.String |
getAutoCreateCommand(java.lang.String autoNumberName)
Return the OOQL command to create this ObjectObj using a AutoNumber |
Class |
getClass(Framework framework)
Get the ObjectObj's Class |
java.lang.String |
getClassName()
Get the ObjectObj Class or type |
java.lang.String |
getCloneCommand(boolean copyFiles)
Return the OOQL command to clone this ObjectObj with the settled properties |
java.lang.String |
getCreateCommand()
Return the OOQL command to create this ObjectObj with the settled properties |
java.lang.String |
getDefaultFileType()
Get the ObjectObj's default FileType for attached files |
ObjectDelegation |
getDelegation(int index,
Framework framework)
Get a ObjectObj's delegation. |
int |
getDelegationCount(Framework framework)
Get the number of delegations active for this ObjectObj |
java.util.Vector<ObjectDelegation> |
getDelegations(Framework framework)
Get the ObjectObj's delegations. |
java.lang.String |
getDescription()
Get the ObjectObj's description |
java.lang.String |
getFieldValue(java.lang.String fieldName,
Framework framework)
Get a ObjectObj's Field value directly from DB |
ObjectFile |
getFile(java.lang.String fileTypeName,
java.lang.String fileName,
Framework framework)
Get a ObjectObj's attached file. |
java.util.Vector<ObjectFile> |
getFiles(Framework framework)
Get the ObjectObj's attached files. |
java.util.Vector<ObjectFile> |
getFileTypeFile(java.lang.String fileTypeName,
Framework framework)
Get the ObjectObj's attached files for a specific FileType. |
java.util.Vector<java.lang.String> |
getFileTypes()
Get the ObjectObj's available FileTypes for attached files |
byte[] |
getImage()
Return the ObjectObj's icon |
static byte[] |
getImage(java.lang.String objectId)
Return a ObjectObj's icon |
java.lang.String |
getImageData()
Return the ObjectObj's icon codified as base64 string data |
java.lang.String |
getImageFile()
Return the ObjectObj's icon file path. |
java.lang.String |
getLifecycle()
Get the ObjectObj's Lifecycle name |
Lifecycle |
getLifecycle(Framework framework)
Get the ObjectObj's Lifecycle |
java.util.Vector<Link> |
getLinks()
Get the ObjectObj's Links [INTERNAL USAGE]. |
java.util.Vector<java.lang.String> |
getLinks(int linkVersus,
java.lang.String linkType,
Framework framework)
Get the ObjectObj's links |
java.lang.String |
getLocker()
Get the ObjectObj's locker. |
java.lang.String |
getName()
Get the ObjectObj's name |
int |
getNextObjectId()
Get the ObjectObj's next revision internal id [INTERNAL USAGE] |
int |
getNextObjectSpaceId()
Get the ObjectSpace for the ObjectObj's next revision [INTERNAL USAGE] |
java.lang.String |
getObjectSpace()
Get the ObjectObj's container ( ObjectSpace). |
int |
getObjectSpaceId()
Get the ObjectObj's container ( ObjectSpace) internal id. |
ObjectStage |
getObjectStage(Framework framework)
Get the current ObjectObj's stage instance. |
ObjectStage |
getObjectStage(java.lang.String stageName,
Framework framework)
Get an ObjectObj's stage instance. |
java.util.Vector<ObjectStage> |
getObjectStages(Framework framework)
Get the ObjectObj's stage instances. |
java.lang.String |
getObjId()
Deprecated. |
java.lang.String |
getOldClassName()
Get the original ObjectObj Class or type. |
java.lang.String |
getOldDescription()
Get the original ObjectObj's description. |
java.lang.String |
getOldLifecycle()
Get the original ObjectObj's Lifecycle name. |
java.lang.String |
getOldName()
Get the original ObjectObj's name. |
java.lang.String |
getOldObjectSpace()
Get the original ObjectObj's container ( ObjectSpace). |
java.lang.String |
getOldRevision()
Get the original ObjectObj's revision. |
java.lang.String |
getOldStage()
Get the original ObjectObj's Lifecycle-Stage name. |
java.util.Vector<java.lang.String> |
getOtherProcesses(Framework framework)
Get a Running processes where this object is involved. |
int |
getPrevObjectId()
Get the ObjectObj's previous revision internal id [INTERNAL USAGE] |
int |
getPrevObjectSpaceId()
Get the ObjectSpace for the ObjectObj's previous revision [INTERNAL USAGE] |
java.util.Vector<java.lang.String> |
getProcesses(Framework framework)
Get a Running processes for this object. |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
Get a property for this ObjectObj object by its OOQL identifier |
java.lang.String |
getReviseCommand(boolean copyFiles)
Return the OOQL command to revise this ObjectObj with the settled properties |
java.lang.String |
getRevision()
Get the ObjectObj's revision |
java.util.Vector<java.lang.String> |
getRevisions(int revType,
Framework framework)
Get the ObjectObj's revisions |
java.lang.String |
getSaveCommand()
Return the OOQL command to update this ObjectObj with the modified properties. |
java.lang.String |
getStage()
Get the current ObjectObj's Lifecycle-Stage name. |
Stage |
getStage(Framework framework)
Get the current ObjectObj's Lifecycle-Stage |
java.util.Vector<java.lang.String> |
getStageNames(Framework framework)
Get the list of Lifecycle-Stage names for this ObjectObj |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of target names extracted by using an OOQL selector |
org.jdom.Element |
getXMLDelegations(Framework framework)
Return the ObjectObj's delegations as XML element tree |
org.jdom.Element |
getXMLFields(Framework framework)
Return the ObjectObj's Field values as XML element tree |
org.jdom.Element |
getXMLFiles(Framework framework)
Return the ObjectObj's files as XML element tree |
org.jdom.Element |
getXMLFiles(java.lang.String getFilePath,
Framework framework)
Return the ObjectObj's files as XML element tree and download the content to the specified path |
org.jdom.Element |
getXMLObjectStages(Framework framework)
Return the ObjectObj's stages as XML element tree |
boolean |
hasImage()
Test if the object has an image |
void |
ignore(java.lang.String validationName,
java.lang.String note,
Framework framework)
Ignore a Validation defined at current Lifecycle-Stage. |
boolean |
isFilePresent(java.lang.String fileTypeName,
Framework framework)
Check if the ObjectObj has attached files for a specific FileType. |
boolean |
isImported()
Check if the ObjectObj data are imported from Dump file |
boolean |
isLocked()
Check if the ObjectObj is locked |
void |
link(boolean fullLoad,
Framework framework)
Open the ObjectObj and read its properties from the database |
void |
link(Framework framework)
Open the ObjectObj and read its properties from the database |
void |
lock(Framework framework)
Lock the ObjectObj. |
void |
move(java.lang.String objectSpaceName,
Framework framework)
Move the ObjectObj from current ObjectSpace to another |
void |
navigate(Navigator navigator,
java.io.DataOutputStream outStream,
Framework framework)
Navigate throw the ObjectObj in/out Links |
void |
navigate(Navigator navigator,
Framework framework)
Navigate throw the ObjectObj in/out Links |
static ObjectObj |
open(java.lang.String objectID,
boolean fullLoad,
Framework framework)
Open an ObjectObj and read its properties from the database |
static ObjectObj |
open(java.lang.String objectID,
Framework framework)
Open an ObjectObj and read all properties from the database |
static ObjectObj |
open(java.lang.String className,
java.lang.String name,
java.lang.String revision,
boolean fullLoad,
Framework framework)
Open an ObjectObj and read its properties from the database |
static ObjectObj |
open(java.lang.String className,
java.lang.String name,
java.lang.String revision,
java.lang.String objectSpaceName,
boolean fullLoad,
Framework framework)
Open an ObjectObj and read its properties from the database |
void |
progress(Framework framework)
Promote the ObjectObj to the next Stage defined on its Lifecycle |
void |
refuse(java.lang.String validationName,
java.lang.String note,
Framework framework)
Refuse a Validation defined at current Lifecycle-Stage. |
void |
regress(Framework framework)
Regress the ObjectObj to the previous Stage defined on its Lifecycle |
void |
resetDelegations()
Force reload ObjectDelegations from DB |
void |
resetHistory()
Force reload the Object History from DB |
void |
resetObjectFiles()
Force reload ObjectFiles from DB |
void |
resetObjectStages()
Force reload ObjectStages from DB |
void |
revise(boolean copyFiles,
Framework framework)
Create the new ObjectObj instance on the database revising this ObjectObj |
void |
revise(java.lang.String newRevision,
boolean copyFiles,
Framework framework)
Create the new ObjectObj instance on the database revising this ObjectObj |
void |
revoke(ObjectDelegation delegation,
Framework framework)
Disable one or more delegate Users to perform ObjectObj manipulation in place of the delegator User(s). |
void |
setClass(Class classobj)
Set the ObjectObj's Class [INTERNAL USAGE] |
void |
setClass(java.lang.String className)
Set the ObjectObj Class or type |
void |
setDefaultFileType(java.lang.String defaultFileType)
Set the ObjectObj's default FileType [INTERNAL USAGE] |
void |
setDescription(java.lang.String description)
Set the ObjectObj's description |
void |
setFileTypes(java.util.Vector<java.lang.String> fileTypes)
Set the ObjectObj's FileTypes [INTERNAL USAGE] |
void |
setImage(byte[] image)
Set the ObjectObj's icon; |
void |
setImageData(java.lang.String base64ImageData)
Set the ObjectObj's icon from a base64 string data; |
void |
setImageFile(java.lang.String fileName)
Set the ObjectObj's icon importing it from a file; |
void |
setLifecycle(Lifecycle lifecycle)
Set the ObjectObj's Lifecycle [INTERNAL USAGE] |
void |
setLifecycle(java.lang.String lifecycleName)
Set the ObjectObj's Lifecycle |
void |
setLinks(java.util.Vector<Link> links)
Set the ObjectObj's Links [INTERNAL USAGE]. |
void |
setLocker(java.lang.String userName)
Set the ObjectObj's locker [INTERNAL USAGE]. |
void |
setName(java.lang.String name)
Set the ObjectObj's name |
void |
setNextObjectId(int objectId)
Set the ObjectObj's next revision internal id [INTERNAL USAGE] |
void |
setNextObjectSpaceId(int objectSpaceId)
Set the ObjectSpace for the ObjectObj's next revision [INTERNAL USAGE] |
void |
setObjectFiles(java.util.Vector<ObjectFile> files)
Set the ObjectObj's attached files [INTERNAL USAGE]. |
void |
setObjectSpace(java.lang.String objectSpaceName)
Set the ObjectObj's container (ObjectSpace) |
void |
setObjectSpaceId(int objectSpaceId)
Set the ObjectObj's container (ObjectSpace) [INTERNAL USAGE] |
void |
setObjectStages(java.util.Vector<ObjectStage> stages)
Set the ObjectObj's stage instances [INTERNAL USAGE]. |
void |
setPrevObjectId(int objectId)
Set the ObjectObj's previous revision internal id [INTERNAL USAGE] |
void |
setPrevObjectSpaceId(int objectSpaceId)
Set the ObjectSpace for the ObjectObj's previous revision [INTERNAL USAGE] |
void |
setRevision(java.lang.String revision)
Set the ObjectObj's revision |
void |
setStage(java.lang.String stageName)
Set the ObjectObj's Lifecycle-Stage |
void |
setstage(java.lang.String stageName,
Framework framework)
Force the ObjectObj to a specific Stage defined on its current Lifecycle |
void |
show(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
Show the ObjectObj's properties |
void |
show(Selector selector,
Framework framework)
Show the ObjectObj's properties |
void |
synchronize(java.lang.String syncFrom,
java.util.Vector<java.lang.String> syncTo,
boolean force,
boolean add,
Framework framework)
Synchronize the attached files. |
org.jdom.Element |
toBasicXML(Framework framework)
Return the ObjectObj basic properties (id, Class name, name, revision) as XML element tree |
java.lang.String |
toString()
Return the ObjectObj basic properties as String |
java.lang.String |
toString(Framework framework)
Return the ObjectObj properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean getHistory,
java.lang.String getFilePath,
boolean getValidations,
Framework framework)
Return the ObjectObj properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the ObjectObj simple properties as XML element tree |
void |
undo(Framework framework)
Undo the last changes on field values |
void |
undo(int iterNum,
Framework framework)
Undo the changes on field values, recourse till the specific number of iteration |
void |
unlink(Framework framework)
Close the ObjectObj: disconnect the memory instance from the database instance |
void |
unlock(boolean unlockFiles,
Framework framework)
UnLock the ObjectObj. |
void |
unlock(Framework framework)
UnLock the ObjectObj and all its attached files A User can unlock a ObjectObj if he has unlock permission on it and the he is the locker. |
void |
validate(java.lang.String validationName,
java.lang.String note,
Framework framework)
Validate (approve) a Validation defined at current Lifecycle-Stage. |
void |
write(Framework framework)
Update the ObjectObj to the database |
| Methods inherited from class com.oberon.ooql.sdk.OBBase |
|---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int OBJ_CREATE
public static final int OBJ_CLONE
public static final int OBJ_REVISE
public static final int REV_ALL
public static final int REV_PREV
public static final int REV_NEXT
public static final int REV_FIRST
public static final int REV_LAST
| Constructor Detail |
|---|
public ObjectObj()
public ObjectObj(boolean imported)
imported - true if the ObjectObj data are imported from Dump file
[INTERNAL USAGE]public ObjectObj(java.lang.String objectID)
objectID - the ObjectObj ID
public ObjectObj(java.lang.String className,
java.lang.String name,
java.lang.String revision)
throws OberonException
className - the ObjectObj's Class namename - the ObjectObj's namerevision - the ObjectObj's revision
OberonException| Method Detail |
|---|
public static ObjectObj open(java.lang.String objectID,
Framework framework)
throws OberonException
objectID - the ObjectObj IDframework - the current framework
OberonException - usually due to DB SQL exceptions
public static ObjectObj open(java.lang.String objectID,
boolean fullLoad,
Framework framework)
throws OberonException
objectID - the ObjectObj IDfullLoad - if false skips the image/icon and the Field valuesframework - the current framework
OberonException - usually due to DB SQL exceptions
public static ObjectObj open(java.lang.String className,
java.lang.String name,
java.lang.String revision,
boolean fullLoad,
Framework framework)
throws OberonException
className - the ObjectObj's Class namename - the ObjectObj's namerevision - the ObjectObj's revisionfullLoad - if false skips the image/icon and the Field valuesframework - the current framework
OberonException - usually due to DB SQL exceptions
public static ObjectObj open(java.lang.String className,
java.lang.String name,
java.lang.String revision,
java.lang.String objectSpaceName,
boolean fullLoad,
Framework framework)
throws OberonException
className - the ObjectObj's Class namename - the ObjectObj's namerevision - the ObjectObj's revisionobjectSpaceName - the ObjectSpace's namefullLoad - if false skips the image/icon and the Field valuesframework - the current framework
OberonException - usually due to DB SQL exceptions
public void link(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions
public void link(boolean fullLoad,
Framework framework)
throws OberonException
fullLoad - if true load also the image/icon and the Field valuesframework - the current framework
OberonException - usually due to DB SQL exceptions
public void create(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void autocreate(java.lang.String autoNumberName,
Framework framework)
throws OberonException
autoNumberName - the AutoNumber nameframework - the current framework
The new ObjectObj will have the Class,Lifecycle and ObjectSpace associated to the AutoNumber.
The name will be the next AutoNumber's value, while the revision will depend on the Lifecycle's revision rule.
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void clone(boolean copyFiles,
Framework framework)
throws OberonException
copyFiles - if true all attached files will be replicatedframework - the current framework
The Class will be the same; Lifecycle and ObjectSpace can be settled separately
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void clone(java.lang.String newName,
java.lang.String newRevision,
boolean copyFiles,
Framework framework)
throws OberonException
newName - the new ObjectObj's namenewRevision - the new ObjectObj's revisioncopyFiles - if true all attached files will be replicatedframework - the current framework
The Class will be the same; Lifecycle and ObjectSpace can be settled separately
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void revise(boolean copyFiles,
Framework framework)
throws OberonException
copyFiles - if true all attached files will be replicatedframework - the current framework
The Class and name will be the same;Lifecycle and ObjectSpace can be settled separately
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void revise(java.lang.String newRevision,
boolean copyFiles,
Framework framework)
throws OberonException
newRevision - the new ObjectObj's revisioncopyFiles - if true all attached files will be replicatedframework - the current framework
The Class and name will be the same; Lifecycle and ObjectSpace can be settled separately
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void write(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void undo(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void undo(int iterNum,
Framework framework)
throws OberonException
iterNum - the iteration numberframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void lock(Framework framework)
throws OberonException
User can edit its properties or manage its attached files
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void unlock(boolean unlockFiles,
Framework framework)
throws OberonException
User can edit its properties or manage its attached files.
unlockFiles - if true unlock all attached filesframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void unlock(Framework framework)
throws OberonException
User can edit its properties or manage its attached files.
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void move(java.lang.String objectSpaceName,
Framework framework)
throws OberonException
objectSpaceName - the new ObjectSpace nameframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void unlink(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions or trigger exceptions
public void destroy(Framework framework)
throws OberonException
Links and attached files will be destroyed too.
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void fileput(FileOperator fileOperator,
Framework framework)
throws java.io.IOException,
OberonException
fileOperator - contains all file informations (FileSpace,FileType,file name, overwrite and lock options ...)framework - the current framework
OberonException - usually due to DB SQL exceptions or Trigger exceptions or IO exceptions
java.io.IOExceptionObjectFile
public void fileget(FileOperator fileOperator,
Framework framework)
throws java.io.IOException,
OberonException
fileOperator - contains all file informations (FileType,file name,lock option ...)framework - the current framework
OberonException - usually due to DB SQL exceptions or Trigger exceptions or IO exceptions
java.io.IOException
public void filerename(FileOperator fileOperator,
Framework framework)
throws OberonException
fileOperator - contains all file informations (FileSpace,FileType,file name and their new values)framework - the current framework
OberonException - usually due to DB SQL exceptions or Trigger exceptions or IO exceptions
public void filedelete(FileOperator fileOperator,
Framework framework)
throws OberonException
fileOperator - contains all file informations (FileSpace,FileType,file name ...)framework - the current framework
OberonException - usually due to DB SQL exceptions or Trigger exceptions or IO exceptions
public void filelock(FileOperator fileOperator,
Framework framework)
throws OberonException
fileOperator - contains all file informations (FileSpace,FileType,file name ...)framework - the current framework
OberonException - usually due to DB SQL exceptions or Trigger exceptions or IO exceptions
public void fileunlock(FileOperator fileOperator,
Framework framework)
throws OberonException
fileOperator - contains all file informations (FileSpace,FileType,file name ...)framework - the current framework
OberonException - usually due to DB SQL exceptions or Trigger exceptions or IO exceptions
public void synchronize(java.lang.String syncFrom,
java.util.Vector<java.lang.String> syncTo,
boolean force,
boolean add,
Framework framework)
throws OberonException
syncFrom - the reference LocalArea name (if empty use the FileSpace as reference)syncTo - vector of destination LocalArea namesforce - replace files also if they are more recentadd - add file if it doesn't existframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void navigate(Navigator navigator,
Framework framework)
throws OberonException,
java.io.IOException
Links
navigator - contains all navigation conditions (LinkType and Class patterns,filters,selectors ...)framework - the current framework
OberonException - usually due to DB SQL exceptions
java.io.IOException
public void navigate(Navigator navigator,
java.io.DataOutputStream outStream,
Framework framework)
throws OberonException,
java.io.IOException
Links
navigator - contains all navigation conditions (LinkType and Class patterns,filters,selectors ...)outStream - the stream for the results (if null the result is stored into the framework)framework - the current framework
java.io.IOException - when the output stream returns an exception
OberonException - usually due to DB SQL exceptions
public void setstage(java.lang.String stageName,
Framework framework)
throws OberonException
Stage defined on its current Lifecycle
stageName - the Stage nameframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or Trigger exceptions
public void progress(Framework framework)
throws OberonException
Stage defined on its Lifecycle
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or Trigger exceptions
public void regress(Framework framework)
throws OberonException
Stage defined on its Lifecycle
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or Trigger exceptions
public void validate(java.lang.String validationName,
java.lang.String note,
Framework framework)
throws OberonException
Lifecycle-Stage.
When all Validations are Validated or Ignored for a specific Stage path the
ObjectObj can be (auto)promoted to the relative fork Stage.
validationName - the Validation namenote - add a comment to the Validationframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or Trigger exceptionsObjectValidation
public void ignore(java.lang.String validationName,
java.lang.String note,
Framework framework)
throws OberonException
Lifecycle-Stage.
The Ignore status is equivalent to the Validate status for the Stage (fork) progress but is
conceptually different for force that Validation represents.
validationName - the Validation namenote - add a comment to the Validationframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or Trigger exceptionsObjectValidation
public void refuse(java.lang.String validationName,
java.lang.String note,
Framework framework)
throws OberonException
Lifecycle-Stage.
validationName - the Validation namenote - add a comment to the Validationframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or Trigger exceptionsObjectValidation
public void execute(java.lang.String methodName,
java.util.Vector<?> args,
Framework framework)
throws OberonException
methodName - the name of Program associated as methods (directly or indirectly) to the ObjectObj's Classargs - the Program argumentsframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or Program exceptions
public void delegate(ObjectDelegation delegation,
Framework framework)
throws OberonException
delegation - the delegation propertiesframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void revoke(ObjectDelegation delegation,
Framework framework)
throws OberonException
delegation - the delegation propertiesframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void show(Selector selector,
Framework framework)
throws java.io.IOException,
OberonException
selector - selection parameters (if null return all the object properties)framework - the current framework
java.io.IOException
OberonExceptionFramework.getResult()
public void show(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
throws java.io.IOException,
OberonException
show in class ObjectBaseselector - selection parameters (if null return all the object properties)outStream - the stream for the results (if null the result is stored into the framework)framework - the current framework
java.io.IOException - when the output stream return an exception
OberonException - for all other problemsFramework.getResult()public boolean isImported()
Dump file
@Deprecated public java.lang.String getObjId()
public void setClass(java.lang.String className)
className - the Class namepublic java.lang.String getOldClassName()
setClass(String) method)
public java.lang.String getClassName()
public void setClass(Class classobj)
public Class getClass(Framework framework)
throws OberonException
Class
framework - the current framework
OberonException
public void setName(java.lang.String name)
throws OberonException
OberonExceptionpublic java.lang.String getOldName()
setName(String) method)
public java.lang.String getName()
getName in class OBBasepublic void setRevision(java.lang.String revision)
public java.lang.String getOldRevision()
setRevision(String) method)
public java.lang.String getRevision()
public void setDescription(java.lang.String description)
setDescription in class ObjectBasepublic java.lang.String getOldDescription()
setDescription(String) method)
public java.lang.String getDescription()
getDescription in class ObjectBasepublic void setImage(byte[] image)
image - the image datapublic byte[] getImage()
public void setImageFile(java.lang.String fileName)
fileName - the image file absolute pathpublic java.lang.String getImageFile()
setImageFile(String)public void setImageData(java.lang.String base64ImageData)
base64ImageData - the base64 image datapublic java.lang.String getImageData()
public boolean hasImage()
public static byte[] getImage(java.lang.String objectId)
throws OberonException
objectId - the ObjectObj's Id
OberonException
public java.lang.String getFieldValue(java.lang.String fieldName,
Framework framework)
throws java.sql.SQLException,
OberonException
Field value directly from DB
getFieldValue in class ObjectBasefieldName - the Field nameframework - the current framework
java.sql.SQLException
OberonExceptionpublic void setLocker(java.lang.String userName)
method
userName - the locker User namepublic java.lang.String getLocker()
User name or empty is the ObjectObj is not lockedlock(Framework),
unlock(Framework)public boolean isLocked()
lock(Framework),
unlock(Framework)public void setDefaultFileType(java.lang.String defaultFileType)
FileType [INTERNAL USAGE]
public java.lang.String getDefaultFileType()
FileType for attached files
public void setObjectSpace(java.lang.String objectSpaceName)
objectSpaceName - the ObjectSpace namepublic java.lang.String getObjectSpace()
ObjectSpace).
public java.lang.String getOldObjectSpace()
ObjectSpace). (Ignore changes made with the setObjectSpace(String) method)
public void setObjectSpaceId(int objectSpaceId)
objectSpaceId - the ObjectSpace internal idpublic int getObjectSpaceId()
ObjectSpace) internal id.
public void setLifecycle(java.lang.String lifecycleName)
lifecycleName - the Lifecycle namepublic java.lang.String getOldLifecycle()
Lifecycle name. (Ignore changes made with the setLifecycle(String) method)
public java.lang.String getLifecycle()
Lifecycle name
public void setLifecycle(Lifecycle lifecycle)
public Lifecycle getLifecycle(Framework framework)
throws OberonException
Lifecycle
framework - the current framework
OberonExceptionpublic void setStage(java.lang.String stageName)
stageName - the Stage namepublic java.lang.String getOldStage()
Lifecycle-Stage name. (Ignore changes made with the setStage(String) method)
public java.lang.String getStage()
Lifecycle-Stage name.
public java.util.Vector<java.lang.String> getStageNames(Framework framework)
framework - the current framework
Lifecycle-Stage names
public Stage getStage(Framework framework)
throws OberonException
Lifecycle-Stage
framework - the current framework
OberonExceptionpublic void resetObjectStages()
ObjectStages from DB
public void setObjectStages(java.util.Vector<ObjectStage> stages)
stages - vector of ObjectStagespublic java.util.Vector<ObjectStage> getObjectStages(Framework framework)
framework - the current framework
ObjectStagespublic ObjectStage getObjectStage(Framework framework)
framework - the current framework
public ObjectStage getObjectStage(java.lang.String stageName,
Framework framework)
stageName - the ObjectStage nameframework - the current frameworkpublic void setPrevObjectSpaceId(int objectSpaceId)
objectSpaceId - the ObjectSpace internal idpublic int getPrevObjectSpaceId()
ObjectSpace internal idpublic void setPrevObjectId(int objectId)
objectId - the previous revision internal idpublic int getPrevObjectId()
public void setNextObjectSpaceId(int objectSpaceId)
objectSpaceId - the ObjectSpace internal idpublic int getNextObjectSpaceId()
ObjectSpace internal idpublic void setNextObjectId(int objectId)
objectId - the next revision internal idpublic int getNextObjectId()
public java.util.Vector<java.lang.String> getRevisions(int revType,
Framework framework)
throws OberonException
revType - revision type ( can be one of REV_ALL,REV_FIRST,REV_PREV,REV_NEXT,REV_LAST )framework - the current framework
OberonExceptionpublic void setFileTypes(java.util.Vector<java.lang.String> fileTypes)
FileTypes [INTERNAL USAGE]
public java.util.Vector<java.lang.String> getFileTypes()
FileTypes for attached files
public void resetObjectFiles()
ObjectFiles from DB
public boolean isFilePresent(java.lang.String fileTypeName,
Framework framework)
fileTypeName - the FileType nameframework - the current frameworkpublic void setObjectFiles(java.util.Vector<ObjectFile> files)
method
files - vector of ObjectFilespublic java.util.Vector<ObjectFile> getFiles(Framework framework)
framework - the current framework
ObjectFiles
public java.util.Vector<ObjectFile> getFileTypeFile(java.lang.String fileTypeName,
Framework framework)
fileTypeName - the FileType nameframework - the current framework
ObjectFiles
public ObjectFile getFile(java.lang.String fileTypeName,
java.lang.String fileName,
Framework framework)
fileTypeName - the FileType namefileName - the file nameframework - the current frameworkpublic void resetDelegations()
ObjectDelegations from DB
public java.util.Vector<ObjectDelegation> getDelegations(Framework framework)
framework - the current framework
ObjectDelegations
public ObjectDelegation getDelegation(int index,
Framework framework)
index - the delegation index in the delegation tableframework - the current frameworkdelegate(ObjectDelegation, Framework),
revoke(ObjectDelegation, Framework)public int getDelegationCount(Framework framework)
framework - the current frameworkObjectDelegationpublic java.util.Vector<java.lang.String> getProcesses(Framework framework)
framework - the current framework
Process IDspublic java.util.Vector<java.lang.String> getOtherProcesses(Framework framework)
framework - the current framework
Process IDspublic void setLinks(java.util.Vector<Link> links)
links - vector of Linkspublic java.util.Vector<Link> getLinks()
method
Links
public java.util.Vector<java.lang.String> getLinks(int linkVersus,
java.lang.String linkType,
Framework framework)
throws OberonException
linkVersus - the link versus ( can be one of Navigator.NAVIGATE_BOTH,Navigator.NAVIGATE_TO,Navigator.NAVIGATE_FROM )linkType - the LinkType's name ( empty value = all linktypes )framework - the current framework
OberonException
public java.util.Vector<MenuItem> getActions(java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
throws OberonException
MenuItems for this object, according to framework user rights
filterArgs - extra arguments used to compute the available actionsframework - the current framework
MenuItem elements
OberonException
public java.util.Vector<java.lang.String> getActionNames(java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
throws OberonException
MenuItems for this object, according to framework user rights
filterArgs - extra arguments used to compute the available actionsframework - the current framework
MenuItem names
OberonExceptionpublic void resetHistory()
public java.lang.String getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
getProperty in class OBBasepropertyName - OOQL property identifier/name (example: class , locker ...)filterArgs - extra arguments used to compute propertiestoken - separator token for complex propertiesframework - the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
getTargetNames in class OBBasecomposedName - OOQL property identifier/name (example: field, filetype.file, .. )filterArgs - extra arguments used to compute propertiesframework - the current framework
public org.jdom.Element getXMLFields(Framework framework)
Field values as XML element tree
framework - the current frameworkpublic org.jdom.Element getXMLObjectStages(Framework framework)
framework - the current frameworkpublic org.jdom.Element getXMLDelegations(Framework framework)
framework - the current frameworkpublic org.jdom.Element getXMLFiles(Framework framework)
framework - the current framework
public org.jdom.Element getXMLFiles(java.lang.String getFilePath,
Framework framework)
getFilePath - the path where download the file contentframework - the current frameworkpublic org.jdom.Element toBasicXML(Framework framework)
framework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
framework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean getHistory,
java.lang.String getFilePath,
boolean getValidations,
Framework framework)
getImage - true to include "imagedata" element with the base64 encoded image datagetHistory - true to include the history tablegetFilePath - if not empty/null extracts the file content to the specified pathgetValidations - true to include the Validation statusframework - the current frameworkpublic void fromXML(org.jdom.Element rootElement)
public void fromXML(org.jdom.Element rootElement,
java.lang.String attachmentsPath)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(Framework framework)
framework - the current frameworkpublic java.lang.String getCreateCommand()
public java.lang.String getAutoCreateCommand(java.lang.String autoNumberName)
autoNumberName - the AutoNumber namepublic java.lang.String getCloneCommand(boolean copyFiles)
copyFiles - true to replicate the attached filespublic java.lang.String getReviseCommand(boolean copyFiles)
copyFiles - true to replicate the attached filespublic java.lang.String getSaveCommand()
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||