/* (non-Javadoc)
   * @see com.tsagate.puridiom.process.ITask#executeTask(java.lang.Object)
   */
  public Object executeTask(Object object) throws Exception {
    Map incomingRequest = (Map) object;
    CatalogItem catalogItem = new CatalogItem();
    CatalogItemValues.setValues(object, catalogItem);
    DBSession dbs = (DBSession) incomingRequest.get("dbsession");

    dbs.delete(catalogItem);

    this.setStatus(dbs.getStatus());

    return catalogItem;
  }
 public Object executeTask(Object object) throws Exception {
   Map incomingRequest = (Map) object;
   DBSession dbs = (DBSession) incomingRequest.get("dbsession");
   AutoGen autoGen = (AutoGen) incomingRequest.get("autoGen");
   if (autoGen == null) {
     autoGen = new AutoGen();
   }
   AutoGenSetValuesPK setValues = new AutoGenSetValuesPK();
   setValues.setValues(incomingRequest, autoGen);
   dbs.delete(autoGen);
   this.setStatus(dbs.getStatus());
   return autoGen;
 }
 public Object executeTask(Object object) throws Exception {
   Map incomingRequest = (Map) object;
   DBSession dbs = (DBSession) incomingRequest.get("dbsession");
   SecurityGroup securityGroup = (SecurityGroup) incomingRequest.get("securityGroup");
   if (securityGroup == null) {
     securityGroup = new SecurityGroup();
   }
   SecurityGroupSetValuesPK setValues = new SecurityGroupSetValuesPK();
   setValues.setValues(incomingRequest, securityGroup);
   dbs.delete(securityGroup);
   this.setStatus(dbs.getStatus());
   return securityGroup;
 }
  public Object executeTask(Object object) throws Exception {
    Map incomingRequest = (Map) object;
    DBSession dbs = (DBSession) incomingRequest.get("dbsession");
    UserProfile userProfile = (UserProfile) incomingRequest.get("userProfile");
    if (userProfile == null) {
      userProfile = new UserProfile();
      String userId = (String) incomingRequest.get("UserProfile_userId");
      userProfile.setUserId(userId);
    }

    dbs.delete(userProfile);
    this.setStatus(dbs.getStatus());
    return userProfile;
  }