use of com.iplanet.am.sdk.AMException in project OpenAM by OpenRock.
the class ComplianceServicesImpl method verifyAndDeleteObject.
public void verifyAndDeleteObject(SSOToken token, String profileDN) throws AMException {
try {
Object[] objs = { token.getTokenID().toString(), profileDN };
client.send(client.encodeMessage("verifyAndDeleteObject", objs), sessionCookies.getLBCookie(token.getTokenID().toString()), null);
} catch (AMRemoteException amrex) {
debug.error("ComplianceServicesImpl.verifyAndDeleteObject()- " + "encountered exception=", amrex);
throw RemoteServicesImpl.convertException(amrex);
} catch (RemoteException rex) {
debug.error("ComplianceServicesImpl.verifyAndDeleteObject()- " + "encountered exception=", rex);
throw new AMException(AMSDKBundle.getString("1000"), "1000");
} catch (Exception ex) {
debug.error("ComplianceServicesImpl.verifyAndDeleteObject()- " + "encountered exception=", ex);
throw new AMException(AMSDKBundle.getString("1000"), "1000");
}
}
use of com.iplanet.am.sdk.AMException in project OpenAM by OpenRock.
the class DirectoryManagerImpl method setAttributes.
public void setAttributes(String token, String entryDN, int objectType, Map stringAttributes, Map byteAttributes, boolean isAdd) throws AMRemoteException, SSOException, RemoteException {
initialize();
try {
SSOToken ssoToken = getSSOToken(token);
dsServices.setAttributes(ssoToken, entryDN, objectType, stringAttributes, byteAttributes, isAdd);
} catch (AMException amex) {
if (debug.messageEnabled()) {
debug.message("DirectoryManagerImpl.setAttributes." + " Caught Exception: " + amex);
}
throw convertException(amex);
}
}
use of com.iplanet.am.sdk.AMException in project OpenAM by OpenRock.
the class DirectoryManagerImpl method removeEntry.
public void removeEntry(String token, String entryDN, int objectType, boolean recursive, boolean softDelete) throws AMRemoteException, SSOException, RemoteException {
initialize();
try {
SSOToken ssoToken = getSSOToken(token);
dsServices.removeEntry(ssoToken, entryDN, objectType, recursive, softDelete);
} catch (AMException amex) {
if (debug.messageEnabled()) {
debug.message("DirectoryManagerImpl.removeEntry." + " Caught Exception: " + amex);
}
throw convertException(amex);
}
}
use of com.iplanet.am.sdk.AMException in project OpenAM by OpenRock.
the class DirectoryManagerImpl method createEntry.
public void createEntry(String token, String entryName, int objectType, String parentDN, Map attributes) throws AMRemoteException, SSOException, RemoteException {
initialize();
try {
SSOToken ssoToken = getSSOToken(token);
dsServices.createEntry(ssoToken, entryName, objectType, parentDN, attributes);
} catch (AMException e) {
if (debug.messageEnabled()) {
debug.message("DirectoryManagerImpl.createEntry." + " Caught Exception: " + e);
}
throw convertException(e);
}
}
use of com.iplanet.am.sdk.AMException in project OpenAM by OpenRock.
the class DirectoryManagerImpl method changePassword.
public void changePassword(String token, String entryDN, String attrName, String oldPassword, String newPassword) throws AMRemoteException, SSOException, RemoteException {
initialize();
try {
SSOToken ssoToken = getSSOToken(token);
dsServices.changePassword(ssoToken, entryDN, attrName, oldPassword, newPassword);
} catch (AMException amex) {
if (debug.messageEnabled()) {
debug.message("DirectoryManagerImpl.setAttributes." + " Caught Exception: " + amex);
}
throw convertException(amex);
}
}
Aggregations