|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.dsws.Consumer
com.businessobjects.dsws.saveservice.SaveService
public class SaveService
SaveService class is a proxy that can consume the SaveService Web Service and that is mapped on its WSDL.
SaveService provides services to perform save and saveAs on Web Intelligence and Desktop Intelligence document objects.
| Constructor Summary | |
|---|---|
SaveService()
|
|
SaveService(Connection objConnection,
ConnectionState objConnectionState)
Instantiate a new SaveService object using Connection and ConnectionState objects. |
|
SaveService(java.lang.String strImplementation,
ConnectionState objConnectionState)
Internal Use Only. |
|
| Method Summary | |
|---|---|
static SaveService |
getInstance(Consumer objConsumer,
java.lang.String strURL)
|
void |
readExternal(java.io.ObjectInput in)
Internal Use Only. |
SaveResult |
Save(java.lang.String documentReference,
NameValuePair[] documentProperty)
The Save method returns a SaveResult
corresponding to a unique ID (UID) or document reference. |
SaveResult |
SaveAs(java.lang.String documentReference,
java.lang.String documentName,
java.lang.String parentUID,
int[] categoryUID,
int[] personalCategoryID,
boolean overwrite,
NameValuePair[] documentProperty)
The SaveAs method returns a SaveResult
corresponding to a unique ID (UID) or document reference. |
void |
writeExternal(java.io.ObjectOutput out)
Internal Use Only. |
| Methods inherited from class com.businessobjects.dsws.Consumer |
|---|
displayException, GetAxisFaultDetails, getConnection, getConnection, getConnectionState, getConsumer, getConsumer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaveService(java.lang.String strImplementation,
ConnectionState objConnectionState)
throws AxisFault
Internal Use Only.
AxisFault
public SaveService(Connection objConnection,
ConnectionState objConnectionState)
throws AxisFault
Example: Initializing a SaveService instance.
Connection objConnection = new Connection(objURLSession);
SessionInfo objSessionInfo = objSession.Login(objEnterpriseCredential);
String[] astrURLs = objSession.getAssociatedServicesURL("ReportEngine");
if (astrURLs.length > 0)
{
objConnection.setURL(new URL(astrURLs[0]));
SaveService objSaveService = new SaveService(objConnection, objSession.getConnectionState());
}
objConnection - a valid Connection object with the URL set to the SaveService service.objConnectionState - the ConnectionState of the current user session.
AxisFaultConnection,
ConnectionStatepublic SaveService()
| Method Detail |
|---|
public static SaveService getInstance(Consumer objConsumer,
java.lang.String strURL)
throws AxisFault
objConsumer - one of the current user's consumer objects.strURL - URL to connect to the SaveService web service.
DSWSException - Exception raised either as a Web Service SOAP Fault or as a Consumer side trapped exception.
Example: Initializing a SaveService instance.
URL objURLSession = new URL("http://localhost:8080/dswsbobje/services/Session");
Connection objConnection = new Connection(objURLSession);
Session objSession = new Session(objConnection);
EnterpriseCredential objEnterpriseCredential = EnterpriseCredential.Factory.newInstance();
objEnterpriseCredential.setLogin("Administrator");
objEnterpriseCredential.setPassword("");
objEnterpriseCredential.setLocale("en_US");
objEnterpriseCredential.setTimeZone("GMT+05:30");
SessionInfo objSessionInfo = objSession.login(objEnterpriseCredential);
SaveService objSaveService = SaveService.getInstance(objSession, astrURLs[0]);
String[] astrURLs = objSession.getAssociatedServicesURL("SaveService");
if (astrURLs.length > 0)
{
SaveService objSaveService = SaveService.getInstance(objSession, astrURLs[0]);
}
objSession.logout();
AxisFaultConnection,
AuthenticationCredential,
Session
public SaveResult SaveAs(java.lang.String documentReference,
java.lang.String documentName,
java.lang.String parentUID,
int[] categoryUID,
int[] personalCategoryID,
boolean overwrite,
NameValuePair[] documentProperty)
throws AxisFault
SaveResult
corresponding to a unique ID (UID) or document reference.
Example: Create a new document after performing refresh on the instance.
Document[] aobjDocuments = boCatalog.getDocumentList("",-1,null,null,null,InstanceRetrievalType.ALL);
Document myBODoc = aobjDocuments[0];
String strBODocuid = myBODoc.getUID();
Action[] actions = new Action[1];
actions[0] = Refresh.Factory.newInstance();
DocumentInformation docInfo = RepEng.getDocumentInformation(strBODocuid,null,actions,null, null);
String newDocName = "saveDocument";
String ParentUID = "1601";
SaveResult objSaveResult=objSaveService.SaveAs(strBODocReference,newDocName,ParentUID,null,null,true,null);
documentReference - A documentInstance's unique ID, retrieved using BICatalog or
a document reference, retrieved from a DocumentInformation object.documentName - Name for the new document instanceparentUID - Folder UID retrieved using BICatalogcategoryUID - Category UID retrieved using BI CatalogpersonalCategoryUID - Personal Category UID retrieved using BI Catalogoverwrite - boolean flag to find out if we can overwrite an existing document with same name in repositorydocumentProperty - set of document properties as name/value pair to update before saveAs
AxisFaultBICatalog,
Document,
DocumentInformation,
RetrieveMustFillInfo,
Action,
Navigate,
RetrieveData,
Connection,
AuthenticationCredential,
Session,
NameValuePair,
com.businessobjects.dsws.reportengine.getDocumentReference()
public SaveResult Save(java.lang.String documentReference,
NameValuePair[] documentProperty)
throws AxisFault
SaveResult
corresponding to a unique ID (UID) or document reference.
Example: Save the current document instance after performing refresh on the instance.
Document[] aobjDocuments = boCatalog.getDocumentList("",-1,null,null,null,InstanceRetrievalType.ALL);
Document myBODoc = aobjDocuments[0];
String strBODocuid = myBODoc.getUID();
Action[] actions = new Action[1];
actions[0] = Refresh.Factory.newInstance();
DocumentInformation docInfo = RepEng.getDocumentInformation(strBODocuid,null,actions,null, null);
String strBODocReference = docInfo.getDocumentReference();
SaveResult objSaveResult = objSaveService.Save(strBODocReference,null);
documentReference - A documentInstance's unique ID, retrieved using BICatalog or
a document reference, retrieved from a DocumentInformation object.documentProperty - set of document properties as name/value pair to update before saveAs
AxisFaultBICatalog,
Document,
DocumentInformation,
RetrieveMustFillInfo,
Action,
Navigate,
RetrieveData,
Connection,
AuthenticationCredential,
Session,
NameValuePair,
com.businessobjects.dsws.reportengine.getDocumentReference()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
Internal Use Only.
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
Internal Use Only.
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||