|
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.AdminBase
com.oberon.ooql.sdk.Command
public class Command
Command Admin Object: defines a Menu-Command item for a web user interface
| Field Summary | |
|---|---|
static int |
EXECUTABLE_OPTION
The Executable flag index inside the Option Set |
| Fields inherited from class com.oberon.ooql.sdk.AdminBase |
|---|
bsOptions, HIDDEN_OPTION |
| Constructor Summary | |
|---|---|
Command()
|
|
Command(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
Add access right to execute this Command to an actor |
java.lang.String |
compareUpdate(Command refCommand,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this Command object and let it become equals to another reference object. |
static java.lang.String |
covertActorFormat(java.lang.String actor)
Convert the actor string format from actortype|actorname to OOQL format |
void |
create(boolean force,
Framework framework)
Create a new Command object on the database |
void |
create(Framework framework)
Create a new Command object on the database |
void |
destroy(Framework framework)
Remove the Command object from the database |
Framework |
execute(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.String> parameters,
java.util.Vector<java.lang.Object> filterArgs)
Execute the Command |
Framework |
execute(Framework framework,
java.util.Vector<java.lang.Object> filterArgs)
Execute the Command |
void |
fromXML(org.jdom.Element rootElement)
Load the Command object properties from XML element tree |
java.lang.String |
getAccessProgram()
Get the access Program |
java.lang.String |
getAlt()
Get the Command tip (html alt). |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this Command object with the settled properties |
java.util.Vector<java.lang.String> |
getExecuteAccess()
Return the list of execute access rights for this Command. |
java.lang.String |
getHRef()
Get the web page link |
java.lang.String |
getLabel()
Get the Command label. |
java.util.Vector<java.lang.String> |
getMenus(Framework framework)
Return a list of Menus where this Command is used |
java.lang.String |
getMenusAsString(java.lang.String delim,
Framework framework)
Return a list of Menus where this Command is used, as String |
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 Command object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this Command object with the modified properties. |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector |
boolean |
hasAccess(java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Check if the framework user has access to execute this Command |
boolean |
isExecutable()
Check if the command is or not executable |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Command object: connect the memory instance with the database instance |
static Command |
open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open an administrative object and read properties from the database or retrieve them from memory |
void |
removeExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
Remove the actor access right to execute this Command |
void |
setAccessProgram(java.lang.String programName)
Set a method to check the user access |
void |
setAlt(java.lang.String altTip)
Set the Command tip (html alt). |
void |
setExecutable(boolean executable)
Set the command Executable flag; If a command is executable, the Href value must include a program name as follow: <ProgramName>? |
void |
setHRef(java.lang.String url)
Set the web page link for this Command. |
void |
setLabel(java.lang.String label)
Set the Command label. |
java.lang.String |
toString()
Return the Command object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Command object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Command object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Command object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
updateExecuteAccess(java.util.Vector<java.lang.String> accesses)
Update the execute access on the basis of a given list |
void |
write(boolean force,
Framework framework)
Update the Command object to the database |
void |
write(Framework framework)
Update the Command object 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 EXECUTABLE_OPTION
| Constructor Detail |
|---|
public Command()
public Command(java.lang.String name)
throws OberonException
name - the name of the administrative object
OberonException - if the name contains invalid characters| Method Detail |
|---|
public static Command open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
name - the object nameframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
link in class AdminBaseframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void create(Framework framework)
throws OberonException
create in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void create(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(Framework framework)
throws OberonException
write in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void unlink(Framework framework)
throws OberonException
unlink in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions
public void destroy(Framework framework)
throws OberonException
destroy in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public Framework execute(Framework framework,
java.util.Vector<java.lang.Object> filterArgs)
throws OberonException
framework - the current frameworkfilterArgs - vector of input arguments used by access and execution programOberonException - due to execution errors or programmatically raised exceptions
public Framework execute(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.String> parameters,
java.util.Vector<java.lang.Object> filterArgs)
throws OberonException
framework - the current frameworkparameters - additional framework environment parametersfilterArgs - vector of input arguments used by access and execution programOberonException - due to execution errors or programmatically raised exceptionspublic void setHRef(java.lang.String url)
Features
url - the http url (example: /myfolder/mypage.jsp)public java.lang.String getHRef()
public void setAlt(java.lang.String altTip)
altTip - the alt tippublic java.lang.String getAlt()
public void setLabel(java.lang.String label)
label - the label valuepublic java.lang.String getLabel()
public void setExecutable(boolean executable)
executable - the executable flagpublic boolean isExecutable()
public void addExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor name
public void removeExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor namepublic void updateExecuteAccess(java.util.Vector<java.lang.String> accesses)
accesses - list of accesses formatted as actorType|actorNamepublic java.util.Vector<java.lang.String> getExecuteAccess()
addExecuteAccess(String, String)public java.util.Vector<java.lang.String> getMenus(Framework framework)
framework - the current framework
Menu names
public java.lang.String getMenusAsString(java.lang.String delim,
Framework framework)
delim - the separator itemframework - the current framework
Menu names separated by the delim characterspublic void setAccessProgram(java.lang.String programName)
programName - the Program namepublic java.lang.String getAccessProgram()
Program namepublic static java.lang.String covertActorFormat(java.lang.String actor)
actor - actor string formatted as actortype|actorname ( User|MyName )
public boolean hasAccess(java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
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: href , alt ,label ...)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: menu .. )filterArgs - extra arguments used to compute propertiesframework - the current framework
public java.lang.String toString()
toString in class AdminBasepublic java.lang.String toString(Framework framework)
toString in class AdminBaseframework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML in class AdminBaseframework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean fullDump,
Framework framework)
toXML in class AdminBasegetImage - 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)
fromXML in class AdminBasepublic java.lang.String getCreateCommand(boolean force)
getCreateCommand in class AdminBaseforce - if true append the "force" options at the endpublic java.lang.String getSaveCommand(boolean force)
getSaveCommand in class AdminBaseforce - if true append the "force" options at the end
public java.lang.String compareUpdate(Command refCommand,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
throws OberonException
refCommand - the reference Command objectcheckImage - if true compare also the image iconoverwrite - if true update the database object instanceforce - if true ignores optional propertiesframework - the current framework
OberonExceptionfromXML(Element)
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||