|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.OBBase com.oberon.ooql.sdk.AdminComponent
public abstract class AdminComponent
A base class for components of Admin Objects.
Field Summary | |
---|---|
java.util.BitSet |
bsOptions
Element options |
Method Summary | |
---|---|
java.lang.String |
checkChangeName()
Check if the object name was changed |
void |
fromXML(org.jdom.Element rootElement)
Load the administrative object basic properties from XML element tree |
java.lang.String |
getAdminType()
Get the administrative object Type |
java.lang.String |
getCommonProperty(java.lang.String propertyName,
java.lang.String token,
Framework framework)
Get a (basic) property for the administrative object by its OOQL identifier |
java.util.Vector<java.lang.String> |
getCommonTargetNames(java.lang.String composedName,
Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector |
java.lang.String |
getCrtDate()
Return the administrative object creation date |
java.lang.String |
getDescription()
Get the administrative object Description |
java.lang.String |
getEditBasicCommand(java.lang.String propertyName)
Return the OOQL command to edit a given administrative object basic property |
byte[] |
getImage()
Return the administrative object icon |
java.lang.String |
getImageData()
Return the administrative object icon codified as base64 string data |
java.lang.String |
getImageFile()
Return the administrative object icon file path. |
java.lang.String |
getModDate()
Return the administrative object last modification date |
java.lang.String |
getModUser()
Return the administrative object modification User |
java.lang.String |
getName()
Get the administrative object Name |
java.lang.String |
getOldName()
Get the original administrative object Name keep the value read from DB |
boolean |
hasImage()
Test if the administrative object has an image icon |
void |
setCrtDate(java.lang.String date)
Set the administrative object creation date; [INTERNAL USAGE] |
void |
setDescription(java.lang.String description)
Set the administrative object Description |
void |
setImage(byte[] image)
Set the administrative object icon; |
void |
setImageData(java.lang.String base64ImageData)
Set the administrative object icon from a base64 string data; |
void |
setImageFile(java.lang.String fileName)
Set the administrative object icon importing it from a file; |
void |
setModDate(java.lang.String date)
Set the administrative object modification date; [INTERNAL USAGE] |
void |
setModUser(java.lang.String userName)
Set the administrative object modification User; [INTERNAL USAGE] |
void |
setName(java.lang.String name)
Set the administrative object Name |
org.jdom.Element |
toCommonXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the administrative object basic properties as XML element tree |
org.jdom.Element |
toXML(java.lang.String adminType,
boolean getImage,
boolean fullDump,
Framework framework)
Return the administrative object basic properties as XML element tree |
Methods inherited from class com.oberon.ooql.sdk.OBBase |
---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, getProperty, getTargetNames, isLinked, removeChange, resetChanges, setId, setLinked |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.BitSet bsOptions
Method Detail |
---|
public java.lang.String getAdminType()
public void setName(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains the pipe '|' characterpublic java.lang.String getOldName()
public java.lang.String getName()
getName
in class OBBase
public java.lang.String checkChangeName()
public void setDescription(java.lang.String description)
description
- the description to set for the administrative objectpublic java.lang.String getDescription()
public 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 void setModDate(java.lang.String date)
date
- the modification datepublic java.lang.String getModDate()
public void setCrtDate(java.lang.String date)
date
- the creation datepublic java.lang.String getCrtDate()
public void setModUser(java.lang.String userName)
userName
- the User
name who performed the last operation on the objectpublic java.lang.String getModUser()
User
name who performed the last operation on the objectpublic java.lang.String getCommonProperty(java.lang.String propertyName, java.lang.String token, Framework framework)
propertyName
- OOQL property identifier/name (example: id , name , moddate , description ...)token
- separator token for complex propertiesframework
- the current framework
public java.util.Vector<java.lang.String> getCommonTargetNames(java.lang.String composedName, Framework framework)
composedName
- OOQL property identifier/name (example: feature , feature[name] .. )framework
- the current framework
public org.jdom.Element toXML(java.lang.String adminType, boolean getImage, boolean fullDump, Framework framework)
adminType
- the object admin typegetImage
- true to include "imagedata" element with the base64 encoded image datafullDump
- true to include detailed informationframework
- the current frameworkpublic org.jdom.Element toCommonXML(boolean getImage, boolean fullDump, Framework framework)
getImage
- true to include "imagedata" element with the base64 encoded image datafullDump
- true to include detailed informationframework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
public java.lang.String getEditBasicCommand(java.lang.String propertyName)
propertyName
- the name of the property (example: name, description , ....)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |