|
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.AdminBase com.oberon.ooql.sdk.WebService
public class WebService
WebService Admin Object: defines java programs employed as SOAP interfaces
Field Summary | |
---|---|
static int |
FILESPACE_OPTION
The FileSpace flag index inside the Option Set |
Fields inherited from class com.oberon.ooql.sdk.AdminBase |
---|
bsOptions, HIDDEN_OPTION |
Constructor Summary | |
---|---|
WebService()
|
|
WebService(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
compareSimple(WebService refWebService,
boolean checkImage)
Return the template of OOQL command to update this WebService object and let it become equals to another reference object. |
java.lang.String |
compareUpdate(WebService refWebService,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this WebService object and let it become equals to another reference object. |
static void |
compile(AdminQuery adminQuery,
Framework framework,
boolean force)
Compile one or more WebServices |
void |
compile(Framework framework,
boolean force)
Compile the WebService |
void |
create(boolean force,
Framework framework)
Create a new WebService object on the database |
void |
create(Framework framework)
Create a new WebService object on the database |
void |
destroy(Framework framework)
Remove the WebService object from the database. |
void |
fromXML(org.jdom.Element rootElement)
Load the WebService object from XML element tree |
void |
generateClient(java.lang.String wsdl,
boolean overwrite,
Framework framework)
Generate client classes from wsdl |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this WebService object with the settled properties |
java.lang.String |
getCreateCommand(boolean force,
boolean simple)
Return the OOQL command to create this WebService object with the settled properties |
static javax.servlet.http.HttpSession |
getCXFHttpSession(javax.xml.ws.WebServiceContext context)
Get the CXF WebService Http Session |
java.lang.String |
getNameSpace()
Get the WebService namespace |
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 WebService object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this WebService object with the modified properties. |
java.lang.String |
getService()
Get the WebService service name |
java.lang.String |
getSourceCode()
Get the WebService java source code |
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 |
java.lang.String |
getURL()
Get the web-service URL (http) |
boolean |
isFileSpaceService()
Check if the WebService is used as FileSpace interface. |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the WebService object: connect the memory instance with the database instance |
static WebService |
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 |
publish(Framework framework)
Call the Publish servlet and expose the WebService to public access |
static void |
retract(AdminQuery adminQuery,
Framework framework)
Call the Retract servlet and remove one or more WebServices from public access |
void |
retract(Framework framework)
Call the Retract servlet and remove the WebServices from public access |
void |
setFileSpaceService(boolean filespace)
Set if the WebService is used as FileSpace interface. |
void |
setName(java.lang.String name)
Set the WebService name |
void |
setNameSpace(java.lang.String namespace)
Set the WebService namespace |
void |
setService(java.lang.String service)
Set the WebService service name |
void |
setSourceCode(java.lang.String javacode)
Set the WebService java source code. |
void |
setSourceFile(java.lang.String fileName)
Load the WebService java source code from a local disk file |
void |
setURL(java.lang.String url)
Set the web-service URL (http) |
java.lang.String |
toString()
Return the WebService object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the WebService object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the WebService object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the WebService object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
write(boolean force,
Framework framework)
Update the WebService object to the database |
void |
write(Framework framework)
Update the WebService 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 FILESPACE_OPTION
Constructor Detail |
---|
public WebService()
public WebService(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public static WebService 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 exceptionspublic void link(Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters) throws OberonException
link
in class AdminBase
framework
- the current frameworkcounters
- administrative object synch counters (if null read them from database)
OberonException
- usually due to DB SQL exceptionspublic void create(Framework framework) throws OberonException
create
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic 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 rightspublic void write(Framework framework) throws OberonException
write
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic 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 rightspublic void unlink(Framework framework) throws OberonException
unlink
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptionspublic void destroy(Framework framework) throws OberonException
destroy
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void compile(Framework framework, boolean force) throws OberonException
framework
- the current frameworkforce
- if true re-compile the WebService also if already compiled
OberonException
- due to Java compilation errorspublic static void compile(AdminQuery adminQuery, Framework framework, boolean force) throws OberonException
adminQuery
- administrative query to extract the WebService list to compileframework
- the current frameworkforce
- if true re-compile the WebService(s) also if already compiled
OberonException
- due to Java compilation errorspublic void publish(Framework framework) throws OberonException
framework
- the current framework
OberonException
- due to compile errors or application server problems or to limited user access rightspublic void retract(Framework framework) throws OberonException
framework
- the current framework
OberonException
- due to application server problems or to limited user access rightspublic static void retract(AdminQuery adminQuery, Framework framework) throws OberonException
adminQuery
- administrative query to extract the WebService list to retractframework
- the current framework
OberonException
- due to application server problems or to limited user access rightspublic void generateClient(java.lang.String wsdl, boolean overwrite, Framework framework) throws OberonException
wsdl
- location of wsdl file ( can be any valid url )overwrite
- allows to overwrite previously generated classesframework
- the current framework
OberonException
- due to application server problems or to limited user access rightspublic static javax.servlet.http.HttpSession getCXFHttpSession(javax.xml.ws.WebServiceContext context) throws OberonException
context
- the CXF WebService context
OberonException
public void setName(java.lang.String name) throws OberonException
setName
in class AdminBase
name
- the name of the administrative object
OberonException
- if the name contains the pipe '|' characterpublic void setFileSpaceService(boolean filespace)
filespace
- true to define the WebService as FileSpace interfacepublic boolean isFileSpaceService()
public void setSourceCode(java.lang.String javacode)
WebServiceCode
interface.
It should have the following structure:WebServiceSpaceCode
interface.
public void setSourceFile(java.lang.String fileName) throws OberonException
fileName
- the path/name of java code file
OberonException
- due to file IO Exceptionspublic java.lang.String getSourceCode()
public void setService(java.lang.String service) throws OberonException
service
- the name registered on the service list
OberonException
public java.lang.String getService()
public void setNameSpace(java.lang.String namespace) throws OberonException
OberonException
public java.lang.String getNameSpace()
public void setURL(java.lang.String url)
public java.lang.String getURL()
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 OBBase
propertyName
- OOQL property identifier/name (example: source , service ...)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 OBBase
composedName
- OOQL property identifier/namefilterArgs
- extra arguments used to compute propertiesframework
- the current framework
public java.lang.String toString()
toString
in class AdminBase
public java.lang.String toString(Framework framework)
toString
in class AdminBase
framework
- the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML
in class AdminBase
framework
- the current frameworkpublic org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
toXML
in class AdminBase
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)
fromXML
in class AdminBase
public java.lang.String getCreateCommand(boolean force)
getCreateCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String getCreateCommand(boolean force, boolean simple)
simple
- if true return the command templatepublic java.lang.String getSaveCommand(boolean force)
getSaveCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String compareUpdate(WebService refWebService, boolean checkImage, boolean overwrite, boolean force, Framework framework) throws OberonException
refWebService
- the reference WebService objectcheckImage
- if true compare also the image iconoverwrite
- if true update the database object instanceforce
- if true ignores optional propertiesframework
- the current framework
OberonException
fromXML(Element)
public java.lang.String compareSimple(WebService refWebService, boolean checkImage) throws OberonException
refWebService
- the reference WebService objectcheckImage
- if true compare also the image icon
OberonException
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |