public class OciManager extends GeneratedOciManager
The SAP Server sends requests and data (such as search strings, ids, ...) per http POST and the oci extension
response with URL redirects (for example: product detail page) or http forms with included xml data.
The oci extension support the version OCI2.x, OCI3.x, OCI4.x. For a limitation in OCI1.0 (no xml export and max. 25 products) this version is not supported.
Extension.RestrictedLanguagesProvider, Extension.RightsProviderManager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreatorDEFAULT_INITIAL_ATTRIBUTES| Constructor and Description |
|---|
OciManager() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createOciBuyerButton(SAPProductList sapproductlist)
Generates a standard button (with a hidden formular) which submits this formular (here: the included xml data) to
the SRM server.
|
static String |
createOciBuyerButton(SAPProductList sapproductlist,
boolean useHtml)
Generates a standard button (with a hidden formular) which submits this formular (and the included xml or html
data) to the SRM server.
|
static String |
createOciBuyerButton(SAPProductList sapproductlist,
String ociButton)
Same as
createOciBuyerButton(SAPProductList sapproductlist) but the html code for the button can be
specified here.For the ociButton you can use a normal String to change only the label of the button or you can define your own input button in html code (for example you want an image button) The html code for an input button looks like <input type="submit" value="button label" id=submit1 name=submit1> |
static String |
createOciBuyerButton(SAPProductList sapproductlist,
String ociButton,
boolean useHtml)
Same as
createOciBuyerButton(SAPProductList, boolean) but the html code for the button and the exported
format (XML/HTML) can be specified here.For the ociButton you can use a normal String to change only the label of the button or you can define your own input button in html code (for example you want an image button) The html code for an input button looks like <input type="submit" value="button label" id=submit1 name=submit1> |
static OciManager |
getInstance()
Returns the instance of this manager.
|
boolean |
isCreatorDisabled()
This method returns
true. |
static boolean |
isOciSession(JaloSession jaloSession)
This method checks if the current jaloSession is an OciSession.
|
static void |
ociLogin(HttpServletRequest request,
HttpServletResponse response,
CatalogLoginPerformer catalogLoginPerformer)
Same as
ociLogin(HttpServletRequest, HttpServletResponse, CatalogLoginPerformer, boolean, boolean ) but
disableRedirect and useHtml is set to false as default.This method should be used as main entry point from the SRM server to the external catalog (your shop). |
static void |
ociLogin(HttpServletRequest request,
HttpServletResponse response,
CatalogLoginPerformer catalogLoginPerformer,
boolean disableRedirect)
This method calls
ociLogin(HttpServletRequest, HttpServletResponse, CatalogLoginPerformer, boolean, boolean) with the last
parameter set to false. |
static void |
ociLogin(HttpServletRequest request,
HttpServletResponse response,
CatalogLoginPerformer catalogLoginPerformer,
boolean disableRedirect,
boolean useHtml)
This is the only method which will be called by the SRM server.
|
getDefaultAttributeModes, getNamecheckBeforeItemRemoval, createEssentialData, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplaceafterItemCreation, beforeItemCreation, destroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrappublic static OciManager getInstance()
public boolean isCreatorDisabled()
true.isCreatorDisabled in class Extensiontruepublic static String createOciBuyerButton(SAPProductList sapproductlist) throws OciException
<input type="submit" value="SAP OCI Buyer" id=submit1 name=submit1> By default the data will
be exported as XML data in the <form>. For export the data as html use
createOciBuyerButton(SAPProductList, boolean) with last parameter set to true.sapproductlist - the product list which has to be transfered to the SRM serverOciException - throwed by problemspublic static String createOciBuyerButton(SAPProductList sapproductlist, boolean useHtml) throws OciException
<input type="submit" value="SAP OCI Buyer" id=submit1 name=submit1> sapproductlist - the product list which has to be transfered to the SRM serveruseHtml - use true if the data should be exported as html code in the <form>, use
false for export the data as XML in the <form>OciException - throwed by problemspublic static String createOciBuyerButton(SAPProductList sapproductlist, String ociButton) throws OciException
createOciBuyerButton(SAPProductList sapproductlist) but the html code for the button can be
specified here.<input type="submit" value="button label" id=submit1 name=submit1>sapproductlist - the product list which has to be transfered to the SRM serverociButton - your own html code for the buttonOciException - throwed by problemspublic static String createOciBuyerButton(SAPProductList sapproductlist, String ociButton, boolean useHtml) throws OciException
createOciBuyerButton(SAPProductList, boolean) but the html code for the button and the exported
format (XML/HTML) can be specified here.<input type="submit" value="button label" id=submit1 name=submit1>useHtml - use true if the data should be exported as html code in the <form>, use
false for export the data as XML in the <form>sapproductlist - the product list which has to be transfered to the SRM serverociButton - your own html code for the buttonOciException - throwed by problemspublic static boolean isOciSession(JaloSession jaloSession)
public static void ociLogin(HttpServletRequest request,
HttpServletResponse response,
CatalogLoginPerformer catalogLoginPerformer)
throws Exception
ociLogin(HttpServletRequest, HttpServletResponse, CatalogLoginPerformer, boolean, boolean ) but
disableRedirect and useHtml is set to false as default.request - contains information from the SRM serverresponse - the oci send the data to this responsecatalogLoginPerformer - implemented interface for logging in into the external catalogException - throws OciExceptions or other exceptionspublic static void ociLogin(HttpServletRequest request,
HttpServletResponse response,
CatalogLoginPerformer catalogLoginPerformer,
boolean disableRedirect)
throws Exception
ociLogin(HttpServletRequest, HttpServletResponse, CatalogLoginPerformer, boolean, boolean) with the last
parameter set to false.request - contains information from the SRM serverresponse - the oci send the data to this responsecatalogLoginPerformer - implemented interface for logging in into the external catalogdisableRedirect - if set to true, all redirects (like CatalogLoginPerformer.getProductSearchURL() or
CatalogLoginPerformer.getProductDetailURL() ) are disabled. Then you could implement your own logic for
SRM field FUNCTIONException - throws OciExceptions or other exceptionspublic static void ociLogin(HttpServletRequest request,
HttpServletResponse response,
CatalogLoginPerformer catalogLoginPerformer,
boolean disableRedirect,
boolean useHtml)
throws Exception
request - contains information from the SRM serverresponse - the oci send the data to this responsecatalogLoginPerformer - implemented interface for logging in into the external catalogdisableRedirect - if set to true, all redirects (like CatalogLoginPerformer.getProductSearchURL() or
CatalogLoginPerformer.getProductDetailURL() ) are disabled. Then you could implement your own logic for
SRM field FUNCTIONuseHtml - use true if the data should be exported as html code in the <form>, use
false for export the data as XML in the <form>Exception - throws OciExceptions or other exceptionsCopyright © 2017 SAP SE. All Rights Reserved.