fluid-api/src/main/java/com/fluidbpm/program/api/vo/role/Role.java
@XmlTransient
    public static List<Role> convertToObjects(String roleListingParam)
    {
        if(roleListingParam == null || roleListingParam.trim().isEmpty())
        {
            return null;
        }

        String[] listOfRoles = roleListingParam.split(UtilGlobal.REG_EX_COMMA);

        List<Role> returnVal = new ArrayList<>();

        for(String roleName : listOfRoles)
        {
            Role roleToAdd = new Role();
            roleToAdd.setName(roleName.trim());

            returnVal.add(roleToAdd);
        }

        return returnVal;
    }
@XmlTransient
    public static List<Role> convertToObjects(String roleListingParam)
    {
        if(roleListingParam == null || roleListingParam.trim().isEmpty())
        {
            return null;
        }

        String[] listOfRoles = roleListingParam.split(UtilGlobal.REG_EX_COMMA);

        List<Role> returnVal = new ArrayList<>();

        for(String roleName : listOfRoles)
        {
            Role roleToAdd = new Role();
            roleToAdd.setName(roleName.trim());

            returnVal.add(roleToAdd);
        }

        return returnVal;
    }
@ XmlTransient public static List < Role > convertToObjects ( String roleListingParam ) { if ( roleListingParam == null || roleListingParam . trim ( ) . isEmpty ( ) ) { return null ; } String [ ] listOfRoles = roleListingParam . split ( UtilGlobal . REG_EX_COMMA ) ; List < Role > returnVal = new ArrayList <> ( ) ; for ( String roleName : listOfRoles ) { Role roleToAdd = new Role ( ) ; roleToAdd . setName ( roleName . trim ( ) ) ; returnVal . add ( roleToAdd ) ; } return returnVal ; }
Convert the comma separated list of roles as objects.

@param roleListingParam The comma separated role listing.
Example; {@code "Admin, Super Admin, HR, Finance"}

@return The {@code roleListingParam} as {@code Role} objects.
Convert the comma separated list of roles as objects .