Like what you see? Have a play with our trial version.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated for 8.0.7 (removed "HIERARCHY" parameter)

These web services are used in a cluster environment, where Yellowfin is set up amongst multiple nodes connected to a local database. Most of these are used to transmit messages between the cluster nodes, and to clear the cache of a specific node, when data is updated or deleted locally, ensuring consistency in content throughout the cluster. Each of these services remove a specific type of content/data.



Anchor
binaryCacheFlush
binaryCacheFlush

 

Favourting Items

Request Example

These are the main parameters that you must set in the AdministrationPerson object for this web service call:

Expand
titleGETFAVOURITESBINARYCACHEFLUSH

This web service call returns all reports marked as favourite by a specific user.  is used to remove classes that are in the binary class loader. For example, this could be classes that were loaded as plug-ins such as connectors or data transformation steps that are stored in the database rather than on the file system.


Request Parameters

The following parameters should be passed with this request:

Person

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "GETFAVOURITESBINARYCACHEFLUSH".

  

AdministrationPersonThis object contains details of the user. See table below.
Anchor
getfaveapgetfaveap
AdministrationPerson Element

Data Type

Description

UserId

String

ID of the user whose favourite reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

 

 

Request Example

Below is a SOAP XML example for this request:

Code Block
languagexmlthemeConfluence
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <web:remoteAdministrationCall> 
         <arg0>
   		         <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
            <orgId>1</orgId>
            <function>GETFAVOURITES<<function>BINARYCACHEFLUSH</function>
            <person>
            	<userId>admin@yellowfin.com.au</userId></arg0>
            </person>   web:remoteAdministrationCall>
         </arg0>
      </web:remoteAdministrationCall>
   </soapenv:</soapenv:Body>
</soapenv:Envelope>

 

 



Response Parameters

The returned response will contain the following parameterthese parameters:

An array of the user's favourite reports.

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE

Person

AdministrationPerson

Full details of the user.

Reports

AdministrationReports[]

 

 


Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
themeConfluence
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         <return>
            <errorCode>0</errorCode>
            <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
            <messages>Getting user information...</messages>
            <messages>Getting user information...</messages>
            <messages>Web Service Request Complete</messages>
            <person><sessionId>071e8a40b17160cbc3e55df360cdab11</sessionId>
               <emailAddress>admin@yellowfin.com.au</emailAddress><statusCode>SUCCESS</statusCode>
         </return>
      <firstName>System<</firstName>ns2:remoteAdministrationCallResponse>
               <initial/>
               <ipId>5</ipId>
               <languageCode>EN</languageCode>
               <lastName>Administrator</lastName>
               <roleCode>YFADMIN</roleCode>
               <salutationCode/>
               <status>ACTIVE</status>
               <timeZoneCode>AUSTRALIA/SYDNEY</timeZoneCode>
               <userId>admin@yellowfin.com.au</userId>
            </person>
</S:Body>
</S:Envelope>



Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("BINARYCACHEFLUSH");


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_binarycacheflush.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_binarycacheflush.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    	ws_binarycacheflush.jsp              	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
AdministrationServiceResponse rs = null;
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setFunction("BINARYCACHEFLUSH");    
rs = rssbs.remoteAdministrationCall(rsr);

if ("SUCCESS".equals(rs.getStatusCode())) {
    out.write("Success");
} else {
    out.write("Failure");
    out.write(rs.toString());
}




Anchor
uploadLicence
uploadLicence

Expand
titleUPLOADLICENCE

This web service is used to upload a new licence for the Yellowfin instance.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "UPLOADLICENCE".

BinaryDatabyte[]A byte array containing the new licence.


  

Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("UPLOADLICENCE");


  • Provide the new licence for your instance. The licence will be a byte array; you can encode it to Base64 and use the util method to convert it.

    Code Block
    languagejava
    byte[] lic = com.hof.util.Base64.decode("Base64 Encoded String of licence file");
    rsr.setBinaryData(lic);


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_uploadlicence.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_uploadlicence.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    	ws_uploadlicence.jsp <reports>
               <authoringMode>JAVA</authoringMode>
               <averageRunTime>0</averageRunTime>
               <birtData/>
               <chartTypeCode/>
               <dashboardEnabled>true</dashboardEnabled>
               <dataOutput>COLUMN</dataOutput>
               <deliveryMode/>
               <executionObject/>
               <lastModifiedDate>2016-03-29T00:00:00+11:00</lastModifiedDate>
               <lastModifierId>5</lastModifierId>
               <lastModifierName>System Administrator</lastModifierName>
               <publishDate>2016-03-23T00:00:00+11:00</publishDate>
               <reportCategory>Audit Reports</reportCategory>
               <reportDescription/>
               <reportId>56401</reportId>
               <reportName>Active Sessions</reportName>
               <reportSubCategory>Admin Reports</reportSubCategory>
              	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
AdministrationServiceResponse rs = null;
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setFunction("UPLOADLICENCE");
    
// Licence needs to be a byte array. An easy way to do this is to encode it to Base64 and use the util method to convert it
byte[] lic = com.hof.util.Base64.decode("Base64 Encoded String of licence file");
rsr.setBinaryData(lic);
    
rs = rssbs.remoteAdministrationCall(rsr);

if ("SUCCESS".equals(rs.getStatusCode())) {
	out.write("Success");
} else {
	out.write(rs.getStatusCode());
	out.write(rs.toString());
}




Anchor
delGeoPack
delGeoPack

Expand
titleDELGEOPACK

This web service removes a specified Geopack from the Geopack cache. Note, however, that it does not delete the Geopack from the server.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "DELGEOPACK".

OrgRefStringThis optional parameter can be used to specify a client org. ID
ParametersStringUse this to specify the UUID of the geopack to be deleted from the cache.

  

Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <web:remoteAdministrationCall>
 <reportTemplate>REPORTANDCHART</reportTemplate>
               <reportUUID>594d4da4-1b58-44d3-bf4f-11456a42f68c</reportUUID>
               <roleCode>OPERATIONAL</roleCode>
               <sourceName/>
               <usage>24</usage>
               <viewDescription>Yellowfin Usage Audit</viewDescription>
               <viewId>56169</viewId>
               <viewName>NEW VIEW</viewName>
            </reports>
            <reports>
               <authoringMode>JAVA</authoringMode>
               <averageRunTime>0</averageRunTime>
               <birtData/>
               <chartTypeCode/>
               <dashboardEnabled>true</dashboardEnabled>
               <dataOutput>COLUMN</dataOutput>
               <deliveryMode/>
               <executionObject/>
               <lastModifiedDate>2016-03-29T00:00:00+11:00</lastModifiedDate>
               <lastModifierId>5</lastModifierId>
               <lastModifierName>System Administrator</lastModifierName>
               <publishDate>2016-03-23T00:00:00+11:00</publishDate>
               <reportCategory>Audit Reports</reportCategory>
               <reportDescription/>
            <arg0>
 		  <reportId>56401</reportId><loginId>admin@yellowfin.com.au</loginId>
               <reportName>Active Sessions</reportName><password>test</password>
               <reportSubCategory>Admin Reports</reportSubCategory><orgId>1</orgId>
               <reportTemplate>REPORTANDCHART</reportTemplate><function>DELGEOPACK</function>
               <reportUUID>594d4da4-1b58-44d3-bf4f-11456a42f68c</reportUUID><parameters>
               <roleCode>OPERATIONAL</roleCode>	<string>db1cf6f7-3561-45a0-b6bc-ff7b94117741</string>
               <sourceName/></parameters>
               <usage>24</usage></arg0>
               <viewDescription>Yellowfin Usage Audit</viewDescription></web:remoteAdministrationCall>
               <viewId>56169</viewId>
               <viewName>NEW VIEW</viewName>
            </reports>
            <sessionId>dffb6a0f4f155d46c73d1e77dffbd81c</</soapenv:Body>
</soapenv:Envelope>



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         <return>sessionId>
            <statusCode>SUCCESS<<errorCode>0</statusCode>errorCode>
         </return>
   <messages>Successfully Authenticated  </ns2:remoteAdministrationCallResponse>User: admin@yellowfin.com.au</messages>
            <messages>Web Service Request Complete</messages>
            <sessionId>9a3871407a758998334a2d780c44f9ae</sessionId>
            <statusCode>SUCCESS</statusCode>
         </return>
      </ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

 

 



Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Start with a basic Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("GETFAVOURITESDELGEOPACK");


  • You can specify the user to fetch their favourite reportsSpecify which geopack to remove from the cache, by providing its UUID through a Parameters element:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(aprsr.setParameters(new String[] { "db1cf6f7-3561-45a0-b6bc-ff7b94117741" } );


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    

    Initialize the Administration web service. Click here to learn how to do this. 

 


  • The response will contain the StatusCode, Person and Reports parameters. (See details in the Response Parameter Parameters table above for details on these.

     

 

 

  • .)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_ getfavouritesdelgeopack.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_ getfavouritesdelgeopack.jsp from your Internet browser.
 


Code Block
languagejava
themeEclipse
<%        	
/*          	ws_getfavouritesdelgeopack.jsp               	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<% 
AdministrationServiceResponse rs = null;
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
AdministrationServiceService s_admts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminServicerssbs = (AdministrationServiceSoapBindingStub) s_admts.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      		// provide your Yellowfin web services admin account
rsr.setPassword("test");                            // set to the password of the account above
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setFunction("GETFAVOURITESDELGEOPACK");
 
AdministrationPerson ap = new AdministrationPerson();
ap.setUserId("test.user@yellowfin.com.au");
 
rsr.setPerson(ap);
 
AdministrationServiceResponse rs = adminServicersr.setParameters(new String[] { "db1cf6f7-3561-45a0-b6bc-ff7b94117741" } );
    
rs = rssbs.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
	    out.write("<br>SuccessSuccess");
} else   AdministrationReport[] reports = rs.getReports();
    if (reports != null)
    	for(AdministrationReport r: reports){
			{
    out.write("<br>Report Name: " + r.getReportName());
  Failure");
      }
} else {
	out.write("Failure");
	out.write(" Code: " + rs.getErrorCodetoString());
}
%>

 

 




Anchor
dashboardCache
dashboardCache

These are the main parameters that you must set in the AdministrationPerson object for this web service call:

Expand
titleGETINBOXREFRESH_DASHBOARD_CACHED_FILTERS

This web service is used to refresh cached filters associated with a particular dashboard. The dashboard is specified by providing its ID or UUID.


Request Parameters

This returns a specified user's inbox reports. These are reports which have been distributed to the user.

 

Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "GETINBOXREFRESH_DASHBOARD_CACHED_FILTERS".

PersonParametersAdministrationPersonThis object contains details of the user. See table below.
Anchor
getinboxapgetinboxap
String[]Array string containing the ID or UUID of the dashboard whose cached filters are to be removed. Note that only the first parameter in the array is used.



Response Parameters

The returned response will contain these parameters:

UserIdID user whose inbox reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

Response

AdministrationPerson

Element

Data Type

Description

StatusCode

String

Status of the

 

 

Request Example

web service call. Possible values include:

  • SUCCESS
  • FAILURE


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform

Below is a SOAP XML example for this requestxml
  • :

    Code Block
    language
  • java
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("REFRESH_DASHBOARD_CACHED_FILTERS");


  • Specify the dashboard UUID by using the parameters element.

    Code Block
    languagejava
    rsr.setParameters(new String[] { "61209" });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_refreshdashboardfilters.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_refreshdashboardfilters.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    	ws_refreshdashboardfilters.jsp     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <web:remoteAdministrationCall> 
         <arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
            <orgId>1</orgId>
            <function>GETINBOX</function>         	*/
%>
<%@ page           <person>
            	<userId>admin@yellowfin.com.au</userId>
            </person>   
         </arg0>
      </web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>

 

 

Response Parameters

The returned response will contain the following parameter:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE

Person

AdministrationPerson

Full details of the user.

Reports

AdministrationReports[]

An array of the user's inbox reports.

 

 

Response Example

The service will return the below response, according to our SOAP example:

language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
AdministrationServiceResponse rs = null;
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setFunction("REFRESH_DASHBOARD_CACHED_FILTERS");
    
// Provide the Dashboard UUID
rsr.setParameters(new String[] { "61209" });
    
rs = rssbs.remoteAdministrationCall(rsr);

if ("SUCCESS".equals(rs.getStatusCode())) {
    out.write("Success");
} else {
    out.write(rs.getStatusCode());
    out.write(rs.toString());
}




Anchor
viewCache
viewCache

Expand
titleREFRESH_VIEW_CACHED_FILTERS

This web service is used to refresh cached filters associated with a particular view. The view is specified by providing its ID or UUID.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "REFRESH_VIEW_CACHED_FILTERS".

ParametersString[]Array string containing the ID or UUID of the view whose cached filters are to be removed. Note that only the first parameter in the array is used.



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("REFRESH_VIEW_CACHED_FILTERS");


  • Specify the view UUID by using the Parameters element.

    Code Block
    languagejava
    rsr.setParameters(new String[] { "61209" });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_refreshviewfilters.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_refreshviewfilters.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    	ws_refreshviewfilters.jsp     
Code Block
languagexml
themeConfluence
 <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         <return>
            <errorCode>0</errorCode>
            <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
            <messages>Getting user information...</messages>
            <messages>Getting user information...</messages>
            <messages>Web Service Request Complete</messages>
            <person>
               <emailAddress>admin@yellowfin.com.au</emailAddress>
               <firstName>System</firstName>
               <initial/>
               <ipId>5</ipId>
               <languageCode>EN</languageCode>
               <lastName>Administrator</lastName>
               <roleCode>YFADMIN</roleCode>
               <salutationCode/>
               <status>ACTIVE</status>
               <timeZoneCode>AUSTRALIA/SYDNEY</timeZoneCode>
               <userId>admin@yellowfin.com.au</userId>
            </person>
         	*/
%>
<%@ page  <reports>
               <authoringMode>JAVA</authoringMode>
               <averageRunTime>0</averageRunTime>
               <birtData/>
               <chartTypeCode/>
               <dashboardEnabled>true</dashboardEnabled>
               <dataOutput>COLUMN</dataOutput>
               <deliveryMode>DISTRIBUTE</deliveryMode>
               <executionObject/>
               <lastModifiedDate>2017-06-26T00:00:00+10:00</lastModifiedDate>
               <lastModifierId>5</lastModifierId>
               <lastModifierName>System Administrator</lastModifierName>
               <lastRunTime>0</lastRunTime>
               <publishDate>2016-11-17T00:00:00+11:00</publishDate>
               <reportCategory>Tutorial</reportCategory>
               <reportDescription>Look at the number of athletes by age, region, and average camp rating.</reportDescription>language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
AdministrationServiceResponse rs = null;
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setFunction("REFRESH_VIEW_CACHED_FILTERS");
    
// Provide the View UUID
rsr.setParameters(new String[] { "61209" });
    
rs = rssbs.remoteAdministrationCall(rsr);

if ("SUCCESS".equals(rs.getStatusCode())) {
    out.write("Success");
} else {
    out.write(rs.getStatusCode());
    out.write(rs.toString());
}




Anchor
refreshsourcefilters
refreshsourcefilters

Expand
titleREFRESH_SOURCE_FILTERS

This service refreshes all access source filters for the specified data source connection.

 

Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "REFRESH_SOURCE_FILTERS".

ParametersString[]

The function requires only one string as a parameter, which is the target source ID. You can find this value in the reportviewsource table of the SourceId column.


Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
  	<web:remoteAdministrationCall>
     	<arg0>
            <loginId>admin@yellowfin.com.au</loginId>
               <reportId>61053</reportId><password>test</password>
        	<orgId>1</orgId>
       <reportName>Profitability by Customer Age &amp; Location Breakdown</reportName> <function>REFRESH_SOURCE_FILTERS</function>
               <reportSubCategory>Marketing &amp; Booking</reportSubCategory><parameters>54700</parameters>
       	</arg0>
  	</web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>


Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
  	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
     	<return>        <reportTemplate>CHART</reportTemplate>
               <reportUUID>c554165d-7c85-4d19-b19a-61ce5919dc5b</reportUUID>
               <roleCode>OPERATIONAL</roleCode>
               <sourceName/><errorCode>0</errorCode>
        	<messages>Successfully Authenticated      <usage>25</usage>User: admin@yellowfin.com.au</messages>
  	      <messages>Web Service      <viewDescription>Ski Team</viewDescription>Request Complete</messages>
               <viewId>70103</viewId><sessionId>13143fc20f2d7eeb52ec27f588a9942f</sessionId>
               <viewName>New View</viewName><statusCode>SUCCESS</statusCode>
            	</reports>return>
            <reports>
               <authoringMode>JAVA</authoringMode></ns2:remoteAdministrationCallResponse>
               <averageRunTime>0</averageRunTime>
               <birtData/>
               <chartTypeCode/>
               <dashboardEnabled>true</dashboardEnabled></S:Body>
</S:Envelope>


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("REFRESH_SOURCE_FILTERS");


  • Specify the data source by its source ID number to remove its definition from the cache:

    Code Block
    languagejava
    rsr.setParameters(new String[] {"54700"});


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • Add the following check to retrieve the response, containing the StatusCode.

    Code Block
    languagejava
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    }
    else {
                  	out.write("<br>Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    }   




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_refresh_source_filters.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_refresh_source_filters.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%        	
/*          	ws_refresh_source_filters.jsp                            	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
 
AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin web services admin account
rsr.setPassword("test");                        // set to the password of the account above
rsr.setOrgId(1);
rsr.setFunction("REFRESH_SOURCE_FILTERS");
 
rsr.setParameters(new String[] {"54700"});
 
AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>Success");
              	
}
else {
              	out.write("<br>Failure");
              	out.write(" Code: " + rs.getErrorCode());
}             	
%>




Anchor
reloadcodes
reloadcodes

Expand
titleRELOADCODES

This web service will reload the specified Org Reference Codes within Yellowfin.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "RELOADCODES".

ParametersString[]

Array of Org reference codes to refresh. Following are some of the options and their descriptions:

  • NAME: Use this option to reload the organization names.
  • PARAMETER: This option reloads organization Parameters, including system configurations, custom parameters, and date periods.
  • REFCODE: Reloads Org Ref Codes.
  • ROLEFN: Reloads functions and role definitions.
  • ORGRELATIONSHIPS: Reloads organization relationships, including 'Client Reference ID to Org ID' mappings.



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("RELOADCODES");


  • Specify the Org reference codes that you need to reload into Yellowfin:

    Code Block
    languagejava
    rsr.setParameters(new String[] {
        "ADDRESS", "NAME", "PARAMETER", "REFCODE", "ROLEFN", "ORGRELATIONSHIPS"
    });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_reloadcodes.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_reloadcodes.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    	ws_reloadcodes.jsp              	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
	AdministrationServiceResponse rs = null;
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
    AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    rsr.setFunction("RELOADCODES");
    
    rsr.setParameters(new String[] {
            "ADDRESS", "NAME", "PARAMETER", "REFCODE", "ROLEFN", "ORGRELATIONSHIPS"
    });
    
    rs = rssbs.remoteAdministrationCall(rsr);

    if ("SUCCESS".equals(rs.getStatusCode())) {
        out.write("Success </br>");
    } else {
        out.write(rs.getStatusCode());
        out.write(rs.toString());
    }





Anchor
geometryFlush
geometryFlush

Expand
titleGEOMETRYFLUSH

This web service will clear the geometry cache in Yellowfin.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "GEOMETRYFLUSH".

ParametersString[]

IDs of Views from which the geometry objects are cached with.



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("GEOMETRYFLUSH");


  • Specify the Views from which to flush geometery objects:

    Code Block
    languagejava
    rsr.setParameters(new String[] {
         "70103", "70104"
    });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_geometryflush.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_geometryflush.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    	ws_geometryflush.jsp              	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
	AdministrationServiceResponse rs = null;
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
    AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    rsr.setFunction("GEOMETRYFLUSH");
    
	//View IDs from which geometry objects are to be removed
    rsr.setParameters(new String[] {
            "70103", "70104"
    });
    
    rs = rssbs.remoteAdministrationCall(rsr);

    if ("SUCCESS".equals(rs.getStatusCode())) {
        out.write("Success </br>");
    } else {
        out.write(rs.getStatusCode());
        out.write(rs.toString());
    }





Anchor
removeView
removeView

Expand
titleREMOVEVIEW

This web service will remove a view's cache in Yellowfin.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "REMOVEVIEW".

ParametersString[]

IDs of views whose caches are to be removed.



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("REMOVEVIEW");


  • Specify the Views whose caches are to be removed:

    Code Block
    languagejava
    rsr.setParameters(new String[] {
         "70103", "70104"
    });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_removeview.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_removeview.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    	ws_removeview.jsp              	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
	AdministrationServiceResponse rs = null;
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
    AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    rsr.setFunction("REMOVEVIEW");
    
	//View IDs whose caches are to be removed
    rsr.setParameters(new String[] {
            "70103", "70104"
    });
    
    rs = rssbs.remoteAdministrationCall(rsr);

    if ("SUCCESS".equals(rs.getStatusCode())) {
        out.write("Success </br>");
    } else {
        out.write(rs.getStatusCode());
        out.write(rs.toString());
    }





Anchor
flushReport
flushReport

Expand
titleFLUSHREPORT

This web service will remove a report's cached definitions.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "FLUSHREPORT".

ParametersString[]

ID of report to remove its cached definition or metadata. Only the first string will be read, so ensure that it is the report ID.


Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
  	<web:remoteAdministrationCall>
     	<arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
        	<orgId>1</orgId>
        	<function>FLUSHREPORT</function>
        	<parameters>65254</parameters>
       	</arg0>
  	</web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
  	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
     	<return>
            <errorCode>0</errorCode>
        	<messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
        	<messages>Web Service Request Complete</messages>
            <sessionId>5a29f6eaf3ee084b00c76da124f31fe0</sessionId>
            <statusCode>SUCCESS</statusCode>
     	</return>
  	</ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>


Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("FLUSHREPORT");


  • Specify the report by its ID to remove its definition from the cache:

    Code Block
    languagejava
    rsr.setParameters(new String[] {
         "56401"
    });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • Add the following check to retrieve the response, containing the StatusCode.

    Code Block
    languagejava
     if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    }
    else {
                  	out.write("<br>Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    } 




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_flushreport.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_flushreport.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%        	
/*          	ws_FLUSHREPORT.jsp                    	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
 
AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservices admin account
rsr.setPassword("test");                        // set to the password of the account above
rsr.setOrgId(1);
rsr.setFunction("FLUSHREPORT");
rsr.setParameters(new String[] {"65254"});
 
AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>Success");
              	
}
else {
              	out.write("<br>Failure");
              	out.write(" Code: " + rs.getErrorCode());
}             	
%>




Anchor
flushTab
flushTab

Expand
titleFLUSHTAB

This web service will remove a dashboard tab's cached definitions in Yellowfin.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "FLUSHTAB".

ParametersString[]

ID of dashboard tab to remove its cached definition or metadata. Only the first string is read, which should contain this ID.


Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
  	<web:remoteAdministrationCall>
     	<arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
        	<orgId>1</orgId>
        	<function>FLUSHTAB</function>
        	<parameters>65254</parameters>
       	</arg0>
  	</web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
  	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
     	<return>
            <errorCode>0</errorCode>
        	<messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
        	<messages>Web Service Request Complete</messages>
            <sessionId>5a29f6eaf3ee084b00c76da124f31fe0</sessionId>
            <statusCode>SUCCESS</statusCode>
     	</return>
  	</ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("FLUSHTAB");


  • Specify the ID of the dashboard tab to remove its cached definition:

    Code Block
    languagejava
    rsr.setParameters(new String[] {"65254"});


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • Add the following code to retrieve the response, which is the StatusCode.

    Code Block
    languagejava
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    }
    else {
                  	out.write("<br>Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    } 




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_flushtab.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_flushtab.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%        	
/*          	ws_flushtab.jsp                             	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
 
AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin web services admin account
rsr.setPassword("test");                        // set to the password of the account above
rsr.setOrgId(1);
rsr.setFunction("FLUSHTAB");
rsr.setParameters(new String[] {"65254"});
 
AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>Success");
              	
}
else {
              	out.write("<br>Failure");
              	out.write(" Code: " + rs.getErrorCode());
}             	
%>




Anchor
flushperson
flushperson

Expand
titleFLUSHPERSON

This web service will remove a person's cached details.


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "FLUSHPERSON".

ParametersString[]

ID of person record to remove its cached definition or metadata. Only the first string is read, which should contain this ID.


Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
  	<web:remoteAdministrationCall>
     	<arg0>
        	<loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
        	<orgId>1</orgId>
        	<function>FLUSHPERSON</function>
        	<parameters>65254</parameters>
       	</arg0>
  	</web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>



Response Parameters

The returned response will contain these parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE


Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
  	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
     	<return> <dataOutput>COLUMN</dataOutput>
               <deliveryMode>DISTRIBUTE</deliveryMode>
               <executionObject/>
               <lastModifiedDate>2017-06-26T00:00:00+10:00</lastModifiedDate>
               <lastModifierId>5</lastModifierId>
               <lastModifierName>System Administrator</lastModifierName>
               <lastRunTime>0</lastRunTime>
               <publishDate>2016-11-17T00:00:00+11:00</publishDate>
               <reportCategory>Tutorial</reportCategory>
               <reportDescription>Look at the number of athletes by age, region, and average camp rating.</reportDescription>
               <reportId>61053</reportId>
               <reportName>Profitability by Customer Age &amp; Location Breakdown</reportName>
               <reportSubCategory>Marketing &amp; Booking</reportSubCategory>
               <reportTemplate>CHART</reportTemplate>
               <reportUUID>c554165d-7c85-4d19-b19a-61ce5919dc5b</reportUUID>
               <roleCode>OPERATIONAL</roleCode>
               <sourceName/>
               <usage>25</usage>
               <viewDescription>Ski Team</viewDescription>
               <viewId>70103</viewId><errorCode>0</errorCode>
        	<messages>Successfully Authenticated      <viewName>New View</viewName>User: admin@yellowfin.com.au</messages>
        	<messages>Web Service Request  <Complete</reports>messages>
            <sessionId>76a9a9f93246f29678744bf60727943f<<sessionId>5a29f6eaf3ee084b00c76da124f31fe0</sessionId>
            <statusCode>SUCCESS</statusCode>
         	</return>
      	</ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

 

 

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("FLUSHTAB");


  • Specify the ID of the dashboard tab to remove its cached definition:

    Code Block
    languagejava
    rsr.setParameters(new String[] {"65254"});


  • Once the request is configured, perform the call

Expand
titleStep-by-step instructions
  • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    AdministrationServiceRequestAdministrationServiceResponse rsrrs = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(1);
    
    rsr.setFunction("GETINBOX");
  • You can specify the user to fetch their favourite reports:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(ap);
  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    

    Initialize the Administration web service. Click here to learn how to do this. 

 

  • The response will contain the StatusCode, Person and Reports parameters. See the Response Parameter table above for details on these.

     

 

 

  • adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • Add the following code to retrieve the response, which is the StatusCode.

    Code Block
    languagejava
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    }
    else {
                  	out.write("<br>Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    } 




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_ getinboxflushperson.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_ getinboxflushperson.jsp from your Internet browser.

 


Code Block
languagejava
themeEclipse
<%        	
/*          	ws_getinboxflushperson.jsp                            	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
 
AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin web serviceswebservices admin account
rsr.setPassword("test");                        // set to the password of the account above account
rsr.setOrgId(1);
rsr.setFunction("GETINBOXFLUSHPERSON");
 
AdministrationPerson ap = new AdministrationPerson();
ap.setUserId("test.user@yellowfin.com.au");
 
rsr.setPerson(aprsr.setParameters(new String[] {"65254"});
 
AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>Success");
	AdministrationReport[] reports = rs.getReports();
	if (reports != null)
              	for(AdministrationReport r: reports){

}
else {
              	out.write("<br>Failure"<br>Report);
 Name: " + r.getReportName());
        }
} else {
	out.write("Failure");
	out.write(" Code: " + rs.getErrorCode());
}
%>

 

 

             	
%>  




Anchor
reloadLicence
reloadLicence

Expand
titleRELOADLICENCE

This web service will reload a licence in Yellowfin.

Expand
titleISREPORTFAVOURITE

This web service checks whether or not a particular report is marked as a specific user's favourite. Both the user and the report would need to be specified here, the latter by providing the Report ID. This ID can be retrieved from Yellowfin database's Report Header table. You can even use the GETIDFORUUID web service call to retrieve the Report ID.

 


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "ISREPORTFAVOURITE".

PersonAdministrationPersonThis object contains details of the user. See table below.
ReportIdIntegerThe report ID to check whether the report is the user's favourite.
Anchor
isrepfaveap

. Always set this to 1.

Function

String

Web service function. Set this to "RELOADLICENCE".



Request Example

The following SOAP XML example shows how perform this request with the mandatory parameters

isrepfaveap

These are the main parameters that you must set in the AdministrationPerson object for this web service call:

AdministrationPerson Element

Data Type

Description

UserId

String

ID of the user whose inbox reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

 

 

Request Example

Below is a SOAP XML example for this request:

Code Block
theme
languagexmlConfluence
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <web:remoteAdministrationCall> 
         <arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
            <orgId>1</orgId>
            <function>ISREPORTFAVOURITE<<function>RELOADLICENCE</function>
            <reportId>56401</reportId>
            <person>
            	<userId>admin@yellowfin.com.au</userId>
            </person>   
         </arg0>
      </web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>

 

 



Response Parameters

The returned response will contain the following parameterthese parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS - If the specified report is the user's favourite.
  • FAILURE - If the report is not a favourite report of the user.

 

 



Response Example

The service will return the below response, according to our SOAP following SOAP XML response will be returned based on our example:

Code Block
languagexml
themeConfluence
<S <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         <return>
            <errorCode>0</errorCode>
            <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
            <messages>Web Service Request Complete</messages>
            <sessionId>ca75c7ebef710e4fc7c6ca6137baa784<<sessionId>c4d0b6dec61e890a417132f05c3f0fbc</sessionId>
            <statusCode>SUCCESS</statusCode>
         </return>
      </ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

 

 



Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Start with a basic Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(1);
    
    rsr.setFunction("ISREPORTFAVOURITE");

    You can identify the user for whom to check the report's favourite status:

    themeConfluence
    AdministrationServiceRequest rsr
    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPersonAdministrationServiceRequest();
    aprsr.setUserIdsetLoginId("testadmin@yellowfin.user@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setPerson(ap);

    Specify which report to check the favourite status for:

    Code Block
    languagejava
    rsr.setReportId(61131setOrgId(new Integer(1));
    
    rsr.setFunction("RELOADLICENCE");


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    

    Initialize the Administration web service. Click here to learn how to do this. 

 


  • The response will contain the StatusCode. (See details in the Response Parameter Parameters table above for details on this.)

     

 

 




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_ isreportfavouritereloadlicence.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_ isreportfavouritereloadlicence.jsp from your Internet browser.
 


Code Block
languagejava
themeEclipse
<%        	
/*          		ws_isreportfavouritereloadlicence.jsp                       	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
AdministrationServiceService s_adm 
	AdministrationServiceResponse rs = null;
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminService
    AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) s_admts.getAdministrationService();
AdministrationServiceRequest rsr
 = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin web services admin account

    rsr.setPassword("test");               
         // set to the password of the account above
rsr.setOrgId(new Integer(1));
    rsr.setFunction("ISREPORTFAVOURITERELOADLICENCE");
 
AdministrationPerson ap = new AdministrationPerson();
ap.setUserId("test.user@yellowfin.com.au");
 
rsr.setPerson(ap);
 
rsr.setReportId(61131);
 
AdministrationServiceResponse rs = adminServicerssbs.remoteAdministrationCall(rsr);


    
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>SuccessSuccess </br>");
                                	
} else {
              	out.write("Failure"(rs.getStatusCode());
              	out.write(" Code: " + rs.getErrorCodetoString());
    }
%>

 




Anchor
closeConnectionPool

...

closeConnectionPool

Expand
titleADDTOFAVOURITESCLOSECONNECTIONPOOL

This web service will close the connection pool of a specified data source.


Also, ADDTOFAVORITES. This web service call marks a particular report as the specified user's favourite. Both the user and the report would need to be specified here, the latter by providing the report ID. Use the GETIDFORUUID web service call to retrieve the report ID, or fetch it from the database (this value is stored in the Report Header table).

 

Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "ADDTOFAVOURITESCLOSECONNECTIONPOOL" or "ADDTOFAVORITES".

PersonParametersAdministrationPersonThis object contains details of the user. See table below.
ReportIdIntegerThe ID of the report that is to be added as a favourite of the user's.
Anchor
addtofavap
String[]

ID of the data source whose connection pools are to be closed.


Request Example

The following SOAP XML example shows how perform this request with the mandatory parameters

addtofavap

These are the main parameters that you must set in the AdministrationPerson object for this web service call:

AdministrationPerson Element

Data Type

Description

UserId

String

ID of the user to add the report as their favourite. This value could be the user ID or user's email address, depending on the Logon ID method.

 

 

Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
themeConfluence
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      	<web:remoteAdministrationCall> 
         	<arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
            	<orgId>1</orgId>
            <function>ADDTOFAVOURITES<	<function>CLOSECONNECTIONPOOL</function>
            <reportId>56401</reportId>
            <person>
 	<parameters>74909</parameters>
           	<userId>admin@yellowfin.com.au</userId>
            </person>   
         </arg0>
      	</web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>

 

 


Response Parameters

The returned response will contain the following parameterthese parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS - if the report is added as the user's favourite.
  • FAILURE - if the report is not added as the user's favourite.

 

 

. Possible values include:

  • SUCCESS
  • FAILURE


Response Example

The service will return the below response, according to our SOAP following SOAP XML response will be returned based on our example:

Code Block
languagexml
themeConfluence
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         	<return>
            <errorCode>0</errorCode>
            	<messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
    	        <messages>Web Service Request Complete</messages>
            <sessionId>cf897244c65ceecd6c4c39e8ab8c4fcb<<sessionId>5a29f6eaf3ee084b00c76da124f31fe0</sessionId>
            <statusCode>SUCCESS</statusCode>
         	</return>
      </ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>
 

 

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Start with a basic Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("ADDTOFAVOURITESCLOSECONNECTIONPOOL");
  • You can identify the user for whom to check the report's favourite status:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(ap);

  • Specify which report to check the favourite status forSpecify the ID of the data source to close its connection pools:

    Code Block
    languagejava
    rsr.setReportId(61131setParameters(new String[] {"74909"});


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    

    Initialize the Administration web service. Click here to learn how to do this. 

 

  • The response will contain the StatusCode. See the Response Parameter table above for details on this.

     

 

 


  • Add the following code to retrieve the response, containing the StatusCode.

    Code Block
    languagejava
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    }
    else {
                  	out.write("<br>Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    }  




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_ addtofavouritescloseconnectionpool.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_ addtofavouritescloseconnectionpool.jsp from your Internet browser.
 


Code Block
languagejava
themeEclipse
<%        	
/*          	ws_addtofavouritescloseconnectionpool.jsp                               	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
 
AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservicesweb services admin account
rsr.setPassword("test");                                                    	// changeset to be the password of the account above
rsr.setOrgId(1);
rsr.setFunction("ADDTOFAVORITES");
 
AdministrationPerson ap = new AdministrationPerson();
ap.setUserId("test.user@yellowfin.com.au");
 
rsr.setPerson(apCLOSECONNECTIONPOOL");
 
rsr.setReportId(56361setParameters(new String[] {"74909"});
 
AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>Success");
                	
}
else {
                	
} else {
	out.write("Failure<br>Failure");
              	out.write(" Code: " + rs.getErrorCode());
}             	
%>




Anchor

...

flushtextentity
flushtextentity

 

Expand
titleFLUSHTEXTENTITY

This web service removes a cached text entity.

Expand
titleREMOVEFAVOURITE

Also, REMOVEFAVORITE. This web service call removes a particular report from the specified user's favourite list. Both the user and the report would need to be specified here, the latter by providing the report ID. Use the GETIDFORUUID web service call to retrieve the report ID, or fetch it from the database (this value is stored in the Report Header table).

 


Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "REMOVEFAVOURITEFLUSHTEXTENTITY" or "REMOVEFAVORITE".

PersonAdministrationPersonThis object contains details of the user. See table below.
ParametersString[]ReportIdIntegerThe

ID of the

report

text entity that is to be

removed from the user's favourite list.
Anchor
removefavap

flushed from a cache. (Only the first parameter is read, so ensure it is the text ID.)



Request Example

The following SOAP XML example shows how perform this request with the mandatory parameters

removefavap

These are the main parameters that you must set in the AdministrationPerson object for this web service call:

AdministrationPerson Element

Data Type

Description

UserId

String

ID of the user to remove the report from their favourite list. This value could be the user ID or user's email address, depending on the Logon ID method.

 

 

Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
themeConfluence
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      	<web:remoteAdministrationCall> 
         	<arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
            	<orgId>1</orgId>
            <function>REMOVEFAVOURITE<	<function>FLUSHTEXTENTITY</function>
            <reportId>56401</reportId>
            <person>	<parameters>65254</parameters>
            	<userId>admin@yellowfin.com.au</userId>
            </person>   
         </arg0>
      	</web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>

 

 


Response Parameters

The returned response will contain the following parameterthese parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS - If the report is removed from the user's favourite list.
  • FAILURE - If the report is not removed from the user's favourite list.

 

 

  • SUCCESS
  • FAILURE


Response Example

The service will return the below response, according to our SOAP following SOAP XML response will be returned based on our example:

Code Block
languagexml
themeConfluence
 <S<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         	<return>
            <errorCode>0</errorCode>
            	<messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
            	<messages>Web Service Request Complete</messages>
            <sessionId>1be6b980918323dab6f41fec3c040c56<<sessionId>5a29f6eaf3ee084b00c76da124f31fe0</sessionId>
            <statusCode>SUCCESS</statusCode>
         	</return>
      </ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

 

 

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Start with a basic Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("REMOVEFAVOURITEFLUSHTEXTENTITY");
  • You can identify the user for whom to check the report's favourite status:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(ap);

  • Specify which report to check the favourite status forSpecify ID of the text to flush it from the cache:

    Code Block
    languagejava
    rsr.setReportId(61131setParameters(new String[] {
         "12323"
    });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    

    Initialize the Administration web service. Click here to learn how to do this.  


  • The response will contain the StatusCode. (See details in the Response Parameter Parameters table above for details on this.

     

 

 
  • .)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_ removefavouriteflushtextentity.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_ removefavouriteflushtextentity.jsp from your Internet browser.

 


Code Block
languagejava
themeEclipse
/*          	ws_removefavourite.jsp                          	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);        // adjust host and port number
AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");<%        	
/*          	ws_flushtextentity.jsp                         		// provide your Yellowfin web services admin account
rsr.setPassword("test");                            // set to the password of the account above
rsr.setOrgId(1);
rsr.setFunction("REMOVEFAVOURITE");
 
AdministrationPerson ap = new AdministrationPerson();
ap.setUserId("test.user@yellowfin.com.au");
 
rsr.setPerson(ap);
 
rsr.setReportId(56361);
 
AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>Success");
 	*/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
 
AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
AdministrationServiceRequest rsr = new AdministrationServiceRequest();
 
rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservices admin account
rsr.setPassword("test");                        // change to the password of the account 	
} else {
              	out.write("Failure");
              	out.write(" Code: " + rs.getErrorCode());
}
%>


 

 

Expand
titleLISTPERSONFAVOURITES
above
rsr.setOrgId(1);
rsr.setFunction("FLUSHTEXTENTITY");
rsr.setParameters(new String[] {"65254"});
 
AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
 
if ("SUCCESS".equals(rs.getStatusCode()) ) {
              	out.write("<br>Success");
              	
}
else {
              	out.write("<br>Failure");
              	out.write(" Code: " + rs.getErrorCode());
}             	
%>




Anchor
flushCachedFilterCache
flushCachedFilterCache

These are the main parameters that you must set in the PersonFavourite object for this web service call:

Expand
titleFLUSHCACHEDFILTERCACHE

This web service removes cached filter definitions.


Request Parameters

The following parameters should be passed with this request:

Request

This web service call returns a specific user's favourite items, including reports, storyboards, views, dashboards, distributed content, discussions or comments flagged by them.

 

Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "LISTPERSONFAVOURITES".

FavouritePersonFavouriteThis object is used to specify the favourite items are to be fetched. The user must be specified here, however other parameters are optional. See table below for more details.
RetrospectiveDaysIntegerThis is an optional parameter.
Anchor
listfavpersonlistfavperson
PersonIdID of the user to remove the report from their favourite list. This value could user's ContentType
PersonFavourite

Element

Data Type

Description

LoginId

Integer

String

An admin account to connect to Yellowfin web services. This can be the user ID or

the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

This optional parameter can be set to filter the result by a specific content type. Values could include:

  • REPORT
  • REPORTGROUP
  • DISCUSSIONGROUP
  • REPORTVIEW
  • STORYBOARD
  • IMAGE
ContentIdIntegerThis optional parameter can be used to restrict the result to a specific content by providing its internal ID.

 

 

Request Example

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "FLUSHCACHEDFILTERCACHE".

ParametersString[]

ID of the filter that is to be flushed from the cache. (Only the first parameter is read, so ensure it is the filter ID.)



Request Example

The following SOAP XML example shows how perform this request with the mandatory parametersBelow is a SOAP XML example for this request:

Code Block
languagexml
themeConfluence
 <soapenv<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      	<web:remoteAdministrationCall> 
         	<arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
            	<orgId>1</orgId>
            <function>LISTPERSONFAVOURITES</function>
            <favourite>
 	<function>FLUSHCACHEDFILTERCACHE</function>
           	<personId>5<<parameters>74909</personId>parameters>
            </favourite>     
         </	</arg0>
      	</web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>
 

 


Response Parameters

The returned response will contain the following parameterthese parameters:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE

Personfavourites

PersonFavourite[]

An array containing the user's favourite objects.

 

 


Response Example

The service will return the below response, according to our SOAP following SOAP XML response will be returned based on our example:

Code Block
languagexml
themeConfluence
 <S<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         <return>
            <errorCode>0</errorCode>
            <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
            <messages>Web Service Request Complete</messages>
            <personfavourites>
               <contentId>61209</contentId>
               <contentType>REPORTGROUP</contentType>
               <creationCode/>
/">
     	<return>
           <creationDate>2017-06-26</creationDate> <errorCode>0</errorCode>
        	<messages>Successfully Authenticated      <creatorId>0</creatorId>User: admin@yellowfin.com.au</messages>
        	<messages>Web Service Request     <favouriteType>REPORTDASHBOARD</favouriteType>Complete</messages>
            <sessionId>5a29f6eaf3ee084b00c76da124f31fe0</sessionId>
   <message/>
         <statusCode>SUCCESS</statusCode>
      <personId>5<	</personId>return>
      </ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
  • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Code Block
    languagejava
    themeConfluence
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    
    rsr.setFunction("FLUSHCACHEDFILTERCACHE");


  • Specify ID of the filter to flush it from the cache:

    Code Block
    languagejava
    rsr.setParameters(new String[] {
         "12323"
    });


  • Once the request is configured, perform the call:

    Code Block
    languagejava
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

    Initialize the Administration web service. Click here to learn how to do this. 


  • The response will contain the StatusCode. (See details in the Response Parameters table above.)




Complete Example

Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

  1. Copy the code and save it as ws_flushcachedfilter.jsp.
  2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
  3. Adjust the host, port, and admin user details according to your environment.
  4. Run http://<host>:<port>/ws_flushcachedfilter.jsp from your Internet browser.


Code Block
languagejava
themeEclipse
<%   	
/*    		ws_flushcachedfilter.jsp      <textEntityId>0</textEntityId>
            </personfavourites>
            <personfavourites>
               <contentId>61250</contentId>
               <contentType>REPORTGROUP</contentType>
               <creationCode/>
               <creationDate>2017-06-26</creationDate>
               <creatorId>0</creatorId>
               <favouriteType>REPORTDASHBOARD</favouriteType>
               <message/>
               <personId>5</personId>
               <textEntityId>0</textEntityId>
            </personfavourites>
            <sessionId>09123071f17afb11be74ca07a6d25aef</sessionId>
            <statusCode>SUCCESS<	*/statusCode>
         </return>
      </ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

 

 

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:


%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
 
	AdministrationServiceResponse rs = null;
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
    AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();

    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(new Integer(1));
    rsr.setFunction("FLUSHCACHEDFILTERCACHE");
    
	//Specify filter ID to flush its cache
    rsr.setParameters(new String[] {
            "12323"
    });
    
    rs = rssbs.remoteAdministrationCall(rsr);

    if ("SUCCESS".equals(rs.getStatusCode())) {
        out.write("Success </br>");
    } else {
        out.write(rs.getStatusCode());
        out.write(rs.toString());
    }





Anchor
removedocument
removedocument

Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:
Expand
titleREMOVEDOCUMENT

This web service removes a specified document from the cache.

 

Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "REMOVEDOCUMENT".

ParametersString[]

ID of the document that is to be flushed from the cache. (Only the first parameter is read, so ensure it is the document ID.)



Request Example

The following SOAP XML example shows how perform this request with the mandatory parameters:

Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
  	<web:remoteAdministrationCall>
     	<arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
Expand
titleStep-by-step instructions
Code Block
languagejava
AdministrationServiceRequest rsr = new AdministrationServiceRequest();

rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(1);

rsr.setFunction("LISTPERSONFAVOURITES");
  • Identify a user by using a PersonFavourite object:

    Code Block
    languagejava
    PersonFavourite pf = new PersonFavourite();
    pf.setPersonId(13073);
  • The following steps are optional, and can be included to filter the response of this call.

    To retrieve the user's favourite reports:

    Code Block
    languagejava
    pf.setContentType("REPORT");    	
    pf.setFavouriteType("FAVOURITE");

    To retrieve all of the user's dashboard:

    Code Block
    languagejava
    pf.setContentType("REPORTGROUP");
    pf.setFavouriteType("REPORTDASHBOARD");

    To retrieve reports and dashboards distributed to the user:

    Code Block
    languagejava
    pf.setContentType("REPORTGROUP"); 			// use this for dashboards, or pf.setContentType("REPORT") to get distributed reports
    pf.setFavouriteType("INBOX");

    To retrieve discussions that the user is a member of:

    Code Block
    languagejava
    pf.setContentType("DISCUSSIONGROUP");
    pf.setFavouriteType("DISCUSSIONMEMBER");

    To retrieve user's favourite views:

    Code Block
    languagejava
    pf.setContentType("REPORTVIEW");

    To retrieve user's favourite storyboards:

    Code Block
    languagejava
    pf.setContentType("STORYBOARD");
    pf.setFavouriteType("FAVOURITE");

    To get user's profile image:

    Code Block
    languagejava
    pf.setContentType("IMAGE");
    pf.setFavouriteType("PROFILE");

    To retrieve report comments flagged by the user:

    Code Block
    languagejava
    pf.setContentType("COMMENT");
    pf.setFavouriteType("FLAGGED");

    Add this object to the request:

    Code Block
    languagejava
    rsr.setFavourite(pf);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode and PersonFavourites parameters. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ listpersonfavourites.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ listpersonfavourites.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*<orgId>1</orgId>
                <function>REMOVEDOCUMENT</function>
       	ws_listpersonfavourites.jsp         <parameters>74909</parameters>
           	*</
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservices admin account
    rsr.setPassword("test");arg0>
      	</web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>


    Response Parameters

    The returned response will contain these parameters:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE


    Response Example

    The following SOAP XML response will be returned based on our example:

    Code Block
    languagexml
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
      	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         	<return>
                <errorCode>0</errorCode>
            	<messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
            	<messages>Web Service Request Complete</messages>
                <sessionId>fe029927cc6aae20446f1a8caf25e83a</sessionId>
                 <statusCode>SUCCESS</statusCode>
         	</return>
          </ns2:remoteAdministrationCallResponse>
     change to be the password of the account above
    rsr.setOrgId(1  </S:Body>
    </S:Envelope>

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      themeConfluence
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      rsr.
    setFunction
    • setLoginId("
    LISTPERSONFAVOURITES
    • admin@yellowfin.com.au");
      
    PersonFavourite pf = new PersonFavourite(); pf.setPersonId(13073); pf.setContentType("REPORT
    • rsr.setPassword("test");
      
    • rsr.
    setFavourite(pf); AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr
    • setOrgId(new Integer(1));
      
    if ("SUCCESS".equals(rs.getStatusCode()) ) { out.write("<br>Success"); if (rs.getPersonfavourites() != null)
    • 
      rsr.setFunction("REMOVEDOCUMENT");


    • Specify ID of the document to remove it from the cache:

      Code Block
      languagejava
      rsr.setParameters(new String[] {
           "12323"
      });


    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

      Initialize the Administration web service. Click here to learn how to do this. 


    • The response will contain the StatusCode. (See details in the Response Parameters table above.)




    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_removedocument.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user details according to your environment.
    4. Run http://<host>:<port>/ws_removedocument.jsp from your Internet browser.


    Code Block
    languagejava
    themeEclipse
    <%    for (PersonFavourite f: pf){
                    out.write("<br><br>contentId: " + f.getContentId());
                	out.write("<br>ContentType: " + f.getContentType());
    
    /*            	out.write("<br>CreationCode: " + f.getCreationCode());
       	     		out.write("<br>CreationDate: " + f.getCreationDate());
    ws_removedocument.jsp                  		out.write("<br>CreatorId: " + f.getCreatorId());
       	*/
    %>
     
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page  	out.write("<br>FavouriteType: " + f.getFavouriteType());
            		out.write("<br>Message: " + f.getMessage());
         	    	out.write("<br>PersonId: " + f.getPersonId());
                	out.write("<br>textEntityId: " + f.getTextEntityId());
               }
    } else {
                out.write("Failure");
      import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <% 
    	AdministrationServiceResponse rs = null;
    	AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    	AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
    	AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();
     
        rsr.setLoginId("admin@yellowfin.com.au");
    	rsr.setPassword("test");
    	rsr.setOrgId(new Integer(1));
    	rsr.setFunction("REMOVEDOCUMENT");
     	
    	rsr.setParameters(new String[] {
              out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    
    

     

     

    Expand
    titleSAVEPERSONFAVOURITE
    	"70103" });
     	
    	rs = rssbs.remoteAdministrationCall(rsr);
     
    	if ("SUCCESS".equals(rs.getStatusCode())) {
        	out.write("Success </br>");
    	} else {
        	out.write(rs.getStatusCode());
        	out.write(rs.toString());
    	}
    %>




    Anchor
    refreshacll
    refreshacll

    These are the main parameters that you must set in the PersonFavourite object for this web service call:

    Expand
    titleREFRESHACLL

    This web service refreshes the access levels for a specific content. The content is specified by providing its ID via a parameter element. This could be a Report ID, Dashboard Tab ID, or ETL Process (data transformation flow) UUID.


    Request Parameters

    The following parameters should be passed with this request:

    Request

    This web service call adds an item to a user's favourite list, such as a report, storyboard, view, etc. It also allows a dashboard tab to be added to a user's dashboard, and even flag a comment for a user.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "SAVEPERSONFAVOURITE".

    FavouritePersonFavouriteThis object is used to specify the items to be marked as a user's favourite. The user is also specified here. See the table below for more details.
    Anchor
    listfavpersonlistfavperson
    PersonId
    PersonFavourite

    Element

    Data Type

    Description

    LoginId

    Integer

    A mandatory parameter to identify the user with their internal ID (that is, the IP ID). The items selected will be added as this user's favourite.

    ContentTypeString

    This mandatory parameter is used to specify the content type of the item to be added as favourite. Possible values include:

    • REPORT
    • REPORTGROUP
    • DISCUSSIONGROUP
    • REPORTVIEW
    • STORYBOARD
    • IMAGE
    ContentIdIntegerThis mandatory parameter is used to define the item that is to be marked as the user's favourite by providing its internal ID.
    FavouriteTypeString 
    CreationCodeString 
    TextEntityIdInteger

    This parameter is required if a comment is to be flagged.

     

     

    Request Example

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "REFRESHACLL".

    ParametersString[]

    ID of the content whose access levels are to be reset. (Only the first parameter is read, so ensure it is the content ID.)

    • Report ID
    • Dashboard Tab ID
    • ETL Process(data transformation flow) UUID



    Request Example

    The following SOAP XML example shows how perform this request with the mandatory parametersBelow is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall> 
             <arg0>
                <loginId>admin@yellowfin.com.au</loginId>
                <password>test</password>
                <orgId>1</orgId>
                <function>SAVEPERSONFAVOURITE</function>
            <soapenv:Body>
      	<web:remoteAdministrationCall>
      <favourite>
       	<arg0>
             	<personId>13000</personId><loginId>admin@yellowfin.com.au</loginId>
                	<contentType>REPORTGROUP<<password>test</contentType>password>
                	<contentId>61209<<orgId>1</contentId>orgId>
            	<function>REFRESHACLL</function>
         </favourite>     
      <parameters>74909</parameters>
           	</arg0>
          	</web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>
     

     


    Response Parameters

    The returned response will contain the following parameterthese parameters:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

     

     


    Response Example

    The service will return the below response, according to our SOAP following SOAP XML response will be returned based on our example:

    Code Block
    languagexml
    themeConfluence
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             	<return>
                <errorCode>0</errorCode>
                	<messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                	<messages>Web Service Request Complete</messages>
                <sessionId>6eb0b81605d3b355cf4a43ae608ab274</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       <<sessionId>fe029927cc6aae20446f1a8caf25e83a</S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:
    sessionId>
                <statusCode>SUCCESS</statusCode>
         	</return>
      	</ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Code Block
    languagejava
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(1);
    
    rsr.setFunction("SAVEPERSONFAVOURITE");
  • Identify a user throught the PersonFavourite object:

    Code Block
    languagejava
    PersonFavourite pf = new PersonFavourite();
    pf.setPersonId(13073);
  • Specify the contents that are to be marked as favourite in this object:
    Code Block
    languagejava
    pf.setContentId(61252);
    pf.setContentType("REPORTVIEW");

    Add this object to the request:

    Code Block
    languagejava
    rsr.setFavourite(pf);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode parameter. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ savepersonfavourite.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ savepersonfavourite.jsp from your Internet browser.

     

    Expand
    titleStep-by-step instructions
    • Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

    Eclipse
    • Code Block
      languagejava
      theme
    • Confluence
    <%
    • AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(new Integer(1));
      
      rsr.setFunction("REFRESHACLL");


    • Specify ID of the content to reset its access level:

      Code Block
      languagejava
      rsr.setParameters(new String[] {
           "12323"
      });


    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);

      Initialize the Administration web service. Click here to learn how to do this. 


    • The response will contain the StatusCode. (See details in the Response Parameters table above.)




    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_refreshacll.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user details according to your environment.
    4. Run http://<host>:<port>/ws_refreshacll.jsp from your Internet browser.


    Code Block
    languagejava
    themeEclipse
    <%       	
    /*          	ws_savepersonfavourite.jsp                	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      			
    //* provide your Yellowfin web services admin account
    rsr.setPassword("test");   	ws_refreshacll.jsp                     	*/
    %>
     
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@  // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("SAVEPERSONFAVOURITE");
     
    PersonFavourite pf = new PersonFavourite();
    pf.setPersonId(13073);
    pf.setContentId(61252);
    pf.setContentType("REPORTVIEW");
     
    rsr.setFavourite(pf);
     
    page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <% 
    	AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr)null;
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    } else {
                  	out.write("Failure");
        	AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    	AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
    	AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();
     
        rsr.setLoginId("admin@yellowfin.com.au");
    	rsr.setPassword("test");
        rsr.setOrgId(new Integer(1));
    	rsr.setFunction("REFRESHACLL");
     	
    	rsr.setParameters(new String[] {
              	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    

     

     

    "70103" });
     	
    	rs = rssbs.remoteAdministrationCall(rsr);
     
    	if ("SUCCESS".equals(rs.getStatusCode())) {
        	out.write("Success </br>");
    	} else {
        	out.write(rs.getStatusCode());
        	out.write(rs.toString());
    	}
    %>




    Anchor
    removecontentmanagement
    removecontentmanagement

    These are the main parameters that you must set in the PersonFavourite object for this web service call:

    Expand
    titleREMOVECONTENTMANAGEMENT

    This function is used for cluster messaging. It removes content management records from remote caches when such a record is altered or deleted locally.


    Request Parameters

    The following parameters should be passed with this request:

    Request

    Expand
    titleREMOVEPERSONFAVOURITE

    This web service call removes an item or object from a specific user's favourite list, such as a report, storyboard, view, etc. It also allows a dashboard tab to be removed from a user's dashboard, and even unflag a comment flagged by a user.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "REMOVEPERSONFAVOURITE".

    FavouritePersonFavouriteThis object is used to specify the items to be removed as a user's favourite. The user is also specified here. See the table below for more details.
    Anchor
    listfavpersonlistfavperson
    PersonId
    PersonFavourite

    Element

    Data Type

    Description

    LoginId

    Integer

    A mandatory parameter to identify the user with their internal ID (that is, the IP ID). The items selected will be removed as this user's favourite.

    ContentTypeString

    This mandatory parameter is used to specify the content type of the item to be removed as favourite. Possible values include:

    • REPORT
    • REPORTGROUP
    • DISCUSSIONGROUP
    • REPORTVIEW
    • STORYBOARD
    • IMAGE
    ContentIdIntegerThis mandatory parameter is used to define the item that is to be marked as the user's favourite by providing its internal ID.
    FavouriteTypeStringThis is required to remove reports or dashboards as the user's favourite.
    CreationCodeString 
    TextEntityIdInteger

    This parameter is required if a comment is to be unflagged.

     

     

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "REMOVECONTENTMANAGEMENT".

    parameters

    String[]

    This is used to pass the content management ID as the first string. (Only the first string will be read.)

      

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexmlthemeConfluence
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          	<web:remoteAdministrationCall> 
             <arg0>
                <loginId>admin@yellowfin.com.au</loginId>
                <password>test</password>
                <orgId>1</orgId>
                <function>REMOVEPERSONFAVOURITE</function>
                <favourite>	<arg0>
                	<personId>13000</personId><loginId>admin@yellowfin.com.au</loginId>
                	<contentType>REPORTGROUP<<password>test</contentType>password>
                	<contentId>61209<<orgId>1</contentId>orgId>
                </favourite><function>REMOVECONTENTMANAGEMENT</function>
     	     
      <parameters>73118</parameters>
           	</arg0>
          	</web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>

     

     


    Response Parameters

    The returned response will contain the following parameterthese parameters:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

     

     


    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexmlthemeConfluence
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          	<ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             	<return>
    	            <errorCode>0</errorCode>
                	<messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                	<messages>Web Service Request Complete</messages>
                <sessionId>0cc3673ed857e1e28fb0e326b8f3b24e<<sessionId>5a29f6eaf3ee084b00c76da124f31fe0</sessionId>
    	            <statusCode>SUCCESS</statusCode>
             	</return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>
     

     



    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic Define the request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      themeConfluence
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(new Integer(1));
      
      rsr.setFunction("REMOVEPERSONFAVOURITE");rsr.setFunction("REMOVECONTENTMANAGEMENT");


    • Next, set the content management ID that is to be removed from the cache in the Parameters element:

      Code Block
      languagejava
      rsr.setParameters(new String[] {"73118"});



    • Once the request is configured, perform the callIdentify a user throught the PersonFavourite object:

      Code Block
      languagejava
      PersonFavouriteAdministrationServiceResponse pfrs = new PersonFavourite();
      pf.setPersonId(13073adminService.remoteAdministrationCall(rsr);

      Initialize the Administration web service. Click here to learn how to do this. 


    • Add a check that returns the response containing the StatusCode. (See details in the Response Parameters table above.)Specify the objects that are to be removed as favourites in this object:

      Code Block
      languagejava
      pf.setContentId(61252);
      pf.setContentType("REPORTVIEW");

      Add this object to the request:

      Code Block
      languagejava
      rsr.setFavourite(pf);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode parameter. See the Response Parameter table above for details on this.

       

     

     

    • if ("SUCCESS".equals(rs.getStatusCode()) ) {
                    	out.write("<br>Success");
                    	
      }
      else {
                    	out.write("<br>Failure");
                    	out.write(" Code: " + rs.getErrorCode());
      }




    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ removepersonfavouriteremovecontentmanagement.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user details according to your environment.
    4. Run http://<host>:<port>/ws_ removepersonfavouriteremovecontentmanagement.jsp from your Internet browser.
     


    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_removepersonfavouriteremovecontentmanagement.jsp                                 	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
     
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      		// provide your Yellowfin web services admin account
    rsr.setPassword("test");                            // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("REMOVEPERSONFAVOURITEREMOVECONTENTMANAGEMENT");
     
    PersonFavourite pf = new PersonFavourite();
    pf.setPersonId(13073);
    pf.setContentId(70270);
    pf.setContentType("REPORTVIEW"rsr.setParameters(new String[] {"73118"});
     
    rsr.setFavourite(pf);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    } 
    else {
                  	out.write("Failure<br>Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    }             	
    %>