* @param status the new status of the job
* @return true if successfull otherwise false
*/
public boolean setJobStatus(String user, String password, int id, String status)
{
Logon logon;
if(!SystemConfiguration.getInstance().getBooleanValue(SystemConfiguration.Key.LDAP_AUTHENTICATION_ENABLED)){
if(log.isDebugEnabled())
log.debug("do local login");
logon = new LocalLogon();
}
else
{
if(log.isDebugEnabled())
log.debug("do ldap login");
logon = new LdapLogon();
}
ActionErrors errors = new ActionErrors();
UserVO uservo = logon.validate(user, password, Logon.Type.WEBSERVICE, errors);
if(uservo != null && errors.isEmpty())
{
Authenticator auth = new Authenticator(uservo);
if(auth.isValid(Right.EXTERN_WEBSERVICE_WRITE))