Description | URL | HTTP Methods |
---|---|---|
List all items in Recycle Bin | http://host:<port>/biprws/v1/users/password | GET POST |
{
"oldpassword":"",
"newpassword":""
}
{
"auth":"",
"cms":"",
"username":"",
"oldpassword":"",
"newpassword":""
}
import com.businessobjects.dsws.session.Session;
....
void changePasswordEnterprieseUser() throws Exception
{
String SESSION_ADDRESS = "http://boeserver:8080/dswsbobje/services/Session";
Session m_session;
SessionStub m_session_Stub;
URL sessConnURL = new URL(SESSION_ADDRESS);
Connection m_sessConnection = new Connection(sessConnURL);
m_session = new Session(m_sessConnection);
EnterpriseCredential credential = EnterpriseCredential.Factory.newInstance();
credential.setAuthType("secEnterprise");
credential.setLogin("administrator");
credential.setPassword("********");
credential.setClientType("test_app");
SessionInfo info = m_session.login(credential);
m_session.changePassword("", "");
}
import com.businessobjects.dsws.session.SessionStub;
....
void changePasswordSAPR3User() throws DSWSException
{
String SESSION_ADDRESS = "http://boeserver:8080/dswsbobje/services/Session";
Session m_session;
SessionStub m_session_Stub;
URL sessConnURL = new URL(SESSION_ADDRESS);
Connection m_sessConnection = new Connection(sessConnURL);
m_session_Stub = new SessionStub(SESSION_ADDRESS);
ChangePasswordDocument cpd = ChangePasswordDocument.Factory.newInstance();
ChangePassword cp = ChangePassword.Factory.newInstance();
cp.setUserName("Bharath");
cp.setAuthType("secSAPR3");
cp.setOldPassword("*********");
cp.setNewPassword("*********");
cp.setSession(null);
cpd.setChangePassword(cp);
m_session_Stub.changePassword(cpd);
}
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.crystaldecisions.sdk.occa.security.IUserInfo;
....
void changePassword(IEnterpriseSession enSession, String oldPassword , String newPassword) throws SDKException
{
try{
IUserInfo userinfo = enSession.getUserInfo();
userinfo.setPassword(oldPassword, newPassword);
}catch(SDKException e){
throw e;
}
}
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.plugin.desktop.user.IUser;
....
void changePassword(IEnterpriseSession enSession, String oldPassword , String newPassword) throws SDKException
{
int user_id = 1234;
String userQuery = "SELECT SI_ID,SI_CUID from CI_INFOOBJECTS,CI_APPOBJECTS,CI_SYSTEMOBJECTS WHERE SI_ID = '"+user_id+"'";
IInfoObjects users = null;
try{
IInfoStore inostore = (IInfoStore) enSession.getService("Inostore");
users = inostore.query(userQuery);
IUser user = (IUser)users.get(0);
user.changePassword(oldPassword, newPassword);
user.save();
}catch(SDKException e){
throw e;
}
}
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
import com.crystaldecisions.sdk.framework.ISessionMgr;
.....
void changePassword(String username, String auth, String cms,String oldPassword , String newPassword) throws SDKException{
try {
ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
sessionMgr.changePassword(username, auth, cms, oldPassword, newPassword);
}
catch(SDKException e){
throw e;
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 |