Example usage for java.util StringTokenizer nextElement

List of usage examples for java.util StringTokenizer nextElement

Introduction

In this page you can find the example usage for java.util StringTokenizer nextElement.

Prototype

public Object nextElement() 

Source Link

Document

Returns the same value as the nextToken method, except that its declared return value is Object rather than String .

Usage

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/app/(*:appId)/(~:version)/userview/delete", method = RequestMethod.POST)
public String consoleUserviewDelete(@RequestParam(value = "ids") String ids, @RequestParam String appId,
        @RequestParam(required = false) String version) {
    AppDefinition appDef = appService.getAppDefinition(appId, version);
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String id = (String) strToken.nextElement();
        userviewDefinitionDao.delete(id, appDef);
    }/*from w w  w. j a v  a 2 s  . c  om*/
    return "console/dialogClose";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/app/(*:appId)/(~:version)/message/delete", method = RequestMethod.POST)
public String consoleAppMessageDelete(@RequestParam(value = "ids") String ids, @RequestParam String appId,
        @RequestParam(required = false) String version) {
    AppDefinition appDef = appService.getAppDefinition(appId, version);
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String id = (String) strToken.nextElement();
        messageDao.delete(id, appDef);//from  w w w  . ja  v a 2  s. com
    }
    return "console/dialogClose";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/app/(*:appId)/(~:version)/envVariable/delete", method = RequestMethod.POST)
public String consoleAppEnvVariableDelete(@RequestParam(value = "ids") String ids, @RequestParam String appId,
        @RequestParam(required = false) String version) {
    AppDefinition appDef = appService.getAppDefinition(appId, version);
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String id = (String) strToken.nextElement();
        environmentVariableDao.delete(id, appDef);
    }//  w ww  . j  a  v  a  2s  .  co  m
    return "console/dialogClose";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/app/(*:appId)/(~:version)/pluginDefault/delete", method = RequestMethod.POST)
public String consoleAppPluginDefaultDelete(@RequestParam(value = "ids") String ids, @RequestParam String appId,
        @RequestParam(required = false) String version) {
    AppDefinition appDef = appService.getAppDefinition(appId, version);
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String id = (String) strToken.nextElement();
        pluginDefaultPropertiesDao.delete(id, appDef);
    }/*from   ww  w  . j  a va2  s  .  com*/
    return "console/dialogClose";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/setting/property/delete", method = RequestMethod.POST)
public String consoleSettingPropertyDelete(@RequestParam(value = "ids") String ids) throws IOException {
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String id = (String) strToken.nextElement();
        Property property = propertyDao.getPropertyById(id);
        propertyDao.delete(property);/*w  w w.j  ava  2  s.c o m*/
    }
    applicationProperties.refresh();
    return "console/dialogClose";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/directory/org/(*:id)/user/assign/submit", method = RequestMethod.POST)
public String consoleOrgUserAssignSubmit(ModelMap model, @RequestParam(value = "id") String id,
        @RequestParam(value = "ids") String ids) {
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String userId = (String) strToken.nextElement();
        employmentDao.assignUserToOrganization(userId, id);
    }/* w w  w .j  a va  2s .c  om*/
    return "console/directory/orgUserAssign";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/directory/org/(*:id)/user/unassign", method = RequestMethod.POST)
public String consoleOrgUserUnassign(@RequestParam(value = "id") String id,
        @RequestParam(value = "ids") String ids) {
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String userId = (String) strToken.nextElement();
        employmentDao.unassignUserFromOrganization(userId, id);
    }//from  ww  w  .  j  a v  a 2s  .  c o  m
    return "console/directory/orgView";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/directory/dept/(*:id)/user/assign/submit", method = RequestMethod.POST)
public String consoleDeptUserAssignSubmit(ModelMap model, @RequestParam(value = "id") String id,
        @RequestParam(value = "ids") String ids) {
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String userId = (String) strToken.nextElement();
        employmentDao.assignUserToDepartment(userId, id);
    }//from  w w  w .  j  ava  2  s  .  c o m
    return "console/directory/deptUserAssign";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/directory/dept/(*:id)/user/unassign", method = RequestMethod.POST)
public String consoleDeptUserUnassign(@RequestParam(value = "id") String id,
        @RequestParam(value = "ids") String ids) {
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String userId = (String) strToken.nextElement();
        employmentDao.unassignUserFromDepartment(userId, id);
    }/*from w w w.ja  v  a 2 s  .  c  o m*/
    return "console/directory/deptView";
}

From source file:org.joget.apps.app.controller.ConsoleWebController.java

@RequestMapping(value = "/console/directory/grade/(*:id)/user/assign/submit", method = RequestMethod.POST)
public String consoleGradeUserAssignSubmit(ModelMap model, @RequestParam(value = "id") String id,
        @RequestParam(value = "ids") String ids) {
    StringTokenizer strToken = new StringTokenizer(ids, ",");
    while (strToken.hasMoreTokens()) {
        String userId = (String) strToken.nextElement();
        employmentDao.assignUserToGrade(userId, id);
    }/* w ww . j a  v  a  2s.  co  m*/
    return "console/directory/gradeUserAssign";
}