hasObjectAccess Method hasObjectAccessInSession Method

SecurityService 5-5 For more information about in-session methods, see Section 1.2, About In-Session Methods. Signature boolean hasObjectAccessInSessionstring reportAbsolutePath, string roleName, string bipSessionToken;

5.11 impersonate Method

This method enables an admin account to act on the behalf of a user account. This is very useful if the user doesnt have a known password to be authenticated by BI Publisher server. This method logs in using admin account privilege, then switches the owner of the BI Publisher server session to the passed-in username. Therefore, bipSession token later will be verified by passed-in username. All further BI Publisher operations are performed through give n username. Signature String impersonateString adminUsername, String adminPassword,String username;

5.12 isUserExists Method

Use isUserExists method to test if a user name exists in the BI Publisher security model. This method returns the result as a boolean value. Signature boolean isUserExistsString userName, String adminUser, String adminPassword; Table 5–8 Parameters for hasObjectAccessInSession Method Parameter Description String reportAbsolutePath The absolute path to the report object. String roleName The role associated with the given user. String bipSessionToken The proprietary token string generated for the user by the BI Publisher server. With the bipSessionToken string, the user no longer needs to provide user credentials. The BI Publisher server can validate this token string and restore the BI Publisher server session to perform needed operation. Table 5–9 Parameters for impersonate Method Parameter Description String adminUserName Specifies a BI Publisher user name for a user with administration privileges String adminPassword Specifies the password for the administration user name. String username The username of the user account that will be granted administrator privileges. Table 5–10 Parameters for isUserExists Method Parameter Description String userName The user name to test. 5-6 Developers Guide for Oracle Business Intelligence Publisher

5.13 login Method

Use the login method to log in to BI Publisher and perform other BI Publisher actions using Web Services. The login method returns a String, which will become the BI Publisher session ID Signature String loginString userID, String password;

5.14 logout Method

This method, in effect, logs the specified user out of the system by invalidating the user’s bipSessionToken. After successful logout, the bipSessionToken string is no longer valid. Signature boolean logoutString bipSessionToken;

5.15 notifyBIEEPreferencesUpdated Method

This method is provided for BIEE user preference integration purpose only. Signature boolean notifyBIEEPreferencesupdatedbieeSessionID;

5.16 notifyBIEEPreferencesUpdatedWithString Method

This method is provided for BIEE user preference integration purpose only. String adminUser Specifies a BI Publisher user name for a user with administration privileges. String adminPassword Specifies the password for the administration user name. Table 5–11 Parameters for login Method Parameter Description String userID Specifies the BI Publisher user name. String password Specifies the password for the user name. Table 5–12 Parameters for logout Method Parameter Description String bipSessionToken The BI Publisher session ID. Table 5–13 Parameters for notifyBIEEPreferencesUpdated Method Parameter Description String bieeSessionID The session ID for Oracle Business IntelligenceBI Publisher integration. Table 5–10 Cont. Parameters for isUserExists Method Parameter Description