* @throws InvalidOperationRequest the invalid operation request
*/
public EngineURL getEditDocumentTemplateBuildUrl(Object biobject, IEngUserProfile profile)
throws InvalidOperationRequest {
EngineURL engineURL;
BIObject obj;
String documentId;
Engine engine;
String url;
HashMap parameters;
logger.debug("IN");
try {
obj = null;
try {
obj = (BIObject) biobject;
} catch (ClassCastException cce) {
logger.error("The input object is not a BIObject type", cce);
return null;
}
documentId = obj.getId().toString();
engine = obj.getEngine();
url = engine.getUrl();
//url = url.replaceFirst("/servlet/AdapterHTTP", "");
//url += "/templateBuilder.jsp";
parameters = new HashMap();
parameters.put("document", documentId);
parameters.put(PARAM_SERVICE_NAME, "FORM_ENGINE_TEMPLATE_BUILD_ACTION");
parameters.put(PARAM_NEW_SESSION, "TRUE");
parameters.put(PARAM_MODALITY, "EDIT");
applySecurity(parameters, profile);
engineURL = new EngineURL(url, parameters);
} finally {
logger.debug("OUT");
}
return engineURL;