query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
/////////////////////////////////// controle de saisie
|
public boolean verifisTel(String text) {
if (text.matches("^[0-9]+$")&& text.length()==8) {
return true;
} else {
return false;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void validerSaisie();",
"public void sendeSpielfeld();",
"public void sinyal();",
"private static void cajas() {\n\t\t\n\t}",
"public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\r\n public void salir() {\n }",
"public void selecao () {}",
"@Override\n\tpublic void salir() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"private UsineJoueur() {}",
"public abstract Koordinate schuss();",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public void asetaTeksti(){\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public IzvajalecZdravstvenihStoritev() {\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"Secuencia createSecuencia();",
"public SiacTRecapitoSoggetto() {\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}",
"private void remplirUtiliseData() {\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"protected Asignatura()\r\n\t{}",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initVentajas() {\n\r\n\t}",
"@Override\n public void perish() {\n \n }",
"public void Ordenamiento() {\n\n\t}",
"Petunia() {\r\n\t\t}",
"public Saida() {\n initComponents();\n defaults();\n preencherTabela();\n \n }",
"private void poetries() {\n\n\t}",
"public void miseAJour();",
"private void limpiarDatos() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public Spielflaeche getSpielflaeche() {return spielflaeche;}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override public String getMasa(){\n return \"gruesa \";\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"void pasarALista();",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"@Override\n\tpublic void iniciar() {\n\t\t\n\t}",
"public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}",
"@Override\n public int getSalida() {\n return 0;\n }",
"public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}",
"public void stg() {\n\n\t}",
"public AntrianPasien() {\r\n\r\n }",
"private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }",
"public interface Sess\r\n {\r\n /** The logged in user. Object with the type 'User' */\r\n String USER = \"user\";\r\n \r\n /** Hotel settings. Object with the type 'Hotel' */\r\n String HOTEL = \"hotel\";\r\n \r\n /** Countries in alphabetical order, array of hg.util.Country objects. */\r\n String COUNTRIES = \"countries\";\r\n \r\n /** Which tab on the main page is active. */\r\n String ACTIVE_TAB = \"activetab\";\r\n }",
"@Override\r\n\tpublic String sonido() {\n\t\treturn \"Miauu\";\r\n\t}",
"public void niveauSuivant() {\n niveau = niveau.suivant();\n }",
"public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}",
"@Override\n\tvoid geraDados() {\n\n\t}",
"private void remplirPrestaraireData() {\n\t}",
"public Seance_Salle(int id_seance,int id_salle)\r\n {\r\n this.id_salle=id_salle;\r\n this.id_seance=id_seance;\r\n }",
"public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }",
"protected FanisamBato(){\n\t}",
"public void skystonePos6() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void sout() {\n\t\t\n\t}",
"private void ss(){\n }",
"@Override\n protected void getExras() {\n }",
"@java.lang.Override\n public int getStamina() {\n return stamina_;\n }",
"@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }",
"public void mo38117a() {\n }",
"public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}",
"@java.lang.Override\n public int getStamina() {\n return stamina_;\n }",
"public static void printSieger(){\n System.out.println(\"Sieger ist \" +GameController.SIEGER);\n }",
"public void sendeSpielStarten();",
"public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public void leerAlimentos();",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"public void inicializar();",
"public SlanjePoruke() {\n }",
"public void trenneVerbindung();",
"public void skystonePos5() {\n }",
"@Override public String getQueso(){\n return \"manchego \";\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public int getStamina() {\n \t\treturn stamina;\n \t}",
"public void skystonePos4() {\n }",
"protected void accionUsuario() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"public void themesa()\n {\n \n \n \n \n }",
"private DittaAutonoleggio(){\n \n }",
"public SisRol() {\n\t}"
] |
[
"0.7040881",
"0.6650081",
"0.6645409",
"0.6592165",
"0.6503555",
"0.6437071",
"0.64255095",
"0.6375213",
"0.63699585",
"0.63479537",
"0.6340272",
"0.632486",
"0.6315668",
"0.62993705",
"0.6292997",
"0.624402",
"0.6180158",
"0.61452466",
"0.6129121",
"0.6116451",
"0.6110207",
"0.60312414",
"0.6016698",
"0.60062253",
"0.59896404",
"0.59861034",
"0.5978525",
"0.5977467",
"0.5975297",
"0.59626746",
"0.5954591",
"0.5937718",
"0.5916321",
"0.59153295",
"0.5893613",
"0.5892064",
"0.58912176",
"0.5889456",
"0.5882125",
"0.5877713",
"0.5874471",
"0.5872484",
"0.5858556",
"0.58539915",
"0.58389235",
"0.5838003",
"0.5827403",
"0.5825791",
"0.58198965",
"0.5800796",
"0.5798874",
"0.5794452",
"0.5788165",
"0.5774773",
"0.5774148",
"0.57727873",
"0.5771844",
"0.5768051",
"0.57623017",
"0.5761795",
"0.5757093",
"0.57556593",
"0.57499725",
"0.57494384",
"0.5747105",
"0.57455206",
"0.57385695",
"0.5733231",
"0.5732285",
"0.5731432",
"0.57289714",
"0.57276016",
"0.5718349",
"0.5716577",
"0.5714266",
"0.57106763",
"0.5705942",
"0.57044137",
"0.56938916",
"0.5689245",
"0.56864125",
"0.5685974",
"0.5684982",
"0.566419",
"0.5661333",
"0.56529105",
"0.56507933",
"0.56433356",
"0.5642795",
"0.5639836",
"0.5635336",
"0.56349134",
"0.563126",
"0.5630756",
"0.5620619",
"0.561759",
"0.56152695",
"0.561448",
"0.5608498",
"0.5607254",
"0.56069136"
] |
0.0
|
-1
|
gives me the data inside each student
|
private static void printList(Student[] students)
{
for(int index = 0; index < students.length; index++)
{
System.out.println(students[index].toString());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }",
"public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }",
"public List<Student> getAllStudentData() {\r\n\t\tList<Student> list = new ArrayList<Student>();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tStudent stud = new Student();\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t\tlist.add(stud);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}",
"public ArrayList<Student> GetAllStudentData() {\n\t\tArrayList<Student> result = new ArrayList<>();\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tArrayList<Student> theData = curr.data.students.getStudentData();\n\t\t\tfor (int i = 0; i <= curr.data.students.getStudentDataCount() - 1; i++) {\n\t\t\t\tresult.add(theData.get(i));\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn result;\n\t}",
"public List <Student> getAllStudents();",
"List<Student> getAllStudents();",
"List<Student> getStudent();",
"java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();",
"private static void showStudentDB () {\n for (Student s : studentDB) {\n System.out.println(\"ID: \" + s.getID() + \"\\n\" + \"Student: \" + s.getName());\n }\n }",
"List<Map<String, Object>> getStudentsList();",
"@Override\r\n public List<String> getStudenti() {\r\n List<Studente> listaStudenti = studenteFacade.findAll();\r\n List<String> result = new ArrayList<>();\r\n\r\n for (Studente s : listaStudenti) {\r\n result.add(s.toString());\r\n }\r\n return result;\r\n }",
"public String getStudents(){\n\t\treturn this.students;\n\t}",
"public ArrayList getStudents();",
"@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}",
"public Student getStudents() {\n\t\treturn this.student;\n\t}",
"public ArrayList<Student> getStudents() {\n\n ArrayList<Student> students = new ArrayList<Student>();\n String query = \"SELECT * FROM student\";\n try{\n result = statement.executeQuery(query);\n while(result.next()) {\n\n String id = Integer.toString(result.getInt(\"student_id\"));\n String firstName = result.getString(\"student_first_name\");\n String lastName = result.getString(\"student_last_name\");\n String degree = result.getString(\"degree\");\n String yearOfStudy = result.getString(\"year_of_study\");\n String outcome = result.getString(\"outcome\");\n students.add(new Student(id, firstName, lastName, degree, yearOfStudy, outcome));\n\n }\n }\n catch (SQLException e){\n\n }\n\n return students;\n }",
"@Override\n\t public List<Student> getAllStudent(BigInteger stdId){\n\t \t\n\t\t \n\t \treturn (List<Student>) studentrepo.findAll(); \t\n\t }",
"static List<Student> getStudents() {\n return students;\n }",
"com.demo.springprotobuff.Demoproto.Student getStudent(int index);",
"public void printModuleStudentInfo() {\t\r\n\tfor(int i =0; i<(StudentList.size()); i++) {\r\n\t\tStudent temp =StudentList.get(i);\r\n\t\tSystem.out.println(temp.getUserName());\r\n\t}\t\r\n}",
"public com.demo.springprotobuff.Demoproto.Student getStudent(int index) {\n\t\t\treturn student_.get(index);\n\t\t}",
"public static ArrayList<Student> getAllStudenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] {};\n\t\t\trp.type = RequestType.GET_ALL_STUDENTS;\n\t\t\tReceiveContent rps = sendReceive(rp);\n\t\t\treturn (ArrayList<Student>) rps.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SendNewsLetter error\");\n\t\t}\n\t\treturn new ArrayList<Student>();\n\t}",
"public Iterable<StudentQualificationPersonDetail> getStudentRegisteredData(){\n\t\t\n\t\treturn sqcRepository.findAll();\n\t}",
"public ArrayList<Marks> getMarks(Student student) {\n\n ArrayList<Marks> marks = new ArrayList<>();\n String query = String.format(\"SELECT * FROM enrollment WHERE student_id = '%s'\", student.getId());\n\n try {\n\n result = statement.executeQuery(query);\n\n while(result.next()){\n String yearMark = result.getString(\"year_mark\");\n String examMark = result.getString(\"exam_mark\");\n String finalMark = result.getString(\"final_mark\");\n String tutAttendance = result.getString(\"tut_attendance\");\n String outcome = result.getString(\"outcome\");\n String course_id = result.getString(\"course_code\");\n String course = getCourseName(course_id);\n marks.add(new Marks(course, yearMark, examMark, finalMark, outcome, tutAttendance));\n }\n return marks;\n }\n catch (SQLException e){\n return marks;\n }\n }",
"public List<String> getStudents();",
"public String getStudentsInCourse() {\n String output = \"\"; \n for (Student student : students) { // enhanced for\n output += student.toString() + \"\\n\";\n } // end for\n return output;\n }",
"public ArrayList<Student> retrieveAllCurrent() {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE users.type LIKE 'Student';\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.setTime(date);\r\n\t\t\r\n\t\tint currYear = cal.get(cal.YEAR);\r\n\t\tint currMth = cal.get(cal.MONTH);\r\n\t\t\r\n\t\tint year = 0;\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamId \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tint matricYear = Integer.parseInt(username.substring(username.length() - 4, username.length()));\r\n\t\t\t\t\r\n\t\t\t\tyear = currYear - matricYear;\r\n\t\t\t\t\r\n\t\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamId, prefRole);\r\n\t\t\t\t\r\n\t\t\t\tif(currMth > 8){\r\n\t\t\t\t\tyear++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(year == 3 || year == 4){\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}",
"@Override\n public void onSuccess(List<Student> students) {\n for (int i = 0; i < students.size(); i++) {\n // continue == lewati\n // berarti lewati student dengan status alumni\n\n if (students.get(i).getStatus().equals(\"alumni\")) continue;\n //hanya berisi student dengan status selain alumni\n System.out.println(\"NIM : \" + students.get(i).getNim());\n System.out.println(\"Name : \" + students.get(i).getName());\n System.out.println(\"Class : \" + students.get(i).getKlas());\n System.out.println(\"Status : \" + students.get(i).getStatus());\n System.out.println();\n }\n }",
"public void getStudentNameStudentDsc()\n\t{\n\t\tDatabaseHandler db = new DatabaseHandler(getApplicationContext());\n\n\t\tstudent_name_list_studname_dsc = db.getStudentNameAllEnquiryStudentDsc();\n\t\tIterator itr = student_name_list_studname_dsc.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t}",
"public void printStudents()\n {\n for(Student s : students)\n System.out.println(s);\n }",
"public HashMap<Integer, Student> getStudents() {\n return _students;\n }",
"@Override\n\tpublic Iterator<Student> selectAll() {\n\t\tString sql=\"SELECT a.id,a.num,a.name,a.email,a.phone,a.degree,a.project,a.school,b.name,a.is_cap from tc_student as a,tc_school as b where a.school=b.id\";\n\t\tArrayList<Student> arr=new ArrayList<Student>();\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tStudent stu=new Student();\n\t\t\t\tstu.setId(rs.getInt(1));\n\t\t\t\tstu.setNum(rs.getString(2));\n\t\t\t\tstu.setName(rs.getString(3));\n\t\t\t\tstu.setEmail(rs.getString(4));\n\t\t\t\tstu.setPhone(rs.getString(5));\n\t\t\t\tstu.setDegree(rs.getShort(6));\n\t\t\t\tstu.setProject(rs.getInt(7));\n\t\t\t\tstu.setSchool(rs.getInt(8));\n\t\t\t\tstu.setSchoolstring(rs.getString(9));\n\t\t\t\tstu.setIs_cap(rs.getInt(10));\n\t\t\t\tstu.setDegreestring(degreemap[stu.getDegree()]);\n\t\t\t\tarr.add(stu);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn arr.iterator();\n\t}",
"@Override\n\tpublic JSONObject selectClassifyStudents(Student student) throws Exception {\n\t\t\n\t\tJSONObject retObject = new JSONObject() ;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tstudent.setClassify(\"cs\") ;\n\t\n\t\t\tList<Student> lst_cs = registerMapper.selectClassifyStudents(student) ;\n\t\t\tretObject.put(\"students_cs\", JSONArray.fromObject(lst_cs)) ;\n\t\t\t\n\t\t\tstudent.setClassify(\"sh\") ;\n\t\t\tList<Student> lst_sh = registerMapper.selectClassifyStudents(student) ;\n\t\t\tretObject.put(\"students_sh\", JSONArray.fromObject(lst_sh)) ;\n\t\t\t\n\t\t\tstudent.setClassify(\"yjf\") ;\n\t\t\tList<Student> lst_yjf = registerMapper.selectClassifyStudents(student) ;\n\t\t\tretObject.put(\"students_yjf\", JSONArray.fromObject(lst_yjf)) ;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RunTimeException(e.getMessage()) ;\n\t\t}\n\t\treturn retObject ;\n\t}",
"@Override\n\tpublic Map<String, Object> getStudent() {\n\t\treturn getSession().selectOne(getNamespace() + \"getStudent\");\n\t}",
"@Test\n public void testFindAllStudents() throws Exception {\n List<Students> list = cs.findAllStudents();\n for (Students stu :\n list) {\n System.out.println(stu);\n }\n }",
"public java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList() {\n\t\t\treturn student_;\n\t\t}",
"public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }",
"@Override\r\n\tpublic List<Student> getStudents(String courseName) {\n\t\tList<Student> students=new ArrayList<>();\r\n\t\tString sql=\"select studentid, studentname, studentshv.courseid from studentshv inner join courseshv on studentshv.courseid=courseshv.courseid where coursename=?\";\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, courseName);\r\n\t\t\tResultSet rs=pstmt.executeQuery();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tlong studentId=rs.getLong(\"studentid\");\r\n\t\t\t\tString studentName=rs.getString(\"studentname\");\r\n\t\t\t\tlong courseId=rs.getLong(\"courseid\");\r\n\t\t\t\tstudents.add(new Student(studentId,studentName,courseId));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn students;\r\n\t}",
"@Override\n\tpublic List<Student> getAllStudents() {\n\t\tList<Student> students = new ArrayList<Student>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t//select CAST(gpa as DECIMAL(3,2)) AS gpa from student;\n\t\t\t//ResultSet rs = stmt.executeQuery(\"select * from student\");\n\t\t\tResultSet rs = stmt.executeQuery(\"select ID, Firstname, Lastname, Program, CAST(gpa as DECIMAL(3,2)) AS gpa from student\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tStudent stu = new Student();\n\t\t\t\tstu.setStudentid(rs.getInt(\"ID\"));\n\t\t\t\tstu.setFirstname(rs.getString(\"Firstname\"));\n\t\t\t\tstu.setLastname(rs.getString(\"Lastname\"));\n\t\t\t\tstu.setProgram(rs.getString(\"Program\"));\n\t\t\t\tstu.setGpa(rs.getDouble(\"GPA\"));\n\n\t\t\t\tstudents.add(stu);\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn students;\n\t}",
"abstract public void showAllStudents();",
"public ArrayList<Student> getAllStudents()\n {\n Cursor cursor = sqlServices.getData(USER_TABLE, null, USER_IS_TEACHER + \" = ?\",\n new String[]{\"0\"});\n return getStudentFromCursor(cursor);\n }",
"public List<student> getAllStudent() { \n List<student> studentArrayList = new ArrayList<>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table; // PALITAN TO NG TABLE NAME NIYO\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n student student = new student(); //PALITAN NG MGA DAPAT PALITAN NA VARIABLES\n student.setId(Integer.parseInt(cursor.getString(0)));\n student.setfName(cursor.getString(1));\n student.setlName(cursor.getString(2));\n studentArrayList.add(student);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return studentArrayList;\n }",
"public void getStudentNameStudentAsc()\n\t{\n\t\tDatabaseHandler db = new DatabaseHandler(getApplicationContext());\n\n\t\tstudent_name_studname_asc = db.getStudentNameAllEnquiryStudentAsc();\n\t\tIterator itr = student_name_studname_asc.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t}",
"public static List<StudentInfo> searchStudentInfo(String firtname, String lastname) {\r\n \r\n List<StudentInfo> students = new ArrayList<>();\r\n \r\n // declare resultSet\r\n ResultSet rs = null;\r\n \r\n // declare prepared statement\r\n PreparedStatement preparedStatement = null;\r\n \r\n // declare connection\r\n Connection conn = null;\r\n try {\r\n // get connection\r\n conn = DBUtils.getConnection();\r\n\r\n // set prepared statement\r\n preparedStatement = conn\r\n .prepareStatement(\"SELECT instructor.FName, instructor.LName,\" +\r\n \" IF(EXISTS ( SELECT * FROM gra WHERE gra.StudentId = phdstudent.StudentId) , 'GRA', \" +\r\n \" IF(EXISTS ( SELECT * FROM gta WHERE gta.StudentId = phdstudent.StudentId) , 'GTA', \" +\r\n \" IF(EXISTS ( SELECT * FROM scholarshipsupport WHERE scholarshipsupport.StudentId = phdstudent.StudentId) , 'scholarship', \" +\r\n \" IF(EXISTS ( SELECT * FROM selfsupport WHERE selfsupport.StudentId = phdstudent.StudentId) , 'self', ''))\" +\r\n \" )) AS StudentType, \" +\r\n \" milestone.MName, milestonespassed.PassDate\" +\r\n \" FROM phdstudent left join instructor on instructor.InstructorId = phdstudent.Supervisor\"\r\n + \" left join milestonespassed on phdstudent.StudentId = milestonespassed.StudentId\"\r\n + \" left join milestone on milestonespassed.MID = milestone.MID\" +\r\n \" WHERE phdstudent.FName = ? AND phdstudent.LName = ?\");\r\n \r\n // execute query\r\n preparedStatement.setString(1, firtname);\r\n preparedStatement.setString(2, lastname); \r\n\r\n rs = preparedStatement.executeQuery();\r\n \r\n //iterate and create the StudentInfo objects\r\n while (rs.next()) {\r\n \r\n students.add(new StudentInfo(rs.getString(1)+ \" \" + rs.getString(2), rs.getString(3), rs.getString(4), \r\n utils.Utils.toDate(rs.getDate(5))));\r\n\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n finally {\r\n DBUtils.closeResource(conn);\r\n DBUtils.closeResource(preparedStatement);\r\n DBUtils.closeResource(rs);\r\n } \r\n \r\n return students; \r\n }",
"public List getStudentList() throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n\n return list;\n } finally {\n log.debug(\"finished getStudentList\");\n }\n }",
"private static String searchStudent ( int studentId){\n for (Student s : studentDB) {\n if (s.getID() == studentId) {\n return s.getName();\n }\n }\n return \"\";\n }",
"public String getStudentList()\n\t{\n\t\tString courseOutput = \"\";\n\t\tint studentNum = 1;\n\t\t\n\t\tfor(Student student: classRoll)\n\t\t{\n\t\t\tcourseOutput += studentNum + \". \" + student + \"\\n\";\t\n\t\t\t\t//adds a Student to the already created string one student at a time\n\t\t\tstudentNum++;\n\t\t}\n\t\t\n\t\tcourseOutput = getCourseName() + getCourseNumber() + getInstructor() + courseOutput;\n\t\treturn courseOutput;\n\t}",
"public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}",
"public List<User_info> getListStudent(long course_id) {\n try {\n \tConnection conn = DBConnect.getConnecttion();\n String sql = \"select * from user_info,course_user where course_user.course_id='\"+course_id+\"' and user_info.id =course_user.id and user_info.quyen=2 \";\n ps = conn.prepareStatement(sql);\n rs = ps.executeQuery();\n \n List<User_info> listStudent = new ArrayList<User_info>();\n while (rs.next()) {\n \tUser_info u = new User_info();\n \tu.setId(rs.getLong(1));\n \tu.setTen(rs.getString(2));\n \tu.setSodienthoai(rs.getString(3));\n \tu.setGioitinh(rs.getInt(4));\n \tu.setNgaysinh(rs.getString(5));\n \tu.setEmail(rs.getString(6));\n \tu.setAnhdaidien(rs.getString(7));\n \tu.setDiachi(rs.getString(8));\n \tu.setQuyen(rs.getInt(9));\n \tlistStudent.add(u);\n }\n conn.close();\n return listStudent;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"@Override\r\n\tpublic Student[] getStudents() {\n\t\treturn this.students;\r\n\t}",
"Student findWithSectionsBy(int studentNumber);",
"@GetMapping(path = \"/std/all\")\n\tpublic @ResponseBody Iterable<student> getAllStsudents() {\n\t\treturn studentRepo.findAll();\n\n\t}",
"public static void display_student() {\n\t\t\n\n \n\t\n\ttry {\n\t\t//jdbc code\n\t\tConnection connection=Connection_Provider.creatC();\t\t\n\n\t\tString q=\"select * from students\";\n\t\t// Create Statement\n\t\tStatement stmt=connection.createStatement();\n\t\tResultSet result=stmt.executeQuery(q);\n\t\twhile (result.next()) {\n\t\t\tSystem.out.println(\"Student id \"+result.getInt(1));\n\t\t\tSystem.out.println(\"Student Name \"+result.getString(2));\n\t\t\tSystem.out.println(\"Student Phone No \"+result.getInt(3));\n\t\t\tSystem.out.println(\"Student City \"+result.getString(4));\n\t\t\tSystem.out.println(\"=========================================\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\t\t\n\t}",
"public String getStudent(){\n\t\t\n\t\treturn this.student;\n\t}",
"@RequestMapping(value=\"/students\", method=RequestMethod.GET) //MediaType.APPLICATION_XML_VALUE\r\n\tpublic List<Student> getStudentsList() {\r\n\t\tArrayList<Student> list = new ArrayList<Student>();\r\n\t\tlist.add(new Student(\"Kaja\", \"Piloun\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Paja\", \"Pilouna\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Vaja\", \"Pilounen\", \"123465\", 25, null));\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"public ArrayList<Studentdto> studentList() throws Exception {\n\t\tArrayList<Studentdto> studentlist = new ArrayList<Studentdto>();\n\t\tConnection con = null;\n\t\tcon = DBConnector.dbConnection();\n\t\ttry {\n\t\t\tPreparedStatement st = con.prepareStatement(\n\t\t\t\t\t\"select student_name,college_name, course_name,phn_no,address from student s ,college co,course cr where s.course_id=cr.course_id and s.college_id=co.college_id\");\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\tint i = 1;\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudentdto studentdto = new Studentdto();\n\t\t\t\tstudentdto.setSlno(i++);\n\t\t\t\tstudentdto.setStudentname(rs.getString(1));\n\t\t\t\tstudentdto.setCollegename(rs.getString(2));\n\t\t\t\tstudentdto.setCoursename(rs.getString(3));\n\t\t\t\tstudentdto.setAddress(rs.getString(4));\n\t\t\t\tstudentdto.setPhno(rs.getString(5));\n\t\t\t\tstudentlist.add(studentdto);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (SQLSyntaxErrorException e) {\n\t\t\tthrow new SQLSyntaxErrorException(\"Error in SQL syntax\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Connection with database failed\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Some error occured\");\n\t\t}\n\t\treturn studentlist;\n\t}",
"public ArrayList<Student> getAllStudentInfo(String student_id,\n\t\t\tString roll_no) {\n\t\tArrayList<Student> studentList = new ArrayList<Student>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ASSIGNMENT\n\t\t\t\t+ \" WHERE \" + KEY_STUDENT_ID + \"=\" + student_id + \" AND \"\n\t\t\t\t+ KEY_ROLL_NO + \"=\" + roll_no;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tStudent info = new Student();\n\t\t\tinfo.row_id = Integer.parseInt(cursor.getString(0));\n\t\t\tinfo.id = cursor.getString(1);\n\t\t\tinfo.name = cursor.getString(2);\n\t\t\tinfo.roll_no = cursor.getString(3);\n\t\t\tinfo.section_id = cursor.getString(4);\n\t\t\tinfo.subject_id = cursor.getString(5);\n\t\t\tinfo.teacher_id = cursor.getString(6);\n\t\t\t// Adding contact to list\n\t\t\tstudentList.add(info);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn studentList;\n\t}",
"@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}",
"public ArrayList<String> getStudentsByClass(String stud_info) {\n\n ArrayList<String> arrayList = new ArrayList<>();\n Cursor cursor;\n try {\n cursor = liteDatabase.rawQuery(\"SELECT s.stud_name FROM student_data s, class_data c WHERE \" +\n \" s.ssg = c.ssg_id AND s.ssg ='\" + stud_info + \"'\",null);\n if (cursor != null) {\n cursor.moveToFirst();\n while (cursor.isAfterLast() == false) {\n arrayList.add(cursor.getString(cursor.getColumnIndex(KEY_STUDENT_NAME)));\n //arrayList.add(cursor.getString(cursor.getColumnIndex(KEY_STUDENT_ROLL)));\n cursor.moveToNext();\n }\n }\n }catch (Exception e){\n Toast.makeText(this, \"\"+e, Toast.LENGTH_SHORT).show();\n }\n return arrayList;\n }",
"Student[] getStudents(){\n\t\treturn enrolled.toArray(new Student[enrolled.size()]);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tpublic List<Student> listStudent() {\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Student\").list();\n\t\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"student ID --> \"+this.studentID+\", Name --> \"+this.studentName;\n\t}",
"public static void displayStudentRecords() {\n\t\tSystem.out.println(\"Student records in the database are:\");\n\t\tSelectStudentRecords records = new SelectStudentRecords();\n\t\ttry {\n\t\t\tList<Student> studentList = records.selectStudentRecords();\n\t\t\tstudentList.forEach(System.out::println);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }",
"public List<UserTO> getStudentsAcsi(String nodeId) throws Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<UserTO> students = new ArrayList<UserTO>();\r\n\t\tUserTO student = null;\r\n\t\ttry {\r\n\t\t\tconn = driver.connect(DATA_SOURCE, null);\r\n\t\t\t\r\n\t\t\tString query = \" SELECT * FROM (SELECT stu.org_nodeid, \" +\r\n\t\t\t\t\t\"stu.last_name || ', ' || stu.first_name || ' ' || stu.middle_name, grd.grade_code \" +\r\n\t\t\t\t\t\"FROM student_bio_dim stu, grade_dim grd WHERE grd.gradeid = stu.gradeid AND stu.org_nodeid = ? ORDER BY stu.last_name, stu.first_name, stu.middle_name \" +\r\n\t\t\t\t\t\" ) WHERE ROWNUM < 6 \";\r\n\t\t\t\r\n\t\t\tString[] nodearr = nodeId.split(\",\");\r\n\t\t\tint count = 0;\r\n\t\t\tStringBuffer queryBuf = new StringBuffer();\r\n\t\t\tfor(String node : nodearr) {\r\n\t\t\t\tif(count > 0) {\r\n\t\t\t\t\tqueryBuf.append(\"UNION ALL\");\r\n\t\t\t\t}\r\n\t\t\t\tcount++;\r\n\t\t\t\tqueryBuf.append(query);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpstmt = conn.prepareCall(queryBuf.toString());\r\n\t\t\t//logger.info(queryBuf.toString());\r\n\t\t\tcount = 0;\r\n\t\t\tfor(String node : nodearr) {\r\n\t\t\t\tpstmt.setString(++count, node);\r\n\t\t\t}\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tstudent = new UserTO();\r\n\t\t\t\tstudent.setOrgNodeId(rs.getString(1));\r\n\t\t\t\tstudent.setStudentName(rs.getString(2));\r\n\t\t\t\tString grade = rs.getString(3);\r\n\t\t\t\tInteger gradeInt = new Integer(grade);\r\n\t\t\t\tstudent.setGrade(gradeInt.toString());\r\n\t\t\t\tstudents.add(student);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry {rs.close();} catch (Exception e2) {}\r\n\t\t\ttry {pstmt.close();} catch (Exception e2) {}\r\n\t\t\ttry {conn.close();} catch (Exception e2) {}\r\n\t\t}\r\n\t\tlogger.info(\"Returning \" + students.size() + \" Students\");\r\n\t\treturn students;\r\n\t}",
"public List<PresentyData> getStudentist() {\n return stList;\n }",
"public String[] getStudents() {\n\t\treturn students;\n\t}",
"@GetMapping(\"/students\")\n\tpublic List<Student> getStudents(){\n\t\n\t\treturn theStudents;\n\t}",
"public static void printStudentInfo() {\n\t\tfor (Student student : StudentList)\n\t\t\tSystem.out.println(\"Name: \" + student.getName() + \" Matric Number: \" + student.getMatricNo() + \" Degree:\"\n\t\t\t\t\t+ student.getDegree());\n\t}",
"@Override\n public List<ArrayList<String>> queryStudentPersonalData(Token token, int studentID) {\n List<ArrayList<Object>> objList = null;\n\n try {\n objList = queryStudentPersonalData1(token, studentID);\n } catch (SCRSException e) {\n System.out.println(e.getMessage());\n return null;\n }\n List<ArrayList<String>> result = UtilMethods.convertObjListToStringList(objList);\n return result;\n }",
"List<StudentRecord> getStudents(String clientId) throws Exception;",
"public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }",
"public ArrayList<Student> getStudents()\n {\n return students;\n }",
"public void viewStudents(List<Student> studentList) {\n\t\tfor (Student student : studentList) {\n\t\t\tSystem.out.format(\"%5d | \", student.getId());\n\t\t\tSystem.out.format(\"%20s | \", student.getName());\n\t\t\tSystem.out.format(\"%5d | \", student.getAge());\n\t\t\tSystem.out.format(\"%20s | \", student.getAddress());\n\t\t\tSystem.out.format(\"%10.1f%n\", student.getGpa());\n\t\t}\n\t}",
"public StudentDataBase getStudents() {\n return students;\n }",
"@Override\r\n\tpublic List<Student> getAllStudents() {\n\t\treturn studentRepository.findAll();\r\n\t}",
"@RequestMapping( value = \"/{id}/student\", method = RequestMethod.GET )\n public Set<StudentDTO> readStudents(@PathVariable(value=\"id\") long id){\n return classService.read(id).getStudents();\n }",
"public String getStudentnames() {\r\n return studentnames;\r\n }",
"@FXML\n public void getStudent() throws FileNotFoundException, IOException, SQLException{\n \n lastclicked =\"s\";\n \n String search = SN.getText();\n ArrayList<String> courses = new ArrayList<>();\n \n \n if(!search.equals(\"\")){\n data.clear();\n Connection myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/users\", \"root\", \"simnew96\"); \n Statement myStatement = myConn.createStatement();\n ResultSet rs = myStatement.executeQuery(\"SELECT users.participants.student_id, users.participants.courses FROM users.participants\\n\" +\n \"WHERE users.participants.student_id = '\"+search+\"'\");\n while(rs.next()){\n courses.add(rs.getString(\"courses\"));\n \n }\n System.out.println(courses.toArray().toString());\n \n \n for(int i=0;i<courses.size(); i++){\n \n String table1 = courses.get(i).toLowerCase()+\"_marks\";\n ResultSet rs1 = myStatement.executeQuery(\"SELECT * FROM users.\"+table1+\" WHERE studentname='\"+search.toUpperCase()+\"'\");\n String currentcourse =courses.get(i);\n this.getData_and_Set(rs1, currentcourse);\n \n }\n //TRACING\n //System.out.println(data.get(1));\n \n myConn.close();\n \n }\n SN.clear();\n }",
"public ArrayList<Student> getStudentList()\r\n\t {\r\n\t\treturn studentList;\r\n\t\t\r\n\t }",
"public static List<Student> getStudents() {\n\t\tList<Student> students = new ArrayList<>();\n\t\t\n\t\t// add sample data\n\t\tstudents.add(new Student(\"James\", \"Richt\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Kelly\", \"Lou\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Lin\", \"Howe\", \"[email protected]\"));\n\t\t\n\t\t// return the list\n\t\treturn students;\n\t}",
"public static void show(Student[] student){\n for(int i=0;i<student.length;i++){\n System.out.printf(\"First Name: %s Last Name: %s Gender: %s Student ID: %d GPA: %,.2f Department: %s Midterm Grade: %d Final Grade: %d %n\",student[i].getFirstName(),student[i].getLastName(),student[i].getGender(),student[i].getStudentID(),student[i].getGPA(),student[i].getDepartment(),student[i].getExamGrade().getMidtermExamGrade(),student[i].getExamGrade().getFinalExamGrade());\n }\n }",
"public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}",
"public void printStudentList()\n {\n for(int i = 0; i < students.size(); i++)\n System.out.println( (i + 1) + \". \" + students.get(i).getName());\n }",
"public Student getStudent(int index)\n {\n return students.get(index);\n }",
"public List<Student> getCampusStudent(Campus c) {\n\t\tList<Student> allStudentList = new ArrayList<Student>();\n\t\tConnection conn = DBUtil.getConn();\n\t\tStatement stmt = DBUtil.createStmt(conn);\n\t\tString sql = \"select * from student where ville='%s' and region='%s' order by stu_ID \";\n\t\tsql = String.format(sql, c.getVille(), c.getRegion());\n\t\tSystem.out.println(sql);\n\t\tResultSet rst = DBUtil.getRs(stmt, sql);\n\t\ttry {\n\t\t\twhile (rst.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tfillRsStudent(rst, student);\n\t\t\t\tallStudentList.add(student);\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn allStudentList;\n\t}",
"public student getstudent(Integer id);",
"@Override\r\n\tpublic Student getStudent(int index) {\n\t\treturn this.students[index];\r\n\t}",
"private void printStudListByCourse() throws Exception {\n String courseID = null;\n ArrayList<Student> studentList = new ArrayList<Student>();\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"\\nPlease enter course ID\");\n courseID = sc.nextLine();\n while(!courseID.matches(\"^[a-zA-Z]{2}[0-9]{4}$\")){\n System.out.println(\"Invalid input! Please enter a valid index number!\");\n courseID = sc.nextLine();\n }\n\n studentList= this.adminManager.getStudentByCourse(courseID);\n if(studentList == null){\n System.out.println(\"\\nThere is no such a course index\\n\\n\");\n System.exit(1);\n }\n if (studentList.isEmpty()){\n System.out.println(\"\\nThere is no student registered for this course ID\\n\\n\");\n return;\n }\n else{\n System.out.println(\"Hang on a moment while we load database.\\n\\n\");\n System.out.println(\"------------------------------------------------------\");\n System.out.println(\" STUDENT NAME GENDER NATIONALITY\");\n System.out.println(\"------------------------------------------------------\");\n //\n for(Student student:studentList){\n System.out.println(String.format(\"%20s %6s %s\",student.getName(),student.getGender(),student.getNationality()));\n }\n\n System.out.println(\"------------------------------------------------------\\n\");\n }\n }",
"public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n printMarks();\r\n System.out.println(\"\\nAverage \" + getAverage() + \"%\");\r\n printNumberOfCoursesInEachLetterGradeCategory();\r\n }",
"public java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList() {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\treturn java.util.Collections.unmodifiableList(student_);\n\t\t\t\t} else {\n\t\t\t\t\treturn studentBuilder_.getMessageList();\n\t\t\t\t}\n\t\t\t}",
"public List<Student> stulist() throws Exception {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql:///stuu\", \"root\", \"root\");\n\t\tPreparedStatement ps = conn.prepareStatement(\"select * from student\");\n\t\tResultSet rs = ps.executeQuery();\n\t\tList<Student> list = new ArrayList<Student>();\n\t\twhile(rs.next())\n\t\t{\n\t\t\tStudent s = new Student(rs.getInt(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6));\n\t\t\tlist.add(s);\n\t\t}\n\t\trs.close();\n\t\tps.close();\n\t\tconn.close();\n\t\treturn list;\n\t}",
"public ArrayList<Student> getStudentsForCourse(Course course){\n ArrayList<Student> result = new ArrayList();\n \n String statement = GET_SUDENTS_FOR_COURSE;\n \n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Student student = new Student(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getDate(\"birthday\").toLocalDate(),rs.getDouble(\"tuition_fees\"));\n result.add(student);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getStudentsForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \" \" + getStudentId() + \":\" + getStudentName();\n\t}",
"private void displayStudentByGrade() {\n\n studentDatabase.sortArrayList();\n\n for (Student student : studentDatabase) {\n\n stdOut.println(student.toStringsort() + \"\\n\");\n }\n }",
"@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}",
"public String DisplayStudents()\n\t{\t\n\t\tString studentList= \"\";\n\t\tint i=1; //the leading number that is interated for each student\n\t\tfor(Student b : classRoll)\n\t\t{\n\t\t\tstudentList += i + \". \" + b.getStrNameFirst ( ) + \" \" + b.getStrNameLast () +\"\\n\";\n\t\t\ti++;\n\t\t}\n\t\treturn studentList= getCourseName() +\"\\n\" + getCourseNumber()+\"\\n\" + getInstructor()+ \"\\n\" + studentList;\n\t}",
"public ArrayList<Studentdto> coursewiseStudent(String course) throws Exception {\n\t\tConnection con = null;\n\t\tcon = DBConnector.dbConnection();\n\t\tArrayList<Studentdto> coursewise = new ArrayList<Studentdto>();\n\t\ttry {\n\t\t\tPreparedStatement st = con.prepareStatement(\n\t\t\t\t\t\"select student_name,college_name,course_name,phn_no,address from student s ,college co,course cr where s.college_id=co.college_id and s.course_id =(select course_id from course where course_name=?) and cr.course_name=?\");\n\t\t\tst.setString(1, course);\n\t\t\tst.setString(2, course);\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\tint i = 1;\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudentdto studentdto = new Studentdto();\n\t\t\t\tstudentdto.setSlno(i++);\n\t\t\t\tstudentdto.setStudentname(rs.getString(1));\n\t\t\t\tstudentdto.setCollegename(rs.getString(2));\n\t\t\t\tstudentdto.setCoursename(rs.getString(3));\n\t\t\t\tstudentdto.setAddress(rs.getString(4));\n\t\t\t\tstudentdto.setPhno(rs.getString(5));\n\t\t\t\tcoursewise.add(studentdto);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (SQLSyntaxErrorException e) {\n\t\t\tthrow new SQLSyntaxErrorException(\"Error in SQL syntax\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Connection with database failed\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Some error occured\");\n\t\t}\n\n\t\treturn coursewise;\n\t}",
"@Override\n public String toString() {\n return \"Student{\" + \"id=\" + id + \", name=\" + name + \", yob=\" + yob + \", gpa=\" + gpa + '}';\n }",
"public List<User> getStudents(Group currentGroup);"
] |
[
"0.76163894",
"0.728239",
"0.7195866",
"0.7126184",
"0.7073696",
"0.7030212",
"0.6978974",
"0.6922225",
"0.689837",
"0.68938315",
"0.6877025",
"0.6860954",
"0.67416275",
"0.6733876",
"0.6712703",
"0.6700541",
"0.66914177",
"0.66880596",
"0.66857255",
"0.66675764",
"0.6651688",
"0.6642668",
"0.6606289",
"0.6600486",
"0.6599874",
"0.65924954",
"0.657844",
"0.65729874",
"0.655396",
"0.65503883",
"0.65414715",
"0.6526579",
"0.65196997",
"0.65188515",
"0.6503426",
"0.6499995",
"0.6494732",
"0.64899194",
"0.6487679",
"0.64861804",
"0.6480872",
"0.64722764",
"0.64708084",
"0.64687353",
"0.6463219",
"0.64573795",
"0.6453784",
"0.64488316",
"0.6441404",
"0.64402336",
"0.6430336",
"0.64213747",
"0.6411171",
"0.64001316",
"0.63996714",
"0.63908845",
"0.6390449",
"0.6387019",
"0.637777",
"0.63722605",
"0.63607913",
"0.63595074",
"0.6358657",
"0.63551325",
"0.6349482",
"0.6348924",
"0.63489074",
"0.63465756",
"0.63336045",
"0.633177",
"0.6327077",
"0.6325435",
"0.6324112",
"0.63172036",
"0.6316947",
"0.6316648",
"0.6310752",
"0.63092047",
"0.6307548",
"0.6305731",
"0.63031596",
"0.6302103",
"0.63006824",
"0.6299646",
"0.62927514",
"0.6291013",
"0.6287735",
"0.6282195",
"0.6277935",
"0.6272792",
"0.6268369",
"0.6268214",
"0.6262902",
"0.626227",
"0.6256915",
"0.62509114",
"0.62436044",
"0.62409544",
"0.62211883",
"0.62133753",
"0.62115747"
] |
0.0
|
-1
|
creates a random year for the new students
|
private static String randomYear()
{
String year = "";
int number = ran.nextInt(4);
switch(number)
{
case 0:
year = "freshman";
break;
case 1:
year = "sophmore";
break;
case 2:
year = "junior";
break;
case 3:
year = "senior";
break;
}
return year;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Year createYear();",
"Years createYears();",
"public static String generatesRandomDate(int startYear, int endYear) {\n int day = generatesRandomIntBetween(1, 28);\n int month = generatesRandomIntBetween(1, 12);\n int year = generatesRandomIntBetween(startYear, endYear);\n return LocalDate.of(year, month, day).format(formatter);\n }",
"private String getRandomDate() {\n\t\tint currentYear = Calendar.getInstance().get(Calendar.YEAR); \t\t\n\t\tint year = (int) Math.round(Math.random()*(currentYear-1950)+1950); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// between 1950 and currentYear\n\t\tint month = (int) Math.round(Math.floor(Math.random()*11)+1);\t\t\n\t\t// 3. select a random day in the selected month\n\t\t// 3.1 prepare an array to store how many days in each month\n\t\tint[] months = new int[]{31,28,30,30,31,30,31,31,30,31,30,31};\n\t\t// 3.2 if it is a leap year, feb (months[1]) should be 29\n\t\tif ((currentYear % 4 == 0) && ((currentYear % 100 != 0) || (currentYear % 400 == 0))) {\n\t\t\tmonths[1] = 29;\n\t\t}\n\t\tlong day = Math.round(Math.floor(Math.random()*(months[month-1]-1)+1));\n\t\treturn \"\"+year+\"-\"+month+\"-\"+day;\n\t}",
"public static void main(String[] args) {\n Random randy = new Random();\r\n for (int i = 0; i < 2019; i++) {\r\n printYear(i, randy.nextInt(7), false);\r\n }\r\n //printYear(2007, 5, false);\r\n }",
"public void studIdGenr()\n {\n \tthis.studentID = (int)(Math.random() * (2047300 - 2047100 + 1) + 2047100);\n }",
"@Override\n public Date generate() {\n int year = 2000 + Rng.instance().nextInt(20);\n int date = Rng.instance().nextInt(28) + 1;\n int month = Rng.instance().nextInt(10) + 1;\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, date);\n\n return calendar.getTime();\n }",
"public static String generateCurrentInYearString() {\n\t Calendar cal = Calendar.getInstance();\n\t cal.setTime(new Date());\n\t int currentYear = cal.get(Calendar.YEAR);\n\t return new Integer(currentYear).toString();\n\t}",
"private static String getNewYearAsString() {\n\t\t// calculate the number of days since new years\n\t\tGregorianCalendar now = new GregorianCalendar();\n\t\t\n\t\t// create a date and string representing the new year\n\t\tGregorianCalendar newYearsDay = new GregorianCalendar( now.get(GregorianCalendar.YEAR), 0, 1);\n\t\tDateFormat fmt = new SimpleDateFormat(\"MMM dd, yyyy \");\n\t\n\t\treturn fmt.format( newYearsDay.getTime() );\n\t}",
"private void createXmlYear(int year){\r\n Document doc = initialize();\r\n Element parent = doc.getDocumentElement();\r\n Element docYear = doc.createElement(\"year\");\r\n docYear.setAttribute(\"yid\", Integer.toString(year));\r\n parent.appendChild(docYear);\r\n transformToXml(doc);\r\n }",
"int getYear();",
"public String randomDateGenerator() {\n\n\t\tLocalDate startDate = LocalDate.now();\n\n\t\tint year = startDate.getYear();\n\t\tint month = startDate.getMonthValue();\n\t\tint day = startDate.getDayOfMonth();\n\n\t\tLocalDate endDate = LocalDate.of(year + 1, month, day);\n\n\t\tlong randomDate = randBetween(startDate.toEpochDay(), endDate.toEpochDay());\n\t\treturn LocalDate.ofEpochDay(randomDate).toString();\n\n\t}",
"@Test\n\tpublic void testYears() {\n\t\tint birthYear = 2000;\n\t\tint deathYear = 2019;\n\t\tPlot plot = new Plot();\n\t\t\n\t\tplot.setBirthYear(2000);\n\t\tassertEquals(plot.getBirthYear(), birthYear);\n\t\tplot.setDeathYear(2019);\n\t\tassertEquals(plot.getDeathYear(), deathYear);\n\t\t\n\t\tSystem.out.println(\"Birth and Death Years were successful.\");\n\t}",
"public static String generateDOB() {\n GregorianCalendar gc = new GregorianCalendar();\n int yyyy = randBetween(1950, 2000);\n gc.set(gc.YEAR, yyyy);\n int dd = randBetween(1, gc.getActualMaximum(gc.DAY_OF_YEAR));\n gc.set(gc.DAY_OF_YEAR, dd);\n\t\tString dob= gc.get(gc.DAY_OF_MONTH)+\"-\"+(gc.get(gc.MONTH) + 1)+\"-\"+gc.get(gc.YEAR);\n System.out.println(gc.get(gc.DAY_OF_MONTH)+\"-\"+(gc.get(gc.MONTH) + 1)+\"-\"+gc.get(gc.YEAR));\n\t\treturn(dob);\n}",
"public void setYear(int _year) { year = _year; }",
"public void setYear (int yr) {\n year = yr;\n }",
"public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }",
"private void lifeGenerator(Persons mother, Persons father, int currYear)\n {\n eventGenerator.createBirth(father, currYear);\n eventGenerator.createBirth(mother, currYear);\n eventGenerator.createMarriage(father, mother, currYear);\n\n int lifeWheel = random.nextInt(4);\n\n if (currYear < 1920){\n eventGenerator.createDeath(father, currYear);\n eventGenerator.createDeath(mother, currYear);\n }\n else if (lifeWheel == 0){\n eventGenerator.createDeath(father, currYear);\n eventGenerator.createRandomEvent(mother, currYear);\n }\n else if (lifeWheel == 1){\n eventGenerator.createDeath(mother, currYear);\n eventGenerator.createRandomEvent(father, currYear);\n }\n\n if (lifeWheel == 2){\n eventGenerator.createRandomEvent(father, currYear);\n }\n else if (lifeWheel == 3){\n eventGenerator.createRandomEvent(mother, currYear);\n }\n }",
"public int getStartingYear()\n {\n return 2013;\n }",
"public void setYear(int value) {\r\n this.year = value;\r\n }",
"public void addYear(){\n\t\tyearAdd++;\n\t}",
"int getYears();",
"public EventsCalendarYear() {\n initYear();\n }",
"public void setYear(int year) {\r\n this.year = year;\r\n }",
"public void setYear(int year)\n {\n this.year = year;\n }",
"Integer getTenYear();",
"private int randomAge() {\n \tint low = 18;\n \tint high = 100;\n \tint offset = high - low;\n \tRandom r = new Random();\n \treturn r.nextInt(offset) + low;\n \t\n }",
"public void setYear(int year) {\n this.year = year;\n }",
"public YearCitation(Date mostRecentVersion) {\n\t\tthis.mostRecentVersion = mostRecentVersion; \n\t\tyearFormat = new SimpleDateFormat(\"yyyy\");\n\t}",
"public void setYear(String year)\r\n {\r\n this.year = year; \r\n }",
"public int getYear(){\r\n\t\treturn year;\r\n\t}",
"public YearProfit(){}",
"public static String randomDate() {\n DateFormat format = new SimpleDateFormat(\"ddMMyyHHmmss\");\n return format.format(new Date());\n }",
"public int getYear()\n {\n return yr;\n }",
"private static Date getYearDate(int year) {\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, year);\n return calendar.getTime();\n }",
"public static int getRndMonthNumber() {\n return ThreadLocalRandom.current().nextInt(1, 12 + 1);\n }",
"@Test\n public void testSpecificYear() {\n context = new MockServletContext();\n context.setInitParameter(ConfigService.MESHRDF_YEAR, \"2018\");\n context.setInitParameter(ConfigService.MESHRDF_INTERIM, \"true\");\n configService = new ConfigServiceImpl(context);\n\n ValidYears years = configService.getValidYears();\n\n assertThat(years.getCurrent(), equalTo(2018));\n assertThat(years.getInterim(), equalTo(2019));\n }",
"public int getYear() {\r\n return year;\r\n }",
"public void setYear(int year) {\n\tthis.year = year;\n}",
"public ConcreteYear(int year) {\r\n if (year > 0) {\r\n this.year = year;\r\n }\r\n }",
"public int getYear() { return year; }",
"public int getYear() { return year; }",
"public int getYear(){\n\t\treturn year; \n\t}",
"public void setYear(int value) {\n\tthis.year = value;\n }",
"public int getYear() {\r\n return year;\r\n }",
"public static String getRandomLicense() {\n String license = \"Copyright 2014 \";\n String owner = names[RandomNumberGenerator.getRandomInt(0, names.length - 1)];\n license = license + owner;\n return license.trim();\n }",
"public int getYear(){\n\t\treturn year;\n\t}",
"public int getYear()\n {\n return year;\n }",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n return year;\n }",
"public int getYear() {\n return year;\n }",
"public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}",
"public void setYear(int y){\n\t\tyear = y ; \n\t}",
"public int getYear() {\n\treturn year;\n }",
"private AbsentYear createAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = new AbsentYear();\n\t\tabsentYear.setEmployee(emp);\n\t\tabsentYear.setYear((short)startDate.getYear());\n\t\tabsYearRepo.save(absentYear);\n\t\treturn absentYear;\n\t}",
"public void setYear(String year) {\n this.year = year;\n }",
"public void setYear(String year) {\n this.year = year;\n }",
"public int getYear() {\r\n\t\treturn year;\r\n\t}",
"public int getYear () {\n return year;\n }",
"@Test\n\tpublic void testCreatePastCarYear() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"Z4\";\n\t\tString _color = \"black\";\n\t\tint _year = 1800;\n\n\t\t// ---------------------------------------------\n\t\t// Creating past year.\n\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\n\t\t}\n\t}",
"public int getYear() {\n return year;\n }",
"public void setYear(Integer year) {\r\n this.year = year;\r\n }",
"public void setYear(Integer year) {\r\n this.year = year;\r\n }",
"public int getYear() \n\t{\n\t\treturn year;\n\t}",
"public int getYear() {\n\t return year;\n\t}",
"public int getYear() {\n\t\treturn year; \n\t}",
"public Computus(int x){\n year = x;\n }",
"Builder addCopyrightYear(Number value);",
"public void setNumberOfYears(int numberOfYears) {\n this.numberOfYears = numberOfYears;\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(int year) \n\t{\n\t\tthis.year = year;\n\t}",
"public void setYears(int years) {\n this.years = years;\n }",
"@Override\n\tpublic int getYear() {\n\t\treturn year;\n\t}",
"public void setNextYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()+1);\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"@Test\n\tpublic void testCreateFutureCarYear() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"Z4\";\n\t\tString _color = \"black\";\n\t\tint _year = 19900;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a future year.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\n\t\t}\n\n\t}",
"private void _generateAGradudateStudent(int index) {\n int n;\n ArrayList list;\n String id;\n\n id = _getId(CS_C_GRADSTUD, index);\n writer_.startSection(CS_C_GRADSTUD, id);\n _generateAStudent_a(CS_C_GRADSTUD, index, id);\n n = _getRandomFromRange(GRADSTUD_COURSE_MIN, GRADSTUD_COURSE_MAX);\n list = _getRandomList(n, 0, gradCourses_.size() - 1);\n for (int i = 0; i < list.size(); i++) {\n CourseInfo info = (CourseInfo) gradCourses_.get( ( (Integer) list.get(i)).\n intValue());\n writer_.addProperty(CS_P_TAKECOURSE,\n _getId(CS_C_GRADCOURSE, info.globalIndex), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#takesCourse\", _getId(CS_C_GRADCOURSE, info.globalIndex), true);\t \t \t \t \n }\n }\n writer_.addProperty(CS_P_UNDERGRADFROM, CS_C_UNIV,\n _getId(CS_C_UNIV, random_.nextInt(UNIV_NUM)));\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#undergraduateDegreeFrom\", _getId(CS_C_UNIV, random_.nextInt(UNIV_NUM)), true);\t \t \t \t \n }\n if (0 == random_.nextInt(R_GRADSTUD_ADVISOR)) {\n \tString ad = _selectAdvisor();\n \twriter_.addProperty(CS_P_ADVISOR, _selectAdvisor(), true);\n\t if(globalVersionTrigger){\t \t \n\t \t writer_log.addPropertyInstance(id, ontology+\"#advisor\", ad, true);\t \t \t \t \n\t }\n \n }\n \n _assignGraduateStudentPublications(id, GRADSTUD_PUB_MIN, GRADSTUD_PUB_MAX);\n writer_.endSection(CS_C_GRADSTUD);\n }",
"public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}",
"public void setYear(int year) {\n\t\tthis.year = year;\n\t}",
"public void setYear(int year) {\n\t\tthis.year = year;\n\t}",
"public int getYear() {\n\treturn year;\n}",
"public String getYear()\r\n {\r\n return year;\r\n }",
"public static Student[] generatedStudent(int x){\n String gender;\n Student[] student=new Student[x];//we create array and we describe count of item by given number\n for(int i=0; i < student.length; i++){\n double GPA = Math.random()*4;//it helps you to create random double value between 0 to 4 for gpa\n int midterm= (int)(Math.random()*100);//it helps to create random integer value between 0 to 100 for midterm exam grade\n int finalGra= (int)(Math.random()*100);//it helps to create random integer value between 0 to 100 for final exam grade\n int preGender=(int)(Math.random()*2);//it helps to create random integer value between 0 to 1 for gender because when it is equal 1,it transformes to male else it transformes to female\n if(preGender==1){\n gender=\"male\";\n } \n else{\n gender=\"female\";\n }\n ExamGrade e1=new ExamGrade(midterm, finalGra);//we create exam grade to add student instructere\n student[i] = new Student(\"barış\", \"arslan\", gender, GPA, \"CMPE\", e1);\n }\n return student;\n }",
"public double getYear() {\n return year;\n }",
"public int getYearmade()\n {\n return yearmade;\n }",
"YearScore () {}",
"@Test\r\n\tpublic void testSetYear() {\r\n\t\tmeetingu1.setYear(3);\r\n\t\tassertTrue(meetingu1.getYear() == 3);\r\n\t}",
"public int getYear() {\r\n return this.year;\r\n }",
"private String crearCodigoRuta(String nombre){\n String fecha = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n Random randomGenerator = new Random();\n int RndNum = randomGenerator.nextInt(1000);\n\n return nombre+\"_\"+fecha+\"_\"+RndNum;\n }",
"public static final int getReleaseYear() { return 2019; }",
"private Date randomDate() {\n int minDay = (int) LocalDate.of(2012, 1, 1).toEpochDay();\n int maxDay = (int) LocalDate.now().toEpochDay();\n int randomDay = minDay + intRandom(maxDay - minDay);\n LocalDate randomDate = LocalDate.ofEpochDay(randomDay);\n Date d = toDate(randomDate);\n return d;\n }",
"public void setYear(String year) {\n\t\tthis.year = year;\n\t}",
"public int getDocumentYear();",
"public void setYear(int Year) {\n\t this.year= Year;\n\t}",
"public String getYear()\n {\n return year;\n }",
"public String getYear() {\n return year;\n }"
] |
[
"0.7579593",
"0.7373381",
"0.6707096",
"0.66485125",
"0.6529767",
"0.64818496",
"0.64690846",
"0.6355507",
"0.63268536",
"0.6324462",
"0.62961775",
"0.61772877",
"0.61528945",
"0.61387604",
"0.60931337",
"0.60747284",
"0.6061298",
"0.60437614",
"0.6024034",
"0.5989173",
"0.59694964",
"0.5948972",
"0.5941153",
"0.5927944",
"0.59257096",
"0.5904508",
"0.58981544",
"0.5866659",
"0.5852864",
"0.584507",
"0.58407086",
"0.5840157",
"0.5826754",
"0.5824658",
"0.58239716",
"0.58146226",
"0.5812336",
"0.58105576",
"0.58081526",
"0.58072025",
"0.580495",
"0.580495",
"0.58037525",
"0.579838",
"0.5777419",
"0.5771052",
"0.576531",
"0.57652104",
"0.5764116",
"0.5761627",
"0.575513",
"0.5750553",
"0.57485896",
"0.57446796",
"0.5738643",
"0.5737273",
"0.5737273",
"0.5719419",
"0.5718566",
"0.571186",
"0.5711231",
"0.57043666",
"0.57043666",
"0.56968343",
"0.56966305",
"0.56853455",
"0.5684711",
"0.5681876",
"0.56749606",
"0.56622916",
"0.56622916",
"0.56622916",
"0.5660715",
"0.56555253",
"0.5641571",
"0.56386226",
"0.5636231",
"0.5636231",
"0.5636231",
"0.5626538",
"0.5625291",
"0.5622047",
"0.56207156",
"0.56207156",
"0.55980384",
"0.559793",
"0.55950755",
"0.55736613",
"0.5572427",
"0.5564781",
"0.556019",
"0.5554331",
"0.55494916",
"0.5537427",
"0.5530154",
"0.5528712",
"0.5518526",
"0.5509117",
"0.5506698",
"0.5495859"
] |
0.76907396
|
0
|
determins where the names text file is located
|
private static void findPath()
{
String temp_path = System.getProperty("user.dir");
char last = temp_path.charAt(temp_path.length() - 1);
if(last == 'g')
{
path = ".";
}
else
{
path = "./bag";
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected String getFileNamePath()\n {\n String sep = System.getProperty(\"file.separator\", \"/\");\n// String path = System.getProperty(\"user.dir\", \".\");\n\n String filename = getPath() + sep + \"sec.dat\";\n\n return filename;\n }",
"java.lang.String getFileLoc();",
"public void fillFilenames() {\r\n if (this.pl_LastFiles.getParam(\"nodelist-file\") != null\r\n && this.pl_LastFiles.getParam(\"edgelist-file\") != null) {\r\n this.nodefileText.setText(this.pl_LastFiles.getParam(\"nodelist-file\"));\r\n this.edgeFileText.setText(this.pl_LastFiles.getParam(\"edgelist-file\"));\r\n } else {\r\n this.nodefileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20nodes.txt\");\r\n this.edgeFileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20edges.txt\");\r\n }\r\n }",
"private String entryName(String name) {\n name = name.replace(File.separatorChar, '/');\n String matchPath = \"\";\n /* Need to add code to consolidate paths\n for (String path : paths) {\n if (name.startsWith(path)\n && (path.length() > matchPath.length())) {\n matchPath = path;\n }\n }\n */\n name = name.substring(matchPath.length());\n \n if (name.startsWith(\"/\")) {\n name = name.substring(1);\n } else if (name.startsWith(\"./\")) {\n name = name.substring(2);\n }\n return name;\n }",
"public static File fMibsTextDir() \r\n\t{\r\n\t\treturn new File(fMibsDir() + File.separator + \"txt\");\t\r\n\t}",
"private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}",
"private static String getEntryName(File source, File file) throws IOException {\n\t\tint index = source.getAbsolutePath().length() + 1;\n\t\tString path = file.getCanonicalPath();\n\n\t\treturn path.substring(index);\n\t}",
"public String getSimFile() throws IOException {\n\t\tString name = getSimulationName();\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-7); // \"_FOLDER\" contains 7 character\n\t\tString txtfile = sim_name + \".txt\";\n\t\treturn txtfile;\t\n\t}",
"public String getLocationOfFiles() {\n\t\ttry {\n\t\t\tFile f = new File(\n\t\t\t\t\tgetRepositoryManager().getMetadataRecordsLocation() + \"/\" + getFormatOfRecords() + \"/\" + getKey());\n\t\t\treturn f.getAbsolutePath();\n\t\t} catch (Throwable e) {\n\t\t\tprtlnErr(\"Unable to get location of files: \" + e);\n\t\t\treturn \"\";\n\t\t}\n\t}",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"public static Path getTextsDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null)).resolve(TEXTS_DIR);\n\t}",
"public String getUserDictPath(String dataname, String username){\n String userdictpath = String.format(\"dicts/%s-%s.txt\", dictname, username);\n return userdictpath;\n }",
"public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can't write!\");\n\t\tSystem.out.println(\"Name: \" + file.getName());\n\t\tSystem.out.println(\"Path: \" + file.getPath());\n\t\tSystem.out.println(\"Size: \" + file.length() + \" bytes\");\n\t}",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"public String getFileNamingDetails();",
"public void test() {\n\t\tFile file = new File(\"/home/students/\");\r\n\t\t\r\n\t\tString[] list = file.list(new FilenameFilter() {\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\tif (name.toLowerCase().endsWith(\".py\")) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfor (String f : list) {\r\n\t\t\tSystem.out.println(f);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\nFile files=new File(\"C:\\\\Users\\\\k74\");\nString filenames[]=files.list();\nfor(String filename :filenames)\n\tSystem.out.println(filename);\n\t}",
"private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}",
"public abstract String getFileLocation();",
"public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }",
"public static void main(String[] args) {\n File myFile = new File (\"d:/names.txt\");\r\n // para saber si el archivo no existe, devuelve true o false\r\n System.out.println(\"file.exists(): \" + myFile.exists());\r\n System.out.println(\"file.isDirectory(): \" + myFile.isDirectory());\r\n // para saber la fecha de modificación\r\n System.out.println(\"file.lastModified(): \" + myFile.lastModified());\r\n // para saber el nombre del archivo\r\n System.out.println(\"file.getName(): \" + myFile.getName());\r\n // para saber la ruta\r\n System.out.println(\"file.getPath(): \" + myFile.getPath());\r\n // para saber el tamaño en bytes que ocupa en disco\r\n System.out.println(\"file.length(): \" + myFile.length()+\" bytes\");\r\n // para saber si es de lectura, devuelve true o false\r\n System.out.println(\"file.canRead():\" + myFile.canRead());\r\n\r\n //File newfolder = new File(\"D:/carpeta con archivos año mío\");\r\n //System.out.println(newfolder.mkdir());\r\n\r\n // si fuera un directorio, para saber los archivos que contiene\r\n File carpeta = new File(\"D:/carpeta_con_archivos\");\r\n System.out.println(\"----listado archivos D:/carpeta_archivos------\");\r\n for (String archivo : carpeta.list()) {\r\n System.out.println(archivo);\r\n }\r\n\r\n //agregar una linea nueva a un archivo existente (METODO 1)\r\n /*try {\r\n //abra el archivo , TRUE en un forma append (agregar nuevos valores)\r\n FileWriter myFile2 = new FileWriter(\"d:/names.txt\", true);\r\n //cargar en memora ram del SO el contenido del archivo\r\n BufferedWriter dataFile = new BufferedWriter(myFile2);\r\n //agregar una nueva linea\r\n dataFile.write(\"\\nnueva linea tres\");\r\n dataFile.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //agregar una linea nueva a un archivo existente (METODO 1 optimizado)\r\n /*try{\r\n BufferedWriter dataFile = new BufferedWriter(new FileWriter(\"d:/names.txt\",true));\r\n //agregamos la nueva linea\r\n dataFile.write(\"nueva linea sin borrar\");\r\n dataFile.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }*/\r\n // agregar nueva linea con metodo super optimizado en lineas (METODO FLAHS)\r\n try{\r\n PrintWriter myFile3 = new PrintWriter(new BufferedWriter(new FileWriter(\"d:/names.txt\", true)));\r\n myFile3.println(\"Otra nueva línea mezclando las dos librerías (PrintWriter + FileWriter) \");\r\n myFile3.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }",
"String getFilepath();",
"private static String getFileName(String graphFileName) {\n\t\t// the folder of the workspace\n\t\tString userDir = System.getProperty(\"user.dir\");\n\t\t// the graphs are in the resources folder\n\t\tString resourcesFolder = \"\\\\src\\\\test\\\\resources\\\\\";\n\t\tuserDir = userDir.concat(resourcesFolder);\n\t\t\n\t\t// the name of the file containing the graph, eg: examplegraph.gv\n\t\t// The graph can be selected here!\n\t\tuserDir = userDir.concat(graphFileName);\n\n\t\treturn userDir;\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tFile f = new File(\"F://Users//JavaFile//mvp.txt\");\r\n\t\t\r\n\t\tif(f.exists())\r\n\t\t\tSystem.out.println(\"Available\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"not available\");\r\n\t\t\r\n\t\tif(f.isFile())\r\n\t\t\tSystem.out.println(\"It is a file\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"It is not a file\");\r\n\t\t\r\n\t\tSystem.out.println(\"Length = \"+f.length());\r\n\t\tSystem.out.println(\"Name = \"+f.getName());\r\n\t\tSystem.out.println(\"Parent = \"+f.getParent());\r\n\t\tSystem.out.println(\"Path = \"+f.getPath());\r\n\r\n\t}",
"java.lang.String getFilename();",
"java.lang.String getFilename();",
"private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(UserPreferences.SAVE_LOCATION_PROP);\r\n ret += format.format(new Date());\r\n \r\n String notationStr = notation.getText().trim();\r\n if (!notationStr.isEmpty()) \r\n {\r\n ret += \"__\" + notationStr.replaceAll(\" \\t/\\\\:\", \"_\");\r\n }\r\n \r\n ret += \".csv\";\r\n \r\n return ret;\r\n }",
"String getFilename();",
"public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }",
"private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}",
"public String getOutPutFilePath() {\n\t\t// Create the entire filename\n\t\tString fileName=FILE_OUT_PATH+ FILENAME + \"NO_LINE_NUMBERS\" + \".txt\";\t\n\t\treturn(fileName);\n\t}",
"java.lang.String getFilePath();",
"public String getFileName ();",
"private static void initFileNames() {\n if (fileNames == null) {\n fileNames = new HashMap<>();\n }\n fileNames.put(\"Linked List (simple)\", \"MySimpleLinkedList\");\n fileNames.put(\"Linked List\", \"MyLinkedList\");\n fileNames.put(\"Stack\", \"MyStack\");\n fileNames.put(\"Queue\", \"MyArrayDeque\");\n fileNames.put(\"Graph\", \"MyGraph\");\n fileNames.put(\"HashTable\", \"MyHashTable\");\n fileNames.put(\"Linear Search\", \"Algorithms\");\n fileNames.put(\"Binary Search\", \"Algorithms\");\n fileNames.put(\"Bubble Sort\", \"Algorithms\");\n fileNames.put(\"Insertion Sort\", \"Algorithms\");\n fileNames.put(\"Selection Sort\", \"Algorithms\");\n fileNames.put(\"Shell Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort (in-place)\", \"Algorithms\");\n fileNames.put(\"Quick Sort\", \"Algorithms\");\n }",
"public String getName() {\n return dtedDir + \"/\" + filename;\n }",
"public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}",
"public String getFileName();",
"public String getFileName();",
"public String getName() { return FilePathUtils.getFileName(getPath()); }",
"public void printFilenames(){\n\t\tSystem.out.println(\"\\nAgent list of files: \" + this.filenames.size());\n\t\tfor(int i = 0;i<filenames.size();i++){\n\t\t\tSystem.out.println(i+1+ \") \" + filenames.get(i));\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"String displayableFileName(String path) {\n String result = \"\";\n StringTokenizer tok = new StringTokenizer(path, \"\\\\/\");\n while (tok.hasMoreTokens()) {\n result = tok.nextToken();\n }\n return result;\n }",
"public static void showfiles()\n\t{\n File curDir = new File(\".\");\n String[] fileNames = curDir.list();\n ArrayList<String> data = new ArrayList<String>();\n\n //Find files which may have data. (aka, are in the .dat format)\n for(String s:fileNames)\n if(s.endsWith(\".dat\"))\n data.add(s);\n\n\t\tdata.trimToSize();\n\t\t\n\t\tclearScreen();\n\n\t\tSystem.out.println(\"\\t\\t\\tTHE BOOK SEARCH PROGRAM\");\n\n\t\t\n\t\tfor(int i = 0; i < 80; i++)\n\t\tSystem.out.print(\"-\");\n\t\n\n\t\tSystem.out.println(\"\\nWhat file is your book data stored in?\\n\");\n\t\n\t\tSystem.out.println(\"Here are the .dat file(s) in the current directory:\\n\");\n\n\t \tfor(int i = 0; i < data.size(); i++)\n\t\tSystem.out.print(\"[ \" + data.get(i) + \" ]\\t\");\n\t\tSystem.out.println(\"\\n\");\n\n\n\t}",
"protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }",
"public void setDir() throws FileNotFoundException, IOException{\r\n final JFileChooser jfc = new JFileChooser();\r\n jfc.setDialogTitle(\"Choose Workplace Dirtory\");\r\n FileSystemView fsv = FileSystemView.getFileSystemView();\r\n //wppath stores workplace location\r\n wppath = fsv.getDefaultDirectory();\r\n File rd = new File(wppath.getAbsolutePath() + \"/USQ_Reporter.txt\");\r\n int ext = 0;\r\n if(rd.exists())ext=1;\r\n if(!rd.exists())ext=2;\r\n FileReader fr; \r\n if(rd.exists()){\r\n fr= new FileReader(rd);\r\n if(fr.read()==-1)\r\n ext=2;\r\n }\r\n //System.out.println(ext);\r\n //workplace path\r\n if(ext==1) {\r\n BufferedReader br = new BufferedReader(new FileReader(rd));\r\n workplace = br.readLine();\r\n }else if (ext==2) {\r\n jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n int returnVal = jfc.showOpenDialog(this);\r\n \r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n File file = jfc.getSelectedFile();\r\n if(!file.exists()) {\r\n JOptionPane.showMessageDialog(null, \"file doesn't exist.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } else if(file.isDirectory()) {\r\n workplace = file.getAbsolutePath();\r\n }\r\n }\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(rd));\r\n bw.write(workplace);\r\n bw.flush();\r\n bw.close();\r\n }\r\n }",
"private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}",
"public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }",
"private static String dir(String file) {\n\t\tString dir = null;\n\t\tif (file.equals(favoritecomment)) {\n\t\t\tdir = \"favourite\";\n\t\t} else if (file.equals(readlater)) {\n\t\t\tdir = \"readlater\";\n\t\t} else {\n\t\t\tdir = \"history\";\n\t\t}\n\t\treturn dir;\n\t}",
"private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}",
"java.lang.String getFileNames(int index);",
"java.lang.String getFileNames(int index);",
"private static ArrayList<String> getPlayerFileNames() {\n\n ArrayList<String> fileNames = new ArrayList<String>();\n\n File folder = new File(\"otterbein/pig/player\");\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n if (listOfFiles[i].getName().endsWith(\".class\")) {\n fileNames.add(listOfFiles[i].getName());\n }\n }\n }\n\n return fileNames;\n }",
"private static String getFilePath(int storyId) {\n return DaoUtils.storageDirectoryName() + File.separator + \"story\" + storyId + \".txt\";\n }",
"static String localPath(String name) {\n\t\tchar c = File.separatorChar;\n\t\treturn name.replace((char) (c ^ '/' ^ '\\\\'), c);\n\t}",
"public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\n\n }",
"public String getName() {\n return _file.getAbsolutePath();\n }",
"public static void main(String args[]) throws FileNotFoundException{\n\t\tFile file = new File(\"input.txt\");\r\n\t\tScanner scan = new Scanner(file);\r\n\t\twhile (scan.hasNext()) {\r\n\t\t\tString fName = scan.next();\r\n\t\t\tString lName = scan.next();\r\n\t\t\tSystem.out.println(\"Full name is: \" + fName + \" \" + lName);\r\n\t\t}\r\n\t\t\tscan.close();\r\n\t\t\r\n\t}",
"private void browseOutputFilePath()\n\t{\n\t\tString filedirectory = \"\";\n\t\tString filepath = \"\";\n\t\ttry\n\t\t{\n\t\t\tJFileChooser fc = new JFileChooser(\".\");\n\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); //select directories or files\n\t\t\tfc.setDialogTitle(\"Please choose a directory to save the converted file(s)\");\n\n\t\t\tFileNameExtensionFilter sifdata = new FileNameExtensionFilter(\"SIF\", \"sif\");\n\t\t\tfc.addChoosableFileFilter(sifdata);\n\n\t\t\tint returnVal = fc.showOpenDialog(this); // shows the dialog of the file browser\n\t\t\t// get name und path\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION)\n\t\t\t{\n\t\t\t\tmainframe.setOutputTextfieldText(fc.getSelectedFile().getAbsolutePath());\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\"Problem when trying to choose an output : \" + e.toString(),\n\t\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String getText()\n{\n //String base = _type==FileType.PACKAGE_DIR? _proj.getPackageName(_file) :\n // _file.isRoot()? _file.getSite().getName() : _file.getName();\n //String prefix = _vc.isModified(_file)? \">\" : \"\";\n //String suffix = _file.isUpdateSet()? \" *\" : \"\";\n //return prefix + base + suffix;\n String text = _file.getName();\n return text.length()>0? text : \"Sample Files\";\n}",
"private String searchForInitFileName() {\n String homeDirectoryInitFileName =\n System.getProperty(\"user.home\") + File.separatorChar + DEFAULT_INIT_FILE_NAME;\n String currentDirectoryInitFileName =\n System.getProperty(\"user.dir\") + File.separatorChar + DEFAULT_INIT_FILE_NAME;\n String systemPropertyInitFileName = System.getProperty(INIT_FILE_PROPERTY);\n\n String[] initFileNames =\n {systemPropertyInitFileName, currentDirectoryInitFileName, homeDirectoryInitFileName};\n\n for (String initFileName : initFileNames) {\n if (IOUtils.isExistingPathname(initFileName)) {\n return initFileName;\n }\n }\n\n return null;\n }",
"public void printFileNames() {\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()) {\n System.out.println(f);\n }\n }",
"public static void main(String[] args) {\n File myFile= new File(\"D:/yeah.txt\");\n System.out.println(\"Iiim file bnuu? \"+myFile.exists());\n\t System.out.println(\"Zaagdsan zam deeree bnuu?\"+myFile.isFile());\t \n\t System.out.println(\"Ug file iin ner \"+myFile.getName());\n\t System.out.println(\"Ug file iin zam \"+myFile.getPath());\n\t}",
"String getFilePath();",
"public String getPathName()\n {\n return getString(\"PathName\");\n }",
"private String defineAbsoluteFilePath() throws IOException {\n\n\t\tString absoluteFilePath = \"\";\n\n\t\tString workingDir = System.getProperty(\"user.dir\");\n\n\t\tString OS = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (OS.indexOf(\"win\") >= 0) {\n\t\t\tabsoluteFilePath = workingDir + \"\\\\\" + PATH + \"\\\\\" + FILE_NAME;\n\t\t} else {\n\t\t\tabsoluteFilePath = workingDir + \"/\" + PATH + \"/\" + FILE_NAME;\n\t\t}\n\n\t\tFile file = new File(absoluteFilePath);\n\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"File found!\");\n\t\t\tSystem.out.println(absoluteFilePath);\n\t\t} else {\n\t\t\tSystem.err.println(\"File not found...\");\n\t\t}\n\n\t\treturn absoluteFilePath;\n\n\t}",
"private String getOptionsGoldenFile() {\n String dataDir = \"\";\n try {\n dataDir = getDataDir().getCanonicalPath();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return dataDir + File.separator + \"permanentUI\" + File.separator + \"options\" + File.separator + \"options-categories.txt\";\n }",
"public String[] getNames(){\n File file = new File(getContext().getFilesDir(),\"currentUsers.txt\");\n List<String> names = null;\n try {\n //read names from file\n names = new ArrayList<>(FileUtils.readLines(file, Charset.defaultCharset()));\n Log.i(TAG,\"names from currentUsers.txt: \" + names.toString());\n usernames = new String[names.size()];\n //populate the array with the data form file\n for(int i = 0; i < usernames.length; i++){\n String user = names.get(i);\n usernames[i] = user;\n Log.i(TAG, \"added \" + usernames[i] + \" to usernames array\");\n }\n } catch (IOException e) {\n Log.i(TAG, \"error: \" + e.getLocalizedMessage());\n }\n return usernames;\n }",
"public String getFileSource(int index) {\n\t\tFile f = openFiles.get(index); \n\t\tString path = f.getAbsolutePath();\n\t\tint last = path.lastIndexOf('/');\n\t\tString pathSimple = path.substring(0, last+1);\n\t\t\n\t\treturn pathSimple;\t\n\t}",
"private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }",
"private static void info ( File f ) {\n\tString nume = f . getName () ;\n\tif( f.isFile () )\n\tSystem.out.println ( \" Fisier : \" + nume ) ;\n\telse\n\tif( f.isDirectory () )\n\tSystem.out.println ( \" Director : \" + nume ) ;\n\tSystem.out.println (\n\t\" Cale absoluta : \" + f.getAbsolutePath () +\n\t\" \\n Poate citi : \" + f.canRead () +\n\t\" \\n Poate scrie : \" + f.canWrite () +\n\t\" \\n Parinte : \" + f.getParent () +\n\t\" \\n Cale : \" + f.getPath () +\n\t\" \\n Lungime : \" + f.length () +\n\t\" \\n Data ultimei modificari : \" +\n\tnew Date ( f.lastModified () ) ) ;\n\tSystem.out.println ( \" --------------\" ) ;\n\t}",
"String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}",
"public static void searchFile() \n\t{\n\t\t//Variable Declaration\n\t\tString fileName;\n\t\tScanner obj = new Scanner(System.in);\n\n\t\t//Read file name from user\n\t\tSystem.out.println(\"Enter file name to searched:\");\n\t\tfileName= obj.nextLine();\n\t\t\n\t\t//Searching the file\n\t\tboolean isFound = FileManager.searchFile(folderpath, fileName);\n\t\t\n\t\tif(isFound)\n\t\t\tSystem.out.println(\"File is present\");\n\t\telse\n\t\t\tSystem.out.println(\"File not present.\");\n\n\t}",
"public static void main(String[] args) {\n\n File file = new File(\"./src/cat.txt\");\n System.out.println(file.exists());\n System.out.println(file.getName());\n System.out.println(file.getAbsolutePath());\n System.out.println(file.isDirectory());\n System.out.println(file.isFile());\n System.out.println(file.length());\n System.out.println(file.renameTo(new File(\"cat.txt\")));\n\n File folder = new File(\"./cat.txt\");\n boolean mkdir = folder.mkdir();\n\n File folderInFolder = new File(\"./folder/unAltFolder\");\n folderInFolder.mkdirs();\n\n System.out.println(file.getParent());\n File srcFile = new File(\"./src/main\");\n File[] filesFromSrc = srcFile.listFiles();\n\n for (File fileSrc : filesFromSrc) {\n System.out.println(fileSrc);\n }\n\n }",
"public String getFileChosen() \n {\n return fileName.getText();\n }",
"private String get_FilePath(String put, int ind) {\n\n File file = new File(put);\n File[] files = file.listFiles();\n\n try {\n if (files[ind].isFile()) {\n return files[ind].getAbsolutePath();\n }\n } catch (Exception e) {\n Log.d(TAG, \"Exception error : \" + e.getMessage());\n }\n return null;\n }",
"private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }",
"public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"public static String getFileName() {\n File base = new File(\"C:/Users/Steve/IdeaProjects/MiniJavaCompiler/samples/clean/\");\n File file = new File(inputFile);\n String relativePath = base.toURI().relativize(file.toURI()).getPath();\n return relativePath;\n }",
"public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}",
"private void selectTXTFile() {\n JFileChooser jfc = new JFileChooser();\n File curDir;\n if (readFile != null) curDir = new File(readFile.getParent()); else curDir = new File(System.getProperty(\"user.home\"));\n jfc.setCurrentDirectory(curDir);\n jfc.setFileFilter(new TXTFilter());\n jfc.setMultiSelectionEnabled(false);\n int ret = jfc.showDialog(this, \"Save\");\n if (ret == 0) {\n outputField.setText(jfc.getSelectedFile().getAbsolutePath() + \".txt\");\n }\n }",
"public static String fileName(File file)\n {\n if (file == Configuration.STD_OUT)\n {\n return \"standard output\";\n }\n else\n {\n try\n {\n return file.getCanonicalPath();\n }\n catch (IOException ex)\n {\n return file.getPath();\n }\n }\n }",
"public static void searchFile(String path){\n try {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the File Name You need to Find:\");\n String name = scanner.next();\n File file = new File(path + \"/\" + name);\n if (file.isFile()) {\n file.getName();\n System.out.println(\"File Exists\");\n }\n else{\n System.out.println(\"File Not Found\");\n\n }\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"private String grabNameFile(String absPath)\n {\n \t\n \t// parse filename from absolute path\n \tString[] delimSlashes = absPath.split(\"/\");\n \tString fn = delimSlashes[delimSlashes.length - 1];\n \tif (fn.substring(0, 5).equals(\"files\"))\n \t{\n \t\tfn = fn.substring(5); // removes \"files\" from the beginning which is prepended by the Android Beam API\n \t}\n \t\n \t// split string based on underscores\n \tString[] result = fn.split(\"_\");\n \t\n \tif (result.length < 3)\n \t{\n \t\t//error, this means first/last name wasn't appended\n \t\treturn null;\n \t}\n \t\n \t// the order of the names is (last,first) when sent by the sender:\n \tmFirstName = result[1];\n \tmLastName = result[0];\n \t\n \treturn fn;\n }",
"private void findRecordings(){\n File[] files = new File(\"Concatenated/\").listFiles();\n _records.clear();\n _versionNum = 1;\n for (File file : files){\n if (file.isFile()){\n String nameOnFile = file.getName().substring(file.getName().lastIndexOf('_')+1,file.getName().lastIndexOf('.')).toUpperCase();\n if (nameOnFile.equals(_name.toUpperCase())){\n _records.add(file.getName());\n _versionNum++;\n }\n }\n }\n }",
"public static File name(Scanner user) {\n System.out.println(\"Input file name\");\n String fileName = user.nextLine();\n File file = new File(fileName);\n return file;\n }",
"private String getQualifiedFileName() {\n\n\t\tString result = \"\";\n\t\t\n\t\tScanner keyInput = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"\\n Enter the qualifed file name to process. Relatives are ok. Just hit enter to stop: \");\n\t\tresult = keyInput.nextLine();\n\t\t\n\t\t\n\t\treturn result;\n\t\t\n\t}",
"public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}",
"private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }",
"public static void main(String[] args) throws Exception {\n \n\n\t File pasta = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\phishing\");\n\t \n\t File[] arquivos = pasta.listFiles();\n\t \n\t \n\t for (File file : arquivos) {\n\t\t System.out.println(file.getName()+ \"\tphishing\");\n\t }\n\t \n\t File pasta1 = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\not_phishing\");\n\t \n\t File[] arquivos1 = pasta1.listFiles();\n\t \n\t \n\t for (File file : arquivos1) {\n\t\t if(!file.isDirectory()){\n\t\t\t System.out.println(file.getName()+ \"\tnot_phishing\"); \n\t\t }\t\t \n\t }\n\t \n//\t FileReader m = new FileReader(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\EMAIL000240\");\n//\n//\t\tStringBuffer text = new StringBuffer();\n//\t\tint l;\n//\t\twhile ((l = m.read()) != -1) {\n//\t\t\ttext.append((char) l);\n//\t\t}\n//\t\tm.close();\n//\t\t\n//\t\tString texto = text.toString();\n//\t\t\n//\t\tSystem.out.println(texto);\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tSystem.out.println(\"############################################### NOVO TEXTO ##############################################\");\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tString texto1 = texto.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"[0-9]\", \"\");\n//\t\tSystem.out.println(texto1);\n\t \n\t\t\n\t\t \n\t \n\t \n }"
] |
[
"0.6164388",
"0.61104083",
"0.60554117",
"0.60457927",
"0.60181177",
"0.58532757",
"0.583678",
"0.5792918",
"0.5756446",
"0.575085",
"0.575085",
"0.575085",
"0.575085",
"0.575085",
"0.575085",
"0.575085",
"0.575085",
"0.575085",
"0.5720626",
"0.5708769",
"0.57082623",
"0.5707822",
"0.5707822",
"0.5707822",
"0.5707822",
"0.5707822",
"0.56989026",
"0.56861824",
"0.56566983",
"0.56394386",
"0.56322014",
"0.55968606",
"0.55874425",
"0.558197",
"0.551538",
"0.550558",
"0.54961455",
"0.54961455",
"0.54876184",
"0.54699934",
"0.54659605",
"0.544379",
"0.5429749",
"0.5428179",
"0.541747",
"0.54124683",
"0.54055905",
"0.5401028",
"0.5398152",
"0.5398152",
"0.53956705",
"0.5393855",
"0.5391783",
"0.5389264",
"0.53804946",
"0.53804505",
"0.53795046",
"0.5362906",
"0.5360367",
"0.5349467",
"0.5324003",
"0.5324003",
"0.53109765",
"0.5307526",
"0.5302534",
"0.5288263",
"0.5285771",
"0.5285491",
"0.52660316",
"0.52640593",
"0.5263736",
"0.52617514",
"0.5224878",
"0.5217178",
"0.5216495",
"0.52153784",
"0.52123517",
"0.52083313",
"0.52076656",
"0.5201275",
"0.5200616",
"0.519959",
"0.5196446",
"0.519612",
"0.5192496",
"0.5192271",
"0.51829135",
"0.518077",
"0.51795256",
"0.5176507",
"0.5174204",
"0.51733106",
"0.5167362",
"0.5158658",
"0.51554745",
"0.51504976",
"0.51471806",
"0.51464546",
"0.5144534",
"0.5129397"
] |
0.5463926
|
41
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
long countByExample(ExamineApproveResultExample example);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Override\n\tpublic boolean isApproved();",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"void approveStudent(String studentId);",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.6268564",
"0.5829177",
"0.57739544",
"0.5738189",
"0.5733611",
"0.57072127",
"0.5609223",
"0.55459464",
"0.5527544",
"0.5478476",
"0.54689765",
"0.54689765",
"0.5468003",
"0.5468003",
"0.54678464",
"0.5415083",
"0.5364096",
"0.53490275",
"0.5332027",
"0.5312459",
"0.5268024",
"0.5262691",
"0.5222719",
"0.5206304",
"0.5182244",
"0.5169115",
"0.5147131",
"0.51421314",
"0.5133782",
"0.5117212",
"0.5055837",
"0.5053597",
"0.50403094",
"0.50360507",
"0.5034584",
"0.50345504",
"0.5031439",
"0.5018161",
"0.5010195",
"0.49786267",
"0.4969627",
"0.4952122",
"0.49512988",
"0.49511698",
"0.49503005",
"0.49493277",
"0.49441758",
"0.49259686",
"0.49101108",
"0.49088797",
"0.48994958",
"0.48961458",
"0.48888367",
"0.4886361",
"0.4874519",
"0.4873653",
"0.48726726",
"0.48714787",
"0.48708364",
"0.4866438",
"0.4865813",
"0.48633155",
"0.48612812",
"0.48486295",
"0.48413414",
"0.48385933",
"0.48302165",
"0.4830035",
"0.48295298",
"0.48215687",
"0.48215687",
"0.48177224",
"0.481229",
"0.48116785",
"0.48037538",
"0.4801892",
"0.48009807",
"0.47984493",
"0.4796614",
"0.47894052",
"0.47885227",
"0.4786838",
"0.4776869",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47583216",
"0.47555226",
"0.47515374",
"0.47475475",
"0.47471964",
"0.474274",
"0.47416005",
"0.47370586",
"0.47368068",
"0.47353038",
"0.47350487",
"0.4728419"
] |
0.5286613
|
20
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int deleteByExample(ExamineApproveResultExample example);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Override\n\tpublic boolean isApproved();",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"List<Receipt> getNotApproved() throws DbException;",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"void approveStudent(String studentId);",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.627049",
"0.58273876",
"0.5775151",
"0.5739874",
"0.573375",
"0.57080424",
"0.56081384",
"0.5546899",
"0.5528579",
"0.54796284",
"0.54668516",
"0.54668516",
"0.5465869",
"0.5465869",
"0.5465719",
"0.541476",
"0.5365949",
"0.53479314",
"0.5329164",
"0.53141654",
"0.528606",
"0.5266796",
"0.52629536",
"0.52219665",
"0.5206485",
"0.51824677",
"0.5168188",
"0.5146969",
"0.51435006",
"0.51345533",
"0.51166505",
"0.5057018",
"0.50532585",
"0.5041336",
"0.5037946",
"0.5032883",
"0.5031226",
"0.50307626",
"0.50164855",
"0.5011546",
"0.49796772",
"0.49708173",
"0.4953837",
"0.4952881",
"0.49497405",
"0.49496686",
"0.49457186",
"0.4941299",
"0.49224114",
"0.49116686",
"0.4910487",
"0.4900625",
"0.48964497",
"0.48895228",
"0.48876205",
"0.48758498",
"0.48728687",
"0.48723346",
"0.4870235",
"0.48689032",
"0.48658144",
"0.48642656",
"0.48641887",
"0.4858402",
"0.484922",
"0.48412606",
"0.4839811",
"0.4830588",
"0.48291087",
"0.4826274",
"0.48198736",
"0.48198736",
"0.48166844",
"0.48127457",
"0.48107755",
"0.4804604",
"0.48025867",
"0.4801502",
"0.47975025",
"0.47957653",
"0.4790651",
"0.4787044",
"0.4786699",
"0.47781888",
"0.47574407",
"0.4756688",
"0.4756688",
"0.4756688",
"0.4756688",
"0.4756688",
"0.47545442",
"0.47531596",
"0.4749402",
"0.4746989",
"0.4743649",
"0.47394422",
"0.47380126",
"0.47374636",
"0.4736895",
"0.4735044",
"0.47280434"
] |
0.0
|
-1
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int deleteByPrimaryKey(Long id);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Override\n\tpublic boolean isApproved();",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"void approveStudent(String studentId);",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.62689435",
"0.5827654",
"0.5773799",
"0.5738025",
"0.5733498",
"0.57071334",
"0.5608273",
"0.5545523",
"0.55277854",
"0.54778296",
"0.5466109",
"0.5466109",
"0.5465129",
"0.5465129",
"0.54649764",
"0.54148495",
"0.5364962",
"0.53472847",
"0.5331203",
"0.53131014",
"0.52857816",
"0.52674866",
"0.5262275",
"0.5222761",
"0.52078134",
"0.51818967",
"0.5168277",
"0.5146386",
"0.5143072",
"0.5134133",
"0.51167727",
"0.5056237",
"0.50534177",
"0.5041089",
"0.50362337",
"0.50345296",
"0.50315845",
"0.50307286",
"0.50163203",
"0.50110394",
"0.49787226",
"0.49700096",
"0.49520957",
"0.49512365",
"0.49509725",
"0.49506086",
"0.49458382",
"0.49420637",
"0.49228516",
"0.49090728",
"0.4907679",
"0.49000782",
"0.48976478",
"0.48906958",
"0.48857605",
"0.4873665",
"0.4872106",
"0.48710623",
"0.4870768",
"0.4870201",
"0.4866502",
"0.48647466",
"0.4862979",
"0.48584887",
"0.4848051",
"0.48399544",
"0.4837122",
"0.48279426",
"0.48278266",
"0.48263678",
"0.482127",
"0.482127",
"0.48164257",
"0.48120603",
"0.48108187",
"0.48021695",
"0.48008165",
"0.48005608",
"0.4799478",
"0.47974685",
"0.4789438",
"0.47878048",
"0.47873616",
"0.47773302",
"0.47581744",
"0.4757104",
"0.4757104",
"0.4757104",
"0.4757104",
"0.4757104",
"0.47568303",
"0.47503656",
"0.4747765",
"0.4747602",
"0.47430456",
"0.474164",
"0.47375283",
"0.47363618",
"0.47344273",
"0.47342592",
"0.47281772"
] |
0.0
|
-1
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int insert(ExamineApproveResult record);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"List<String> viewPendingApprovals();",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Override\n\tpublic boolean isApproved();",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"void approveStudent(String studentId);",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.6270248",
"0.582975",
"0.5775514",
"0.57393193",
"0.5734999",
"0.570833",
"0.5607461",
"0.5528359",
"0.54763347",
"0.546608",
"0.546608",
"0.54651064",
"0.54651064",
"0.5464949",
"0.5413773",
"0.5364983",
"0.5350041",
"0.5333406",
"0.53128594",
"0.52886856",
"0.52692425",
"0.5263543",
"0.52240014",
"0.52080154",
"0.5183947",
"0.51670027",
"0.5145662",
"0.514345",
"0.51325953",
"0.5115116",
"0.50574744",
"0.5056117",
"0.50395364",
"0.5036047",
"0.50351",
"0.5031506",
"0.5029677",
"0.50154376",
"0.5011838",
"0.49785835",
"0.4968942",
"0.49529132",
"0.49524415",
"0.49509835",
"0.49487042",
"0.49464256",
"0.4941159",
"0.49230543",
"0.4907805",
"0.4906793",
"0.4901908",
"0.48993546",
"0.4891027",
"0.4883494",
"0.48742104",
"0.48731682",
"0.4873001",
"0.48721057",
"0.48687902",
"0.48682588",
"0.4865299",
"0.4863271",
"0.48599693",
"0.48455828",
"0.48391157",
"0.48376873",
"0.4828729",
"0.4828163",
"0.4826539",
"0.48232722",
"0.48232722",
"0.48171306",
"0.48121512",
"0.4809644",
"0.4803558",
"0.48018515",
"0.48012424",
"0.479967",
"0.47980326",
"0.47891682",
"0.47881508",
"0.47878382",
"0.47791886",
"0.4759773",
"0.47586104",
"0.47574416",
"0.47574416",
"0.47574416",
"0.47574416",
"0.47574416",
"0.47491652",
"0.47486836",
"0.47471985",
"0.4743243",
"0.474091",
"0.47375855",
"0.47373366",
"0.473493",
"0.47324976",
"0.47299796"
] |
0.55465823
|
7
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int insertSelective(ExamineApproveResult record);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Override\n\tpublic boolean isApproved();",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"void approveStudent(String studentId);",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.6268564",
"0.5829177",
"0.57739544",
"0.5738189",
"0.5733611",
"0.5609223",
"0.55459464",
"0.5527544",
"0.5478476",
"0.54689765",
"0.54689765",
"0.5468003",
"0.5468003",
"0.54678464",
"0.5415083",
"0.5364096",
"0.53490275",
"0.5332027",
"0.5312459",
"0.5286613",
"0.5268024",
"0.5262691",
"0.5222719",
"0.5206304",
"0.5182244",
"0.5169115",
"0.5147131",
"0.51421314",
"0.5133782",
"0.5117212",
"0.5055837",
"0.5053597",
"0.50403094",
"0.50360507",
"0.5034584",
"0.50345504",
"0.5031439",
"0.5018161",
"0.5010195",
"0.49786267",
"0.4969627",
"0.4952122",
"0.49512988",
"0.49511698",
"0.49503005",
"0.49493277",
"0.49441758",
"0.49259686",
"0.49101108",
"0.49088797",
"0.48994958",
"0.48961458",
"0.48888367",
"0.4886361",
"0.4874519",
"0.4873653",
"0.48726726",
"0.48714787",
"0.48708364",
"0.4866438",
"0.4865813",
"0.48633155",
"0.48612812",
"0.48486295",
"0.48413414",
"0.48385933",
"0.48302165",
"0.4830035",
"0.48295298",
"0.48215687",
"0.48215687",
"0.48177224",
"0.481229",
"0.48116785",
"0.48037538",
"0.4801892",
"0.48009807",
"0.47984493",
"0.4796614",
"0.47894052",
"0.47885227",
"0.4786838",
"0.4776869",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47583216",
"0.47555226",
"0.47515374",
"0.47475475",
"0.47471964",
"0.474274",
"0.47416005",
"0.47370586",
"0.47368068",
"0.47353038",
"0.47350487",
"0.4728419"
] |
0.57072127
|
5
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Override\n\tpublic boolean isApproved();",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"List<Receipt> getNotApproved() throws DbException;",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"void approveStudent(String studentId);",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.627049",
"0.58273876",
"0.5775151",
"0.5739874",
"0.57080424",
"0.56081384",
"0.5546899",
"0.5528579",
"0.54796284",
"0.54668516",
"0.54668516",
"0.5465869",
"0.5465869",
"0.5465719",
"0.541476",
"0.5365949",
"0.53479314",
"0.5329164",
"0.53141654",
"0.528606",
"0.5266796",
"0.52629536",
"0.52219665",
"0.5206485",
"0.51824677",
"0.5168188",
"0.5146969",
"0.51435006",
"0.51345533",
"0.51166505",
"0.5057018",
"0.50532585",
"0.5041336",
"0.5037946",
"0.5032883",
"0.5031226",
"0.50307626",
"0.50164855",
"0.5011546",
"0.49796772",
"0.49708173",
"0.4953837",
"0.4952881",
"0.49497405",
"0.49496686",
"0.49457186",
"0.4941299",
"0.49224114",
"0.49116686",
"0.4910487",
"0.4900625",
"0.48964497",
"0.48895228",
"0.48876205",
"0.48758498",
"0.48728687",
"0.48723346",
"0.4870235",
"0.48689032",
"0.48658144",
"0.48642656",
"0.48641887",
"0.4858402",
"0.484922",
"0.48412606",
"0.4839811",
"0.4830588",
"0.48291087",
"0.4826274",
"0.48198736",
"0.48198736",
"0.48166844",
"0.48127457",
"0.48107755",
"0.4804604",
"0.48025867",
"0.4801502",
"0.47975025",
"0.47957653",
"0.4790651",
"0.4787044",
"0.4786699",
"0.47781888",
"0.47574407",
"0.4756688",
"0.4756688",
"0.4756688",
"0.4756688",
"0.4756688",
"0.47545442",
"0.47531596",
"0.4749402",
"0.4746989",
"0.4743649",
"0.47394422",
"0.47380126",
"0.47374636",
"0.4736895",
"0.4735044",
"0.47280434"
] |
0.573375
|
4
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
ExamineApproveResult selectByPrimaryKey(Long id);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Override\n\tpublic boolean isApproved();",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"void approveStudent(String studentId);",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.5827654",
"0.5773799",
"0.5738025",
"0.5733498",
"0.57071334",
"0.5608273",
"0.5545523",
"0.55277854",
"0.54778296",
"0.5466109",
"0.5466109",
"0.5465129",
"0.5465129",
"0.54649764",
"0.54148495",
"0.5364962",
"0.53472847",
"0.5331203",
"0.53131014",
"0.52857816",
"0.52674866",
"0.5262275",
"0.5222761",
"0.52078134",
"0.51818967",
"0.5168277",
"0.5146386",
"0.5143072",
"0.5134133",
"0.51167727",
"0.5056237",
"0.50534177",
"0.5041089",
"0.50362337",
"0.50345296",
"0.50315845",
"0.50307286",
"0.50163203",
"0.50110394",
"0.49787226",
"0.49700096",
"0.49520957",
"0.49512365",
"0.49509725",
"0.49506086",
"0.49458382",
"0.49420637",
"0.49228516",
"0.49090728",
"0.4907679",
"0.49000782",
"0.48976478",
"0.48906958",
"0.48857605",
"0.4873665",
"0.4872106",
"0.48710623",
"0.4870768",
"0.4870201",
"0.4866502",
"0.48647466",
"0.4862979",
"0.48584887",
"0.4848051",
"0.48399544",
"0.4837122",
"0.48279426",
"0.48278266",
"0.48263678",
"0.482127",
"0.482127",
"0.48164257",
"0.48120603",
"0.48108187",
"0.48021695",
"0.48008165",
"0.48005608",
"0.4799478",
"0.47974685",
"0.4789438",
"0.47878048",
"0.47873616",
"0.47773302",
"0.47581744",
"0.4757104",
"0.4757104",
"0.4757104",
"0.4757104",
"0.4757104",
"0.47568303",
"0.47503656",
"0.4747765",
"0.4747602",
"0.47430456",
"0.474164",
"0.47375283",
"0.47363618",
"0.47344273",
"0.47342592",
"0.47281772"
] |
0.62689435
|
0
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int updateByExampleSelective(@Param("record") ExamineApproveResult record, @Param("example") ExamineApproveResultExample example);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"List<String> viewPendingApprovals();",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Override\n\tpublic boolean isApproved();",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"void approveStudent(String studentId);",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.6270248",
"0.582975",
"0.5775514",
"0.57393193",
"0.5734999",
"0.570833",
"0.5607461",
"0.55465823",
"0.5528359",
"0.54763347",
"0.546608",
"0.546608",
"0.54651064",
"0.54651064",
"0.5464949",
"0.5413773",
"0.5364983",
"0.5350041",
"0.5333406",
"0.53128594",
"0.52886856",
"0.52692425",
"0.5263543",
"0.52240014",
"0.52080154",
"0.5183947",
"0.51670027",
"0.5145662",
"0.514345",
"0.51325953",
"0.5115116",
"0.50574744",
"0.5056117",
"0.50395364",
"0.5036047",
"0.50351",
"0.5031506",
"0.5029677",
"0.50154376",
"0.5011838",
"0.49785835",
"0.4968942",
"0.49529132",
"0.49524415",
"0.49509835",
"0.49487042",
"0.49464256",
"0.4941159",
"0.49230543",
"0.4907805",
"0.4906793",
"0.48993546",
"0.4891027",
"0.4883494",
"0.48742104",
"0.48731682",
"0.4873001",
"0.48721057",
"0.48687902",
"0.48682588",
"0.4865299",
"0.4863271",
"0.48599693",
"0.48455828",
"0.48391157",
"0.48376873",
"0.4828729",
"0.4828163",
"0.4826539",
"0.48232722",
"0.48232722",
"0.48171306",
"0.48121512",
"0.4809644",
"0.4803558",
"0.48018515",
"0.48012424",
"0.479967",
"0.47980326",
"0.47891682",
"0.47881508",
"0.47878382",
"0.47791886",
"0.4759773",
"0.47586104",
"0.47574416",
"0.47574416",
"0.47574416",
"0.47574416",
"0.47574416",
"0.47491652",
"0.47486836",
"0.47471985",
"0.4743243",
"0.474091",
"0.47375855",
"0.47373366",
"0.473493",
"0.47324976",
"0.47299796"
] |
0.4901908
|
51
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int updateByExample(@Param("record") ExamineApproveResult record, @Param("example") ExamineApproveResultExample example);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Override\n\tpublic boolean isApproved();",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"void approveStudent(String studentId);",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.6268564",
"0.5829177",
"0.57739544",
"0.5738189",
"0.5733611",
"0.57072127",
"0.5609223",
"0.55459464",
"0.5527544",
"0.5478476",
"0.54689765",
"0.54689765",
"0.5468003",
"0.5468003",
"0.54678464",
"0.5415083",
"0.5364096",
"0.53490275",
"0.5332027",
"0.5312459",
"0.5286613",
"0.5268024",
"0.5262691",
"0.5222719",
"0.5206304",
"0.5182244",
"0.5169115",
"0.5147131",
"0.51421314",
"0.5133782",
"0.5117212",
"0.5055837",
"0.5053597",
"0.50403094",
"0.50360507",
"0.5034584",
"0.50345504",
"0.5031439",
"0.5018161",
"0.5010195",
"0.49786267",
"0.4969627",
"0.4952122",
"0.49512988",
"0.49511698",
"0.49503005",
"0.49493277",
"0.49441758",
"0.49259686",
"0.49101108",
"0.49088797",
"0.48994958",
"0.48961458",
"0.48888367",
"0.4886361",
"0.4874519",
"0.4873653",
"0.48726726",
"0.48714787",
"0.48708364",
"0.4866438",
"0.4865813",
"0.48633155",
"0.48612812",
"0.48486295",
"0.48413414",
"0.48385933",
"0.48302165",
"0.4830035",
"0.48295298",
"0.48215687",
"0.48215687",
"0.48177224",
"0.481229",
"0.48116785",
"0.48037538",
"0.4801892",
"0.48009807",
"0.47984493",
"0.4796614",
"0.47894052",
"0.47885227",
"0.4786838",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47600025",
"0.47583216",
"0.47555226",
"0.47515374",
"0.47475475",
"0.47471964",
"0.474274",
"0.47416005",
"0.47370586",
"0.47368068",
"0.47353038",
"0.47350487",
"0.4728419"
] |
0.4776869
|
83
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int updateByPrimaryKeySelective(ExamineApproveResult record);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKey(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Override\n\tpublic boolean isApproved();",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"List<Receipt> getNotApproved() throws DbException;",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"void approveStudent(String studentId);",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.627049",
"0.58273876",
"0.5739874",
"0.573375",
"0.57080424",
"0.56081384",
"0.5546899",
"0.5528579",
"0.54796284",
"0.54668516",
"0.54668516",
"0.5465869",
"0.5465869",
"0.5465719",
"0.541476",
"0.5365949",
"0.53479314",
"0.5329164",
"0.53141654",
"0.528606",
"0.5266796",
"0.52629536",
"0.52219665",
"0.5206485",
"0.51824677",
"0.5168188",
"0.5146969",
"0.51435006",
"0.51345533",
"0.51166505",
"0.5057018",
"0.50532585",
"0.5041336",
"0.5037946",
"0.5032883",
"0.5031226",
"0.50307626",
"0.50164855",
"0.5011546",
"0.49796772",
"0.49708173",
"0.4953837",
"0.4952881",
"0.49497405",
"0.49496686",
"0.49457186",
"0.4941299",
"0.49224114",
"0.49116686",
"0.4910487",
"0.4900625",
"0.48964497",
"0.48895228",
"0.48876205",
"0.48758498",
"0.48728687",
"0.48723346",
"0.4870235",
"0.48689032",
"0.48658144",
"0.48642656",
"0.48641887",
"0.4858402",
"0.484922",
"0.48412606",
"0.4839811",
"0.4830588",
"0.48291087",
"0.4826274",
"0.48198736",
"0.48198736",
"0.48166844",
"0.48127457",
"0.48107755",
"0.4804604",
"0.48025867",
"0.4801502",
"0.47975025",
"0.47957653",
"0.4790651",
"0.4787044",
"0.4786699",
"0.47781888",
"0.47574407",
"0.4756688",
"0.4756688",
"0.4756688",
"0.4756688",
"0.4756688",
"0.47545442",
"0.47531596",
"0.4749402",
"0.4746989",
"0.4743649",
"0.47394422",
"0.47380126",
"0.47374636",
"0.4736895",
"0.4735044",
"0.47280434"
] |
0.5775151
|
2
|
This method was generated by MyBatis Generator. This method corresponds to the database table examine_approve_result
|
int updateByPrimaryKey(ExamineApproveResult record);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExamineApproveResult selectByPrimaryKey(Long id);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"List<ExamineApproveResult> selectByExample(ExamineApproveResultExample example);",
"int insertSelective(ExamineApproveResult record);",
"public ResultSet Retcomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\treturn rs;\r\n}",
"int insert(ExamineApproveResult record);",
"public int Approveduser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"public Byte getApproveStatus() {\n return approveStatus;\n }",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"long countByExample(ExamineApproveResultExample example);",
"public int countByapproval_status(java.lang.String approval_status);",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}",
"@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public ResultSet Recomp1() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='not approved'\");\r\n\treturn rs;\r\n\t\r\n}",
"public ResultSet Rebrokerr() throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.status='approved'\");\r\n\t\treturn rs;\r\n\t}",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}",
"public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public interface ActivityEnrollmentMapper {\n @Select(\"select status from activity_enrollment where userId=${userId} and activityId=${actId} limit 1\")\n public Integer getEnrollStatus(@Param(\"userId\") Integer userId, @Param(\"actId\") Integer actId);\n\n}",
"List<String> viewPendingApprovals();",
"public int getResultCode();",
"public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"public String getResultType();",
"@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);",
"@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);",
"@Override\n\tpublic boolean isApproved();",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);",
"public IStatus getResult();",
"public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.POST)\r\n public ResponseEntity<?> addTruePositiveResult(@RequestBody Result result) throws Excepcion {\r\n //TODO\r\n try {\r\n covidAggregateService.aggregateResult(result, ResultType.TRUE_POSITIVE);\r\n return new ResponseEntity<>(HttpStatus.CREATED);\r\n } catch (Excepcion excepcion) {\r\n return new ResponseEntity<>(HttpStatus.CONFLICT);\r\n }\r\n }",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"int updateByExampleSelective(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}",
"public static String approveDeny(int leave_id,int empId,EnumLeaveStatus l_status) {\r\n Leave ld = Leave.listById(leave_id);\r\n String s=null;\r\n if (ld != null) {\r\n int noOfDays = ld.getNoLeaveDays();\r\n int emplId = ld.getEmployeeId();\r\n int empdId = Leave.showManager(leave_id);\r\n String dbStatus = null;\r\n System.out.println(l_status);\r\n System.out.println(ld.getLeaveStatus());\r\n if (empId != empdId) {\r\n s=\"You are not authorised to access this employee.\";\r\n return s;\r\n }\r\n if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n \r\n } else if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.approved)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else if (l_status.equals(\"approved\") && ld.getLeaveStatus().equals(l_status.denied)) {\r\n dbStatus = \"approved\";\r\n edao().decrement(emplId, noOfDays);\r\n dao().comment(dbStatus, leave_id);\r\n s=\"Leave Approved Successfully\";\r\n } else {\r\n if (l_status.equals(\"denied\") && ld.getLeaveStatus().equals(l_status.pending)) {\r\n dbStatus = \"denied\";\r\n edao().increment(emplId, noOfDays);\r\n dao().comment( dbStatus, leave_id);\r\n s=\"Leave Rejected\";\r\n } else {\r\n s=\"Already on given status\";\r\n }\r\n }\r\n } else {\r\n s=\"Invalid LeaveId\";\r\n }\r\n return s;\r\n }",
"public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }",
"@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n dataBase.updateAllProgramsToTable(result);\r\n }",
"public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}",
"@RequestMapping(value = \"/true-positive\", method = RequestMethod.GET)\r\n public ResponseEntity<?> getTruePositiveResult() {\r\n //TODO\r\n //covidAggregateService.getResult(ResultType.TRUE_POSITIVE);\r\n try {\r\n return new ResponseEntity<>(covidAggregateService.getResult(ResultType.TRUE_POSITIVE), HttpStatus.ACCEPTED);\r\n } catch (Exception e) {\r\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }\r\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"public ApprovalAndSubmissionInfo getApprovalAndSubmissionInfo(final Employee_mst selectedEmployee,\n final Date startDate) {\n List<Monthly_report_history> listMonthlyReportHistory = this.monthly_report_historyRepository\n .findMonthlyReportHistoryByEmployeeAndStartDate(selectedEmployee.getEmp_code(),\n DateUtils.getMonth(startDate), DateUtils.getYear(startDate))\n .getResultList();\n ApprovalAndSubmissionInfo info = new ApprovalAndSubmissionInfo();\n int countSubmission = 0;\n int countReject = 0;\n int countApprove = 0;\n int countReOpen = 0;\n\n for (int i = 0; i < listMonthlyReportHistory.size(); i++) {\n\n String type = listMonthlyReportHistory.get(i).getSousa();\n Monthly_report_history history = listMonthlyReportHistory.get(i);\n switch (type) {\n case SummaryReportConstants.MonthlyReportHisotry.SUBMISSION:\n countSubmission++;\n if (info.getDateSubmissions() == null) {\n info.setDateSubmissions(listMonthlyReportHistory.get(i).getSousa_jiten());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REJECT:\n countReject++;\n if (info.getDateReject() == null) {\n info.setDateReject(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setRejectedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setRejectComment(history.getComment());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.APPROVE:\n countApprove++;\n if (info.getDateApproval() == null) {\n info.setDateApproval(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setApprover(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n }\n break;\n case SummaryReportConstants.MonthlyReportHisotry.REOPEN:\n countReOpen++;\n if (info.getDateReOpen() == null) {\n info.setDateReOpen(listMonthlyReportHistory.get(i).getSousa_jiten());\n info.setReOpenedBy(listMonthlyReportHistory.get(i).getEmployee_mst().getEmp_name());\n info.setReopenComment(history.getComment());\n }\n break;\n default:\n break;\n }\n }\n\n info.setNumberOfSubmissions(countSubmission);\n info.setNumberOfReject(countReject);\n info.setNumberOfApprove(countApprove);\n info.setNumberOfReOpen(countReOpen);\n return info;\n }",
"@Override\n\tpublic String approveLeaveByLeaveRequestIdTemp(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float mpcl,final float mpel,final float mplwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.cel,lh.ccl,lh.inAccount,lh.leaveDays,lh.leaveDates from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\n\t List<String> leaveTypes=new ArrayList<String>();\n\t leaveTypes.add(\"CL\");\n\t leaveTypes.add(\"EL\");\n\t leaveTypes.add(\"LWP\");\n\t \n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType) && !leaveTypes.contains(faculityLeaveMasterEntity.getLeaveType()) && mplwp>0) {\n\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\t\n\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1)};\n\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t}\n\t\telse if(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t LeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\t//finding total leaves applied and checking whether mcl is less than available cls\n\t\t\t\tfloat totalAvailableCls=leaveBalanceEntity.getCl();\n\t\t\t\tString totalClLeavesDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\tint totalClLeavesCountDays=0;\n\t\t\t\tif(totalClLeavesDays!=null && totalClLeavesDays.length()>0) {\n\t\t\t\t\tString totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\ttotalClLeavesCountDays=totalDaysTokens.length;\n\t\t\t\t\t\tfor(String str:totalDaysTokens) {\n\t\t\t\t\t\t\tfloat cp=Float.parseFloat(str.substring(str.indexOf(\"(\")+1,str.indexOf(\")\")));\n\t\t\t\t\t\t\ttotalAvailableCls=totalAvailableCls+cp;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if modified cl is less than available CL of the employee\n\t\t\t\t//04(1),05(0.75),\n\t\t\t\tString totalDbClDays=\"\";\n\t\t\t\tif(mpcl<totalAvailableCls) {\n\t\t\t\t\t //float remainingCl=totalAvailableCls -mpcl; //1.75 ->>.25\n\t\t\t\t\t String totalDaysTokens[]=totalClLeavesDays.split(\",\");\n\t\t\t\t\t if(totalClLeavesCountDays==1) {\n\t\t\t\t\t\t \t//current computated cl into applied leaves request tables\n\t\t\t\t\t\t \tfloat ccl=Float.parseFloat(totalDaysTokens[0].substring(totalDaysTokens[0].indexOf(\"(\")+1,totalDaysTokens[0].indexOf(\")\")));\n\t\t\t\t\t\t \tif((ccl-mpcl) >0) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDaysTokens[0].substring(0,2)+\"(\"+(ccl-mpcl)+\")\";\n\t\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t\t int mpclcount=(int) Math.ceil(mpcl);\n\t\t\t\t\t\t float tmpcl=mpcl;\n\t\t\t\t\t\t for(int i=0;i<mpclcount;i++) {\n\t\t\t\t\t\t \t if(tmpcl>=1) {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+totalDaysTokens[i]; \n\t\t\t\t\t\t \t }\t \n\t\t\t\t\t\t \t else {\n\t\t\t\t\t\t \t\t totalDbClDays=totalDbClDays+\",\"+ totalDaysTokens[i].substring(0, 2)+\"(\"+tmpcl+\")\"; \n\t\t\t\t\t\t \t }\t\t \n\t\t\t\t\t\t \t tmpcl=tmpcl-1;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t} //end of CL computation\n\t\t\t\t\n\t\t\t\t//compute total leaves dd from dates\n\t\t\t\t//2016-07-04,2016-07-05,2016-07-06\n\t\t\t\tString leaveDates=faculityLeaveMasterEntity.getLeaveDates();\n\t\t\t\tString ddDates=\"\";\n\t\t\t\tString leaveDatesTokens[]=leaveDates.split(\",\");\n\t\t\t\tfor(String dddate:leaveDatesTokens) {\n\t\t\t\t\t\tString dddateTokens[]=dddate.split(\"-\");\n\t\t\t\t\t\tString dd=dddateTokens[2];\n\t\t\t\t\t\tddDates=ddDates+dd+\",\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 1 when all CL ,EL,LWP is not zero\n\t\t\t\tif(mpcl>0 && mpel>0 && mplwp>0) {\n\t\t\t\t\t\t\t\tString cldates=ddDates+\"-> (\"+mpcl+\")\";\n\t\t\t\t\t\t\t\tString eldates=ddDates+\"-> (\"+mpel+\")\";\n\t\t\t\t\t\t\t\tString lwpdates=ddDates+\"-> (\"+mplwp+\")\";\n\t\t\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,cldates,mplwp,lwpdates,mpel,eldates};\n\t\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mplwp>0 && mpel==0) {\n\t\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),mplwp,dateTokensList.get(1),0,\"\"};\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl>0 && mpel>0 && mplwp==0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mpel, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{mpcl,dateTokensList.get(0),0,\"\",mpel,dateTokensList.get(1)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}else if(mpcl==0 && mpel>0 && mplwp>0) {\n\t\t\t\t\tList<String> dateTokensList=new ArrayList<String>();\n\t\t\t\t\tsetComputedDatesForLeaveTypes(leaveDates, faculityLeaveMasterEntity.getTotalDays(), mplwp, dateTokensList);\n\t\t\t\t\tString updateLeaveComputatedDates=\"update emp_leave_requests_tbl set ccl=?,leaveDays=?,lwp=?,lwpDays=?,cel=?,elDays=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\tObject[] pdata=new Object[]{0,\"\",mplwp,dateTokensList.get(1),mpel,dateTokensList.get(0)};\n\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveComputatedDates,pdata);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLeavesModifiedEntity leavesModifiedEntity=findModifiedLeaveByRequestId(leaveRequestId);\n\t\t\t\tfloat clbalanceDiff=leavesModifiedEntity.getCl()-mpcl;\n\t\t\t\tfloat elbalanceDiff=leavesModifiedEntity.getEl()-mpel;\n\t\t\t\tString updateLeaveBalance=\"\";\n\t\t\t\tif(clbalanceDiff>0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}else if(clbalanceDiff<=0 && elbalanceDiff>0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL-\"+clbalanceDiff+\", EL=EL+\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t} if(clbalanceDiff>0 && elbalanceDiff<=0){\n\t\t\t\t\t updateLeaveBalance=\"update emp_leave_balance set CL=CL+\"+clbalanceDiff+\", EL=EL-\"+elbalanceDiff+\" where empid=\"+faculityLeaveMasterEntity.getEmpid();\n\t\t\t\t}\n\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveBalance);\n\t}\n\t\t\n\t\t//end of no change\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t\t//update Leave Balance Table\n\t\t\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}",
"Result getResult();",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n public void doExecute(ProcessBundle bundle) throws Exception {\n\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n final String unifiedProposalId = (String) bundle.getParams().get(\"Escm_Proposalmgmt_ID\")\n .toString();\n EscmProposalMgmt unifiedProposal = OBDal.getInstance().get(EscmProposalMgmt.class,\n unifiedProposalId);\n\n final String clientId = (String) bundle.getContext().getClient();\n String userId = (String) bundle.getContext().getUser();\n String tabId = (String) bundle.getParams().get(\"tabId\");\n String roleId = (String) bundle.getContext().getRole();\n String orgId = unifiedProposal.getOrganization().getId();\n\n String histStatus = \"\", comments = (String) bundle.getParams().get(\"comments\").toString();\n boolean errorFlag = false, headerUpdate = false;\n String DocStatus = unifiedProposal.getProposalappstatus();\n\n if (DocStatus.equals(\"INC\")) {\n OBDal.getInstance().rollbackAndClose();\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_AlreadyPreocessed_Approved@\");\n bundle.setResult(result);\n return;\n }\n\n // OBError error = UnifiedProposalReactivateMethods\n // .proposalReactivateValidation(unifiedProposalId, clientId, orgId, userId, roleId, tabId);\n // if (error.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n // bundle.setResult(error);\n // return;\n // }\n\n Connection con = OBDal.getInstance().getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = null;\n List<String> proposalList = new ArrayList<String>();\n\n try {\n\n query = \" select escm_proposalmgmt_id from escm_proposalmgmt_line \"\n + \" where escm_proposalmgmt_line_id in (select escm_unifiedproposalines_v_id \"\n + \" from escm_unifiedproposalines_v where escm_proposalmgmt_id = ?) \"\n + \" group by escm_proposalmgmt_id \";\n\n ps = con.prepareStatement(query);\n ps.setString(1, unifiedProposalId);\n\n rs = ps.executeQuery();\n\n // Get proposal id list\n while (rs.next()) {\n proposalList.add(rs.getString(\"escm_proposalmgmt_id\"));\n }\n\n // Reactivate validation\n // Check PO is created for awarded proposals\n boolean hasError = false;\n String proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalReactivateMethods.proposalReactivateValidation(proposalId,\n clientId, proposal.getOrganization().getId(), userId, roleId, tabId);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Escm_Proposalhasorder@\");\n bundle.setResult(result);\n return;\n }\n\n // Update line info if any error occurs\n hasError = false;\n proposalMessage = OBMessageUtils.messageBD(\"Escm_proposalcommon\").replace(\"%\", \"\");\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.encumbranceValidationReject(proposal, vars);\n if (error1.getType().equals(\"error\")) {\n // OBDal.getInstance().rollbackAndClose();\n hasError = true;\n proposalMessage = proposalMessage + proposal.getProposalno() + \", \";\n }\n }\n if (hasError) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", proposalMessage,\n \"@Efin_Encum_Used_Cannot_Rej@\");\n bundle.setResult(result);\n return;\n }\n\n // Skip new version (todo)\n // Check bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, true, proposalList);\n if (error1.getType().equals(\"error\")) {\n bundle.setResult(error1);\n return;\n }\n }\n\n // If no error occurs, do encumbrance changes\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposal = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n OBError error1 = UnifiedProposalRejectMethods.updateProposalEncumbranceReject(proposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n // update bid encumbrance for unified proposal\n if (unifiedProposal.getEscmBidmgmt() != null\n && unifiedProposal.getEscmBidmgmt().getEncumbrance() != null) {\n\n boolean isFullyAwarded = UnifiedProposalActionMethod.isProposalFullyAwarded(proposalList);\n if (isFullyAwarded) {\n\n OBError error1 = UnifiedProposalRejectMethods.changeEncumStageRej(unifiedProposal,\n vars);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n\n } else {\n // reactivate split encumbrance\n for (String proposalId : proposalList) {\n EscmProposalMgmt proposalMgmt = OBDal.getInstance().get(EscmProposalMgmt.class,\n proposalId);\n UnifiedProposalRejectMethods.reactivateSplitBid(proposalMgmt, false, proposalList);\n }\n\n OBError error1 = UnifiedProposalRejectMethods\n .getUnifiedProposaltoBidDetailsRej(unifiedProposal, vars, false, proposalList);\n if (error1.getType().equals(\"error\")) {\n OBDal.getInstance().rollbackAndClose();\n bundle.setResult(error1);\n return;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // log.error(\"Exception in isDirectApproval \" + e.getMessage());\n } finally {\n // close db connection\n try {\n if (rs != null)\n rs.close();\n if (ps != null)\n ps.close();\n } catch (Exception e) {\n }\n }\n\n // update proposal Management header status based on reject\n if (!errorFlag) {\n\n headerUpdate = UnifiedProposalReactivateMethods\n .updateUnifiedProposalReactivate(unifiedProposal);\n\n if (headerUpdate) {\n OBDal.getInstance().save(unifiedProposal);\n\n // insert the Action history\n if (!StringUtils.isEmpty(unifiedProposalId)) {\n JSONObject historyData = new JSONObject();\n histStatus = \"REA\";// Reactivate\n historyData.put(\"ClientId\", clientId);\n historyData.put(\"OrgId\", orgId);\n historyData.put(\"RoleId\", roleId);\n historyData.put(\"UserId\", userId);\n historyData.put(\"HeaderId\", unifiedProposalId);\n historyData.put(\"Comments\", comments);\n historyData.put(\"Status\", histStatus);\n historyData.put(\"NextApprover\", \"\");\n historyData.put(\"HistoryTable\", ApprovalTables.Proposal_Management_History);\n historyData.put(\"HeaderColumn\",\n ApprovalTables.Proposal_Management_History_HEADER_COLUMN);\n historyData.put(\"ActionColumn\",\n ApprovalTables.Proposal_Management_History_DOCACTION_COLUMN);\n\n UnifiedProposalActionMethod.InsertApprovalHistory(historyData);\n }\n\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT);\n // delete the unused nextroles in eut_next_role table.\n DocumentRuleDAO.deleteUnusedNextRoles(OBDal.getInstance().getConnection(),\n Resource.PROPOSAL_MANAGEMENT_DIRECT);\n\n }\n }\n\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", \"@Escm_Ir_complete_success@\");\n bundle.setResult(result);\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n OBDal.getInstance().rollbackAndClose();\n log.debug(\"Exeception in UnifiedProposalReactivate:\" + e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> map) {\n\t\treturn approvalDao.selectList(map);\n\t}",
"public ResultSet Recomp() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname from company c,login l where l.login_id=c.login_id and l.status='approved'\");\r\n\t//System.out.println(\"compname\");\r\n\treturn rs;\r\n\t\r\n}",
"@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);",
"org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();",
"List<Receipt> getNotApproved() throws DbException;",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public int insertApprovalRequest(ApprovalInfo approvalObj)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into SOCIAL_EAI_APPROVAL(REQ_SOCIAL_ID,REQ_FIRSTNAME,REQ_LASTNAME,REQ_SOCIAL_EMAIL,APPROVAL_STATUS,TIME_CREATED) values(?, ?, ?, ?, ?,?)\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setString(1,approvalObj.getSocial_ID()); \r\n\t\t\tpstmt.setString(2,approvalObj.getFirstName()); \r\n\t\t\tpstmt.setString(3,approvalObj.getLastName()); \r\n\t\t\tpstmt.setString(4,approvalObj.getSocialEmail());\r\n\t\t\tpstmt.setInt(5,approvalObj.getApprovalStatus());\r\n\t\t\tpstmt.setTimestamp(6,approvalObj.getTime_Created());\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn result;\r\n\t}",
"public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}",
"public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"void approveStudent(String studentId);",
"int updateByExample(@Param(\"record\") ExamineApproveResult record, @Param(\"example\") ExamineApproveResultExample example);",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}",
"@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"@Select({\n \"SELECT COUNT(0) FROM \" + ServeInfoSqlProvider.TABLE_NAME +\n \" WHERE \" + BaseSqlProvider.FIELD_ARCHIVE + \" = 0 AND id = #{serveId}\"\n })\n int checkServeId(@Param(\"serveId\") Long serveId);",
"@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();",
"@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}",
"@Override\n\tpublic List<Map<String, Object>> selectMember(Map<String, Object> map) {\n\t\treturn approvalDao.selectMember(map);\n\t\t\n\t}",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"public ArrayList<String[]> queryApprove(String currentUser) {\n return model.queryApprove(currentUser);\n }",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }"
] |
[
"0.62689435",
"0.5827654",
"0.5773799",
"0.5733498",
"0.57071334",
"0.5608273",
"0.5545523",
"0.55277854",
"0.54778296",
"0.5466109",
"0.5466109",
"0.5465129",
"0.5465129",
"0.54649764",
"0.54148495",
"0.5364962",
"0.53472847",
"0.5331203",
"0.53131014",
"0.52857816",
"0.52674866",
"0.5262275",
"0.5222761",
"0.52078134",
"0.51818967",
"0.5168277",
"0.5146386",
"0.5143072",
"0.5134133",
"0.51167727",
"0.5056237",
"0.50534177",
"0.5041089",
"0.50362337",
"0.50345296",
"0.50315845",
"0.50307286",
"0.50163203",
"0.50110394",
"0.49787226",
"0.49700096",
"0.49520957",
"0.49512365",
"0.49509725",
"0.49506086",
"0.49458382",
"0.49420637",
"0.49228516",
"0.49090728",
"0.4907679",
"0.49000782",
"0.48976478",
"0.48906958",
"0.48857605",
"0.4873665",
"0.4872106",
"0.48710623",
"0.4870768",
"0.4870201",
"0.4866502",
"0.48647466",
"0.4862979",
"0.48584887",
"0.4848051",
"0.48399544",
"0.4837122",
"0.48279426",
"0.48278266",
"0.48263678",
"0.482127",
"0.482127",
"0.48164257",
"0.48120603",
"0.48108187",
"0.48021695",
"0.48008165",
"0.48005608",
"0.4799478",
"0.47974685",
"0.4789438",
"0.47878048",
"0.47873616",
"0.47773302",
"0.47581744",
"0.4757104",
"0.4757104",
"0.4757104",
"0.4757104",
"0.4757104",
"0.47568303",
"0.47503656",
"0.4747765",
"0.4747602",
"0.47430456",
"0.474164",
"0.47375283",
"0.47363618",
"0.47344273",
"0.47342592",
"0.47281772"
] |
0.5738025
|
3
|
Called when the activity is first created.
|
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Globals.myContext = this;
myStats = new Stats();
thisLocation = new MyLocationListener(this);
thisDob = new DobOrientation(this);
//textSiderealTime = (EditText) findViewById(R.id.EditTextTimeSidereal);
textAltitude = (EditText) findViewById(R.id.EditTextAlt);
textAzimuth = (EditText) findViewById(R.id.EditTextAz);
textScopeAltitude = (EditText) findViewById(R.id.EditTextScopeAlt);
textScopeAzimuth = (EditText) findViewById(R.id.EditTextScopeAz);
textRA = (EditText) findViewById(R.id.EditTextRA);
textDEC = (EditText) findViewById(R.id.EditTextDEC);
ButtonSync = (Button)findViewById(R.id.buttonSync);
mySyncClicker = new SyncClicked();
ButtonSync.setOnClickListener(mySyncClicker);
ButtonMakeClosest = (Button)findViewById(R.id.buttonSetClosest);
ButtonMakeClosest.setOnClickListener(this);
ButtonSkyView = (Button)findViewById(R.id.buttonSkyView);
ButtonSkyView.setOnClickListener(this);
objectName = (TextView)findViewById(R.id.TextView09);
counter = new MyCount(15000, 1000);
counter.start();
spinner_group= (Spinner) findViewById(R.id.Spinner02);
String myGroups[] = new String[5];
myGroups[0] = "Messier";
myGroups[1] = "Planets";
myGroups[2] = "Stars";
myGroups[3] = "User";
myGroups[4] = "Closest";
// adapterGroups = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myGroups);
adapterGroups = new ArrayAdapter<String>(this, R.layout.myspinnerlayout, myGroups);
adapterGroups.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner_group.setAdapter(adapterGroups);
OnItemSelectedListener spinnerListener = new myOnItemSelectedListener(this,this.adapterGroups);
spinner_group.setOnItemSelectedListener(spinnerListener);
spinner = (Spinner) findViewById(R.id.Spinner01);
myMessiers = new Messier();
myPlanets = new Planets();
myStars = new Stars();
myClosestObjs = new ClosestObjs();
try {
myObjects = new UserObjects();
} catch (FileNotFoundException e1) {
Log.v("Debug", "File not found");
e1.printStackTrace();
}
objectSet = 0;
String[] someStrings;//= new String[110];
someStrings = myMessiers.GetStrings();
adapterMessier = new ArrayAdapter<String>(this, R.layout.myspinnerlayout, someStrings);
adapterMessier.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapterMessier);
spinnerListener = new myOnItemSelectedListener(this, this.adapterMessier);
spinner.setOnItemSelectedListener(spinnerListener);
String[] somePlanets = myPlanets.GetStrings();
adapterPlanets = new ArrayAdapter<String>(this, R.layout.myspinnerlayout, somePlanets);
String[] someStars = myStars.GetStrings();
adapterStars = new ArrayAdapter<String>(this, R.layout.myspinnerlayout, someStars);
String[] someClosestObjs = myClosestObjs.GetStrings();
adapterClosestObjects = new ArrayAdapter<String>(this, R.layout.myspinnerlayout, someClosestObjs);
Log.v("Debug", "Getting obj strings");
String[] someObjs;
if( myObjects != null )
{
someObjs = myObjects.GetStrings();
}
else
{
someObjs = new String[1];
someObjs[0] = ("No user objects defined");
}
Log.v("Debug", "Got obj strings");
if( someObjs != null )
adapterUserObjects = new ArrayAdapter<String>(this, R.layout.myspinnerlayout, someObjs);
Log.v("Debug", "On create finished");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"protected void onCreate() {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onCreate() {\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}",
"@Override\n public void onCreate() {\n\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}",
"public void onCreate() {\n }",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}",
"public void onCreate();",
"public void onCreate();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }",
"@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }"
] |
[
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",
"0.74805456",
"0.7475343",
"0.7469598",
"0.7469598",
"0.7455178",
"0.743656",
"0.74256307",
"0.7422192",
"0.73934627",
"0.7370002",
"0.73569906",
"0.73569906",
"0.7353011",
"0.7347353",
"0.7347353",
"0.7333878",
"0.7311508",
"0.72663945",
"0.72612154",
"0.7252271",
"0.72419256",
"0.72131634",
"0.71865886",
"0.718271",
"0.71728176",
"0.7168954",
"0.7166841",
"0.71481615",
"0.7141478",
"0.7132933",
"0.71174103",
"0.7097966",
"0.70979583",
"0.7093163",
"0.7093163",
"0.7085773",
"0.7075851",
"0.7073558",
"0.70698684",
"0.7049258",
"0.704046",
"0.70370424",
"0.7013127",
"0.7005552",
"0.7004414",
"0.7004136",
"0.69996923",
"0.6995201",
"0.69904065",
"0.6988358",
"0.69834954",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69783133",
"0.6977392",
"0.69668365",
"0.69660246",
"0.69651115",
"0.6962911",
"0.696241",
"0.6961096",
"0.69608897",
"0.6947069",
"0.6940148",
"0.69358927",
"0.6933102",
"0.6927288",
"0.69265485",
"0.69247025"
] |
0.0
|
-1
|
This method is called once the menu is selected
|
@Override
public boolean onOptionsItemSelected(MenuItem item) {
String str = String.format("Menu %d", item.getItemId());
Log.v("Debug", str);
switch (item.getItemId()) {
case R.id.About:
AboutDialog myAboutBox = new AboutDialog(this);
myAboutBox.show();
break;
case R.id.settings:
Log.v("Debug", "Settings dialog - creating");
SettingsDialog mySettingsBox = new SettingsDialog(this);
Log.v("Debug", "Settings dialog completed");
mySettingsBox.Init();
mySettingsBox.show();
Log.v("Debug", "Settings shown");
break;
case R.id.user:
// Log.v("Debug", "Starting file dialog");
//Intent intent = new Intent(/*getBaseContext()*/C2H.this, FileDialog.class);
// Log.v("Debug", "Starting file dialog put extra");
//intent.putExtra(FileDialog.START_PATH, "/sdcard");
// Log.v("Debug", "Starting file dialog start activity");
//startActivityForResult(intent, REQUEST_SAVE);
Log.v("Debug", "Starting file dialog done");
Intent fileIntent = new Intent(C2H.this, FileDialog.class);
Log.v("Debug", "FD - put extra");
fileIntent.putExtra(FileDialog.START_PATH, "/sdcard");
Log.v("Debug", "FD - start activity");
startActivityForResult(fileIntent, REQUEST_SAVE);
Log.v("Debug", "Starting file dialog done");
break;
}
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void menuSelected(MenuEvent e) {\n \n }",
"@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}",
"@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}",
"@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}",
"public void onMenuNew() {\n handleMenuOpen(null);\n }",
"public void menu() {\n\t\tstate.menu();\n\t}",
"public void menuClicked(MenuItem menuItemSelected);",
"@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}",
"@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}",
"@Override\n\t\tpublic void openMenu() {\n\t\t}",
"private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}",
"@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}",
"public void initMenu(){\n\t}",
"private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }",
"public void menuActiviated() {\n\t\t\t((LinearLayout) PieMenu.getParent()).removeView(PieMenu);\n\t\t\tadd_shangpin.setVisibility(View.VISIBLE);\n\t\t\tif(text_details != null){\n\t\t\t\ttext_details.setText(\"\");\n\t\t\t}\n\t\t\t\n\t\t}",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"private static void returnMenu() {\n\t\t\r\n\t}",
"public void menu(){\n super.goToMenuScreen();\n }",
"public void run(){\n int selection = -1;\n super.myConsole.listOptions(menuOptions);\n selection = super.myConsole.getInputOption(menuOptions);\n branchMenu(selection);\n }",
"public startingMenu() {\r\n initComponents();\r\n }",
"public static void activateMenu() {\n instance.getMenu().show();\n }",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"public void returnToMenu()\n\t{\n\t\tchangePanels(menu);\n\t}",
"void onMenuItemClicked();",
"public void openMenu() {\r\n\t\tmenu.click();\r\n\t}",
"@Override\r\npublic void menuDeselected(MenuEvent arg0) {\n\t\r\n}",
"public void onLoadMenuMyFavoritesSelected();",
"public void run()\n {\n getMenuChoice();\n }",
"@Override\r\n public void run() {\n opsi_menu();\r\n\r\n }",
"@Override\n public void menuDeselected(MenuEvent e) {\n\n }",
"void clickAmFromMenu();",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetSupportMenuInflater().inflate(R.menu.activity_display_selected_scripture,\n \t\t\t\tmenu);\n \t\treturn true;\n \t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenu.setMouseClick(true);\n\t\t\t}",
"public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t\t\t\t}",
"public void pressMainMenu() {\n }",
"private void changeMenu()\n {\n if (_menuMode)\n {\n menuLayout.getChildAt(0).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(1).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(2).setVisibility(View.GONE);\n menuLayout.getChildAt(3).setVisibility(View.GONE);\n menuLayout.getChildAt(4).setVisibility(View.VISIBLE);\n _switchMode.setText(\"Watch Mode\");\n\n }\n else\n {\n menuLayout.getChildAt(0).setVisibility(View.GONE);\n menuLayout.getChildAt(1).setVisibility(View.VISIBLE);\n _switchMode.setText(\"Paint Mode\");\n menuLayout.getChildAt(2).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(3).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(4).setVisibility(View.GONE);\n _timeBar.setProgress((int) (_paintArea.getPercent() * 100f));\n }\n _paintArea.setPaintMode(_menuMode);\n _menuMode = !_menuMode;\n }",
"public static void updateMainMenu() {\n instance.updateMenu();\n }",
"@FXML protected void MainMenuButtonClicked(ActionEvent event) {\n this.mainMenuCB.launchMainMenu();\r\n }",
"private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}",
"public void setRefreshMenu() {\n }",
"@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}",
"@Override\n public void onMenuToggle(boolean b) {\n }",
"public void main_menu()\n\t{\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.println(\"Please Select an option\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.print(\"1.Add 2.Update 3.Delete 4.Exit\\n\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tchoice=me.nextInt();\n\t\tthis.check_choice(choice);\n\t}",
"@Override\n\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t}",
"private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }",
"@Override\n public void handle(ActionEvent event) {\n menu.setVisible(false);\n options.setVisible(true);\n }",
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }",
"public void menu()\r\n\t{\r\n\t\t//TODO\r\n\t\t//Exits for now\r\n\t\tSystem.exit(0);\r\n\t}",
"@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}",
"@Override\n public void changed(ChangeListener.ChangeEvent event, Actor actor) {\n WeaponCreatorUi.this.setUi(\"menu\");\n \n }",
"private void onMenuClickCNF() {\r\n\t\tswitchMainPanelTo(CARDTYPE_CREATENEWFILE);\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttxtCNFName.grabFocus();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n public boolean onPrepareOptionsMenu (Menu menu) {\n \n return super.onPrepareOptionsMenu (menu);\n \n }",
"private void use() {\n switch (choices.get(selection)) {\n case INFO : { \n AbstractInMenu newMenu = new ItemInfo(sourceMenu, item);\n this.sourceMenu.setMenu(newMenu);\n newMenu.setVisible(true);\n } break;\n case USE : {\n entity.use(item); \n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case EQUIP : {\n entity.equip(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case ACTIVE : {\n entity.setActiveItem(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case UNEQUIP : {\n entity.equip(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case UNACTIVE : {\n entity.setActiveItem(null);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case DROP : {\n entity.drop(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break; \n case PLACE : {\n entity.placeItem(item);\n entity.removeItem(item); \n sourceMenu.activate();\n sourceMenu.setState(true); \n } break;\n case CLOSE : { \n sourceMenu.activate();\n } break;\n case DESTROY : {\n entity.removeItem(item);\n sourceMenu.activate();\n sourceMenu.setState(true); \n } break;\n }\n }",
"protected void onSelectionPerformed(boolean success) {\n }",
"@Override\n public void onMenuClick() {\n Toast.makeText(activity.getApplicationContext(), \"Menu click\",\n Toast.LENGTH_LONG).show();\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_sub_sel_activity2, menu);\r\n tvMenu = new TextView(this);\r\n // tv.setText(getString(R.string.matchmacking)+\" \");\r\n // tvMenu.setTextColor(getResources().getColor(Color.WHITE));\r\n // tv.setOnClickListener(this);\r\n tvMenu.setTextColor((Color.parseColor(\"#ffffff\")));\r\n tvMenu.setPadding(5, 0, 5, 0);\r\n tvMenu.setTypeface(null, Typeface.BOLD);\r\n tvMenu.setTextSize(15);\r\n menu.add(0, 1, 1, \"selected\").setActionView(tvMenu).setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);\r\n\r\n tvMenu.setText(\"Selected\" + \"\\n \" + String.valueOf(count));\r\n return true;\r\n }",
"public void mousePressed(MouseEvent e) {\n JMenu menu = (JMenu)menuItem;\n if (!menu.isEnabled())\n return;\n MenuSelectionManager manager = \n MenuSelectionManager.defaultManager();\n if(menu.isTopLevelMenu()) {\n if(menu.isSelected()) {\n manager.clearSelectedPath();\n } else {\n Container cnt = menu.getParent();\n if(cnt != null && cnt instanceof JMenuBar) {\n MenuElement me[] = new MenuElement[2];\n me[0]=(MenuElement)cnt;\n me[1]=menu;\n manager.setSelectedPath(me); } } }\n MenuElement selectedPath[] = manager.getSelectedPath();\n if (selectedPath.length > 0 && \n selectedPath[selectedPath.length-1] != menu.getPopupMenu()) {\n if(menu.isTopLevelMenu() || \n menu.getDelay() == 0) {\n appendPath(selectedPath, menu.getPopupMenu());\n } else {\n setupPostTimer(menu); } } }",
"public void branchMenu(int option){\n switch(option){\n case 1:\n System.out.println(\"Starting security view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SECURITY);\n break;\n case 2:\n System.out.println(\"Starting application view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.APPLICATION);\n break;\n case 3:\n System.out.println(\"Starting manager view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.MANAGER);\n break;\n case 4:\n System.out.println(\"Starting swipe view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SWIPE);\n break;\n case 5:\n System.out.println(\"Quitting application...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.QUIT);\n break;\n }\n }",
"private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }",
"@Override\n public void select(Menu context) {\n updateControllable(context);\n currentStructure.assignWorkersToPowerHarvest(context.getFocus(), PopUpMenuWindow.WorkerMenu());\n }",
"public void onLoadMenuMyPlaylistSelected();",
"public void menuClicked()\r\n {\r\n listening = true;\r\n\ta = b = null;\r\n\trepaint();\r\n }",
"void askMenu();",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tguiManager.getGameController().processMenuInput(MENU_ITEM.MNU_LEVEL_CHOOSE);\n\t\t\t\t}",
"void clickFmFromMenu();",
"protected boolean onMenuItemSelected(int menuItemId) {\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}",
"public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }",
"@Override\n public void onOpened() {\n menu.callOnResumeForUpdate();\n menu.showData();\n isMenuShowing = true;\n }",
"@FXML\n\tpublic void handleMenu(){\n\t\tFile file2 = mainApp.getProspectFilePath();\n if (file2 != null) {\n mainApp.saveProspectDataToFile(file2);}\n\t\tmainApp.showMenuPrincipale();\n\t}",
"public void userForm(){\n\t\tSystem.out.print(menu);\n\t\tScanner input = new Scanner(System.in);\n\t\tselection = input.nextInt();\n\t\tmenuActions(selection);\n\t\t}",
"private void menuOptionOne(){\n SimulatorFacade.printTransactions();\n pressAnyKey();\n }",
"protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }",
"default public void clickMenu() {\n\t\tremoteControlAction(RemoteControlKeyword.MENU);\n\t}",
"private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }",
"private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }",
"private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }",
"private void updateMenu() {\n if(customMenu || !menuDirty) {\n return;\n }\n \n // otherwise, reset up the menu.\n menuDirty = false;\n menu.removeAll();\n Icon emptyIcon = null; \n for(Action action : actions) {\n if(action.getValue(Action.SMALL_ICON) != null) {\n emptyIcon = new EmptyIcon(16, 16);\n break;\n }\n }\n \n selectedComponent = null;\n selectedLabel = null;\n \n for (Action action : actions) {\n \n // We create the label ourselves (instead of using JMenuItem),\n // because JMenuItem adds lots of bulky insets.\n\n ActionLabel menuItem = new ActionLabel(action);\n JComponent panel = wrapItemForSelection(menuItem);\n \n if (action != selectedAction) {\n panel.setOpaque(false);\n menuItem.setForeground(UIManager.getColor(\"MenuItem.foreground\"));\n } else {\n selectedComponent = panel;\n selectedLabel = menuItem;\n selectedComponent.setOpaque(true);\n selectedLabel.setForeground(UIManager.getColor(\"MenuItem.selectionForeground\"));\n }\n \n if(menuItem.getIcon() == null) {\n menuItem.setIcon(emptyIcon);\n }\n attachListeners(menuItem);\n decorateMenuComponent(menuItem);\n menuItem.setBorder(BorderFactory.createEmptyBorder(0, 6, 2, 6));\n\n menu.add(panel);\n }\n \n if (getText() == null) {\n menu.add(Box.createHorizontalStrut(getWidth()-4));\n } \n \n for(MenuCreationListener listener : menuCreationListeners) {\n listener.menuCreated(this, menu);\n }\n }",
"private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public void onLoadMenuRadioSelected();",
"private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Produtos m2= new Menu_Produtos();\r\n \r\n }",
"void Menu();",
"public void onMenuChanged(IDisplayMenu menu) {\r\n\tthis.canvas.onMenuChanged(menu);\r\n }",
"public void menuSelected(MenuEvent evt) {\n JMenu source = (JMenu) evt.getSource();\n\n if (source.getText().equals(\"View...\")) {\n ((JMenuItem) source).setSelected(false);\n }\n }",
"protected abstract void addMenuOptions();",
"private void mainMenu() {\r\n System.out.println(\"Please choose an option: \");\r\n System.out.println(\"1. New Player\");\r\n System.out.println(\"2. New VIP Player\");\r\n System.out.println(\"3. Quit\");\r\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n\tpublic void menuDeselected(MenuEvent e) {\n\t\t\n\t}",
"public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}",
"@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"private void voltarMenu() {\n\t\tmenu = new TelaMenu();\r\n\t\tmenu.setVisible(true);\r\n\t\tthis.dispose();\r\n\t}",
"public void select() {\n \t\t\tString sinput = \"\";\r\n \t\t\tOption selected = null;\r\n \t\t\tErrorLog.debug(name + \" selected.\");\r\n \t\t\t\r\n \t\t\twhile (true) {\r\n \t\t\t\tSystem.out.println(toString()); //Print menu.\r\n \t\t\t\tsinput = read(); //Get user selection.\r\n \t\t\t\tif (!sinput.equalsIgnoreCase(\"exit\")) {\r\n \t\t\t\t\tselected = options.get(sinput); //Find corresponding option.\r\n \r\n \t\t\t\t\tif (selected != null) //Sinput corresponds to an extant option.\r\n \t\t\t\t\t\tselected.select(); //Select the selected.\r\n \t\t\t\t\telse\r\n \t\t\t\t\t\tprint(sinput + \" is not a valid option\");\r\n \t\t\t\t} else\r\n \t\t\t\t\t{print(\"Returning to previous menu.\"); break;}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tErrorLog.debug (\"Quitting \" + name + \". Sinput:\"+sinput);\r\n \t\t\t\r\n \t\t\treturn;\r\n \t\t}",
"public void getMenuChoice()\n {\n boolean finished = false;\n \n while(!finished)\n {\n printHeading();\n String choice = Menu.getMenuChoice(menuChoices);\n executeMenuChoice(choice);\n \n if(choice.startsWith(\"quit\"))\n {\n finished = true;\n }\n }\n }",
"void onItemSelected(Bundle args);",
"private void MenuHOOKS() {\n drawerLayout = findViewById(R.id.drawer_layout);\n navigationView = findViewById(R.id.navigation_view);\n burger_icon = findViewById(R.id.burger_icon);\n contentView = findViewById(R.id.content);\n\n //Navigation Drawer\n navigationView.bringToFront();\n navigationView.setNavigationItemSelectedListener(this);\n navigationView.setCheckedItem(R.id.nav_home);\n\n burger_icon.setOnClickListener(this);\n\n //Animation Function\n animateNavigationDrawer();\n\n }",
"public void onMenuOpen() {\n String initialDirectory = getInitialDirectory();\n System.out.println(initialDirectory);\n File file = FileChooserHelper.showOpenDialog(initialDirectory, this);\n\n if (file == null || !file.exists() || !file.isFile()) {\n return;\n }\n\n handleMenuOpen(file.getAbsolutePath());\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}",
"private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }"
] |
[
"0.7958359",
"0.78801763",
"0.78801763",
"0.76544225",
"0.75344884",
"0.75049174",
"0.7423944",
"0.7338095",
"0.7302043",
"0.70774174",
"0.706653",
"0.70264244",
"0.69746774",
"0.69483626",
"0.6912933",
"0.6892993",
"0.6876915",
"0.6826383",
"0.681823",
"0.6797833",
"0.6788575",
"0.6786583",
"0.6780498",
"0.67600447",
"0.675465",
"0.6750381",
"0.67497134",
"0.67343926",
"0.67332655",
"0.6733226",
"0.67242295",
"0.67151475",
"0.6714372",
"0.6709644",
"0.6705393",
"0.6704964",
"0.6693864",
"0.66828287",
"0.66777104",
"0.6671199",
"0.6659083",
"0.6633578",
"0.66294605",
"0.6628071",
"0.6622271",
"0.6620979",
"0.66187304",
"0.6596806",
"0.6590441",
"0.6587927",
"0.6583791",
"0.65775216",
"0.65725315",
"0.6572517",
"0.6562503",
"0.6559063",
"0.65504277",
"0.65489906",
"0.654706",
"0.6546957",
"0.6544032",
"0.6537801",
"0.6536",
"0.6535763",
"0.6530541",
"0.65302426",
"0.65232867",
"0.6522974",
"0.65177256",
"0.65054196",
"0.64981997",
"0.64975494",
"0.6495935",
"0.6493144",
"0.649241",
"0.64842695",
"0.6479843",
"0.6476598",
"0.6459443",
"0.64526135",
"0.64478207",
"0.64469624",
"0.644546",
"0.6443814",
"0.6439879",
"0.64336205",
"0.6421895",
"0.641766",
"0.6417206",
"0.6417206",
"0.64156973",
"0.6414457",
"0.64137644",
"0.639937",
"0.63897765",
"0.6388713",
"0.6387168",
"0.63845545",
"0.638087",
"0.6380265",
"0.6376704"
] |
0.0
|
-1
|
inputs like ra => 3h47.0 dec => 24 07.0 lat => 42 01.2 lon => 89 06.2
|
public void coord_to_horizon( Calendar utc, String ra_in, String dec_in, double lat_in, double lon_in )
{
CoordConverter myConverter = new CoordConverter();
double ra = myConverter.RAString2Double(ra_in);
double dec = myConverter.DecString2Double(dec_in);
double lat = lat_in;//dms2real( Integer.parseInt(lat_str[0]), Double.parseDouble(lat_str[1]) );
double lon = lon_in;//dms2real( Integer.parseInt(lon_str[0]), Double.parseDouble(lon_str[1]) );
// compute hour angle in degrees
double ha = GetSiderealTime( utc, lon ) - ra;
if (ha < 0) ha = ha + 360;
// convert degrees to radians
ha = ha*Math.PI/180;
dec = dec*Math.PI/180;
lat = lat*Math.PI/180;
// compute altitude in radians
double sin_alt = Math.sin(dec)*Math.sin(lat) + Math.cos(dec)*Math.cos(lat)*Math.cos(ha);
double alt = Math.asin(sin_alt);
// compute azimuth in radians
// divide by zero error at poles or if alt = 90 deg
double cos_az = (Math.sin(dec) - Math.sin(alt)*Math.sin(lat))/(Math.cos(alt)*Math.cos(lat));
double az = Math.acos(cos_az);
// convert radians to degrees
hrz_altitude = alt*180/Math.PI;
hrz_azimuth = az*180/Math.PI;
// choose hemisphere
if (Math.sin(ha) > 0)
hrz_azimuth = 360 - hrz_azimuth;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }",
"private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }",
"public static double[] decode(String geohash) {\n double[] latInterval = {-90.0, 90.0};\n double[] lngInterval = {-180.0, 180.0};\n\n boolean isEven = true;\n\n double latitude;\n double longitude;\n\n for (int i = 0; i < geohash.length(); i++) {\n // integer value of current character's mapping in DECODE_MAP\n final int cd = DECODE_MAP.get(Character.valueOf(geohash.charAt(i))).intValue();\n // t -> 25 -> 1 1 0 0 1\n // 0 1 2 3 4\n // 16 8 4 2 1\n //\n // 1: [0 - 180] longitude\n // 1: [0 - 90] latitude\n // 0: [0 - 90] longitude\n // 0: [0 - 45] latitude\n // 1: [45 - 90] longitude\n for (int mask : BITS) {\n if (isEven) { // decode for longitude\n if ((cd & mask) != 0) { // meas current bit is 1 and real longitude belongs to right interval\n lngInterval[0] = (lngInterval[0] + lngInterval[1]) / 2D;\n } else {\n lngInterval[1] = (lngInterval[0] + lngInterval[1]) / 2D; // belongs to left interval\n // so make right limit less\n }\n } else { // decode for latitude\n if ((cd & mask) != 0) { // meas current bit is 1 and real latitude belongs to right interval\n latInterval[0] = (latInterval[0] + latInterval[1]) / 2D;\n } else {\n latInterval[1] = (latInterval[0] + latInterval[1]) / 2D;\n }\n }\n\n isEven = !isEven;\n }\n }\n\n // at last, calculate the mean value of interval as result\n latitude = (latInterval[0] + latInterval[1]) / 2D;\n longitude = (lngInterval[0] + lngInterval[1]) / 2D;\n\n return new double[]{latitude, longitude};\n }",
"public Coord addressToCoord(String localisation);",
"public static String convertPointToSector(Double lat, Double lon){\n if(lat > maxLat || lon > maxLon || lat < minLat || lon < minLon){\n return \"Coordinate non valide!\";\n }\n\n double number_lat = ((lat - minLat)/1.3);\n int integer_lat = (int)number_lat;\n double number_lon = ((lon - minLon)/1.075);\n int integer_lon = (int)number_lon+1;\n\n\n\n String id_lat = latID[integer_lat];\n\n String id_lon = Integer.toString(integer_lon);\n\n return id_lat+id_lon;\n\n }",
"void getReverInfo(int longitude,int latitude);",
"void mo5802a(LatLng latLng);",
"public void makeLatLong(String address){\n try {\n JSONObject jsonObject = new JSONObject(address);\n JSONObject result = jsonObject.getJSONObject(\"result\");\n JSONArray addressMatches = result.getJSONArray(\"addressMatches\");\n JSONObject firstResult = addressMatches.getJSONObject(0);\n JSONObject coordinates = firstResult.getJSONObject(\"coordinates\");\n latitude = coordinates.getDouble(\"y\");\n longitude = coordinates.getDouble(\"x\");\n\n Log.i(\"CoY \", Double.toString(latitude));\n Log.i(\"CoX\", Double.toString(longitude));\n } catch (JSONException e) {\n Log.i(\"Error\", e.getMessage());\n e.printStackTrace();\n latitude = 39.7392;\n longitude = -104.9903;\n mainActivity.apiFailed(alarmName);\n }\n }",
"public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }",
"public static LatLng degreeToDecimal(String latitude, String longitude)\n {\n String latFirstSplit [] = latitude.split(\"°\");\n String latSecondSplit [] = latFirstSplit[1].split(\"\\\\.\");\n System.out.println(latSecondSplit);\n String latCleanSecondSplit = latSecondSplit[1].replace(\"’\", \"\");\n\n double latDegree = Integer.parseInt(latFirstSplit[0]);\n double latDecimal = Integer.parseInt(latSecondSplit[0]);\n double latMinute = Integer.parseInt(latCleanSecondSplit);\n\n double latitudeDouble = latDegree + ((latDecimal+(latMinute/10000))/60);\n\n String lngFirstSplit [] = longitude.split(\"°\");\n String lngSecondSplit [] = lngFirstSplit[1].split(\"\\\\.\");\n String lngCleanSecondSplit = lngSecondSplit[1].replace(\"’\", \"\");\n\n double lngDegree = Integer.parseInt(lngFirstSplit[0]);\n double lngDecimal = Integer.parseInt(lngSecondSplit[0]);\n double lngMinute = Integer.parseInt(lngCleanSecondSplit);\n\n double longitudeDouble = lngDegree + ((lngDecimal+(lngMinute/10000))/60);\n\n return new LatLng(latitudeDouble, longitudeDouble);\n }",
"public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }",
"@Override\n\tpublic Map getStartandStopByGPS(String terminalId, String start_time,\n\t\t\tString stop_time) {\n\t\tMap map = new HashMap();\n\t\ttry {\n\t\t\tif(start_time.length()==12&&stop_time.length()==12){\n\t\t\t\tString start_time_in_format = start_time.substring(0,2) + \"-\" + start_time.substring(2,4) + \"-\" + start_time.substring(4,6) + \" \" + start_time.substring(6,8) + \":\" + start_time.substring(8,10) + \":\" + start_time.substring(10,12);\n\t\t\t\tString stop_time_in_format = stop_time.substring(0,2) + \"-\" + stop_time.substring(2,4) + \"-\" + stop_time.substring(4,6) + \" \" + stop_time.substring(6,8) + \":\" + stop_time.substring(8,10) + \":\" + stop_time.substring(10,12);\n\t\t\t\tmap.put(\"start_time_in_format\", start_time_in_format);\n\t\t\t\tmap.put(\"stop_time_in_format\", stop_time_in_format);\n\t\t\t\tList<PositionData> position_between = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' and date>'\" + start_time_in_format + \"' and date<'\" + stop_time_in_format + \"' order by date desc\");\n\t\t\t\tfor(int i=0;i<position_between.size();i++){\n\t\t\t\t\tif(position_between.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\t\tposition_between.remove(i);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString start_point = \"Nil\";\n\t\t\t\tString stop_point = \"Nil\";\n\t\t\t\tif(position_between.size()>0){\n\t\t\t\t\tString stop_point_latitude = position_between.get(0).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.substring(0,stop_point_latitude.indexOf(\";\"));\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.split(\":\")[1];\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\t\tString tempStrPart = stop_point_latitude.split(\"\\\\.\")[1];\n\t\t\t\t\ttempStrPart = \"0.\" + tempStrPart;\n\t\t\t\t\tdouble tempD = Double.parseDouble(tempStrPart)/60*100;\n\t\t\t\t\tstop_point_latitude = Integer.parseInt(stop_point_latitude.split(\"\\\\.\")[0]) + tempD + \"\";\n\t\t\t\t\t\n\t\t\t\t\tString stop_point_longitute = position_between.get(0).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.substring(0,stop_point_longitute.indexOf(\";\"));\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.split(\":\")[1];\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\t\tString _tempStrPart = \"0.\" + stop_point_longitute.split(\"\\\\.\")[1];\n\t\t\t\t\tdouble _tempD = Double.parseDouble(_tempStrPart)/60*100;\n\t\t\t\t\tstop_point_longitute = Integer.parseInt(stop_point_longitute.split(\"\\\\.\")[0]) + _tempD + \"\";\n\t\t\t\t\tstop_point = stop_point_longitute + \",\" + stop_point_latitude;\n\t\t\t\t\t\n\t\t\t\t\tString start_point_latitude = position_between.get(position_between.size()-1).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\t\tstart_point_latitude = start_point_latitude.substring(0,start_point_latitude.indexOf(\";\"));\n\t\t\t\t\tstart_point_latitude = start_point_latitude.split(\":\")[1];\n\t\t\t\t\tstart_point_latitude = start_point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstart_point_latitude = start_point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\t\tString tempStrPart1 = start_point_latitude.split(\"\\\\.\")[1];\n\t\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\t\tstart_point_latitude = Integer.parseInt(start_point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\t\t\n\t\t\t\t\tString start_point_longitute = position_between.get(position_between.size()-1).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\t\tstart_point_longitute = start_point_longitute.substring(0,start_point_longitute.indexOf(\";\"));\n\t\t\t\t\tstart_point_longitute = start_point_longitute.split(\":\")[1];\n\t\t\t\t\tstart_point_longitute = start_point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstart_point_longitute = start_point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\t\tString _tempStrPart1 = \"0.\" + start_point_longitute.split(\"\\\\.\")[1];\n\t\t\t\t\tdouble _tempD1 = Double.parseDouble(_tempStrPart1)/60*100;\n\t\t\t\t\tstart_point_longitute = Integer.parseInt(start_point_longitute.split(\"\\\\.\")[0]) + _tempD1 + \"\";\n\t\t\t\t\tstart_point = start_point_longitute + \",\" + start_point_latitude;\n//\t\t\t\t\tSystem.out.println(start_point + \"-->\" + stop_point);\n//\t\t\t\t\tmap.put(\"start_point\",start_point);\n//\t\t\t\t\tmap.put(\"stop_point\", stop_point);\n\t\t\t\t}\n\t\t\t\treturn map;\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"private double[] getSatelliteViewXY(double lat, double lng) {\n double latitude = Math.toRadians(satLat);\r\n double longitude = Math.toRadians(-thetaP);\r\n\r\n double _lng = lng - thetaP;\r\n\r\n double _x = Math.cos(Math.toRadians(lat)) * Math.sin(Math.toRadians(_lng));\r\n double _y = Math.sin(Math.toRadians(lat));\r\n double _z = Math.cos(Math.toRadians(lat)) * Math.cos(Math.toRadians(_lng));\r\n /*\r\n * | 1 0 0 | b > 0 : towards user\r\n * Rotation plan y, z: | 0 cos b -sin b |\r\n * | 0 sin b cos b |\r\n *\r\n * | cos t 0 -sin t | t > 0 : counterclockwise\r\n * Rotation plan x, z: | 0 1 0 |\r\n * | sin t 0 cos t |\r\n *\r\n */\r\n double[] rotated = null;\r\n double newX = _x;\r\n double newY = _y;\r\n double newZ = _z;\r\n\r\n // rotation yz (for stellite latitude)\r\n if (true) {\r\n rotated = rotation(new double[]{newX, newY, newZ},\r\n new double[][]{{1D, 0D, 0D},\r\n {0D, Math.cos(latitude), -Math.sin(latitude)},\r\n {0D, Math.sin(latitude), Math.cos(latitude)}});\r\n newX = rotated[0];\r\n newY = rotated[1];\r\n newZ = rotated[2];\r\n }\r\n // rotation xz (for satellite longitude)\r\n if (false) {\r\n rotated = rotation(new double[]{newX, newY, newZ},\r\n new double[][]{{Math.cos(longitude), 0D, -Math.sin(longitude)},\r\n {0D, 1D, 0D},\r\n {Math.sin(longitude), 0D, Math.cos(longitude)}});\r\n newX = rotated[0];\r\n newY = rotated[1];\r\n newZ = rotated[2];\r\n }\r\n\r\n double newL = Math.toDegrees(Math.asin(newY));\r\n double newG = 0D;\r\n if (newZ == 0D)\r\n newG = 0D;\r\n else\r\n newG = Math.toDegrees(Math.atan(newX / newZ));\r\n\r\n if ((newZ < 0D)) // && newX > 0D) || (newZ > 0D && newX < 0D))\r\n {\r\n while (_lng < -180D) _lng += 360D;\r\n while (_lng > 180D) _lng -= 360D;\r\n if (_lng < 0D) {\r\n if (newG > 0D) newG -= 180D;\r\n else newG = -180D - newG;\r\n }\r\n if (_lng > 0D) {\r\n if (newG > 0D) newG = 180D - newG;\r\n else newG += 180D;\r\n }\r\n }\r\n newG += thetaP;\r\n// newL = lat;\r\n// newG = lng;\r\n\r\n // Begin here\r\n double alfa = (newL);\r\n double f = Math.cos(Math.toRadians(alfa)) * Math.cos(Math.toRadians(newG - thetaP));\r\n// double r = rhoE / rhoS; // Unused\r\n double c = rhoS - (rhoE * f);\r\n double x = rhoS * rhoE * Math.sin(Math.toRadians(newG - thetaP)) * Math.cos(Math.toRadians(alfa)) / c;\r\n double y = rhoS * rhoE * Math.sin(Math.toRadians(alfa)) / c;\r\n\r\n return new double[]{x, y};\r\n }",
"private Geocode splitLatLng(String latlng) {\n // Throws IllegalArgumentExceptions if latlng isnt formatted correctly\n if(latlng == null || latlng.equals(\"\")){\n throw new IllegalArgumentException(\"Request Parameter, latlng is formatted incorrectly: \" + latlng);\n }\n String[] result = latlng.split(\",\");\n\n // if result size != 2 throw exception\n if (result == null || result.length != 2){\n throw new IllegalArgumentException(\"Request Parameter, latlng is formatted incorrectly: \" + latlng);\n }\n\n Geocode geocode = new Geocode();\n geocode.setLatitude(new Double(result[0]));\n geocode.setLongitude(new Double(result[1]));\n\n return geocode;\n }",
"private String getLocationForPrint(double latitude, double longitude) {\n int latDegree = (new Double(Math.floor(latitude))).intValue();\n int longDegree = (new Double(Math.floor(longitude))).intValue();\n String latEnd = getString(R.string.latitude_south);\n String longEnd = getString(R.string.longitude_west);\n if (latDegree > 0) {\n latEnd = getString(R.string.latitude_north);\n\n }\n if (longDegree > 0) {\n longEnd = getString(R.string.longitude_east);\n }\n double latSecond = (latitude - latDegree) * 100;\n double latMinDouble = (latSecond * 3d / 5d);\n int latMinute = new Double(Math.floor(latMinDouble)).intValue();\n\n double longSecond = (longitude - longDegree) * 100;\n double longMinDouble = (longSecond * 3d / 5d);\n int longMinute = new Double(Math.floor(longMinDouble)).intValue();\n// return String.format(getString(R.string.geo_location_info), latDegree,\n// latMinute, latEnd, longDegree, longMinute, longEnd);\n return getString(R.string.geo_location_info);\n\n }",
"private double _parseLatitude(String s, String d)\n {\n double _lat = StringTools.parseDouble(s, 99999.0);\n if (_lat < 99999.0) {\n double lat = (double)((long)_lat / 100L); // _lat is always positive here\n lat += (_lat - (lat * 100.0)) / 60.0;\n return d.equals(\"S\")? -lat : lat;\n } else {\n return 90.0; // invalid latitude\n }\n }",
"public void testRmcParse() {\r\n double latLow = 57.70907;\r\n double latHigh = 57.70909;\r\n\r\n double lngLow = 11.96693;\r\n double lngHigh = 11.96695;\r\n\r\n String ex = \"$GPRMC,131420,A,5742.5446,N,01158.0166,E,,,2992015,,,A*4A\";\r\n LatLng latLng = MapUtils.ParseRMC(ex);\r\n\r\n assertTrue(latLng.latitude > latLow && latLng.latitude < latHigh);\r\n assertTrue(latLng.longitude > lngLow && latLng.longitude < lngHigh);\r\n }",
"public void onScrubGeo(long arg0, long arg1) { }",
"double[] destination(double lata, double lona, double dist, double brng) { \r\n double latb = Math.asin(Math.sin(lata)*Math.cos(dist/6371) + Math.cos(lata)*Math.sin(dist/6371)*Math.cos(brng));\r\n double lonb = lona+Math.atan2(Math.sin(brng)*Math.sin(dist/6371)*Math.cos(lata), Math.cos(dist/6371)-Math.sin(lata)*Math.sin(latb));\r\n return new double[]{180*latb/Math.PI, 180*lonb/Math.PI};\r\n }",
"public static String encode(double latitude, double longitude) {\n double[] latInterval = {-90.0, 90.0};\n double[] lngInterval = {-180.0, 180.0};\n\n final StringBuilder geohash = new StringBuilder();\n\n // the even bits are taken for the longitude code (0111110000000),\n // while the odd bits are taken for the latitude code (101111001001).\n boolean isEven = true;\n\n int bit = 0;\n int ch = 0;\n\n while (geohash.length() < PRECISION) {\n double mid = 0.0;\n if (isEven) { // for longitude\n mid = (lngInterval[0] + lngInterval[1]) / 2D;\n if (longitude > mid) { // belong to right interval\n // it means at current bit, it should be set to 1\n // because we need to write bit from left to right\n // so ch will do OR operation on high bit from BITS[]\n // for example lat: 40.5187, lng: 74.4121\n // it will calculate as 1 1 0 0 1 -> 25 -> BASE_32[25] -> t as first character\n // ch will grow if coordinate > mid at current binary reduction\n ch |= BITS[bit]; // set current bit as 1\n // System.out.println(\"EVEN \" + ch);\n lngInterval[0] = mid;\n } else {\n lngInterval[1] = mid;\n }\n } else {\n mid = (latInterval[0] + latInterval[1]) / 2D;\n if (latitude > mid) {\n // System.out.println(\"ODD \" + ch);\n // ch will grow if coordinate > mid at current binary reduction\n ch |= BITS[bit]; // set current bit as 1\n latInterval[0] = mid;\n } else {\n latInterval[1] = mid;\n }\n }\n\n isEven = !isEven;\n\n if (bit < 4) {\n bit++;\n } else { // convert to character in BASE_32 by each 5 bits\n // System.out.println(\"CURRENT \" + ch);\n geohash.append(BASE_32[ch]);\n bit = 0;\n ch = 0;\n }\n }\n return geohash.toString();\n }",
"private int inputMap(Identifier id, float data)\n\t{\n\t\tif (id == Axis.RX)\n\t\t{\n\t\t\tif (linearityX == 1)\n\t\t\t{\n\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\n\t\t} else if (id == Axis.RY)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityY == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t} else if (id == Axis.Z)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityZ == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t} else if (id == Axis.X)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityX == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t} else if (id == Axis.Y)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityY == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public String coordToAddress(Coord loc);",
"@Override\n\tpublic Map getPointsForHotArea(String terminalId) {\n\t\tMap map = new HashMap();\n\t\tString lngs = \"\";\n\t\tString lats = \"\";\n\t\ttry {\n\t\t\tList<PositionData> info_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc limit 2000\");\n\t\t\tfor(int i=0;i<info_list.size();i++){\n\t\t\t\tif(info_list.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\tinfo_list.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<(info_list.size()>2000?2000:info_list.size());i++){\n\t\t\t\tposition_list.add(info_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tString point_latitude = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\tpoint_latitude = point_latitude.substring(0,point_latitude.indexOf(\";\"));\n\t\t\t\tpoint_latitude = point_latitude.split(\":\")[1];\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart1 = point_latitude.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\tpoint_latitude = Integer.parseInt(point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\tlats += point_latitude + \",\";\n\t\t\t\t\n\t\t\t\tString point_longitute = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\tpoint_longitute = point_longitute.substring(0,point_longitute.indexOf(\";\"));\n\t\t\t\tpoint_longitute = point_longitute.split(\":\")[1];\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart2 = point_longitute.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart2 = \"0.\" + tempStrPart2;\n\t\t\t\tdouble tempD2 = Double.parseDouble(tempStrPart2)/60*100;\n\t\t\t\tpoint_longitute = Integer.parseInt(point_longitute.split(\"\\\\.\")[0]) + tempD2 + \"\";\n\t\t\t\tlngs += point_longitute + \",\";\n\t\t\t}\n\t\t\tmap.put(\"lngs\",lngs.subSequence(0, lngs.lastIndexOf(\",\")));\n\t\t\tmap.put(\"lats\",lats.subSequence(0, lats.lastIndexOf(\",\")));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}",
"public int getLon();",
"public Map<String, Object> getMapRaster(Map<String, Double> params) {\n //System.out.println(params);\n Map<String, Object> results = new HashMap<>();\n //System.out.println(\"Since you haven't implemented getMapRaster, nothing is displayed in \"\n // + \"your browser.\");\n double lrLon = params.get(\"lrlon\");\n double ulLon = params.get(\"ullon\");\n double w = params.get(\"w\");\n double h = params.get(\"h\");\n double lrLat = params.get(\"lrlat\");\n double ulLat = params.get(\"ullat\");\n if (lrLon <= ROOT_ULLON || ulLon >= ROOT_LRLON || lrLat >= ROOT_ULLAT\n || ulLat <= ROOT_LRLAT || lrLon <= ulLon || lrLat >= ulLat) {\n querySuccess = false;\n return null;\n }\n\n double lonDpp = (lrLon - ulLon) / w;\n int dep = (int) Math.ceil(Math.log(ROOT_LON_DPP / lonDpp) / Math.log(2.0));\n depth = Math.min(dep, MAX_DEPTH);\n int num = (int) Math.pow(2, depth);\n\n //System.out.println(\"lonDpp=\" + lonDpp + \" dep=\" + dep + \" depth=\" + depth);\n int xnUl = getXnYp(ROOT_ULLON, ulLon, ROOT_WIDTH, num, 1);\n int ypUl = getXnYp(ulLat, ROOT_ULLAT, ROOT_HEIGHT, num, 1);\n int xnLr = getXnYp(lrLon, ROOT_LRLON, ROOT_WIDTH, num, 0);\n int ypLr = getXnYp(ROOT_LRLAT, lrLat, ROOT_HEIGHT, num, 0);\n //System.out.println(\"xnUl:\" + xnUl + \" ypUl:\" + ypUl\n // + \" xnLr:\" + xnLr + \" ypLr:\" + ypLr);\n\n rasterUlLon = ROOT_ULLON + xnUl * ROOT_WIDTH / num;\n rasterUlLat = ROOT_ULLAT - ypUl * ROOT_HEIGHT / num;\n rasterLrLon = ROOT_LRLON - (num - xnLr - 1) * ROOT_WIDTH / num;\n rasterLrLat = ROOT_LRLAT + (num - ypLr - 1) * ROOT_HEIGHT / num;\n int nCols = xnLr - xnUl + 1;\n int nRows = ypLr - ypUl + 1;\n //System.out.println(\"numColumns:\" + nCols + \" numRows:\" + nRows);\n\n renderGrid = new String[nRows][nCols];\n\n for (int row = ypUl; row <= ypLr; row += 1) {\n int j = row - ypUl;\n for (int col = xnUl; col <= xnLr; col += 1) {\n int i = col - xnUl;\n renderGrid[j][i] = \"d\" + depth + \"_x\" + col + \"_y\" + row + \".png\";\n }\n }\n querySuccess = true;\n\n results.put(\"raster_ul_lon\", rasterUlLon);\n results.put(\"raster_ul_lat\", rasterUlLat);\n results.put(\"raster_lr_lon\", rasterLrLon);\n results.put(\"raster_lr_lat\", rasterLrLat);\n results.put(\"depth\", depth);\n results.put(\"render_grid\", renderGrid);\n results.put(\"query_success\", querySuccess);\n\n return results;\n }",
"void handleWeatherDataForLocation(String lon, String lat);",
"private static void getWeatherDataForInputValues(BigDecimal lat, BigDecimal lon) throws RemoteException{\n\t\t\n\t\tCalendar time = new GregorianCalendar();\t\t\t\t// Pass this as a GregorianCalendar for the Calendar to understand\n\t\ttime.setTime(new Date());\n\t\tSystem.out.println(\"Fetaching data from SOAP Web Service... Please wait\");\n\t\tString result = proxy.NDFDgen(lat,lon,\"time-series\",time,time,\"e\",wp);\n\t\tDocument dom= convertStringToDocument(result);\n\t\ttry{\n\t\t\t//Displaying the result on the output screen\n\t\t\tXPathFactory xpathFactory = XPathFactory.newInstance();\n\t\t\tXPath xpath = xpathFactory.newXPath();\n\t\t\tSystem.out.println(\"Minimum Temperature: \"+getValuesFromDom(dom,xpath,\"temperature[@type='minimum']\")); //print the minimum temp\n\t\t\tSystem.out.println(\"Maximum Temperature: \"+getValuesFromDom(dom,xpath,\"temperature[@type='maximum']\")); // print the maximum temp\n\t\t\tSystem.out.println(\"Wind Direction: \"+getValuesFromDom(dom,xpath,\"direction\")); // print the wind direction\n\t\t\tSystem.out.println(\"Wind Speed: \"+getValuesFromDom(dom,xpath,\"wind-speed\")); // print the wind speed\n\t\t\tSystem.out.println(\"Temperature Dew point: \"+getValuesFromDom(dom,xpath,\"temperature[@type='dew point']\")); // print the dew point temperature\n\t\t\tSystem.out.println(\"12 Hour Probability of Precipitation:\"+getValuesFromDom(dom,xpath,\"probability-of-precipitation\"));\n\t\t\tString command = isRefreshed();\n\t\t\tif(command.trim().toLowerCase().equals(\"yes\")){\n\t\t\t\t\n\t\t\t\tgetWeatherDataForInputValues(lat,lon);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public void onScrubGeo(long arg0, long arg1) {\n\r\n }",
"@Override\r\n public void onScrubGeo(long arg0, long arg1) {\n\r\n }",
"private List decodePoly(String encoded) {\n // Danh sach cac duong thang duoc giai ma\n List poly = new ArrayList<>();\n int index = 0, len = encoded.length();\n int lat = 0, lng = 0;\n while (index < len) {\n // Duyet tung duong thang\n int b, shift = 0, result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlat = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lat += dlat;\n shift = 0;\n result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlng = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lng += dlng;\n LatLng p = new LatLng((((double) lat / 1E5)),\n (((double) lng / 1E5)));\n poly.add(p);\n }\n return poly;\n }",
"public interface LocationsCalculation {\r\n\r\n /**\r\n * To get altitude on behalf of ranges supplied\r\n * \r\n * @param startRange\r\n * start range of altitude point\r\n * \r\n * @param endRange\r\n * end range of altitude point\r\n * \r\n * @return altitude\r\n */\r\n public double generateAltitude(Double startRange, Double endRange);\r\n\r\n /**\r\n * To get latitude on behalf of plus minus subranges supplied\r\n * \r\n * @param latitude\r\n * supplied by user as input\r\n * \r\n * @param plusMinusRange\r\n * subrange of supplied latitudes\r\n * \r\n * @return latitude\r\n */\r\n public double generateLatitude(double latitude, Double plusMinusRange);\r\n\r\n /**\r\n * To get longitude on behalf of plus minus subranges supplied\r\n * \r\n * @param longitude\r\n * supplied by user as input\r\n * \r\n * @param plusMinusRange\r\n * subrange of supplied longitude\r\n * \r\n * @return longitude\r\n */\r\n public double generateLongitude(double longitude, Double plusMinusRange);\r\n\r\n}",
"@Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { sydney = new LatLng(lati, longi);\n//\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n//\n// latt = Double.parseDouble((String) latitxt.getText());\n// longg = Double.parseDouble((String) longtxt.getText());\n//\n//\n\n\n\n\n\n }",
"private void extractLatLongAndRelativeLocation(Buoy buoy, String value)\n {\n String regexp = \"^(.+?)or\";\n Pattern pat = Pattern.compile(regexp);\n Matcher match = pat.matcher(value);\n\n String latLong = \"\";\n String relativePos = \"\";\n\n if (match.find())\n {\n latLong = match.group(0);\n relativePos = value.substring(value.\n lastIndexOf(latLong) + latLong.length(), value.length()).trim(); \n \n latLong = latLong.replace(\"or\", \"\").trim();\n\n\n } else\n {\n latLong = \"\";\n relativePos = value;\n }\n\n buoy.setLatlong(latLong);\n buoy.setRelativeLocation(relativePos);\n }",
"private String buildGPRMC(String time, String date, String lattitude, String lon) {\n\t\tStringBuilder sb = new StringBuilder(\"$GPRMC,\");\n\n\t\tsb.append(time);// 1\n\t\tsb.append(\",A,\");//2\n\t\tsb.append(lattitude);// 2,3\n\t\tsb.append(',');\n\t\tsb.append(lon);// 4,5\n\t\tsb.append(',');\n\t\tdouble knots = getSpeed()/1.852;\n\t\tsb.append(KNOTS_FORMAT.format(knots));// 022.4 Speed over the ground in knots \n\t\tsb.append(',');\n\t\tdouble track = getHeading();\n\t\tsb.append(TRACK_FORMAT.format(track));//084.4 Track angle in degrees True \n\t\tsb.append(',');\n\t\tsb.append(date);// 230394 Date - 23rd of March 1994\n\t\tsb.append(',');\n\t\tsb.append(\"003.1,W\");// 003.1,W Magnetic Variation \n\t\tsb.append('*');\n\t\tString check = getChecksum(sb.toString());\n\t\tsb.append(check);\n\t\tsb.append(\"\\r\\n\");\n\t\treturn sb.toString();\n\t}",
"private void readGPS() {\n }",
"private void getAddress(double lat, double longit) {\n\t\tLocationAddress.getAddressFromLocation(lat, longit, \n cont, new GeocoderHandler());\n// Log.d(\"address\", addr);\n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String x;\n double z = 0;\n int h = 0;\n int m = 0;\n int s = 0;\n double distance = 0.0;\n while ((x = br.readLine())!= null) {\n StringTokenizer st = new StringTokenizer(x);\n StringTokenizer st2 = new StringTokenizer(st.nextToken(),\":\");\n int hour = Integer.parseInt(st2.nextToken());\n int min = Integer.parseInt(st2.nextToken());\n int sec = Integer.parseInt(st2.nextToken());\n \n int p = hour;\n if (hour < h || hour == h && min < m || hour == h && min == m && sec < s) {\n p = p + 24;\n }\n\n distance = distance + z*((p-h)*3600+(min-m)*60+(sec-s));\n\n if (st.hasMoreTokens()) {\n z = Integer.parseInt(st.nextToken())/3600.0;\n } else {\n System.out.printf(\"%s %.2f km\\n\", x, distance);\n }\n h = hour;\n m = min;\n s = sec;\n }\n }",
"public void onClick(View v){\n \t\ttry {\r\n \t\t\tEditText textLocation = (EditText)findViewById(R.id.edtLocation);\r\n \t\t\tmapLocation = textLocation.getText().toString();\r\n \t\t\t\r\n \t\t\tEditText textDetails = (EditText)findViewById(R.id.edtDetails);\r\n \t\t\tmapSnipper = textDetails.getText().toString();\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tEditText floatLongitude = (EditText)findViewById(R.id.edtLong);\r\n \t\t\tlon = Float.valueOf(floatLongitude.getText().toString());\r\n \t\t\t\r\n \t\t\tEditText floatLatitude = (EditText)findViewById(R.id.edtLat);\r\n \t\t\tlat = Float.valueOf(floatLatitude.getText().toString());\r\n \t\t\t\r\n \t\t\t//Only Lon and Lat between -90 and 90 are allowed\r\n \t\t\tif (lat >=-90 && lat <=90 && lon >=-90 && lon <=90) {\r\n \t\t\tfinal GoogleMap mMap;\r\n \t\t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t\tmMap.addMarker(new MarkerOptions()\r\n \t\t\t .position(new LatLng(lat,lon))\r\n \t\t\t .title(mapLocation)\r\n \t\t\t .snippet(mapSnipper));\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t\t\t}\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t}\r\n \t}",
"private double _parseLongitude(String s, String d)\n {\n double _lon = StringTools.parseDouble(s, 99999.0);\n if (_lon < 99999.0) {\n double lon = (double)((long)_lon / 100L); // _lon is always positive here\n lon += (_lon - (lon * 100.0)) / 60.0;\n return d.equals(\"W\")? -lon : lon;\n } else {\n return 180.0; // invalid longitude\n }\n }",
"@When(\"^we enter latitude as \\\"([^\\\"]*)\\\" and longitude as \\\"([^\\\"]*)\\\"$\")\n\tpublic void we_enter_latitude_as_and_longitude_as(String arg1, String arg2) {\n\ttry {\n\t//\tDouble d1=Double.parseDouble(arg1);\n\t\t//Double d2=Double.parseDouble(arg2);\n\t\t\n\t\t//System.out.println(\"D1 and D2::\"+d1+ \" \"+ d2);\n\t\tList<Product> response=productsApi.productsGet(15.0, 15.0);\n\t\tSystem.out.println(\"RESPONSE:::\"+response.get(0));\n\t} catch(ApiException ape) {\n\t\tSystem.out.println(ape.getCode());\n\t\tSystem.out.println(ape.getMessage());\n\t}\n\t \n\t}",
"public int getLat();",
"public static void toXY(String input_file, String output_file) {\n\t\t// Earth radius variable for calculation\n\t\tfinal int EARTH_RADIUS = 6371;\n\t\t// latitutde and longitude values\n\t\tdouble latitude = 0.0;\n\t\tdouble longitude = 0.0;\n\t\t// variables to hold the cartesian coordinates\n\t\tdouble x = 0.0;\n\t\tdouble y = 0.0;\n\n\t\t// Strings used to process data\n\t\tString token = \"\";\n\t\tString line = \"\";\n\t\tString header = \"\";\n\n\t\t// try for IOException\n\t\ttry {\n\n\t\t\t// Create bufferedReader to pull in data\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(input_file));\n\n\t\t\t// BufferedWriter to write data\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(output_file));\n\n\t\t\t// The first line of the file is a header, put it in a variable\n\t\t\theader = br.readLine();\n\n\t\t\t// write the header to the output\n\t\t\t// System.out.println(header);\n\t\t\tbw.write(header);\n\t\t\t// write a new line\n\t\t\tbw.write(\"\\n\");\n\n\t\t\t// Declare tokenizer\n\t\t\tStringTokenizer st;\n\n\t\t\t// Declare and initialize counter variable\n\t\t\tint i = 0;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\ttoken = \"\";\n\t\t\t\t// System.out.println(line);\n\t\t\t\tst = new StringTokenizer(line, \",\");\n\t\t\t\ti = 0;\n\t\t\t\twhile (st.hasMoreElements()) {\n\t\t\t\t\t// get the next token\n\t\t\t\t\ttoken = st.nextToken();\n\n\t\t\t\t\t// if i < 2, write the token\n\t\t\t\t\tif (i < 2) {\n\t\t\t\t\t\tbw.write(token + \",\");\n\t\t\t\t\t\tSystem.out.print(token + \",\");\n\t\t\t\t\t}\n\t\t\t\t\t// if i == 2, do longitude\n\t\t\t\t\telse if (i == 2) {\n\t\t\t\t\t\t// if i == 2, longitude\n\t\t\t\t\t\tlongitude = Float.valueOf(token);\n\t\t\t\t\t\t// longitude = longitude * Math.PI / 180;\n\t\t\t\t\t}\n\t\t\t\t\t// if i == 3, do latitude\n\t\t\t\t\telse if (i == 3) {\n\t\t\t\t\t\t// if i == 3, latitude\n\t\t\t\t\t\tlatitude = Float.valueOf(token);\n\t\t\t\t\t\t// latitude = latitude * Math.PI / 180;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\tdouble n = (EARTH_RADIUS)\n\t\t\t\t\t\t/ (Math.sqrt(Math.abs((1 - (Math.exp(2.0))))\n\t\t\t\t\t\t\t\t* Math.pow(Math.sin(latitude), 2)));\n\n\t\t\t\tx = (int) (n * (Math.cos(latitude) * Math.cos(longitude)));\n\t\t\t\ty = (int) (n * (Math.cos(latitude) * Math.sin(longitude)));\n\n\t\t\t\t/*\n\t\t\t\t * x = EARTH_RADIUS * Math.sin(latitude) * Math.cos(longitude);\n\t\t\t\t * y = EARTH_RADIUS * Math.sin(latitude) * Math.sin(longitude);\n\t\t\t\t * z = EARTH_RADIUS * Math.cos(latitude); x_coord = (int) x;\n\t\t\t\t * y_coord = (int) y;\n\t\t\t\t */\n\t\t\t\tSystem.out.print(x + \",\");\n\t\t\t\tSystem.out.println(y);\n\t\t\t\tbw.write(x + \",\");\n\t\t\t\tbw.write(y + \"\\n\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tbw.close();\n\n\t\t} catch (IOException io) {\n\t\t\tSystem.err.println(\"CAUGHT IOEXCEPTION IN ConvertCoordinates: \"\n\t\t\t\t\t+ io.getMessage());\n\t\t}\n\n\t}",
"private void geolocate() throws IOException {\n\n\n List<Address> addresses = geocoder.getFromLocationName(bundle.getString(\"starting\"), 1);\n List<Address> addresses1 = geocoder.getFromLocationName(bundle.getString(\"destiny\"), 1);\n\n if (addresses!=null||addresses.size()>0||addresses1!=null||addresses1.size()>0)\n {\n try {\n\n\n Address address=addresses.get(0);\n Address address1=addresses1.get(0);\n\n Double orglat = address.getLatitude();\n Double orglng = address.getLongitude();\n Double dstlat = address1.getLatitude();\n Double dstlng = address1.getLongitude();\n\n origin = new LatLng(orglat, orglng);\n destiny = new LatLng(dstlat, dstlng);\n\n /* Constants.AddrouteOrigin=new LatLng(orglat,orglng);\n Constants.AddrouteDestiny=new LatLng(dstlat,dstlng);*/\n\n\n Log.d(\"origindest\",Constants.AddrouteOrigin+\" \"+Constants.AddrouteDestiny+\"\");\n\n Log.d(\"origindest\",origin+\" \"+destiny+\"\");\n\n }catch (IndexOutOfBoundsException e){\n Toast.makeText(getContext(),e.getMessage(),Toast.LENGTH_LONG).show();\n }\n\n }\n else {\n Toast.makeText(getContext(),\"no address found\",Toast.LENGTH_LONG).show();\n }\n }",
"private void sendRequestAPI(Double lat,Double lng, String places) {\n\n String origin = String.valueOf(lat) + \",\" + String.valueOf(lng);\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n String destination = \"0,0\";\n String wayPoints = \"0,0\";\n\n switch (places) {\n case \"Family Walk\" :\n destination = formatCoordinates(6);\n wayPoints = formatCoordinates(4) + \"|\" + formatCoordinates(5);\n break;\n\n case \"Retro Tour\" :\n destination = formatCoordinates(9);\n wayPoints =formatCoordinates(7) + \"|\" + formatCoordinates(8);\n break;\n\n case \"Sports Tour\" :\n destination = formatCoordinates(11);\n wayPoints = formatCoordinates(9) + \"|\" + formatCoordinates(8);\n break;\n case \"custom\":\n destination = getActivity().getIntent().getStringExtra(\"destination\");\n wayPoints = getActivity().getIntent().getStringExtra(\"waypoints\");\n break;\n\n }\n //String destination = \"-27.494721,153.014262\";\n //String wayPoints = \"-27.498172, 153.013585\";\n try {\n\n new Directions(this, origin, destination, wayPoints).execute();\n Double latDes= Double.parseDouble(destination.split(\",\")[0]);\n Double lngDes= Double.parseDouble(destination.split(\",\")[1]);\n String [] points = wayPoints.split(Pattern.quote(\"|\")) ;\n\n if(wayPoints.equals(\"\")){\n\n }\n else{\n for(String point : points) {\n Double latPoint = Double.parseDouble((point.split(\",\")[0]));\n Double lngPoint = Double.parseDouble((point.split(\",\")[1]));\n List<Address> addressesPoint = geocoder.getFromLocation(latPoint, lngPoint, 1);\n wayPointsMarkers.add(mMap.addMarker(new MarkerOptions().title(addressesPoint.get(0).getAddressLine(0))\n .position(new LatLng(latPoint, lngPoint))));\n }\n }\n\n\n List<Address> addressesStart = geocoder.getFromLocation(lat, lng, 1);\n List<Address> addressesEnd = geocoder.getFromLocation(latDes,\n lngDes, 1);\n //originMarkers.add(mMap.addMarker(new MarkerOptions().title(addressesStart.get(0).getAddressLine(0))\n //.position(new LatLng(lat, lng))));\n destinationMarkers.add(mMap.addMarker((new MarkerOptions().title(addressesEnd.get(0).getAddressLine(0))\n .position(new LatLng(latDes, lngDes)))));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latDes,\n lngDes), 16));\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void displayCoordsInDegrees() {\n DecimalFormat formatter = new DecimalFormat(\"0.000\");\n\n String latFormat = formatter.format(posMarker.getPosition().latitude);\n String lonFormat = formatter.format(posMarker.getPosition().longitude);\n\n TextView latitude = (TextView) findViewById(R.id.image_latitude);\n TextView longitude = (TextView) findViewById(R.id.image_longitude);\n\n latitude.setText(latFormat); //Use posMarker location as field actually reflects marker position\n longitude.setText(lonFormat); //Use posMarker location as field actually reflects marker position\n }",
"public RecordGPS_Element ConvertRecord_GPS() {\n RecordGPS_Element recordGPS_element;\n String text;\n int[] num = {8, 8, 4, 4, 2, 4};\n List<Integer> data = new ArrayList<>();\n for (int i = 0; i < 6; i++) {\n text = HEX.substring(0, num[i]);\n data.add(converter.convertStringToIntHex(text));\n HEX = HEX.substring(num[i], HEX.length());\n }\n recordGPS_element = Fill_recordGPS_element(data);\n return recordGPS_element;\n }",
"@Override\n public String getWeatherAtCoords(@PathVariable(\"lat\") String lat, @PathVariable(\"lon\") String lon, @RequestParam(value = \"period\", defaultValue = \"0\") int period) {\n byte[] bytes;\n String utfLat = null;\n String utfLon = null;\n\n try {\n // First recode lat\n bytes = lat.getBytes(\"ISO-8859-1\");\n utfLat = new String(bytes, \"UTF-8\");\n\n // Now recode lon\n bytes = lon.getBytes(\"ISO-8859-1\");\n utfLon = new String(bytes, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n logger.error(\"Failed to handle byte encoding of url parameter\", e);\n }\n\n if (utfLat != null && utfLon != null) {\n return weatherRequest.requestWeather(utfLat, utfLon, period);\n }\n else {\n return \"Error: please try your request again!\";\n }\n }",
"private static double[] extractRainfallInformation(String[] line){\n int index = line.length - 2;\n double[] out = new double[ index ]; // Without the first two elements(City & Country)\n\n for(int i = 0; i < index ;i++){\n out[i] = Double.parseDouble(line[i + 2]);// \"3.55\" => 3.55\n }\n\n return out;\n }",
"public Map<String, Object> getMapRaster(Map<String, Double> params) {\n// System.out.println(params);\n //query box info\n double tar_lrlon, tar_ullon, tar_ullat, tar_lrlat, tar_w, tar_h, tar_LonDPP;\n tar_lrlon = params.get(\"lrlon\");\n tar_ullon = params.get(\"ullon\");\n tar_ullat = params.get(\"ullat\");\n tar_lrlat = params.get(\"lrlat\");\n tar_w = params.get(\"w\");\n tar_h = params.get(\"h\");\n tar_LonDPP = (tar_lrlon - tar_ullon) / tar_w;\n Map<String, Object> results = new HashMap<>();\n //check if query box make sense\n QuadTree rootTree = new QuadTree(\"root\", ROOT_ULLON, ROOT_ULLAT, ROOT_LRLON, ROOT_LRLAT, 0);\n QuadTree targetTree = new QuadTree(\"target\", tar_ullon, tar_ullat, tar_lrlon, tar_lrlat, 0);\n if (tar_ullon >= tar_lrlon || tar_ullat <= tar_lrlat || !rootTree.checkOverlap(targetTree)) {\n results.put(\"raster_ul_lon\", 0);\n results.put(\"raster_ul_lat\", 0);\n results.put(\"raster_lr_lon\", 0);\n results.put(\"raster_lr_lat\", 0);\n results.put(\"query_success:\", false);\n } else {\n work(rootTree, targetTree, results, tar_LonDPP);\n }\n return results;\n }",
"private static ArrayList<LatLng> decodePoly(String encoded) {\n ArrayList<LatLng> poly = new ArrayList<LatLng>();\n int index = 0, len = encoded.length();\n int lat = 0, lng = 0;\n\n while (index < len) {\n int b, shift = 0, result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlat = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lat += dlat;\n\n shift = 0;\n result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlng = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lng += dlng;\n\n LatLng p = new LatLng((((double) lat / 1E5)),(((double) lng / 1E5)));\n poly.add(p);\n }\n\n return poly;\n }",
"@Test\n public void testConvertPixelToCoord() throws Exception {\n System.out.println(\"convertPixelToCoord\");\n double x = 800;\n double y = 500;\n double lat = -71.320920;\n double lon = 46.759400;\n Utils instance = new Utils();\n Coordonnee result = instance.convertPixelToCoord(x, y);\n assertEquals(\"test latitude\",lat,result.getLat(),0);\n assertEquals(\"test longitude\",lon,result.getLon(),0);\n }",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"public static String findTemp(String lat, String lon) {\n //final String methodPath = \"/entities.electricityusage/\";\n //initialize\n URL url = null;\n String appid = \"appid=f93bd59bea3ab44fb8dba0d95596adfc\";\n HttpURLConnection conn = null;\n String textResult = \"\";\n //making http request\n try {\n url = new URL(WEATHER_URI + \"lat=\" + lat + \"&\" + \"lon=\" + lon + \"&\" +appid);\n // open the connection\n conn = (HttpURLConnection) url.openConnection();\n // set the time out\n conn.setReadTimeout(10000);\n conn.setConnectTimeout(15000);\n // set the connection method to GET\n conn.setRequestMethod(\"GET\");\n //add http headers to set your response type to json\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n //Read the response\n Scanner inStream = new Scanner(conn.getInputStream());\n //read the input stream and store it as string\n while (inStream.hasNextLine()) {\n textResult += inStream.nextLine();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n conn.disconnect();\n }\n return textResult;\n }",
"public Double[] gps(String ipAddr) {\n String GPScmd = \"gpspipe -w -n10\";\n String GPSdata = \"\";\n Double[] coord = new Double[2];\n char x;\n /*************************************************\n * Code to 'write' request for GPS info from Pi. *\n * \"lan\": 345325643, \"lon\": 23456789, *\n *************************************************/\n if (prompt != null) {\n try {\n GPSdata = sendCommand(GPScmd);\n String lat = \"\", lon = \"\";\n int plusIndex = GPSdata.indexOf(\"lat]\\\":\");\n if (plusIndex != -1) {\n lat = GPSdata.substring(plusIndex + 6);\n int plusIndex2 = GPSdata.indexOf(\"lon]\\\":\");\n if (plusIndex2 != -1) {\n lon = GPSdata.substring(plusIndex2 + 6);\n }\n lat = lat.split(\",\")[0];\n lon = lon.split(\",\")[0];\n coord[0] = Double.parseDouble(lat);\n coord[1] = Double.parseDouble(lon);\n // Use before\n System.out.println(lat + \"----\" + lon);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n return coord;\n }",
"private void checkPointLon(){\n double glon = Double.parseDouble(point_lon);\n if(glon > 180.0){\n double glon360 = glon % 360.0;\n //west\n if(glon360 > 180.0){\n point_lon = Double.toString(glon360-360.0);\n //System.out.println(point_lon);\n //east\n }else{\n point_lon = Double.toString(glon360);\n //System.out.println(point_lon);\n }\n }\n if(glon < -180.0){\n double glon360 = glon % 360.0;\n //east\n if(glon360 < -180.0){\n point_lon = Double.toString(glon360+360.0);\n //west\n }else{\n point_lon = Double.toString(glon360);\n }\n }\n }",
"public void plotCoordinatesFromText(String text){\n String[] coords = text.split(\",\");\r\n float lat = Float.parseFloat(coords[1]);\r\n float lng = Float.parseFloat(coords[0]);\r\n float ticks = Float.parseFloat(coords[2]);\r\n\r\n double total = (4400.0 - 0.1707*ticks)/44.00;//computers battery life\r\n int total_ = (int)(total + 0.5);\r\n\r\n VariablesSingleton.getInstance().setBATTERY(Double.toString(total_));\r\n TextView t = (TextView)findViewById(R.id.textView2);\r\n t.setText(VariablesSingleton.getInstance().getBATTERY()+\"%\");//displays battery life\r\n\r\n LatLng pos = new LatLng(lat,lng);//\r\n points.add(pos);//adds the point on the google maps\r\n //BikePath = mMap.addPolyline(new PolylineOptions());\r\n BikePath.setPoints(points);//adds the line connecting the markers\r\n\r\n mMap.addMarker(new MarkerOptions()//displays the marker on google map\r\n .title(\"Position\")\r\n .position(pos)\r\n );\r\n Log.d(TAG,coords[0]);\r\n Log.d(TAG,coords[1]);\r\n }",
"public static native double geoidh(double lat, double lon);",
"public interface IGeoPlaceRepository {\n public void dataFromNetwork(String starttime, String endtime);\n public void dataFromNetworkWithMag(String starttime, String endtime, String minmagnitude);\n public void dataFromNetworkCustomized(String starttime, String endtime, String latitude,String longitude,String maxradiuskm);\n}",
"public interface ReverseGeo {\n //파라미터로 집어넣고 싶은 값들은 {}로 묶어준\n @GET(\"maps/api/geocode/json\")\n // JSON Array를 리턴하므로 List<>가 되었다\n //제이썬 어레이가 되돌아온다, 하나의 제이썬은 객체로 정의, 필요한 정보들을 가져온다\n //인터페이스이므로 몸체가 없는 함수이다 패쓰에 정의된 것은 파라미터들\n //함수 호출시에 매개변수로 집어넣는 것들이 위에 정의한 URL 상의 빈 부분들에 들어간\n Call<ReverseGeoRes> reverseGeo(\n // param 값으로 들어가는 것들이다\n @Query(\"key\") String key,\n @Query(\"language\") String lang,\n @Query(\"latlng\") String latlng);\n}",
"@Override\r\n public void onCameraChange(CameraPosition cameraPosition)\r\n {\n locationModel.setLatitude(Double.toString(cameraPosition.target.latitude));\r\n locationModel.setLongitude(Double.toString(cameraPosition.target.longitude));\r\n lat=cameraPosition.target.latitude;\r\n lang=cameraPosition.target.longitude;\r\n getAddressFromLatLng();\r\n// LocationAddress.getAddressFromLocation(cameraPosition.target.latitude, cameraPosition.target.longitude,\r\n// getApplicationContext(), new GeocoderHandler());\r\n }",
"public static Kv getGF1Data(String latlons, String gf1Path) throws ParseException {\n List<Double> lons = new ArrayList<>();\n List<Double> lats = new ArrayList<>();\n String[] split = latlons.split(\",\");\n for (int i = 0; i < split.length; i++) {\n String s = split[i];\n lons.add(Double.parseDouble(s.split(\" \")[0]));\n lats.add(Double.parseDouble(s.split(\" \")[1]));\n }\n Double min_lon = Collections.min(lons);\n Double max_lon = Collections.max(lons);\n Double min_lat = Collections.min(lats);\n Double max_lat = Collections.max(lats);\n\n gdal.AllRegister();\n\n Dataset dataset = gdal.Open(gf1Path, gdalconstConstants.GA_ReadOnly);\n Vector<Object> objects = new Vector<>();\n WarpOptions warpOptions = new WarpOptions(objects);\n Dataset[] src_array = {dataset};\n\n File tiff = new File(gf1Path);\n String new_tiff = tiff.getParent() + \"/warp.tif\";\n Dataset hDataset = gdal.Warp(new_tiff, src_array, warpOptions);\n if (StringUtils.isBlank(hDataset.GetProjectionRef())) {\n return Kv.by(\"errorMsg\", \"获取不到数据坐标系\").set(\"code\", 400);\n }\n\n if (hDataset == null) {\n System.err.println(gdal.GetLastErrorMsg());\n return Kv.by(\"errorMsg\", \"GDALOpen failed - \" + gdal.GetLastErrorNo()).set(\"code\", 400);\n }\n double[] dGeoTrans = hDataset.GetGeoTransform();\n\n Driver hDriver = hDataset.GetDriver();\n System.out.println(\"Driver: \" + hDriver.getShortName() + \"/\" + hDriver.getLongName());\n int iXSize = hDataset.getRasterXSize();\n int iYSize = hDataset.getRasterYSize();\n System.out.println(\"Size is \" + iXSize + \", \" + iYSize);\n //波段数\n int rasterCount = hDataset.getRasterCount();\n if (rasterCount != 4) {\n return Kv.by(\"errorMsg\", \"必须为四波段高分1的tiff数据\").set(\"code\", 400);\n }\n\n// Layer enlovpe = getEnlovpe(latlons);\n// Layer testlayer = dataset.CreateLayer(\"test\");\n// Layer layer = dataset.GetLayer(0);\n// layer.Clip(enlovpe,testlayer);\n//\n Band band3 = hDataset.GetRasterBand(3);//红\n Band band4 = hDataset.GetRasterBand(4);//近红\n //包围盒空间坐标转tif行列号\n int[] maxRowCol = Projection2ImageRowCol(dGeoTrans, max_lon, max_lat);\n int[] minRowCol = Projection2ImageRowCol(dGeoTrans, min_lon, min_lat);\n int max_x = (int) maxRowCol[0];\n int max_y = (int) maxRowCol[1];\n int min_x = (int) minRowCol[0];\n int min_y = (int) minRowCol[1];\n if (max_y < 0) {\n max_y = 0;\n }\n if (min_x < 0) {\n min_x = 0;\n }\n if (min_y > iYSize) {\n min_y = iYSize;\n }\n if (max_x > iXSize) {\n max_x = iXSize;\n }\n //获取二维数组\n System.out.println(\"x:\" + min_x + \"到\" + max_x);\n System.out.println(\"y:\" + max_y + \"到\" + min_y);\n System.out.println(\"x:\" + (max_x - min_x));\n System.out.println(\"y:\" + (min_y - max_y));\n float[][] data = new float[min_y - max_y][max_x - min_x];\n Double[] nodatas = new Double[]{null};\n band3.GetNoDataValue(nodatas);\n Double noData = nodatas[0];\n if (max_x == min_x && max_y == min_y) {\n //田块在一个像素里\n int buf4[] = new int[1];\n int buf5[] = new int[1];\n data = new float[1][1];\n band3.ReadRaster(min_x, min_y, 1, 1, buf4);\n band4.ReadRaster(min_x, min_y, 1, 1, buf5);\n double add = Arith.add(buf4[0], buf5[0]);\n if (add == 0) {\n data[0][0] = 0;\n } else {\n Double div = Arith.div(Arith.sub(buf4[0], buf5[0]), add);\n if (div == -1 || div == 1) {\n data[0][0] = 0;\n } else {\n data[0][0] = div.floatValue();\n }\n }\n } else {\n int buf4[] = new int[iYSize];\n int buf5[] = new int[iYSize];\n for (int i = min_x; i < max_x; i++) {\n band3.ReadRaster(0, i, iYSize, 1, buf4);\n band4.ReadRaster(0, i, iYSize, 1, buf5);\n for (int j = max_y; j < min_y; j++) {\n //行列号转地理坐标\n double[] doubles = ImageRowCol2Projection(dGeoTrans, i, j);\n double lon = doubles[0];\n double lat = doubles[1];\n boolean iscontains = GeometryRelated.withinGeo(lon, lat, \"POLYGON((\" + latlons + \"))\");\n if (iscontains) {\n //面内,赋值像素值\n int b4 = buf4[(iYSize-j)-1];\n int b5 = buf5[(iYSize-j)-1];\n// System.out.println(b4+\"-\"+b5);\n if (noData == null || Math.abs(b4 - noData) > 1e-6) {\n //ndvi = B5-B4/B5+B4 B4是红,B5是近红 正常结果范围在-1到1之间\n double add = Arith.add(b5, b4);\n if (add == 0) {\n data[j - max_y][i - min_x] = 2;\n } else {\n Double div = Arith.div(Arith.sub(b5, b4), add);\n// if (div == 0) {\n// System.out.println(lon + \" \" + lat);\n// }\n if (div > 1) {\n data[j - max_y][i - min_x] = 1;\n } else if (div < -1) {\n data[j - max_y][i - min_x] = -1;\n } else {\n data[j - max_y][i - min_x] = div.floatValue();\n }\n }\n } else {\n data[j - max_y][i - min_x] = 2;\n }\n// System.out.print(data[j - max_y][i - min_x] + \", \");\n } else {\n data[j - max_y][i - min_x] = 2;\n }\n }\n// System.out.println(\"\\n\");\n }\n }\n dataset.delete();\n hDataset.delete();\n File file = new File(new_tiff);\n file.delete();\n return Kv.by(\"data\", data).set(\"intersec\", true).set(\"code\", 200);\n// return testlayer;\n }",
"private List<LatLng> decodePoly(String encoded) {\n List<LatLng> poly = new ArrayList<LatLng>();\n int index = 0, len = encoded.length();\n int lat = 0, lng = 0;\n\n while (index < len) {\n int b, shift = 0, result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlat = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lat += dlat;\n\n shift = 0;\n result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlng = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lng += dlng;\n\n LatLng p = new LatLng((((double) lat / 1E5)),\n (((double) lng / 1E5)));\n poly.add(p);\n }\n return poly;\n }",
"@Override\r\n\t\t\tpublic void onScrubGeo(long arg0, long arg1) {\n\r\n\t\t\t}",
"public void convertPixelToLatLng(ArrayList<PointInFloat> pathInPixels){\n for(int i=0; i<pathInPixels.size(); i++){\n LatLng latLng = googleMap.getProjection().\n fromScreenLocation(new Point((int) pathInPixels.get(i).getX(), (int) pathInPixels.get(i).getY()));\n mMapInterface.getPathFrame().add(latLng);\n }\n }",
"public interface InputService {\n Coordinate readCoordinate();\n}",
"private List<LatLng> decodePoly(String encoded) {\n\n List<LatLng> poly = new ArrayList<>();\n int index = 0, len = encoded.length();\n int lat = 0, lng = 0;\n\n while (index < len) {\n int b, shift = 0, result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlat = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lat += dlat;\n\n shift = 0;\n result = 0;\n do {\n b = encoded.charAt(index++) - 63;\n result |= (b & 0x1f) << shift;\n shift += 5;\n } while (b >= 0x20);\n int dlng = ((result & 1) != 0 ? ~(result >> 1) : (result >> 1));\n lng += dlng;\n\n LatLng p = new LatLng((((double) lat / 1E5)),\n (((double) lng / 1E5)));\n poly.add(p);\n }\n\n return poly;\n }",
"@Test\n public void testConvertCoordToPixel() throws Exception {\n System.out.println(\"convertCoordToPixel\");\n double x = 800;\n double y = 500;\n double lat = -71.320920;\n double lon = 46.759400;\n Utils instance = new Utils();\n Coordonnee coord = new Coordonnee(-71.320920,46.759400);\n assertEquals(\"test latitude\",x,instance.convertCoordToPixel(coord).getLat(),0);\n assertEquals(\"test longitude\",y,instance.convertCoordToPixel(coord).getLon(),0);\n }",
"protected String evaluate(double lat, double lon, int level) {\n this.lat = Math.floor(lat);\n this.lon = Math.floor(lon);\n this.level = level;\n return DTEDFrameUtil.lonToFileString((float) lon) + \"/\"\n + DTEDFrameUtil.latToFileString((float) lat, level);\n }",
"@Override\n public void onLocationChanged(Location location) {\nString x=\"Latitude is--> \"+location.getLatitude();\nString y=\"Longtitude is--> \"+location.getLongitude();\n Toast.makeText(this.context,\"LATITUDE=\"+x+\" LONGTITUDE=\"+y, Toast.LENGTH_LONG).show();\n txtview.setText(x+\"\\n\"+y);\n\n }",
"public static void main(String[] args) {\n\t\tjava.util.Scanner in = new java.util.Scanner(System.in);\n\n\t\tString res = null;\n\t\tString str = in.nextLine();\n\t\tString strRMC = \"error\";\n\t\tint firstPoint = 0;\n\t\tint secondPoint = 0;\n\n\t\twhile (!str.equals(\"END\")) {\n\n\t\t\tfirstPoint = str.indexOf(',');\n\t\t\tsecondPoint = str.indexOf(',', firstPoint + 1);\n\n\t\t\tif (str.indexOf(\"$GPRMC\") != -1 && str.charAt(secondPoint + 1) == 'A') {\n\t\t\t\tint n = str.indexOf('*');\n\t\t\t\tString dernier = str.substring(str.indexOf('*') + 1);\n\t\t\t\tint scalaire = str.charAt(1);\n\t\t\t\tfor (int i = 2; i < n; i++) {\n\t\t\t\t\tscalaire = scalaire ^ str.charAt(i);\n\t\t\t\t}\n\t\t\t\tif (scalaire % 65536 == Integer.parseInt(dernier, 16)) {\n\t\t\t\t\tstrRMC = str;\n\t\t\t\t\tfirstPoint = strRMC.indexOf(',');\n\t\t\t\t\tsecondPoint = strRMC.indexOf(',', firstPoint + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = in.nextLine();\n\t\t}\n\n\t\tString time = strRMC.substring(firstPoint + 1, strRMC.indexOf('.'));\n\n\t\tint value = Integer.parseInt(time);\n\n\t\t// 字段2不足6位要补足\n\t\ttime = time.format(\"%06d\", value);\n\n\t\tString h = time.substring(0, 2);\n\t\tString m = time.substring(2, 4);\n\t\tString s = time.substring(4);\n\t\tint hourBJ = Integer.parseInt(h) + 8;\n\t\thourBJ = hourBJ % 24;\n\t\tint minuteBJ = Integer.parseInt(m);\n\t\tint secondBJ = Integer.parseInt(s);\n\n\t\tres = res.format(\"%02d:%02d:%02d\", hourBJ, minuteBJ, secondBJ);\n\t\tSystem.out.println(res);\n\t}",
"@Override\n\t\t\tpublic void onScrubGeo(long arg0, long arg1) {\n\n\t\t\t}",
"@Override\n\t\tpublic void onScrubGeo(long arg0, long arg1) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onScrubGeo(long arg0, long arg1) {\n\t\t\t\n\t\t}",
"public Map<String, Object> getMapRaster(Map<String, Double> params) {\n Map<String, Object> results = new HashMap<>();\n double lrlon = params.get(\"lrlon\");\n double ullon = params.get(\"ullon\");\n double w = params.get(\"w\");\n double h = params.get(\"h\");\n double ullat = params.get(\"ullat\");\n double lrlat = params.get(\"lrlat\");\n int depth = computeDepth(lrlon, ullon, w);\n boolean query_success = true;\n if (lrlat >= ullat || lrlon <= ullon || lrlat >= ROOT_ULLAT || lrlon <= ROOT_ULLON || ullat <= ROOT_LRLAT ||ullon >= ROOT_LRLON) {\n query_success = false;\n }\n int numImg = (int) Math.pow(2, depth);\n double wPerImg = W / Math.pow(2.0, depth);\n double hPerImg = H / Math.pow(2.0, depth);\n int xSt = (int) Math.floor(Math.abs(ullon - ROOT_ULLON) / wPerImg);\n int ySt = (int) Math.floor(Math.abs(ullat - ROOT_ULLAT) / hPerImg);\n int xEn = (int) Math.floor(Math.abs(lrlon - ROOT_ULLON) / wPerImg);\n int yEn = (int) Math.floor(Math.abs(lrlat - ROOT_ULLAT) / hPerImg);\n String[][] render_grid = new String[yEn - ySt + 1][xEn - xSt + 1];\n double raster_ul_lon = ROOT_ULLON + xSt * wPerImg;\n double raster_ul_lat = ROOT_ULLAT - ySt * hPerImg;\n double raster_lr_lon = ROOT_ULLON + (xEn + 1) * wPerImg;\n double raster_lr_lat = ROOT_ULLAT - (yEn + 1) * hPerImg;\n if (ullon < ROOT_ULLON) {\n xSt = 0;\n raster_ul_lon = ROOT_ULLON;\n }\n if (ullat > ROOT_ULLAT) {\n ySt = 0;\n raster_ul_lat = ROOT_ULLAT;\n }\n if (lrlon > ROOT_LRLON) {\n xEn = numImg - 1;\n raster_lr_lon = ROOT_LRLON;\n }\n if (lrlat < ROOT_LRLAT) {\n yEn = numImg - 1;\n raster_lr_lat = ROOT_LRLAT;\n }\n for (int i = 0; i < xEn - xSt + 1; ++i) {\n for (int j = 0; j < yEn - ySt + 1; ++j) {\n int x = i + xSt;\n int y = j + ySt;\n render_grid[j][i] = \"d\" + depth + \"_x\" + x + \"_y\" + y + \".png\";\n }\n }\n results.put(\"render_grid\", render_grid);\n results.put(\"raster_ul_lon\", raster_ul_lon);\n results.put(\"raster_ul_lat\", raster_ul_lat);\n results.put(\"raster_lr_lon\", raster_lr_lon);\n results.put(\"raster_lr_lat\", raster_lr_lat);\n results.put(\"depth\", depth);\n results.put(\"query_success\", query_success);\n return results;\n }",
"public static void main(String[] args) {\n\t\tQuadrilateral qu = new Quadrilateral(\"122:10:22.15761,30:33:53.48025-122:10:18.39148,30:33:33.11945-122:17:18.08089,30:32:55.71872-122:17:14.29433,30:32:35.36090\");\n//\t\tPoint po = new Point(\"31:16:32,121:45:39\");\n\t\tPoint po = new Point(\"122:10:22.15761,30:33:53.48025\");\n\t\tSystem.out.println(po.lon);\n\t\tLatLng point = new LatLng(30.56486,122.17282);\n\t\tSystem.out.println(qu.isContainsPoint(point));\n\t}",
"@Override\n\tpublic void onScrubGeo(long arg0, long arg1) \n\t{\n\t}",
"public void getOutData(String line) {\n\t\tMatcher myMatcher = myPattern.matcher(line);\n\t\tmyMatcher.find();\n\t\tmyMatcher.matches();\n\t\tmyMatcher.matches();\n\t\t// *--- GROUP 3(X) 4(Y) 5(Z) --*//\n\t\tif (myMatcher.group(3) != null)\n\t\t\txAxis = Double.parseDouble(myMatcher.group(3));\n\t\telse {\n\t\t\txAxis = Double.NaN;\n\t\t}\n\t\tif (myMatcher.group(4) != null)\n\t\t\tyAxis = Double.parseDouble(myMatcher.group(4));\n\t\telse {\n\t\t\tyAxis = Double.NaN;\n\t\t}\n\t\tif (myMatcher.group(5) != null)\n\t\t\tzAxis = Double.parseDouble(myMatcher.group(5));\n\t\telse {\n\t\t\tzAxis = Double.NaN;\n\t\t}\n\t}",
"@Override\n\tpublic void onScrubGeo(long arg0, long arg1) {\n\t\t\n\t}",
"public void parseGPSData(){\n List<String> coordData = new ArrayList<String>();\n for (int i = 6; i < currentMessage.size(); i++){\n // Convert to int to rid ourselves of preceding zeros. Yes, this is bad.\n coordData.add(\n String.valueOf(\n Integer.parseInt(\n bcdToStr(currentMessage.get(i))\n )\n )\n );\n }\n\n String latitudeNorthSouth = (\n bcdToIntString(coordData.get(3)).charAt(1) == '0'\n ) ? \"N\" : \"S\";\n \n String longitudeEastWest = (\n bcdToIntString(coordData.get(8)).charAt(1) == '0'\n ) ? \"E\" : \"W\";\n \n triggerCallback(\"onUpdateGPSCoordinates\",\n String.format(\n \"%.4f%s%s %.4f%s%s\", \n //Latitude\n decimalMinsToDecimalDeg(\n coordData.get(0), coordData.get(1), coordData.get(2)\n ),\n (char) 0x00B0,\n latitudeNorthSouth,\n //Longitude\n decimalMinsToDecimalDeg(\n coordData.get(4) + coordData.get(5),\n coordData.get(6),\n coordData.get(7)\n ),\n (char) 0x00B0,\n longitudeEastWest\n )\n );\n \n // Parse out altitude data which is in meters and is stored as a byte coded decimal\n int altitude = Integer.parseInt(\n bcdToStr(currentMessage.get(15)) + bcdToStr(currentMessage.get(16))\n );\n\n triggerCallback(\"onUpdateGPSAltitude\", altitude);\n \n // Parse out time data which is in UTC\n String gpsUTCTime = String.format(\n \"%s:%s\",\n bcdToIntString(bcdToStr(currentMessage.get(18))),\n bcdToIntString(bcdToStr(currentMessage.get(19)))\n );\n \n triggerCallback(\"onUpdateGPSTime\", gpsUTCTime);\n }",
"private static double distance(double lat1, double lon1, double lat2, double lon2, String unit) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n if (unit.equals(\"K\")) {\n dist = dist * 1.609344;\n } else if (unit.equals(\"N\")) {\n dist = dist * 0.8684;\n }\n //default miles\n return (dist);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n String[] xy = new String[]{\"37.221900\",\"127.18800\",\"37.221804\",\"127.186695\",\"37.220000\",\"127.186666\"};\n\n ArrayList<LatLng> loc=new ArrayList<LatLng>();\n\n int count = 1;\n for (int i=0;i<xy.length;i++){\n\n double tmp = Double.parseDouble(xy[i]);\n double tmp2 = Double.parseDouble(xy[++i]);\n\n\n LatLng latLng = new LatLng(tmp, tmp2);\n\n loc.add(latLng);\n\n\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Pin\"+count).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pin_purple)));\n count++;\n }\n\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc.get(loc.size()-1)));\n\n\n// // 서울 위치\n// LatLng seoul = new LatLng(37.566535, 126.97796919);\n// mMap.addMarker(new MarkerOptions().position(seoul).title(\"Marker in Seoul\"));\n//\n// // 명지대 위치 추가\n// LatLng MJU = new LatLng(37.221804, 127.186695);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU)\n// .title(\"명지대\"));\n//\n// //핀 연결 확인용 좌표 추가\n// LatLng MJU2 = new LatLng(37.220000, 127.186666);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU2)\n// .title(\"명지대2\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(MJU2));\n\n // 카메라 줌\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n\n // 인포 윈도우 클릭시 전화 걸기 -> 뭔가 게시물 쓸때 쓸수있을거 같아서 남겨둠\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:0312365043\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n //arraylist 다시 배열에 넣는거 아직 않마 까먹ㅇ멋어ㅏ\n LatLng[] line = {\n loc.get(0),loc.get(1),loc.get(2)\n };\n //좌표끼리 선 긋기 좌표가 추가 될때마다 새로운 선을 만들어야 하나.. 아니면 그냥 좌표하나씩 추가해야하나 고민\n //일단 좌표에 들어온 순서로 선이 그어짐 -> 시간별로 추가할수 있도록 해야 함\n\n\n //좌표 두개마다 각각의 polyline을 생성해야 각각 화살표로 나올수 있음\n //for문 사용해서 polyline 만들어보기\n// for(int i=0; i<line.length;){\n// Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add( line[i], line[++i]\n// ) .width(10)\n//\n// .geodesic(true));\n//\n//\n// }\n\n\n Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n .clickable(true)\n .add( line\n ) .width(10)\n\n .geodesic(true));\n\n polyline1.setEndCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_arrow), 15));\n polyline1.setStartCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_circle), 15));\n\n\n\n googleMap.setOnPolylineClickListener(this);\n googleMap.setOnPolygonClickListener(this);\n\n\n\n }",
"@Override\n public void onScrubGeo(long arg0, long arg1) {\n }",
"int getLatE6();",
"int getLatE6();",
"static List<pair<Integer, Integer>> cutCoords(String input) {\n List<pair<Integer, Integer>> coords = new ArrayList<>();\n String[] split = input.split(\" \");\n\n for (int i = 1; i < split.length; i += 2) {\n coords.add(new pair<>(Integer.parseInt(split[i]), Integer.parseInt(split[i + 1])));\n }\n\n return coords;\n }",
"public static double[] radiusToLonLat(String radius,String lat){\n //general approximate transformation\n double latDelta = Double.parseDouble(radius)/110.574;\n double longDelta = Double.parseDouble(radius)/(111.3*Math.cos(Math.toRadians(Double.parseDouble(lat)))); //1 deg = 111.320*cos(latitude) km\n\n return new double[] {latDelta, longDelta};\n }",
"protected static Point getLocationFromCoordinate(String latitude, String longitude) {\n\t \n\t\t//the coordinates corresponding to latitude and longitude\n\t\tfloat x = 0;\n\t\tfloat y = 0;\n\n\t\t/*Convert from latitude and longitude to x and y where (N90,W180) = (0,0)*/\n\t\tif (latitude.substring(0, 1).equals(\"N\")){\n\t\t\ty = 90 - Float.parseFloat(latitude.substring(1));\n\t\t}\n\t\telse if (latitude.substring(0,1).equals(\"S\")) {\n\t\t\ty = 90 + Float.parseFloat(latitude.substring(1));\n\t\t}\n\t\tif (longitude.substring(0, 1).equals(\"E\")) {\n\t\t\tx = 180 + Float.parseFloat(longitude.substring(1));\n\n\t\t}\n\t\telse if (longitude.substring(0, 1).equals(\"W\")) {\n\t\t\tx = 180 - Float.parseFloat(longitude.substring(1));\n\t\t}\n\t\t\n\t\treturn new Point(x, y);\n\t}",
"private void parseLocation(String s) {\r\n String[] parsedString = s.split(\" \");\r\n location[0] = Integer.parseInt(parsedString[0]);\r\n location[1] = Integer.parseInt(parsedString[1]);\r\n orientation = parsedString[2].charAt(0);\r\n }",
"private DPoint m2833m() {\r\n IPoint iPoint = new IPoint();\r\n this.f1769m.mo353a(this.f1761e.latitude, this.f1761e.longitude, iPoint);\r\n IPoint iPoint2 = new IPoint();\r\n this.f1769m.mo353a(this.f1762f.latitude, this.f1762f.longitude, iPoint2);\r\n IPoint iPoint3 = new IPoint();\r\n this.f1769m.mo353a(this.f1763g.latitude, this.f1763g.longitude, iPoint3);\r\n double d = (double) iPoint.f3639x;\r\n double d2 = (double) iPoint.f3640y;\r\n double d3 = (double) iPoint2.f3639x;\r\n double d4 = (double) iPoint2.f3640y;\r\n double d5 = (double) iPoint3.f3639x;\r\n double d6 = (double) iPoint3.f3640y;\r\n double d7 = (((d6 - d2) * ((((d4 * d4) - (d2 * d2)) + (d3 * d3)) - (d * d))) + ((d4 - d2) * ((((d2 * d2) - (d6 * d6)) + (d * d)) - (d5 * d5)))) / (((2.0d * (d3 - d)) * (d6 - d2)) - ((2.0d * (d5 - d)) * (d4 - d2)));\r\n double d8 = (((d5 - d) * ((((d3 * d3) - (d * d)) + (d4 * d4)) - (d2 * d2))) + ((d3 - d) * ((((d * d) - (d5 * d5)) + (d2 * d2)) - (d6 * d6)))) / (((2.0d * (d4 - d2)) * (d5 - d)) - ((2.0d * (d6 - d2)) * (d3 - d)));\r\n this.f1773q = Math.sqrt(((d - d7) * (d - d7)) + ((d2 - d8) * (d2 - d8)));\r\n this.f1774r = m2830a(d7, d8, d, d2);\r\n d = m2830a(d7, d8, d3, d4);\r\n this.f1775s = m2830a(d7, d8, d5, d6);\r\n if (this.f1774r < this.f1775s) {\r\n if (d <= this.f1774r || d >= this.f1775s) {\r\n this.f1775s -= 6.283185307179586d;\r\n }\r\n } else if (d <= this.f1775s || d >= this.f1774r) {\r\n this.f1775s += 6.283185307179586d;\r\n }\r\n return new DPoint(d7, d8);\r\n }",
"@Override\npublic void onLocationChanged(Location location) {\nString lat = String.valueOf(location.getLatitude());\nString lon = String.valueOf(location.getLongitude());\nLog.e(\"GPS\", \"location changed: lat=\"+lat+\", lon=\"+lon);\n//tv.setText(\"lat=\"+lat+\", lon=\"+lon);\nLatLng coordinates = new LatLng(location.getLatitude(), location.getLongitude()); \nmMap.animateCamera(CameraUpdateFactory.newLatLngZoom(coordinates, 12));\n\n\n//Update Value of Lat Long\n}",
"public static double CHtoWGSlat(double y, double x) {\n // Converts military to civil and to unit = 1000km\n // Auxiliary values (% Bern)\n double y_aux = (y - 600000) / 1000000;\n double x_aux = (x - 200000) / 1000000;\n\n // Process lat\n double lat = (16.9023892 + (3.238272 * x_aux))\n - (0.270978 * Math.pow(y_aux, 2))\n - (0.002528 * Math.pow(x_aux, 2))\n - (0.0447 * Math.pow(y_aux, 2) * x_aux)\n - (0.0140 * Math.pow(x_aux, 3));\n\n // Unit 10000\" to 1 \" and converts seconds to degrees (dec)\n lat = (lat * 100) / 36;\n\n return lat;\n }",
"@Test\n\tpublic void testDecodingCoordinates55()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.decode(55);\n\t\tassertEquals(c.getX(), 10);\n\t\tassertEquals(c.getY(), 4);\n\t}",
"private String locateToUsFormat(Location location) {\n\t\t\n\t\tString latitudeString = Location.convert(location.getLatitude(), Location.FORMAT_DEGREES);\n\t\tString longitudeString = Location.convert(location.getLongitude(), Location.FORMAT_DEGREES);\n\t\treturn latitudeString.replace(',', '.') + \",\" + longitudeString.replace(',', '.');\n\t}",
"public Double makeCoordinate(String decimalValue) {\n String leftPart, rightPart;\n Double coordinate;\n leftPart = decimalValue.substring(0, decimalValue.indexOf(\".\") - 2);\n rightPart = decimalValue.substring(decimalValue.indexOf(\".\") - 2, decimalValue.length());\n coordinate = Double.parseDouble(leftPart) + Double.parseDouble(rightPart) / 60;\n // System.out.println(\"left part: \"+leftPart + \" right part: \" + rightPart);\n return coordinate;\n }",
"public String getCoordinates(String address){\n\t\ttry\n {\n String thisLine;\n String address1 = address;\n address1 = address1.replace(' ', '+');\n address1 = address1.replace(',', '+');\n System.out.println(\"address: \"+address1);\n URL u = new URL(\"http://maps.google.com/maps/geo?q=\\'\" + address1 + \"\\'&output=xml&key=AIzaSyDA6y535k8_IQu-3XLpVn865SiEkBLSQ74\");\n \n BufferedReader theHTML = new BufferedReader(new InputStreamReader(u.openStream()));\n \n FileWriter fstream = new FileWriter(\"url.xml\");\n BufferedWriter out = new BufferedWriter(fstream);\n while ((thisLine = theHTML.readLine()) != null)\n out.write(thisLine);\n out.close();\n File file = new File(\"url.xml\");\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(file);\n doc.getDocumentElement().normalize();\n NodeList nl = doc.getElementsByTagName(\"code\");\n Element n = (Element)nl.item(0);\n String st = n.getFirstChild().getNodeValue();\n \n if (st.equals(\"200\"))\n {\n NodeList n2 = doc.getElementsByTagName(\"coordinates\");\n Element nn = (Element)n2.item(0);\n String st1 = nn.getFirstChild().getNodeValue();\n \n return st1;\n }\n else\n {\n \treturn null;\n }\n }\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception Occured\");\n return null;\n }\n\t}",
"public interface Map {\n /**\n * Return the distance between two coordinates.\n * \n * @param coord1 valid coordinates\n * @param coord2 valid coordinates\n * @return return distance between coord1 and coord2.\n * Returns Integer.MAX_VALUE if there is no path\n * between coordinates.\n */\n public int distance(Coord coord1, Coord coord2);\n\n /**\n * Return coordinates of a localisation.\n * \n * @param address a known localisation\n * @param return coordinates of the localisation, null\n * if the location doesn't exist.\n */\n public Coord addressToCoord(String localisation);\n /**\n * Returns the address closest to the localisation\n *\n * @param loc : the concerned localisation \n * @post returns one of the closest addresses to loc, null if\n * there isn't any.\n */\n public String coordToAddress(Coord loc);\n\n /**\n * Add an obstacle at coordinate obstacleCoord\n * \n * @param obstacleCoord coordinates of the new obstacle. Must be valid\n * \n */\n\n public void addObstacle(Coord obstacleCoord);\n\n /**\n * Remove an obstacle at coordinates\n * \n * @param obstacleCoord must be coordinates of a recorded obstacle\n */\n public void removeObstacle(Coord obstacleCoord);\n /**\n * Adds a list of addresses->localisations in the map.\n *\n * @param address must be a list of lines with one address and one coordinate\n * on each, separated by an @. the coordinate must be on a street.\n * @return returns the list of invalid address.\n */\n public String addAddressList(BufferedReader address);\n /**\n * Adds an address in the Map. \n * @param Address a string representing the address, can be anything.\n * @param coord the coord of the address, can be anywhere.\n */\n public void addAddress(String Address, Coord coord);\n /**\n * Sets the street on the map\n * \n * the distance between roads is 10. the roads start at coordinate 0.\n * so numx = 5 -> roads at x = [0,10,20,30,40]\n * \n * @param: numx : > 0 :the amount of North-South streets.\n * @param: numy : > 0 :the amount of West-East streets.\n * \n */\n public void setStreets(int numx, int numy);\n}",
"private Coords inflate(String flat) {\n if (flat.contains(\"NaN\")) {\n throw new RuntimeException(\"Error: NaN Returned\");\n }\n String[] strs = flat.split(\":\");\n if (strs.length != 4) {\n throw new RuntimeException(\"Unknown Error\");\n }\n return new Coords(Integer.parseInt(strs[0]), Integer.parseInt(strs[1]),\n Integer.parseInt(strs[2]), Integer.parseInt(strs[3]));\n }",
"private static GeoPos computeLatLon(final double latMid, final double lonMid, double slrgTime, OrbitData data) {\n \n final double[] xyz = new double[3];\n final GeoPos geoPos = new GeoPos((float)latMid, (float)lonMid);\n \n // compute initial (x,y,z) coordinate from lat/lon\n GeoUtils.geo2xyz(geoPos, xyz);\n \n // compute accurate (x,y,z) coordinate using Newton's method\n computeAccurateXYZ(data, xyz, slrgTime);\n \n // compute (lat, lon, alt) from accurate (x,y,z) coordinate\n GeoUtils.xyz2geo(xyz, geoPos);\n \n return geoPos;\n }",
"@Override\n public void onLocationChanged(Location location) {\n lat=location.getLatitude();\n Log.e(\"MyLat\",Double.toString(lat));\n lng=location.getLongitude();\n Log.e(\"Mylongitude\",Double.toString(lng));\n /* houni c'est bon khdhina el lat w longitude\n donc just taamel el requete li bch tarmiha fel base\n */\n Toast.makeText(this,Double.toString(lng),Toast.LENGTH_LONG).show();\n\n }",
"public void convertToLocation() {\r\n\t\tdouble longitude = Double.MIN_VALUE;\r\n\t\tdouble latitude = Double.MIN_VALUE;\r\n\r\n\t\tdistance += 0.75;\r\n\t\tsteps = meter.getSteps();\r\n\r\n\t\tDataLogger.getInstance().setCurrDistance(distance);\r\n\r\n\t\tlatitude = 0.75 * Math.cos(orientation) * 0.000009\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLatitude();\r\n\t\tlongitude = 0.75 * Math.sin(orientation) * 0.0000136\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLongitude();\r\n\r\n\t\tDataLogger.getInstance().addLocation(latitude, longitude,\r\n\t\t\t\tjava.lang.System.currentTimeMillis());\r\n\r\n\t\tLog.d(TAG, \"Called convertToLocation\");\r\n\t}"
] |
[
"0.6066618",
"0.5923294",
"0.58866435",
"0.57892627",
"0.5696503",
"0.5687761",
"0.5605201",
"0.55330604",
"0.5491223",
"0.54157907",
"0.54098916",
"0.5406378",
"0.53992397",
"0.5305911",
"0.52933216",
"0.5286363",
"0.5258395",
"0.5211024",
"0.5203866",
"0.5203747",
"0.518414",
"0.51823854",
"0.5166065",
"0.5147374",
"0.5141592",
"0.51273364",
"0.5103992",
"0.5099899",
"0.5099899",
"0.5096053",
"0.5082802",
"0.5081358",
"0.5078745",
"0.50780624",
"0.5075469",
"0.50732493",
"0.50691056",
"0.5058609",
"0.504917",
"0.5043701",
"0.5043478",
"0.5041249",
"0.50254935",
"0.50036204",
"0.50027275",
"0.49976984",
"0.49972317",
"0.4996587",
"0.4995934",
"0.49879968",
"0.4976151",
"0.49732056",
"0.49698663",
"0.49678913",
"0.49627197",
"0.4962284",
"0.49613494",
"0.49444845",
"0.49435958",
"0.49415436",
"0.4932059",
"0.4931317",
"0.49248284",
"0.4915341",
"0.491202",
"0.4902954",
"0.49018088",
"0.48933992",
"0.48901245",
"0.4888109",
"0.48817497",
"0.4870908",
"0.4870908",
"0.48663306",
"0.48648313",
"0.48626155",
"0.4861153",
"0.48498505",
"0.48469228",
"0.48464125",
"0.4846089",
"0.48432496",
"0.48195517",
"0.48195517",
"0.48116833",
"0.48111844",
"0.48092657",
"0.48062193",
"0.48062062",
"0.48030573",
"0.47948983",
"0.4792652",
"0.47862688",
"0.47835064",
"0.47823265",
"0.4779738",
"0.47786355",
"0.47752592",
"0.47713777",
"0.47665036"
] |
0.5821035
|
3
|
When the user selects an item in the spinner, this method is invoked by the callback chain. Android calls the item selected listener for the spinner, which invokes the onItemSelected method.
|
public void onItemSelected(AdapterView<?> parent, View v, int pos, long row) {
String str;
if( parent==spinner ){
str = String.format("Parent = (spinner), Objectset (%d), pos (%d), row *%d)", objectSet, pos, row);
Log.v("Debug", str);
globalPos = pos;
if( objectSet==0 ){
textRA.setText(myMessiers.GetRA(pos));
textDEC.setText(myMessiers.GetDEC(pos));
objectName.setText(myMessiers.GetName(pos));
}
if( objectSet==1 ){
Calendar now = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
myPlanets.UpdateRADEC((Calendar)now.clone(), pos);
textRA.setText(myPlanets.GetRA(pos));
textDEC.setText(myPlanets.GetDEC(pos));
objectName.setText(myPlanets.GetName(pos));
}
if( objectSet==2 ){
textRA.setText(myStars.GetRA(pos));
textDEC.setText(myStars.GetDEC(pos));
objectName.setText(myStars.GetName(pos));
}
if( objectSet==3 ){
if( myObjects == null )
{
textRA.setText("0h0");
textDEC.setText("0");
objectName.setText("None");
}
else
{
textRA.setText(myObjects.GetRA(pos));
textDEC.setText(myObjects.GetDEC(pos));
objectName.setText(myObjects.GetName(pos));
}
}
if( objectSet==4 ){
textRA.setText(myClosestObjs.GetRA(pos));
textDEC.setText(myClosestObjs.GetDEC(pos));
objectName.setText(myClosestObjs.GetName(pos));
}
}
if( parent==spinner_group ){
str = String.format("Parent = (spinner_group), Objectset (%d), pos (%d), row *%d)", objectSet, pos, row);
Log.v("Debug", str);
if( pos == 0 ){
adapterMessier.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapterMessier);
objectSet = 0;
}
if( pos == 1 ){
adapterPlanets.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapterPlanets);
objectSet = 1;
}
if( pos == 2 ){
adapterStars.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapterStars);
objectSet = 2;
}
if( pos == 3 ){
adapterUserObjects.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapterUserObjects);
objectSet = 3;
}
if( pos == 4 ){
adapterClosestObjects.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapterClosestObjects);
objectSet = 4;
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}",
"@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}",
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }",
"@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}",
"public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }",
"public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\treceive();\r\n\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n spinnerItemSelected = parent.getItemAtPosition(pos).toString();\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\t\n\t}",
"public void onItemSelected(int position);",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }",
"public void onItemSelected(int id);",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(View view, int position) {\n }",
"void onItemSelected();",
"void onItemSelected();",
"public void onItemSelected(AdapterView<?> parent, View v, \n\t int pos, long id) {\n\t }",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }",
"void onItemSelected(Bundle args);",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }",
"public void onItemSelected(Long id);",
"public void addListenerOnSpinnerItemSelection() {\n spinner1.setOnItemSelectedListener(new CustomOnItemSelectedListener());\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n SpinnerValue = (String)spinner.getSelectedItem();\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n // To retrieve the user's selected item in the Spinner, use getItemAtPosition().\n String spinnerLabel = adapterView.getItemAtPosition(i).toString();\n displayToast(spinnerLabel);\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(Uri uri) {\n callback.onItemSelected(uri);\n\n }",
"@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\r\n\t\t// Action to be taken after selecting a spinner item\r\n\t\treturn false;\r\n\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent2, View view2, int position2, long id2) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n /*Intent people_intent= new Intent();\n people_intent.putExtra(\"people\",item);\n setResult(RESULT_OK,people_intent);\n finish();*/\n }",
"public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n userType = (int) arg3;\n /* 将mySpinner 显示*/\n arg0.setVisibility(View.VISIBLE);\n }",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView,\n View view, int i, long l) {\n mSpinnerLabel = adapterView.getItemAtPosition(i).toString();\n showText(view);\n }",
"void onItemSelected(int index, T item) throws RemoteException;",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int index, long id) {\n // Take action depending on what was clicked\n switch (adapterView.getId()) {\n case R.id.year_spinner:\n try {\n year = Integer.parseInt((String) yearSpinner.getSelectedItem());\n populateMakeSpinner(year);\n newCar.setYear(year);\n Log.d(\"year_value\", Integer.toString(year));\n } catch (Exception e) { e.printStackTrace(); }\n break;\n case R.id.make_spinner:\n try {\n make = (String) makeSpinner.getSelectedItem();\n populateModelSpinner(make, year);\n newCar.setMake(make);\n Log.d(\"make_value\", make);\n } catch (Exception e) { e.printStackTrace(); }\n break;\n case R.id.model_spinner:\n try {\n model = (String) modelSpinner.getSelectedItem();\n populateTrimSpinner(model, make, year);\n newCar.setModel(model);\n Log.d(\"model_value\", model);\n } catch (Exception e) { e.printStackTrace(); }\n break;\n case R.id.trim_spinner:\n try {\n trim = (String) trimSpinner.getSelectedItem();\n int modelID = trimMap.get(trim);\n newCar.setTrim(trim);\n updateCarInfo(modelID);\n } catch (Exception e) { e.printStackTrace(); }\n break;\n }\n }",
"public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = (String) parent.getItemAtPosition(position);\n selectedSports = item;\n Log.d(\"testing Spinner\", \"Spinner item selected is: \" + selectedSports + \" \" + item.toString());\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent3, View view3, int position3, long id3) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n //beaconselected.setText(item);\n\n // Showing selected spinner item\n if(!item.equals(\"select a beacon\")){\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n x++;\n beaconManager.stopRanging(beaconRegion);\n t=0;\n //Toast.makeText(this, \"Search stopped\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n }",
"public void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tActivityGroupMedicine.group.parent.trackEvent(\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicine,\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicineChangeType);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDBNameAndID obj = (DBNameAndID) spMedicine.getSelectedItem();\n\t\t\t\ttvUnit.setText(\"\" + obj.getNameTwo());\n\t\t\t\t// we cant close this cursor obj becaus when we do we wont see\n\t\t\t\t// our text in our spinner anymore!\n\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n brand_id = String.valueOf(brand_list.get(i).getBrandId());\n brandName = brand_list.get(i).getBrand_name();\n\n Log.d(\"fsdklj\", brand_id + brandName);\n\n hitSpinnerSeries(brand_id);\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int pos, long arg3) {\n societyName = String.valueOf(societyNameSpinner\n .getSelectedItem());\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }",
"public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener l) {\n/* 375 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id){\n\t\t\t\tLog.v(LOG_TAG, \"Maze generation algorithm selection: \" + spinner.getSelectedItem().toString());\n\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View spinnerView, int position,\n long spinnerId) {\n\n try {\n\n if (parent.getId() == R.id.aptNameSpinner) {\n\n if (SAConstants.OTHER.equals(apartmentNameSpinner.getItemAtPosition(position).toString())) {\n DialogFragment apartmentName = new NewApartmentDialog();\n apartmentName.show(getSupportFragmentManager(), \"\");\n }\n } else if (parent.getId() == R.id.aptTypeSpinnerSearch || parent.getId() == R.id.universityNamesSpinner) {\n addApartmentNames();\n }\n\n\n } catch (Exception e) {\n ErrorReporting.logReport(e);\n }\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent4, View view4, int position4, long id4) {\n }",
"public void onItemSelected(AdapterView<?> spinner, View arg1, int position, long row_id) {\n switch (spinner.getId()) {\n case R.id.spin1: {\n if(position == 0) numbersOfTotalSets = 5;\n else numbersOfTotalSets = 3;\n break;\n }\n case R.id.spin2: {\n if(position == 0) setFinishingScore = 25;\n else setFinishingScore = 15;\n break;\n }\n case R.id.spin3: {\n if(position == 0) tieBreakerScore = 15;\n else tieBreakerScore = 25;\n break;\n }\n }\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent5, View view5, int position5, long id5) {\n }",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tlaboutTypeSelected= arg0.getItemAtPosition(arg2).toString();\r\n\t\t\t\tif(arg2!=0){\r\n\t\t\t\tToast.makeText(act, \"Selected:\"+laboutTypeSelected, Toast.LENGTH_LONG).show();\r\n\t\t\t\t\r\n\t\t\t\tLabourDetailsTask detailsTask=new LabourDetailsTask();\r\n\t\t\t\tdetailsTask.execute(laboutTypeSelected);\r\n\t\t\t\t}\r\n\t\t\t}",
"public void onItemSelected(String studentSelected);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ((CallbackToActivity)getActivity()).onItemSelected(mTopTracks, position);\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n id = i;\n }",
"public void onItemSelected(AdapterView<?> parent, View view, int position, long id) \r\n\t{\n\t\tString food = parent.getItemAtPosition(position).toString();\r\n\t\t\r\n // Showing selected spinner item\r\n Toast.makeText(parent.getContext(), \"You selected: \" + food,\r\n Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\tif (position == 1) {\n\t\t\t\t\t// show it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// hide it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n id_author = id;\n getLoaderManager().restartLoader(1, null, callbackTitres);\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n\n try{\n String s = \"\";\n Log.e(\"mytag\",\"(String) parent.getItemAtPosition(position):\"+(String) parent.getItemAtPosition(position).toString().trim());\n if (parent.getItemAtPosition(position).toString().trim().equals(\"בחר\")){\n s = \"-1\";\n }else{\n s = String.valueOf(ctype_map.get(parent.getItemAtPosition(position).toString().trim()).getCtypeID());\n }\n setCcustomerSpinner(s);\n }catch(Exception e){\n helper.LogPrintExStackTrace(e);\n }\n Log.e(\"mytag\", (String) parent.getItemAtPosition(position));\n //statusID = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusID();\n //statusName = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusName();\n //Toast.makeText(getApplication(), \"status: \" + s, Toast.LENGTH_LONG).show();\n //Log.v(\"item\", (String) parent.getItemAtPosition(position));\n }",
"@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\tint itemlselectedposition = position;\n\t\t\t\t\t\tString countrycode = countrynameSpinner\n\t\t\t\t\t\t\t\t.getSelectedItem().toString();\n\n\t\t\t\t\t\tszBankCountryCode = bankcountrycodes[itemlselectedposition];\n\t\t\t\t\t}",
"@Override\n protected void onStart()\n {\n \ttaskSpinner.setOnItemSelectedListener(this);\n \t\n \tsuper.onStart();\n }",
"public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n if (position == 0){\n loaddata();\n }\n else if (position == 1){\n sortbyevent();\n }\n else if (position == 2){\n sortbyorganization();\n }\n else {\n String text = parent.getItemAtPosition(position).toString();\n Toast.makeText(parent.getContext(), text, Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int pos, long id)\n {\n if (parent.getId() == R.id.view_reminder_details_recurrence_spinner)\n {\n reminderItem.setRecurrenceInterval((String) parent.getItemAtPosition(pos));\n Log.d(TAG, \": Recurrence Interval changed.\");\n }\n // User selected reminder category in spinner\n else if (parent.getId() == R.id.view_reminder_details_category_spinner)\n {\n ReminderCategory reminderCategory = (ReminderCategory) parent.getItemAtPosition(pos);\n reminderItem.setCategory(reminderCategory.getCategoryName());\n reminderItem.setCategoryIconName(reminderCategory.getIconName());\n viewCategoryIcon.setImageResource(getResources().getIdentifier(\n reminderItem.getCategoryIconName(), \"drawable\", getPackageName()));\n Log.d(TAG, \": Reminder Category Changed.\");\n }\n }",
"private void spinner() {\n spn_semester.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n id_database = position;\n if(spn_semester.getSelectedItemPosition() == 0){\n listadaptor1();\n }\n else if(spn_semester.getSelectedItemPosition() == 1){\n listadaptor2();\n }\n else{\n listadaptor3();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n //Nothing\n }\n });\n }",
"private void spinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.planets_array, R.layout.simple_spinner_item_new);\n// Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n// dropDownViewTheme.\n planetsSpinner.setAdapter(adapter);\n planetsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Object itemAtPosition = parent.getItemAtPosition(position);\n Log.d(TAG, \"onItemSelected: \" + itemAtPosition);\n\n String[] stringArray = getResources().getStringArray(R.array.planets_array);\n Toast.makeText(DialogListActivity.this, \"选择 \" + stringArray[position], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n Toast.makeText(DialogListActivity.this, \"未选择\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n\t\t//First spinner, account_list\n\t\tif (parent == account_list){\n\t\t\t//Get the position within the spinner\n\t\t\tint position0 = account_list.getSelectedItemPosition();\n\t\t\tString word_in_spinner = user_accounts.get(position0);\n Log.d(\"SelectMessage.onItemSelected assigning selected account\", \"word in spinner \"+ word_in_spinner);\n\n\t\t\tif (tag_chosen.equalsIgnoreCase(\"All\")){\n\t\t\t\t//Check the account via the spinner chosen\n\t\t\t\tselectedAccount = AccountMan.GetAccount(word_in_spinner);\n Log.d(\"SelectMessage.onItemSelected\", \"Tag All Calling View Inbox\");\n\t\t\t\tString request = Inbox.ViewInbox(selectedAccount.sessionID);\n\t\t\t\tLog.d(\"Select Message Activity, SelectedAccount\", selectedAccount.userName);\n\t\t\t\tLog.d(\"SelectMessage.OnSelectedItem Request to server\", request);\n\t\t\t\tServerRequest sRequest = new ServerRequest(selectedAccount.server, Inbox.url, request);\n\t\t\t\tAsyncServer s = new AsyncServer();\n\t\t\t\ts.addListener(this);\n\t\t\t\ts.execute(sRequest);\n\t\t\t} else {\n\t\t\t\t//Check the account via the spinner chosen\n\t\t\t\tselectedAccount = AccountMan.GetAccount(word_in_spinner);\n Log.d(\"SelectMessage.onItemSelected\", \"Tag Word in spinner Calling View Inbox\");\n\t\t\t\tString request = Inbox.ViewInbox(selectedAccount.sessionID, tag_chosen);\n\t\t\t\tLog.d(\"SelectMessage.OnSelectedItem Request to server\", request);\n\t\t\t\tLog.d(\"Select Message Activity, SelectedAccount\", selectedAccount.userName);\n\t\t\t\tServerRequest sRequest = new ServerRequest(selectedAccount.server, Inbox.url, request);\n\t\t\t\tAsyncServer s = new AsyncServer();\n\t\t\t\ts.addListener(this);\n\t\t\t\ts.execute(sRequest);\n\t\t\t}\n\t\t}\n\n\t\t//Second spinner, message_tag\n\t\tif (parent == message_tag){\n\t\t\tint position0 = message_tag.getSelectedItemPosition();\n\t\t\tString word_in_spinner = messageTags[position0];\n\t\t\ttag_chosen = word_in_spinner; //Sets the tag for mail to the one chosen via the spinner\n\t\t\tLog.d(\"SelectMessage.onItemSelected assigning Tag\", \"word in spinner \"+ word_in_spinner);\n\n\t\t\tif (tag_chosen == \"All\"){\n Log.d(\"SelectMessage.onItemSelected\", \"Second Spinner Tag All Calling View Inbox\");\n\t\t\t\tString request = Inbox.ViewInbox(selectedAccount.sessionID);\n\t\t\t\tLog.d(\"SelectMessage.OnSelectedItem Request to server\", request);\n\t\t\t\tLog.d(\"Select Message Activity, SelectedAccount\", selectedAccount.userName);\n\t\t\t\tServerRequest sRequest = new ServerRequest(selectedAccount.server, Inbox.url, request);\n\t\t\t\tAsyncServer s = new AsyncServer();\n\t\t\t\ts.addListener(this);\n\t\t\t\ts.execute(sRequest);\n\t\t\t\tLog.d(\"LOOK HERE\", \"REQUEST SENT 292\");\n\t\t\t} else {\n Log.d(\"SelectMessage.onItemSelected\", \"Second Spinner word in spinner All Calling View Inbox\");\n\t\t\t\tString request = Inbox.ViewInbox(selectedAccount.sessionID, tag_chosen);\n\t\t\t\tLog.d(\"SelectMessage.OnSelectedItem Request to server\", request);\n\t\t\t\tLog.d(\"Select Message Activity, SelectedAccount\", selectedAccount.userName);\n\t\t\t\tServerRequest sRequest = new ServerRequest(selectedAccount.server, Inbox.url, request);\n\t\t\t\tAsyncServer s = new AsyncServer();\n\t\t\t\ts.addListener(this);\n\t\t\t\ts.execute(sRequest);\n\t\t\t\tLog.d(\"LOOK HERE\", \"REQUEST SENT 300\");\n\t\t\t\tLog.d(\"LOOK HERE\", \"REQUEST SENT 300\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tif(position == 0){\n\t\t\t\t\tgetHttpDataThread(false);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgetHttpDataThread(true);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if(parent.getItemIdAtPosition(position) == 0){\n if(spinner.getSelectedItem().equals(\"Google Reviews\")){\n getGoogleRev(container);\n } else {\n getYelpRev(container);\n }\n } else if(parent.getItemIdAtPosition(position) == 1){\n\n if(spinner.getSelectedItem().equals(\"Google Reviews\")){\n getGoogleRevHRate(container);\n } else {\n getYelpRevHRate(container);\n }\n\n } else if(parent.getItemIdAtPosition(position) == 2){\n\n if(spinner.getSelectedItem().equals(\"Google Reviews\")){\n getGoogleRevLRate(container);\n } else {\n getYelpRevLRate(container);\n }\n\n } else if(parent.getItemIdAtPosition(position) == 3){\n\n if(spinner.getSelectedItem().equals(\"Google Reviews\")){\n getGoogleRevMRec(container);\n } else {\n getYelpRevMRec(container);\n }\n\n } else if(parent.getItemIdAtPosition(position) == 4){\n if(spinner.getSelectedItem().equals(\"Google Reviews\")){\n getGoogleRevLRec(container);\n } else {\n getYelpRevLRec(container);\n }\n }\n }",
"@Override\r\n public void onItemChosen(View labelledSpinner, AdapterView<?> adapterView, View itemView, int position, long id) {\r\n String selectedText = adapterView.getItemAtPosition(position).toString();\r\n switch (labelledSpinner.getId()) {\r\n case R.id.spinner_planets:\r\n //Toast.makeText(getActivity(), \"Selected: \" + selectedText, Toast.LENGTH_SHORT).show();\r\n selectTextSpinner = selectedText;\r\n break;\r\n // If you have multiple LabelledSpinners, you can add more cases here\r\n }\r\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (parent.getId()) {\n case R.id.fromspinner:\n fromitem = parent.getItemAtPosition(position)\n .toString().replaceAll(\" \", \"_\").toLowerCase();\n break;\n case R.id.tospinner:\n toitem = parent.getItemAtPosition(position)\n .toString().replaceAll(\" \", \"_\").toLowerCase();\n break;\n }\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n //So this code is called when ever the spinner is clicked\n //Brug position til at populate editQty med indhold fra QtySpinner\n editQty.setText(\"\");\n editQty.clearFocus();\n }",
"public interface Callback {\n public void onItemSelected(Uri uri);\n }",
"@Override\n public void onClick(View v) {\n if (fragment instanceof ItemListFragment)\n ((ItemListFragment) fragment).onItemSelected(position, AppConstants.AMMUNATION_SELECTED);\n }",
"@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\t\t\t\t\t\tString sel = spinner.getSelectedItem().toString();\n\t\t\t\t\t\tLog.e(\"PowerSocketSensitive\", sel + \"\");\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tindex1=arg2;\n\t\t\t\ttype0 = spn1.get(arg2).getType_id();\n\t\t\t\ttype_name = spn1.get(arg2).getType_name();\n\t\t\t\tHttpRequest(1, APIURL.CHECK.ADDARTICLE1, spn1.get(arg2)\n\t\t\t\t\t\t.getType_id(), \"\");\n\t\t\t\tspn3.clear();\n\t\t\t\tspinnerAdapter3.setList(spn3);\n\t\t\t\tspinnerAdapter3.notifyDataSetChanged();\n\t\t\t\tspn4.clear();\n\t\t\t\tspinnerAdapter4.setList(spn4);\n\t\t\t\tspinnerAdapter4.notifyDataSetChanged();\n\t\t\t\tspn5.clear();\n\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t}",
"@Override\n public void onItemSelected(OurPlace place) {\n\n Log.i(LOG_TAG, \"YES!\");\n }",
"public void onItemSelected(AdapterView<?> parent, View view, int pos, long id){\n this.mAssessmentType = parent.getItemAtPosition(pos).toString();\n }",
"@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tmBookLocationStr = getLocationKey(arg2);\n\t\t\t\t\t\t// Log.e(\"LOCATION-INDEX\", arg2 + \"\");\n\t\t\t\t\t}",
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}",
"public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n\t\tSQLiteCursor cur = (SQLiteCursor)parent.getItemAtPosition(pos);\n\n\t\t// Get the context (aka, the Activity)\n\t\tConjugatorActivity activity = (ConjugatorActivity)parent.getContext();\n\t\tint verbId = 0;\n\t\tint tenseId = 0;\n\n\t\t// Determine which Spinner changed\n\t\tConjugatorSpinner spinner = (ConjugatorSpinner)parent;\n\t\tif(spinner.isVerbSpinner()) {\n\t\t\tverbId = cur.getInt(1);\n\t\t\t\n\t\t\t// Get the already-selected tenseID\n\t\t\tTenseSpinner v = (TenseSpinner)activity.findViewById(R.id.listTense);\n\t\t\tSQLiteCursor o = (SQLiteCursor)v.getSelectedItem();\n\t\t\tif(o != null)\n\t\t\t\ttenseId = o.getInt(1);\n\t\t} else if(spinner.isTenseSpinner()) {\n\t\t\ttenseId = cur.getInt(1);\n\n\t\t\t// Get the already-selected verbID\n\t\t\tVerbSpinner v = (VerbSpinner)activity.findViewById(R.id.listVerb);\n\t\t\tSQLiteCursor o = (SQLiteCursor)v.getSelectedItem();\n\t\t\tif(o != null)\n\t\t\t\tverbId = o.getInt(1);\n\t\t}\n\t\t\n\t\tif(verbId <= 0)\n\t\t\tverbId = 1;\n\t\tif(tenseId <=0)\n\t\t\ttenseId = 1;\n\n\t\t// Retrieve conjugations from the DB\n\t\tConjugationDAO dao = new ConjugationDAO(parent.getContext());\n\t\ttry {\n\t\t\tdao.open();\n\t\t\tdao.setVerbId(verbId);\n\t\t\tdao.setTenseId(tenseId);\n\t\t\tCursor cursor = dao.getAllRows();\n\t\t\t\n\t\t\t// Populate the EditText widgets\n\t\t\tcursor.moveToFirst();\n\t\t\tint n = 0;\n\t\t\tdo {\n\t\t\t\tConjugatorEditText et = (ConjugatorEditText)activity.findViewById(editTextIds[n]);\n\t\t\t\tet.setConjugated(cursor.getString(0));\n\t\t\t\tet.setEditTextId(editTextIds[n]);\n\t\t\t\tet.setPassFailImgId(passFailImgIds[n]);\n\t\t\t\tet.reset();\n\t\t\t\t// Always set the focus to io when a Spinner changes\n\t\t\t\tif(n == 0)\n\t\t\t\t\tet.requestFocus();\n\t\t\t\tn++;\n\t\t\t} while(cursor.moveToNext() && n < 6);\n\t\t} catch(Exception e) {\n\t\t\tLog.e(ConjugationOnItemSelectedListener.class.getName(), e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif(dao != null)\n\t\t\t\t\tdao.close();\n\t\t\t} catch(Exception e) {}\n\t\t}\n\n\t}",
"public void onItemSelected(AdapterView<?> parent, View view, int position, long id)\r\n {\n State st = (State)mGender.getSelectedItem();\r\n\r\n // Show it via a toast\r\n toastState( \"onItemSelected\", st );\r\n }",
"public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n calculateCourseStats(pos, 0);\r\n \t\t\t\r\n \t\t\tcourseSpinnerPosition = pos;\r\n \t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if(appCompatActivity instanceof MainActivity){\n if (AppConstant.DEBUG) Log.d(new Object() { }.getClass().getEnclosingClass()+\">\",\"action is mainactivity\");\n ((MainActivity)appCompatActivity).loadReportsData();\n // ((MainActivity)appCompatActivity).removeMenuItem();\n }\n\n onItemSelectedAction(parent, position, appCompatActivity);\n if (appCompatActivity instanceof IListenToItemSelected) {\n ((IListenToItemSelected) appCompatActivity).itemSelectedListenCustom(parent);\n }\n }"
] |
[
"0.78628355",
"0.7828422",
"0.7828422",
"0.78194904",
"0.77946705",
"0.7791902",
"0.77466995",
"0.77435",
"0.77405006",
"0.7719894",
"0.7689473",
"0.7684118",
"0.7675561",
"0.7672268",
"0.7672268",
"0.764863",
"0.7624386",
"0.7622231",
"0.7616864",
"0.7610979",
"0.7598095",
"0.75980043",
"0.75980043",
"0.75980043",
"0.7585014",
"0.7585014",
"0.755968",
"0.7559559",
"0.7559559",
"0.752031",
"0.74980426",
"0.74980426",
"0.74980426",
"0.74980426",
"0.74980426",
"0.7481883",
"0.7476003",
"0.7411026",
"0.7372475",
"0.7325378",
"0.7308174",
"0.72377425",
"0.7228461",
"0.72164494",
"0.71982414",
"0.7178848",
"0.71769416",
"0.71649307",
"0.71476483",
"0.7129735",
"0.71173704",
"0.707143",
"0.7068199",
"0.70562124",
"0.7043576",
"0.7035184",
"0.7018276",
"0.6978604",
"0.69564426",
"0.69509083",
"0.6945118",
"0.69227606",
"0.6922629",
"0.69090784",
"0.69024944",
"0.6885973",
"0.68711424",
"0.6862332",
"0.68595004",
"0.6845084",
"0.68448323",
"0.6841936",
"0.6828073",
"0.6827758",
"0.6797703",
"0.6793225",
"0.6784705",
"0.67782146",
"0.6775003",
"0.67492026",
"0.6744159",
"0.6741245",
"0.67073303",
"0.67010164",
"0.66981405",
"0.6695317",
"0.668976",
"0.6687701",
"0.66846085",
"0.6680302",
"0.6670173",
"0.666212",
"0.66605616",
"0.6659265",
"0.6649501",
"0.6645955",
"0.66431075",
"0.66365224",
"0.6630883",
"0.6630833",
"0.66225505"
] |
0.0
|
-1
|
The definition of OnItemSelectedListener requires an override of onNothingSelected(), even though this implementation does not use it.
|
public void onNothingSelected(AdapterView<?> parent) {
// do nothing
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }",
"@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}",
"@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}",
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }",
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}",
"@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }",
"public AdapterView.OnItemSelectedListener getOnItemSelectedListener() {\n/* 415 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemSelected(View view, int position) {\n }",
"public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener l) {\n/* 375 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }",
"public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }",
"@Deprecated\n/* */ public AdapterView.OnItemSelectedListener getItemSelectedListener() {\n/* 397 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\n public void onNothingSelected(AdapterView<?> arg0)\n {\n }",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t}",
"void onItemSelected();",
"void onItemSelected();",
"@Override\n\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t}",
"public void onItemSelected(int id);",
"public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }",
"@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t}",
"public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}",
"@Override\r\n\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t}",
"@Override\n public void onNothingSelected(AdapterView<?> parent) {\n // Unknown\n }",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\r\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\r\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t\t\t}",
"@Override\n public void onNothingSelected(AdapterView<?> arg0)\n {\n }",
"@Override\n\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t}",
"@Override\n\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t}",
"@Override\n\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }",
"@Override\n public void onNothingSelected(AdapterView<?> arg0) {\n }"
] |
[
"0.8063929",
"0.80173117",
"0.80173117",
"0.801277",
"0.79792273",
"0.7960603",
"0.7960089",
"0.79546744",
"0.79463965",
"0.79183203",
"0.7887913",
"0.7887913",
"0.7843319",
"0.7803931",
"0.7794661",
"0.7793044",
"0.7793044",
"0.7789063",
"0.7777863",
"0.7724553",
"0.7724553",
"0.7724553",
"0.76338565",
"0.7603541",
"0.75916344",
"0.75781035",
"0.7576286",
"0.7576286",
"0.7568991",
"0.7568991",
"0.7568991",
"0.7568991",
"0.7568991",
"0.7568991",
"0.7561698",
"0.75433415",
"0.75433415",
"0.75433415",
"0.75430614",
"0.75430614",
"0.7527589",
"0.7526002",
"0.7516917",
"0.7515599",
"0.75104743",
"0.7501491",
"0.7500659",
"0.7500659",
"0.7500659",
"0.7500659",
"0.7500659",
"0.74993235",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74951226",
"0.74888676",
"0.74847174",
"0.74847174",
"0.74803567",
"0.74803567",
"0.7479965",
"0.7479965",
"0.7479965",
"0.7479169",
"0.7471662",
"0.7471662",
"0.7471662",
"0.7466458",
"0.7452539",
"0.7452539",
"0.7442238",
"0.7442238",
"0.7442238",
"0.7442238",
"0.7442238",
"0.7442238",
"0.7442238",
"0.7442238",
"0.7442238",
"0.7436883",
"0.7436883",
"0.7436883",
"0.7436883",
"0.7436883",
"0.7431459",
"0.7430523",
"0.7430523",
"0.7430523",
"0.7430523",
"0.7430523",
"0.7430523"
] |
0.0
|
-1
|
When OK Button is clicked, dismiss the dialog
|
public void onClick(View v) {
if (v == okButton)
dismiss();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void CloseOkDialog();",
"@Override\n public void onBtnClick() {\n dialog.dismiss();\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"void dismissAlertDialog();",
"protected void closeDialogOk() {\n dispose();\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int arg1) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }",
"@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }",
"public void cancelDialog() {dispose();}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}",
"public void onClick(DialogInterface dialog, int id) {\n \t dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int id) {\n\n dialog.dismiss();\n }",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t{\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n }",
"@Override\n public void onClick(DialogInterface dialog,int id) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }",
"@Override\n public void onDismiss(DialogInterface arg0) {\n\n }",
"@Override\n public void onButtonClick(View view) {\n successDialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n finish();\n }",
"@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1)\n\t\t\t\t{\n\t\t\t\t\targ0.dismiss();\n\t\t\t\t}",
"public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }",
"@Override\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\tdialog.dismiss();\n \t\t\t\t\t\tdialog = null;\n \t\t\t\t\t}",
"@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tmydialog.dismiss();\n\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}",
"public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(View v) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(View v) {\n dialog.dismiss();\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\r\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}",
"public void onClick(DialogInterface dialog, int id) {\n getDialog().dismiss();\n }",
"@Override\r\n public void onClick(View arg0) {\n dialog.dismiss();\r\n }",
"@Override\n public void onClick(View v) {\n dialog.dismiss();\n }",
"@Override\n public void onClick(View v) {\n dialog.dismiss();\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\r\n\r\n\t\t\t}",
"@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }"
] |
[
"0.82063025",
"0.77744865",
"0.7717395",
"0.771683",
"0.771596",
"0.76693696",
"0.75819445",
"0.757859",
"0.75322396",
"0.75224483",
"0.75224483",
"0.7509434",
"0.7509434",
"0.75054777",
"0.75054777",
"0.74746084",
"0.74746084",
"0.74746084",
"0.74746084",
"0.7474115",
"0.74677044",
"0.74677044",
"0.74664783",
"0.7465795",
"0.74609184",
"0.7453019",
"0.745099",
"0.745099",
"0.745099",
"0.74495375",
"0.74480313",
"0.74480313",
"0.74480313",
"0.74480313",
"0.74480313",
"0.74480313",
"0.7446934",
"0.7446934",
"0.74358344",
"0.7434782",
"0.7433099",
"0.74301666",
"0.74247676",
"0.74247676",
"0.7422421",
"0.7419843",
"0.74198353",
"0.74198353",
"0.74198353",
"0.74198353",
"0.74164647",
"0.74164647",
"0.7415521",
"0.7414749",
"0.7412393",
"0.7374558",
"0.73727715",
"0.7370655",
"0.7368357",
"0.7368296",
"0.7343164",
"0.7333214",
"0.7319269",
"0.7319269",
"0.7319269",
"0.7319269",
"0.73139817",
"0.7313552",
"0.73065174",
"0.73065174",
"0.7298107",
"0.72906226",
"0.7283695",
"0.72835726",
"0.7283442",
"0.72789174",
"0.7277896",
"0.7277896",
"0.7277896",
"0.7277634",
"0.72768396",
"0.72753024",
"0.72753024",
"0.7268303",
"0.72641915",
"0.7264157",
"0.7263007",
"0.72593635",
"0.72501826",
"0.72501826",
"0.72379196",
"0.7237885",
"0.7234834",
"0.72335976",
"0.72331184",
"0.72300327",
"0.72293705",
"0.72293705",
"0.72282916",
"0.7221928"
] |
0.7382843
|
55
|
TODO Autogenerated method stub
|
public void onClick(DialogInterface arg0, int arg1) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
Function to setup Gesture listener
|
private void setupListener(){
/*
Listener to scrool video preview timeline when video timeline
more than layout width
*/
videoTimeline.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, final MotionEvent event) {
switch (event.getAction()){
// Detect Touch Down
case MotionEvent.ACTION_DOWN:
move1 = (int)event.getX();
break;
// Detect when gesture move
case MotionEvent.ACTION_MOVE:
// Detect if video preview timeline posision equal than layout start
if(videoTimeline.getCanvasWidthStart() == 0){
// Detect when scroll to left
if((int)event.getX() <= move1){
final Thread thread = new Thread(new Runnable() {
@Override
public void run() {
if(isScrollRight && !isScrollLeft){
move4 = 0;
}
move2 = (int)event.getX();
if(Math.abs((move1 - move2) - move4) < (videoTimeline.getCanvasWidth() - usedWidth)){
move3 = move1 - move2;
move5 = move5 + (move3 - move4);
videoTimeline.setXPos(-Math.abs(move5));
canvasSeekPos = (move5 * duration) / (videoTimeline.getCanvasWidth() + Math.abs(videoTimeline.getCanvasWidthStart()));
// videoPlayerControl.setStartPos(rangeSeekPos + canvasSeekPos);
// videoPlayerControl.setEndPos(rangeSeekEndPos+canvasSeekPos);
WritableMap event = Arguments.createMap();
event.putInt(Events.START_POS, rangeSeekPos + canvasSeekPos);
WritableMap event2 = Arguments.createMap();
event2.putInt(Events.END_POS, rangeSeekEndPos+canvasSeekPos);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_START_POS.toString(), event);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_END_POS.toString(), event2);
move4 = move3;
isScrollRight = false;
isScrollLeft = true;
}
}
});
thread.run();
}
}else
// Detect if video preview timeline posision less than layout start
if(videoTimeline.getCanvasWidthStart() < 0){
// Detect when scroll to left
if((int)event.getX() <= move1){
final Thread thread = new Thread(new Runnable() {
@Override
public void run() {
if(isScrollRight && !isScrollLeft){
move4 = 0;
}
move2 = (int)event.getX();
if(Math.abs((move1 - move2) - move4) < (videoTimeline.getCanvasWidth() - usedWidth)){
move3 = move1 - move2;
move5 = move5 + (move3 - move4);
videoTimeline.setXPos(-Math.abs(move5));
canvasSeekPos = (move5 * duration) / (videoTimeline.getCanvasWidth() + Math.abs(videoTimeline.getCanvasWidthStart()));
// videoPlayerControl.setStartPos(rangeSeekPos + canvasSeekPos);
// videoPlayerControl.setEndPos(rangeSeekEndPos+canvasSeekPos);
WritableMap event = Arguments.createMap();
event.putInt(Events.START_POS, rangeSeekPos + canvasSeekPos);
WritableMap event2 = Arguments.createMap();
event2.putInt(Events.END_POS, rangeSeekEndPos+canvasSeekPos);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_START_POS.toString(), event);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_END_POS.toString(), event2);
move4 = move3;
isScrollRight = false;
isScrollLeft = true;
}
}
});
thread.run();
}else
// Detect when scroll to right
if((int)event.getX() > move1){
final Thread thread = new Thread(new Runnable() {
@Override
public void run() {
if(!isScrollRight && isScrollLeft){
move4 = 0;
}
move2 = (int) event.getX();
if (Math.abs((move5 - ((move2 - move1) - move4))) < Math.abs(videoTimeline.getCanvasWidthStart())) {
move3 = move2 - move1;
move5 = move5 - (move3 - move4);
videoTimeline.setXPos(-Math.abs(move5));
canvasSeekPos = (move5 * duration) / (videoTimeline.getCanvasWidth() + Math.abs(videoTimeline.getCanvasWidthStart()));
// videoPlayerControl.setStartPos(rangeSeekPos + canvasSeekPos);
// videoPlayerControl.setEndPos(rangeSeekEndPos+canvasSeekPos);
WritableMap event = Arguments.createMap();
event.putInt(Events.START_POS, rangeSeekPos + canvasSeekPos);
WritableMap event2 = Arguments.createMap();
event2.putInt(Events.END_POS, rangeSeekEndPos+canvasSeekPos);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_START_POS.toString(), event);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_END_POS.toString(), event2);
move4 = move3;
isScrollRight = true;
isScrollLeft = false;
}
}
});
thread.start();
}
}
break;
case MotionEvent.ACTION_UP:
move4 = 0;
break;
default:
break;
}
return true;
}
});
/*
Listener for seekbar control (Seekbar button left and right)
index (0) = button seek left
index (1) = button seek right
value = value of seekButton (0 - 100)
*/
seekbar.addOnRangeSeekBarListener(new OnRangeSeekBarListener() {
@Override
public void onCreate(CustomRangeSeekBarView customRangeSeekBarView, int index, float value) {
}
@Override
public void onSeek(CustomRangeSeekBarView customRangeSeekBarView, int index, float value) {
if(index == 0){
rangeSeekPos = (int)((value/100) * maxDuration);
canvasSeekPos = (move5 * duration) / (videoTimeline.getCanvasWidth() + Math.abs(videoTimeline.getCanvasWidthStart()));
// videoPlayerControl.setStartPos(rangeSeekPos + canvasSeekPos);
WritableMap event = Arguments.createMap();
event.putInt(Events.START_POS, rangeSeekPos + canvasSeekPos);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_START_POS.toString(), event);
}else{
rangeSeekEndPos = (int)(maxDuration * (value/100));
// videoPlayerControl.setEndPos(rangeSeekEndPos+canvasSeekPos);
WritableMap event = Arguments.createMap();
event.putInt(Events.END_POS, rangeSeekEndPos+canvasSeekPos);
eventEmitter.receiveEvent(getId(), EventsEnum.EVENT_GET_END_POS.toString(), event);
}
}
@Override
public void onSeekStart(CustomRangeSeekBarView customRangeSeekBarView, int index, float value) {
}
@Override
public void onSeekStop(CustomRangeSeekBarView customRangeSeekBarView, int index, float value) {
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void addGestureHandler(GestureEventListener listener);",
"public void setupGestures() {\n mGestureDetector = new GestureDetector(\n new GestureDetector.SimpleOnGestureListener() {\n @Override\n public boolean onFling(MotionEvent e1, MotionEvent e2,\n float velocityX, float velocityY) {\n float deltaX = e2.getRawX() - e1.getRawX();\n float deltaY = e2.getRawY() - e1.getRawY();\n int minSlideWidth = mFlipper.getWidth() / 2;\n\n if (Math.abs(deltaY) < 100) {\n if (deltaX > minSlideWidth) {\n slideRight();\n return true;\n }\n\n if (deltaX < -minSlideWidth) {\n slideLeft();\n return true;\n }\n }\n return false;\n }\n });\n mGestureDetector.setIsLongpressEnabled(true);\n\n mTouchListener = new OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n return mGestureDetector.onTouchEvent(event);\n }\n };\n mFlipper.setLongClickable(true);\n mFlipper.setOnTouchListener(mTouchListener);\n }",
"boolean onGestureStarted();",
"public interface GestureListener {\n\t/**\n\t * Invoked when the {@link Gesture} has just started (i.e. it passed from state POSSIBLE_DETECTION to state IN_PROGRESS).\n\t * This callback is invoked only for live gestures.\n\t * @param gesture The data associated to the gesture\n\t */\n\tpublic void onGestureStarted(GestureData gesture);\n\t/**\n\t * Invoked on each frame while the {@link Gesture} is in state IN_PROGRESS.\n\t * This callback is invoked only for live gestures.\n\t * @param gesture The data associated to the gesture\n\t */\n\tpublic void onGestureInProgress(GestureData gesture);\n\t/**\n\t * Invoked when the {@link Gesture} has completed (i.e. it passed from state IN_PROGESS to state COMPLETED).\n\t * This callback is always invoked (i.e. both on live and non-live gestures).\n\t * @param gesture The data associated to the gesture\n\t */\n\tpublic void onGestureCompleted(GestureData gesture);\n}",
"private GestureDetector createGestureDetector(Context context) {\n final Context c = context;\r\n\r\n GestureDetector gestureDetector = new GestureDetector(context);\r\n //Create a base listener for generic gestures\r\n gestureDetector.setBaseListener( new GestureDetector.BaseListener() {\r\n @Override\r\n public boolean onGesture(Gesture gesture) {\r\n if (gesture == Gesture.TAP) {\r\n am.playSoundEffect(Sounds.TAP);\r\n // do something on tap\r\n if(currentCardIndex == 0) {\r\n Intent listening = new Intent(c, VoiceRecognitionActivity.class);\r\n startActivity(listening);\r\n }\r\n else if(currentCardIndex == 1){\r\n Intent learning = new Intent(c, LessonActivity.class);\r\n startActivity(learning);\r\n }\r\n else if(currentCardIndex == 2){\r\n Intent learning = new Intent(c, QueryActivity.class);\r\n startActivity(learning);\r\n }\r\n else if(currentCardIndex == 3){\r\n Intent learning = new Intent(c, GPSActivity.class);\r\n startActivity(learning);\r\n }\r\n return true;\r\n } else if (gesture == Gesture.TWO_TAP) {\r\n // do something on two finger tap\r\n return true;\r\n } else if (gesture == Gesture.SWIPE_RIGHT) {\r\n // do something on right (forward) swipe\r\n am.playSoundEffect(Sounds.SELECTED);\r\n if(currentCardIndex < 3) {\r\n currentCardIndex++;\r\n setContentView(menuCards.get(currentCardIndex).getView());\r\n }\r\n return true;\r\n } else if (gesture == Gesture.SWIPE_LEFT) {\r\n // do something on left (backwards) swipe\r\n am.playSoundEffect(Sounds.SELECTED);\r\n if(currentCardIndex > 0) {\r\n currentCardIndex--;\r\n setContentView(menuCards.get(currentCardIndex).getView());\r\n }\r\n return true;\r\n }\r\n return false;\r\n }\r\n });\r\n gestureDetector.setFingerListener(new GestureDetector.FingerListener() {\r\n @Override\r\n public void onFingerCountChanged(int previousCount, int currentCount) {\r\n // do something on finger count changes\r\n }\r\n });\r\n gestureDetector.setScrollListener(new GestureDetector.ScrollListener() {\r\n @Override\r\n public boolean onScroll(float displacement, float delta, float velocity) {\r\n // do something on scrolling\r\n return false;\r\n }\r\n });\r\n return gestureDetector;\r\n }",
"private void setupSwipeDetector(){\n ActivitySwipeDetector activitySwipeDetector = new ActivitySwipeDetector(this);\n activitySwipeDetector.setDestinations(DepthLightActivity.class, TempCondActivity.class);\n LinearLayout layout = (LinearLayout) findViewById(R.id.full_screen_main);\n layout.setOnTouchListener(activitySwipeDetector);\n }",
"public interface SimpleGestureListener {\n void onSwipe(int direction);\n\n void onDoubleTap();\n}",
"public interface SimpleGestureListener {\n\n void onSwipe(int direction);\n void onDoubleTap();\n}",
"public interface GestureHandler {\r\n /**\r\n * It will be called when a specific gesture triggered.\r\n * You can implement the handler logic in this method. Such as , launch a application.\r\n * @param metaData GestureMetaData\r\n */\r\n void onActive(GestureMetaData metaData);\r\n\r\n /**\r\n * It will be called when the user release the finger in HOVER mode.\r\n * In this function you can release resource. Wait for the next called.\r\n */\r\n void onExit();\r\n\r\n /**\r\n * Return the gestureType if onActive is triggered. Otherwise return -1;\r\n * @return gestureType\r\n */\r\n int isActive();\r\n\r\n /**\r\n * Settings\r\n * @return\r\n */\r\n List<GestureHandlerSetting> settings();\r\n\r\n String name();\r\n\r\n int icon();\r\n\r\n}",
"public interface GestureRecorderListener {\n\n void onGestureRecorded(List<float[]> values);\n\n IBinder getBinder();\n\n void startClassification(String defaultGesture);\n}",
"public void setOnGestureChangedListener(OnGestureChangedListener listener) {\n this.mOnGestureChangedListener = listener;\n }",
"private void initListener() {\n initPieceListener();\n initButtonsListener();\n }",
"@Override\n public void onChanged(SgestureHand.Info info) {\n handleGesture(info);\n }",
"public interface Listener {\n /**\n * Called when the user has performed a double tap and then held down\n * the second tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n */\n void onDoubleTapAndHold(MotionEvent event, int policyFlags);\n\n /**\n * Called when the user lifts their finger on the second tap of a double\n * tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n boolean onDoubleTap(MotionEvent event, int policyFlags);\n\n /**\n * Called when the system has decided the event stream is a gesture.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureStarted();\n\n /**\n * Called when an event stream is recognized as a gesture.\n *\n * @param gestureId ID of the gesture that was recognized.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureCompleted(int gestureId);\n\n /**\n * Called when the system has decided an event stream doesn't match any\n * known gesture.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n public boolean onGestureCancelled(MotionEvent event, int policyFlags);\n }",
"boolean onGestureCompleted(int gestureId);",
"private void onSwipeRight() {\n\t\tcurrentGestureDetected = \"direita\";\r\n\t\t\r\n\t}",
"private void setTouchListener() {\n OnTouchListener mTouchListener = new OnTouchListener() {\n\n private float mLastTouchY;\n private float mLastTouchX;\n private int mActivePointerId = MotionEvent.INVALID_POINTER_ID;\n private int counter = 0; // counter to draw only a second for better rendering\n\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n\n final int action = motionEvent.getActionMasked();\n\n switch (action) {\n case MotionEvent.ACTION_DOWN: {\n final int pointerIndex = motionEvent.getActionIndex();\n final float x = motionEvent.getX(pointerIndex);\n final float y = motionEvent.getY(pointerIndex);\n mLastTouchX = x;\n mLastTouchY = y;\n mActivePointerId = motionEvent.getPointerId(0);\n break;\n }\n\n case MotionEvent.ACTION_MOVE: {\n counter++;\n final int pointerIndex = motionEvent.findPointerIndex(mActivePointerId);\n final float x = motionEvent.getX(pointerIndex);\n final float y = motionEvent.getY(pointerIndex);\n final float dx = x - mLastTouchX;\n final float dy = y - mLastTouchY;\n\n setPositions(dx, dy);\n mLastTouchX = x;\n mLastTouchY = y;\n\n if (counter % 2 == 0) {\n counter = 0;\n mListener.onPositionUpdated();\n }\n break;\n }\n\n case MotionEvent.ACTION_UP: {\n mActivePointerId = MotionEvent.INVALID_POINTER_ID;\n break;\n }\n\n case MotionEvent.ACTION_CANCEL: {\n mActivePointerId = MotionEvent.INVALID_POINTER_ID;\n break;\n }\n\n case MotionEvent.ACTION_POINTER_UP: {\n\n final int pointerIndex = motionEvent.getActionIndex();\n final int pointerId = motionEvent.getPointerId(pointerIndex);\n\n if (pointerId == mActivePointerId) {\n final int newPointerIndex = pointerIndex == 0 ? 1 : 0;\n mLastTouchX = motionEvent.getX(newPointerIndex);\n mLastTouchY = motionEvent.getY(newPointerIndex);\n setX(mLastTouchX);\n setY(mLastTouchY);\n mActivePointerId = motionEvent.getPointerId(newPointerIndex);\n }\n break;\n }\n }\n return true;\n }\n\n /**update the view position after validate the position is in the parent view\n * @param dx x delta\n * @param dy y delta\n * @return\n */\n private void setPositions(float dx, float dy) {\n\n // prevent the point to be drag outside of the parent layout on the X axis\n if (getX() + dx + 2 * POINT_RADIUS >= ((View) getParent()).getWidth())\n setX(((View) getParent()).getWidth() - 2 * POINT_RADIUS);\n else if (getX() + dx < 0)\n setX(0);\n else\n setX(getX() + dx);\n\n\n // prevent the point to be drag outside of the parent layout on the Y axis\n if (getY() + dy + 2 * POINT_RADIUS > ((View) getParent()).getHeight())\n setY(((View) getParent()).getHeight() - 2 * POINT_RADIUS);\n else if (getY() + dy < 0)\n setY(0);\n else\n setY(getY() + dy);\n\n }\n };\n setOnTouchListener(mTouchListener);\n }",
"@Override\n\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\tgestures = new GestureDetector(new fakeGestureListener());\n\t\t}",
"private void initEvents() {\n\t\tuser_head_img.setOnClickListener(this);\r\n\t\ttxt_zcgl.setOnClickListener(this);\r\n\t\ttxt_tzgl.setOnClickListener(this);\r\n\t\ttxt_jlcx.setOnClickListener(this);\r\n\t\ttxt_wdyhk.setOnClickListener(this);\r\n\t\ttxt_wdxx.setOnClickListener(this);\r\n\t\tlayout_zhaq.setOnClickListener(this);\r\n\t\tlayout_ssmm.setOnClickListener(this);\r\n\t\ttxt_myredpager.setOnClickListener(this);\r\n\t}",
"@Override\n\tpublic void initListeners() {\n\t\tmClick.setOnClickListener(this);\n\t}",
"public void initializeTouchDispatcher() {\n\t\ttapHandler = new AnimationPartSelector(this);\n\t\tcameraHandler = trackball.getDragHandler(\n\t\t\t\tR.string.one_finger_tool_name_orbit_camera, R.string.short_tool_name_orbit_camera);\n\t}",
"@Override\r\n public boolean onGenericMotionEvent(MotionEvent event) {\r\n if(loading) {\r\n //open up the general menu\r\n setContentView(menuCards.get(0).getView());\r\n loading = false;\r\n return true;\r\n }\r\n else{\r\n if (mGestureDetector != null) {\r\n return mGestureDetector.onMotionEvent(event);\r\n }\r\n return false;\r\n }\r\n }",
"private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}",
"void removeGestureHandler(GestureEventListener listener);",
"public void onFingerDown(String idSensor) // evento que se genera al colocar un dedo en el lector\n{\n}",
"@Override\n protected void setListener() {\n findView(R.id.btnClear).setOnClickListener(this);\n findView(R.id.btnSave).setOnClickListener(this);\n\n ivGraffit.setOnTouchListener(new GraffitTouchListener());\n }",
"public BtnOnOffListener(){\r\n\t\t\t\t\r\n\t\t\tprocessGestureEventHelper( false);\r\n\t\t}",
"@Override\r\n public void setOnTouchListener(OnTouchListener l) {\n super.setOnTouchListener(l);\r\n this.l = l;\r\n }",
"void onGestureStarted(PwdGestureView view);",
"void onHandWaveGesture();",
"@Override\n protected void initEvents() {\n super.initEvents();\n picture1.setOnClickListener(this);\n picture2.setOnClickListener(this);\n }",
"private void initEvent() {\n\t\tmScrollView.setOnTouchListener(new OnTouchListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\t/*case MotionEvent.ACTION_UP:\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\n\t\t\t\t\tbreak;*/\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t//判断是否滑动到底部\n\t\t\t\t\tif(mScrollView.getChildAt(0).getMeasuredHeight()<=mScrollView.getHeight()+mScrollView.getScrollY()){\n\t\t\t\t\t\tToast.makeText(getActivity(), \"已经到底部了,去留下你的足迹吧\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void onDownMotionEvent() {\n \n }",
"public int addGesture(String path);",
"public TutGalleryGestureListener(GalleryActivity activity,\n\t\t\tGestureLibrary gestureLib, TextView currentStep,\n\t\t\tView... reelMenuImageViews) {\n\t\tthis.activity = activity;\n\t\tthis.gestureLib = gestureLib;\n\t\tthis.currentStep = currentStep;\n\t\tthis.reelMenuImageViews = new ArrayList<View>();\n\t\tthis.reelMenuImageViews.addAll(Arrays.asList(reelMenuImageViews));\n\t}",
"@Override\n public void onCreate() {\n // TODO Auto-generated method stub\n super.onCreate();\n context = this;\n mGestureDetector = new GestureDetector(this, new MyGestureListener());\n//\t\texceptionBroadcast(context);\n createFloatView();\n//\t\tshowException();\n }",
"public interface HandWaveGestureListener {\n\n /**\n * Invoked when a hand wave gesture is detected.\n */\n void onHandWaveGesture();\n}",
"void addHitListener(HitListener hl);",
"void addHitListener(HitListener hl);",
"void addHitListener(HitListener hl);",
"void addHitListener(HitListener hl);",
"void onActive(GestureMetaData metaData);",
"void addImageViewListeners() {\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setOnClickListener(this); //OnClickListener for rotation \n\t\t\tpieceViews.get(i).setOnLongClickListener(this); //OnLongClickListener to start dragging\n\t\t\tpieceViews.get(i).setOnDragListener(new DragListener()); //OnDragListener for dragging\t\t\t\n\t\t}\n\t}",
"@Override //abstract method from OnGestureListener\n\tpublic boolean onDown(MotionEvent e){\n\t\treturn true;\n\t}",
"private void initEvent() {\n\t\tmBtnPower.setOnClickListener(this);\n\t\tmBtnProfile.setOnClickListener(this);\n\t\tmBtnArea.setOnClickListener(this);\n\t\tmBtnSkipTime.setOnClickListener(this);\n\t\tmBtnFrequencyPoint.setOnClickListener(this);\n\t\tmBtnAlgorithm.setOnClickListener(this);\n\t}",
"public void enableMultiTouchElementListeners() {\r\n\t\tif (itemListeners == null) {\r\n\t\t\titemListeners = new ArrayList<ItemListener>();\r\n\t\t}\r\n\t\tif (screenCursorListeners == null) {\r\n\t\t\tscreenCursorListeners = new ArrayList<ScreenCursorListener>();\r\n\t\t}\r\n\t\tif (orthoControlPointRotateTranslateScaleListeners == null) {\r\n\t\t\torthoControlPointRotateTranslateScaleListeners = new ArrayList<OrthoControlPointRotateTranslateScaleListener>();\r\n\t\t}\r\n\t\tif (bringToTopListeners == null) {\r\n\t\t\tbringToTopListeners = new ArrayList<BringToTopListener>();\r\n\t\t}\r\n\t\tif (orthoSnapListeners == null) {\r\n\t\t\torthoSnapListeners = new ArrayList<OrthoSnapListener>();\r\n\t\t}\r\n\t\tif (flickListeners == null) {\r\n\t\t\tflickListeners = new ArrayList<OrthoFlickListener>();\r\n\t\t}\r\n\t\t\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addBringToTopListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addItemListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addOrthoControlPointRotateTranslateScaleListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addSnapListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addFlickListener(this);\r\n\t}",
"@Override\n public boolean onTouchEvent( MotionEvent event )\n {\n if ( gesture_detector.onTouchEvent( event ) )\n {\n return true;\n }\n else\n {\n return super.onTouchEvent( event );\n }\n }",
"private void setupListeners() {\t\t\n\n\t\tnextButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t gameModel.generateGame();\n\t\t\t\t \n\t\t\t\t setGameModel(gameModel);\n\t\t\t\t \n\t\t\t\t //gameModel = new GameModel(gameModel.getList());\n\t\t\t\t \n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttilePanel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"PRESS\");\n\t\t\t}\n\t\t\t\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"RELEASED\");\n\t\t\t}\n\t\t});\n\t}",
"public void respondToGesture(String gesture) {\n String gest = gesture.substring(1, gesture.length() - 1);\n sysMsgTextView.setText(\"Gesture:\" + gest);\n\n // load model\n float[] leftInit;\n float[] rightInit;\n float[] finalpos;\n if (gest.equals(\"Nodding\")){\n ModelRenderable.builder()\n .setSource(this, R.raw.export_71)\n .build()\n .thenAccept(renderable -> model = renderable)\n .exceptionally(\n throwable -> {\n Toast toast =\n Toast.makeText(this, \"Unable to load andy renderable\", Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n return null;\n });\n finalpos = new float[]{0, 0, -2f};\n leftInit = new float[]{-0.5f, 0, -2f};\n rightInit = new float[]{0.3f, 0, -2f};\n } else {\n ModelRenderable.builder()\n .setSource(this, R.raw.thumbsup)\n .build()\n .thenAccept(renderable -> model = renderable)\n .exceptionally(\n throwable -> {\n Toast toast =\n Toast.makeText(this, \"Unable to load andy renderable\", Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n return null;\n });\n finalpos = new float[]{0, 0, -6f};\n leftInit = new float[]{-1.5f, 0, -6f};\n rightInit = new float[]{1f, 0, -6f};\n }\n\n float[] rotation = {0, 0, 0, 0};\n\n // get current frame and translate the initial coordinate to the current frame\n session = fragment.getArSceneView().getSession();\n try {\n frame = session.update();\n } catch (CameraNotAvailableException e) {\n e.printStackTrace();\n }\n Pose pose = frame.getAndroidSensorPose();\n if(targetScreenArea == \"LEFT\"){\n finalpos = pose.rotateVector(leftInit);\n } else if(targetScreenArea == \"RIGHT\"){\n finalpos = pose.rotateVector(rightInit);\n } else {\n finalpos = pose.rotateVector(finalpos);\n }\n\n Anchor anchor = session.createAnchor(new Pose(finalpos, rotation));\n anchorNode = new AnchorNode(anchor);\n anchorNode.setParent(fragment.getArSceneView().getScene());\n TransformableNode transformableNode = new TransformableNode(fragment.getTransformationSystem());\n transformableNode.setParent(anchorNode);\n fragment.getArSceneView().getScene().addChild(anchorNode);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n transformableNode.setRenderable(model);\n transformableNode.select();\n }\n }, 1000);\n\n }",
"@Override\n public boolean onTouchEvent(MotionEvent e) {\n return gestureDetector.onTouchEvent(e);\n }",
"void onGestureMoving(PwdGestureView view);",
"public void onMoveGestureStarted()\n\t{\n\t\tfireEvent(TiC.EVENT_MOVE_START, null);\n\t}",
"@Override\n public boolean onTouchEvent(MotionEvent event)\n {\n return gestureDetector.onTouchEvent(event);\n }",
"@Override\r\n\tprotected void initViewListener() {\n\t\tsuper.initViewListener();\r\n\t\ttitleBarBack.setOnClickListener(this);\r\n\t\tchongzhi.setOnClickListener(this);\r\n\t\thuankuan.setOnClickListener(this);\r\n\t}",
"public void initListeners()\n {\n _removeItemView = _packItemView.getRemoveItemView();\n if(_removeItemView != null)\n {\n _removeItemView.setOnClickListener(ViewHolder.this);\n }\n // Subscribe to item clicked event\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override public void onClick(View v) {\n _listener.onPackItemClicked(_packItemView, ViewHolder.this.getAdapterPosition());\n }\n });\n }",
"private void registerOnTouchListener() {\n TextView mRedirectToWelcome = (TextView) findViewById(R.id.register_redirect_login);\n mRedirectToWelcome.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n startActivity(intent);\n return true;\n }\n });\n }",
"private void setListener() {\n Log.d(TAG, \"TAG - MainActivity - setListener()\");\n\n if (buttonShow != null) {\n buttonShow.setOnClickListener( view -> showPicture());\n }\n }",
"@Override\npublic void onCreate(SurfaceHolder surfaceHolder) {\n\tsuper.onCreate(surfaceHolder);\n setTouchEventsEnabled(true);\n}",
"public void onSurfaceCreated(GL10 na, EGLConfig config) {\n //Initializes the touchQueue\n touchQueue = new LinkedList<MotionEvent>();\n }",
"private void initListener() {\n un.setOnClickListener(this);\n deux.setOnClickListener(this);\n trois.setOnClickListener(this);\n quatre.setOnClickListener(this);\n cinq.setOnClickListener(this);\n six.setOnClickListener(this);\n sept.setOnClickListener(this);\n huit.setOnClickListener(this);\n neuf.setOnClickListener(this);\n zero.setOnClickListener(this);\n etoile.setOnClickListener(this);\n diaize.setOnClickListener(this);\n efface.setOnClickListener(this);\n setComposer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n paletteComposition.setVisibility(View.VISIBLE);\n setComposer.setVisibility(View.GONE);\n }\n });\n call_btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (!tableView.getText().toString().trim().equals(\"\"))\n Utils.call(ComposerContact.this, tableView.getText().toString().trim());\n }\n });\n }",
"private void setEventListener() {\n mCameraView.addCameraKitListener(this);\n mCameraButton.setOnClickListener(this);\n mCameraButtonCloud.setOnClickListener(this);\n }",
"public void addTapListener(ActionListener e) {\n if(tapListener == null) {\n tapListener = new EventDispatcher();\n }\n tapListener.addListener(e);\n }",
"@SuppressLint(\"ClickableViewAccessibility\") private void setTouchListener(Canvas canvas,\n RecyclerView recyclerView,\n RecyclerView.ViewHolder viewHolder, float dX, float dY,\n int actionState, boolean isActive) {\n recyclerView.setOnTouchListener(new View.OnTouchListener() {\n @Override public boolean onTouch(View v, MotionEvent event) {\n //when a pressed gesture finished or aborted, set the swipeBack true;\n swipeBack = event.getAction() == MotionEvent.ACTION_CANCEL\n || event.getAction() == MotionEvent.ACTION_UP;\n if (swipeBack) {\n //at this moment, if the position of finger is bigger than button width;\n if (dX < -BUTTON_WIDTH) {\n buttonState = ButtonState.RIGHT_VISIBLE;\n }\n if (buttonState != ButtonState.GONE) {\n //when the button appear, check the slide movement;\n setTouchDownListener(canvas, recyclerView, viewHolder, dX, dY, actionState, isActive);\n setItemsClickable(recyclerView, false);\n }\n }\n return false;\n }\n });\n }",
"@Override\n\t\tprotected void onCreate(Bundle savedInstanceState) {\n\t\t\tsuper.onCreate(savedInstanceState);\n\t\t\tsp = getSharedPreferences(\"config\", MODE_PRIVATE);\n\t\t\t//2.实例化这个手势识别器\n\t\t\tdetector = new GestureDetector(this, new OnGestureListener() {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * 当手指在屏幕上滑动的时候调用\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,\n\t\t\t\t\t\tfloat velocityY) {\n\t\t\t\t\t\n\t\t\t\t\tif(Math.abs(velocityX)<200){\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"划的太慢了\", 0).show();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(Math.abs(e2.getRawY()-e1.getRawY())>100){\n\t\t\t\t\t\t\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"不能这样划\", 0).show();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif((e2.getRawX()-e1.getRawX())>200){\n\t\t\t\t\t\t//显示上一个页面,左--->右\n\t\t\t\t\t\tSystem.out.println(\"显示上一个页面,左--->右\");\n\t\t\t\t\t\tshowPre();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif((e1.getRawX()-e2.getRawX())>200){\n\t\t\t\t\t\t//显示下一个页面,右--->左\n\t\t\t\t\t\tSystem.out.println(\"显示下一个页面,右--->左\");\n\t\t\t\t\t\tshowNext();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onDown(MotionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onShowPress(MotionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onScroll(MotionEvent e1, MotionEvent e2,\n\t\t\t\t\t\tfloat distanceX, float distanceY) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onLongPress(MotionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t} );\n\t\t\t\n\t\t}",
"private void lazyInitializeMap() {\n if (gestureSenderToGestureListener == null) {\n gestureSenderToGestureListener = new HashMap<Class<? extends IInputProcessor>, IGestureEventListener[]>();\n }\n }",
"public GestureClass getGestureClass(){\r\n return gestureClass;\r\n }",
"public void setSwipeListener(TileListener newListener) {\n\t\tthis.listener = newListener;\n\t}",
"@Override\n public void onTouchEvent(RecyclerView rv, MotionEvent e) {\n }",
"private void initializeHandlers() {\n ivBack.setOnClickListener(this);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n ImageView view = (ImageView) findViewById(R.id.imageView);\n view.setOnTouchListener(this); \n }",
"public void onCompletedGesture(SimpleOpenNI curContext,int gestureType, PVector pos)\n{\n println(\"onCompletedGesture - gestureType: \" + gestureType + \", pos: \" + pos);\n \n int handId = kinect.startTrackingHand(pos);\n println(\"hand stracked: \" + handId);\n}",
"@SuppressLint(\"ClickableViewAccessibility\")\n private void setTouchListeners() {\n mStudentNameEditText.addTextChangedListener(mTextListener);\n mStudentSexSpinner.setOnTouchListener(mTouchListener);\n mStudentBirthdateRelativeLayout.setOnTouchListener(mTouchListener);\n mStudentGradeEditText.addTextChangedListener(mTextListener);\n mAddPhotoView.setOnTouchListener(mTouchListener);\n mStudentAddClassView.setOnTouchListener(mTouchListener);\n mStudentRemoveClassView.setOnTouchListener(mTouchListener);\n }",
"private void hook(View view) {\n try {\n Class classview = Class.forName(\"android.view.View\");\n Method method = classview.getDeclaredMethod(\"getListenerInfo\");\n method.setAccessible(true);\n Object listenerInfo = method.invoke(view);\n Class classInfo = Class.forName(\"android.view.View$ListenerInfo\");\n Field field = classInfo.getDeclaredField(\"mOnClickListener\");\n field.set(listenerInfo, new HookListener((View.OnClickListener) field.get(listenerInfo)));\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tprotected void setListener() {\n\t\tslider_text.setOnClickListener(this);\n\t}",
"public void setUserGestureListener(BookingController bc)\r\n throws BookingException, RemoteException {\r\n this.bc = bc;\r\n }",
"@Override\n\tpublic void start() {\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.KEYBOARD_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.keyboardListener.registerNativeHook();\n\t\t\tthis.keyboardListenerIsActive = true;\n\t\t}\n\t\t//If the mouse listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseListener.registerNativeHook();\n\t\t\tthis.mouseListenerIsActive = true;\n\t\t}\n\t\t//If the mouse motion listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseMotionListener.registerNativeHook();\n\t\t\tthis.mouseMotionListenerIsActive = true;\n\t\t}\n\t\t//If the mouse wheel listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_WHEEL_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseWheelListener.registerNativeHook();\n\t\t\tthis.mouseWheelListenerIsActive = true;\n\t\t}\n\t}",
"private void setListener() {\n\t}",
"@Override\n public void onUpOrCancelMotionEvent() {\n \n }",
"@Override\n @SuppressLint(\"ClickableViewAccessibility\")\n public boolean onTouchEvent(MotionEvent ev) {\n if (mScroller != null && mScroller.onTouchEvent(ev)) return true;\n if (mScroller != null && mGestureDetector == null) {\n mGestureDetector = new GestureDetector(getContext(), new GestureDetector.SimpleOnGestureListener() {\n @Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n // If fling happens, index bar shows\n mScroller.show();\n return super.onFling(e1, e2, velocityX, velocityY);\n }\n });\n }\n if (mGestureDetector != null) mGestureDetector.onTouchEvent(ev);\n if (mScroller != null && ev.getAction() == MotionEvent.ACTION_UP) postInvalidate();\n return super.onTouchEvent(ev);\n }",
"public void onTouchDown(NMapView arg0, MotionEvent arg1) {\n\n }",
"public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE); \n\t\t\n\t\tthis.setContentView(R.layout.snake);\n\t\tstatusButton = (ImageButton)findViewById(R.id.status_button);\n\t\tstatusButton.setBackgroundColor(Color.argb(0, 0, 0, 0));\n//\t\tstatusButton.setImageResource(R.drawable.start);\n\t\tstatusButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(snake.getstatus() == snake.READY)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(snake.getstatus() == snake.RUNNING)\n\t\t\t\t{\n//\t\t\t\t\tstatusButton.setText(\"start\");\n\t\t\t\t\tstatusButton.setImageResource(R.drawable.start);\n\t\t\t\t\tsnake.pause();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n//\t\t\t\t\tstatusButton.setText(\"pause\");\n\t\t\t\t\tstatusButton.setImageResource(R.drawable.pause);\n\t\t\t\t\tsnake.start();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsnake = (SnakeView)findViewById(R.id.snake);\n\t\tsnake.scoreTextView = (TextView)findViewById(R.id.scoreTextView);\n\t\tsnake.restTimeTextView = (TextView)findViewById(R.id.restTimeTextView);\n\t\t\n\t\tgestureDetector = new BuileGestureExt(this,new BuileGestureExt.OnGestureResult() {\n @Override\n public void onGestureResult(int direction) {\n \t\n \tif (snake.getstatus() == snake.READY)\n \t{\n \t\tsnake.initNewGame();\n \t\tstatusButton.setImageResource(R.drawable.pause);\n \t\treturn;\n \t}\n \tif(snake.getstatus() != snake.RUNNING)\n \t{\n \t\treturn;\n \t}\n \t\n \t\n \tif (direction == BuileGestureExt.GESTURE_UP)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.UP));\n \t}\n \telse if (direction == BuileGestureExt.GESTURE_DOWN)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.DOWN));\n \t}\n \telse if (direction == BuileGestureExt.GESTURE_LEFT)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.LEFT));\n \t}\n \telse if (direction == BuileGestureExt.GESTURE_RIGHT)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.RIGHT));\n \t}\n }\n }\n ).Buile();\n\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn gestureScanner.onTouchEvent(event);\n\n\t\t\t}",
"Gesture<E> getGesture();",
"void touchEvent(MotionEvent event);",
"public void setupUIListeners() {\n\t\tsetupEditTextListeners();\n\t\tsetupSeekBarsListeners();\n\t}",
"private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\n\t\t}\n\t}",
"@Override\n public boolean dispatchTouchEvent(MotionEvent event)\n {\n \tswitch(event.getAction())\n\t\t{\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tgesture_xa=event.getX();\n\t\t\tgesture_ya=event.getY();\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tgesture_xe=event.getX();\n\t\t\tgesture_ye=event.getY();\n\t\t\t//Toast.makeText(SpecialsActivity.this, String.valueOf(gesture_xe-gesture_xa)+\"/\"+String.valueOf(gesture_ye-gesture_ya)+\"/\"+String.valueOf(displayWidth/2)+\"/\"+String.valueOf(displayHeight*0.1), Toast.LENGTH_SHORT).show();\n\t\t\tif(Math.abs(gesture_ye-gesture_ya) < displayHeight*0.1)\n\t\t\t{\n\t\t\t\tif( gesture_xe-gesture_xa > displayWidth/2 )\n\t\t\t\t{\n\t\t\t\t\t// wipe from left to right\n\t\t\t\t\tIntent intent = new Intent(Callbacksplit.getMainActivity(), ConfigActivity.class);\n\t\t\t\t\tfinish();\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse if( -(gesture_xe-gesture_xa) > displayWidth/2 )\n\t\t\t\t{\n\t\t\t\t\t// wipe from right to left\n\t\t\t\t\tfinish();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n \tsuper.dispatchTouchEvent(event);\n \treturn true;\n }",
"@Override\n\tpublic void setUpListener() {\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAdapter.setIndex(position);\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\tif(litener != null){\n\t\t\t\t\tlitener.onItemClick(position, mAdapter.getListItem(position), view);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void setupKeypad(View fragmentView) {\n View view = fragmentView.findViewById(R.id.one);\n view.setOnClickListener(this);\n view.setOnLongClickListener(this);\n\n fragmentView.findViewById(R.id.two).setOnClickListener(this);\n fragmentView.findViewById(R.id.three).setOnClickListener(this);\n fragmentView.findViewById(R.id.four).setOnClickListener(this);\n fragmentView.findViewById(R.id.five).setOnClickListener(this);\n fragmentView.findViewById(R.id.six).setOnClickListener(this);\n fragmentView.findViewById(R.id.seven).setOnClickListener(this);\n fragmentView.findViewById(R.id.eight).setOnClickListener(this);\n fragmentView.findViewById(R.id.nine).setOnClickListener(this);\n fragmentView.findViewById(R.id.star).setOnClickListener(this);\n if (FeatureQuery.FEATURE_CONTACTS_SPEED_DIAL) {\n fragmentView.findViewById(R.id.two).setOnLongClickListener(this);\n fragmentView.findViewById(R.id.three).setOnLongClickListener(this);\n fragmentView.findViewById(R.id.four).setOnLongClickListener(this);\n fragmentView.findViewById(R.id.five).setOnLongClickListener(this);\n fragmentView.findViewById(R.id.six).setOnLongClickListener(this);\n fragmentView.findViewById(R.id.seven).setOnLongClickListener(this);\n fragmentView.findViewById(R.id.eight).setOnLongClickListener(this);\n fragmentView.findViewById(R.id.nine).setOnLongClickListener(this);\n }\n\n view = fragmentView.findViewById(R.id.zero);\n view.setOnClickListener(this);\n view.setOnLongClickListener(this);\n\n fragmentView.findViewById(R.id.pound).setOnClickListener(this);\n\t fragmentView.findViewById(R.id.pound).setOnLongClickListener(this);\n }",
"@Override\n public boolean onDown(MotionEvent e) {\n return true;\n }",
"@Override\n public boolean onTouchEvent(MotionEvent e) {\n final boolean ret = super.onTouchEvent(e);\n\n int action = e.getActionMasked();\n if (action == MotionEvent.ACTION_UP) {\n if (!mWasFlingCalledForGesture) {\n ((CarLayoutManager) getLayoutManager()).settleScrollForFling(this, 0);\n }\n mWasFlingCalledForGesture = false;\n }\n\n return ret;\n }",
"public void addListeners() {\n\t\timages[TOP].setOnClickListener(top);\t\n\t\timages[BOTTOM].setOnClickListener(bottom);\n\t\timages[TOP].setOnLongClickListener(topsave);\t\n\t\timages[BOTTOM].setOnLongClickListener(bottomsave);\n }",
"private void initListener() {\n }",
"@Override\n public void onLongPress(MotionEvent event) {\n PickNavigateController.this.onLongPressHandler(event);\n }",
"void initialize(RNGestureHandlerRegistry registry) {\n Log.i(\n ReactConstants.TAG,\n \"[GESTURE HANDLER] Initialize gesture handler for root view \" + this);\n mOrchestrator = new GestureHandlerOrchestrator(this, registry, new RNViewConfigurationHelper());\n mOrchestrator.setMinimumAlphaForTraversal(MIN_ALPHA_FOR_TOUCH);\n int rootViewTag = getRootViewTag();\n if (rootViewTag < 1) {\n throw new IllegalStateException(\"Expect root view tag to be set for \" + this);\n }\n mJSGestureHandler = new RootViewGestureHandler();\n mJSGestureHandler.setTag(-rootViewTag);\n registry.registerHandler(mJSGestureHandler);\n registry.attachHandlerToView(mJSGestureHandler.getTag(), rootViewTag);\n }",
"private void ShootListener() {\n shoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (presenter.canShoot()) {\n shoot(presenter.getBullet());\n presenter.checkLastBullet();\n }\n\n }\n });\n }",
"public void initListeners() {\n\t\tlogoGrabListener = new LogoGrabListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\tLog.i(TAG, \"LogoGrab Application responded with: \" + response.toString());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onError(String error) {\n\t\t\t\tLog.e(TAG, error);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set LogoGrabListener\n\t\tLogoGrabInterface.setLogoGrabListener(logoGrabListener);\n\t\t\n\t\t\n\t\t// init OnClickListener\n\t\tonClickListener = new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLogoGrabInterface.startLogoGrab(MainActivity.this);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set OnClickListener\n\t\tlogoGrabButton.setOnClickListener(onClickListener);\n\t}",
"public void setupEvent(Controller controller) {\n this.cylinderContainer.setOnMouseClicked(e -> controller.setSelectedPiece(this));\n }",
"private void setUpListeners() {\n TextView listOfPlacesText = findViewById(R.id.list_of_places_text);\n listOfPlacesText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ListOfPlaces.class);\n startActivity(intent);\n }\n });\n\n // Goes to List of Places activity\n ImageView topArrow = findViewById(R.id.top_arrow);\n topArrow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ListOfPlaces.class);\n startActivity(intent);\n }\n });\n\n // Goes to QR Scanner\n TextView checkOffText = findViewById(R.id.checkoff_place_text);\n checkOffText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(ScavengerHunt.this,\n Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) {\n Intent intent = new Intent(ScavengerHunt.this, ScanQRCode.class);\n startActivity(intent);\n } else {\n requestCameraPermission();\n }\n }\n });\n\n // Goes to QR Scanner\n ImageView bottomArrow = findViewById(R.id.bottom_arrow);\n bottomArrow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ScanQRCode.class);\n startActivity(intent);\n }\n });\n\n // Moves camera to Student Union when pressed (in case the user is off campus)\n ImageView pawImage = findViewById(R.id.paw);\n pawImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(34.181309518547195, -117.32371486723423), 18));\n }\n });\n\n }",
"@SuppressLint(\"ClickableViewAccessibility\")\n @Override\n public boolean onTouchEvent(MotionEvent event) {\n return gestureHandler.onTouchEvent(event);\n }"
] |
[
"0.80649745",
"0.6898546",
"0.6831044",
"0.67778313",
"0.66429675",
"0.6532532",
"0.64617914",
"0.6456257",
"0.63516897",
"0.6312525",
"0.62682223",
"0.62232625",
"0.6148041",
"0.6145596",
"0.61444056",
"0.60613805",
"0.60071474",
"0.6006736",
"0.5988019",
"0.59423304",
"0.59078634",
"0.59078354",
"0.587816",
"0.58237183",
"0.58126026",
"0.58039254",
"0.58000255",
"0.57872355",
"0.5766953",
"0.57532907",
"0.5744058",
"0.5741017",
"0.5728618",
"0.57153606",
"0.57115287",
"0.5706941",
"0.5706034",
"0.5705989",
"0.5705989",
"0.5705989",
"0.5705989",
"0.5701602",
"0.56682223",
"0.5663614",
"0.56482893",
"0.56427395",
"0.56391644",
"0.5626129",
"0.56060237",
"0.5595854",
"0.55750775",
"0.55631334",
"0.5558837",
"0.55473816",
"0.5545039",
"0.55365336",
"0.55203295",
"0.55186856",
"0.5512073",
"0.55074614",
"0.55018234",
"0.54948986",
"0.5491803",
"0.5491646",
"0.549108",
"0.5479695",
"0.5475301",
"0.54639965",
"0.5458697",
"0.5457422",
"0.54461956",
"0.54441005",
"0.5443522",
"0.5441632",
"0.5437232",
"0.5433994",
"0.5432195",
"0.5428531",
"0.5428112",
"0.5424129",
"0.5423806",
"0.53966606",
"0.53962195",
"0.5389912",
"0.538144",
"0.5374113",
"0.5371749",
"0.5369735",
"0.53690934",
"0.5366255",
"0.5364441",
"0.5361992",
"0.5358432",
"0.5351699",
"0.53434306",
"0.5342424",
"0.5342062",
"0.534001",
"0.53393406",
"0.5322744",
"0.5311487"
] |
0.0
|
-1
|
Function to set Video Path to create Video Preview Timeline
|
public void setSource(String path){
videoTimeline.setTrim(path);
getVideoInfo(path);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"default void setVideoPath(@Nullable String path) {\n setVideoUri(TextUtils.isEmpty(path) ? null : Uri.parse(path));\n }",
"private void initVideoPath() {\n File file = new File(Environment.getExternalStorageDirectory(),\n \"/Pictures/QQ/pandavideo_cut.mp4\");\n String videoPath = file.getAbsolutePath();\n\n// Toast.makeText(this,\"文件是否存在\"+file.exists(),Toast.LENGTH_LONG).show();\n Toast.makeText(this,\"文件路径\"+videoPath,Toast.LENGTH_LONG).show();\n mVideoView.setVideoPath(videoPath);\n mVideoView.start();\n\n }",
"public void setPreviewVideoDefinition(VideoDefinition vdef);",
"public static void setVideoSource(String source){\r\n\r\n editor.putString(\"VideoMode\", source);\r\n editor.commit();\r\n }",
"private void initVideo(String videoPath) {\n JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,\n videoPath,\"\");\n\n\n\n\n\n }",
"public void setVideo(File video){\n\t\tthis.video = video;\n\t}",
"public void setUpVideo() {\n\n videosViewPager.setVisibility(VISIBLE);\n StorageReference filePath = storageReference.child(\"images\").child(new ArrayList<>(videos.keySet()).get(position));\n filePath.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n videosViewPager.setVideoURI(uri);\n videosViewPager.setMediaController(mediaController);\n mediaController.setAnchorView(videosViewPager);\n videosViewPager.requestFocus();\n }\n });\n //String videoPath = \"android.resource://\"+activity.getPackageName()+\"/\";\n //Uri uri = Uri.parse(videoPath);\n\n// DisplayMetrics displayMetrics = new DisplayMetrics();\n// activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n// int height = displayMetrics.heightPixels;\n// int width = displayMetrics.widthPixels;\n//\n//\n// videosViewPager.setMinimumHeight(height);\n// videosViewPager.setMinimumWidth(width);\n// videosViewPager.setVideoURI(uri);\n// videosViewPager.setMediaController(mediaController);\n// mediaController.setAnchorView(videosViewPager);\n// videosViewPager.requestFocus();\n //videosViewPager.start();\n\n\n\n }",
"public VideoDefinition getCurrentPreviewVideoDefinition();",
"public void playVideo() {\n \t\t try {\n \t\t\t videoView.setOnPreparedListener(new OnPreparedListener() {\n \n \t\t\t\t @Override\n \t\t\t\t public void onPrepared(MediaPlayer mp) {\n \t\t\t\t\t mp.setLooping(true); \n \t\t\t\t }\n \t\t\t });\n \t\t\t videoView.setVideoPath(SAVE_PATH);\n \t\t\t videoView.start();\n \t\t } catch (Exception e) {\n \t\t\t Log.e(\"Video\", \"error: \" + e.getMessage(), e);\n \t\t }\n \t }",
"private void InitVideoPlayer(String videoPlayPath) {\n if (mVideoPlayView != null) {\n if (!Tools.isVideoStreamlessModeOn()) {\n mVideoPlayView.stopPlayback();\n }\n\n mVideoPlayView.setPlayerCallbackListener(myPlayerCallback);\n }\n\n Log.i(TAG, \"*******videoPlayPath*****\" + videoPlayPath + \"SDK_INT: \" + Build.VERSION.SDK_INT);\n videoPlayPath = Tools.fixPath(videoPlayPath);\n\n \n if (videoPlayPath != null) {\n mVideoPlayView.setVideoPath(videoPlayPath);\n }\n mVideoPlayView.setHandler(videoHandler);\n\n }",
"public VideoDefinition getPreviewVideoDefinition();",
"public static String getVideoSource(){\r\n\r\n return pref.getString(\"VideoMode\", \"MP4\");\r\n }",
"public void setVideoPreset(String preset);",
"@Override\n\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\n\t\t\t\t\t\tmyVideoView.setVideoPath(videopath);\n\t\t\t\t\t\tmyVideoView.start();\n\n\t\t\t\t\t}",
"private void setFramePath()\n\t{\n\t\tcurrFramePath = location + \"/\" + currentSet + \"/\" + \"frame\"\n\t\t\t\t+ Integer.toString(currFrame) + \".png\";\n\t}",
"public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }",
"@Override\n public void onServerStart(String videoStreamUrl)\n {\n\n\n\n Log.d(\"Activity\",\"URL: \"+ videoStreamUrl);\n\n\n video = (VideoView)findViewById(R.id.video);\n\n Uri uri = Uri.parse(videoStreamUrl);\n video.setVideoURI(uri);\n video.start();\n\n\n\n }",
"public void setVideoPort(int port);",
"public void setVideo(String video) {\n this.video = video;\n }",
"@Override\n\t\t\t\tpublic void onPrepared(MediaPlayer mediaPlayer) {\n\t\t\t\t\tmediaPlayer.setPlaybackSpeed(1.0f);\n\t\t\t\t\tmVideoView.addTimedTextSource(subtitle_path);\n\t\t\t\t\tmVideoView.setTimedTextShown(true);\n\t\t\t\t\tmVideoView.setVideoLayout(VideoView.VIDEO_LAYOUT_STRETCH, 0);\n\n\t\t\t\t}",
"Builder addVideo(String value);",
"public String getVideoFileListPath() {\r\n\t\tif(isExistVideoFileList()) \r\n\t\t\treturn ArrayUtils.toStringComma(getVideoFileList()); \r\n\t\treturn \"\";\r\n\t}",
"void setVideoUri(@Nullable Uri uri);",
"public void verVideo(View v) {\n ViewVideo.setVideoURI(Uri.parse(getExternalFilesDir(null) + \"/\" + txtNombreArchivo.getText().toString()));\n /*Ejecutamos el video*/\n ViewVideo.start();\n }",
"private void onPlayVideoClick() {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(Uri.parse(\"file://\" + mediaPath), \"video/mp4\");\n startActivity(intent);\n }",
"private void setupLocalVideo() {\n\n // Enable the video module.\n mRtcEngine.enableVideo();\n\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mLocalContainer.addView(mLocalView);\n\n mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, 0));\n }",
"public String getVideoPreset();",
"public void enableVideoPreview(boolean val);",
"public void playVideo() {\n }",
"public File createVideoFolder() {\n// File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(\n// Environment.DIRECTORY_MOVIES + File.separator), \"RokidCameraVideo\");\n// mVideoFolder = mediaStorageDir;\n\n File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);\n File mVideoFolder = new File(movieFile, \"Camera\");\n\n if (!mVideoFolder.exists()) {\n mVideoFolder.mkdirs();\n }\n\n return mVideoFolder;\n }",
"public void SetUrl(String url)\n\t{\n\t if (video_view.isPlaying())\n\t {\n\t video_view.stopPlayback();\n\t }\n\t \n Uri uri = Uri.parse(url);\n video_view.setVideoURI(uri);\n\t}",
"private void createVideoFolder() {\n File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);\n mVideoFolder = new File(movieFile, \"Camera2_Video_Image\");\n //check to see if the folder is already created\n if (!mVideoFolder.exists()) {\n mVideoFolder.mkdirs();\n\n }\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_video_play);\n\n videoView = findViewById(R.id.video_view);\n// String path = Environment.getExternalStorageDirectory().getAbsolutePath()+\" Path name \";\n// videoView.setVideoPath();\n videoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/raw/video_transparent\"));\n\n\n MediaController mediaController = new MediaController(this);\n videoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(videoView);\n\n }",
"public void saveVideo() {\n if (this.mVideoFileDescriptor == null) {\n long duration = SystemClock.uptimeMillis() - this.mRecordingStartTime;\n try {\n MediaMetadataRetriever mmr = new MediaMetadataRetriever();\n mmr.setDataSource(this.mCurrentVideoFilename);\n String durationStr = mmr.extractMetadata(9);\n mmr.release();\n duration = (long) Integer.parseInt(durationStr);\n } catch (Exception e) {\n Log.e(TAG, \"MediaMetadataRetriever error, use estimated duration\", e);\n }\n if (duration <= 0) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Video duration <= 0 : \");\n stringBuilder.append(duration);\n Log.w(tag, stringBuilder.toString());\n }\n if (this.mCurrentVideoValues == null) {\n generateVideoFilename(this.mProfile.fileFormat);\n }\n if (this.mCurrentVideoValues != null) {\n this.mCurrentVideoValues.put(\"_size\", Long.valueOf(new File(this.mCurrentVideoFilename).length()));\n this.mCurrentVideoValues.put(InfoTable.DURATION, Long.valueOf(duration));\n if (needAddToMediaSaver()) {\n getServices().getMediaSaver().addVideo(this.mCurrentVideoFilename, this.mCurrentVideoValues, getVideoSavedListener(), this.mContentResolver);\n }\n logVideoCapture(duration);\n } else {\n return;\n }\n }\n this.mCurrentVideoValues = null;\n }",
"public String getVideoUrl() {\n return videoUrl;\n }",
"public void setPreferredVideoDefinition(VideoDefinition vdef);",
"private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }",
"public void downloadVideo(Context context, VideoView videoView){\n \t\t this.videoView = videoView;\n \t\t download = new DownloadVideo(context, SAVE_PATH);\n \t\t download.execute();\n \t }",
"void setPath(String path);",
"private void parseJsonAndReturnUrl(String jsonData){\n String videoUri, videoName;\n videos = new ArrayList<>();\n Video video = null;\n try {\n JSONObject root = new JSONObject(jsonData);\n JSONArray topicsArray = root.getJSONArray(\"topic_data\");\n if(topicsArray.length() == 0){\n return;\n }\n for(int i=0; i< topicsArray.length(); i++){\n JSONArray topics = topicsArray.getJSONArray(i);\n videoUri = topics.getString(3);\n\n Log.d(TAG, \"video path: \"+videoUri);\n\n videoName = topics.getString(0);\n\n Log.d(TAG, \"video name: \"+videoUri);\n\n video = new Video();\n\n video.setmVideoName(videoName);\n video.setmVideoUrl(videoUri);\n\n videos.add(video);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }",
"@NonNull\n public String getVideoUrl() {\n return videoUrl;\n }",
"private void launchVideoFile(File videoFile){\n String dstPath = (Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOWNLOADS) + \"/\" + videoFile.getName());\n File dstFile = new File(dstPath);\n if (dstFile.exists()){\n Uri path = Uri.fromFile(dstFile);\n Intent objIntent = new Intent(Intent.ACTION_VIEW);\n objIntent.setDataAndType(path, \"video/*\");\n objIntent.setFlags(Intent. FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(objIntent);//Starting the video viewer\n } else {\n Toast.makeText(this, \"Error: This file does not exist.\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\tpublic void videoStart() {\n\t\t\n\t}",
"private String getVideofilename() {\n String mFileName;\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String audioFileName = \"mp4_\" + timeStamp + \"_\";\n\n // Save a file: path for use with ACTION_VIEW intents\n mFileName = getExternalFilesDir(\"DIRECTORY_VIDEO\").getAbsolutePath();\n mFileName += \"/\" +audioFileName + \".mp4\";\n return mFileName;\n }",
"@Override\n public void onVideoStarted() {\n }",
"public void startVideoRecording() {\n\n try {\n mVideoFileTest = createVideoFile(mVideoFolder);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // set up Recorder\n try {\n setupMediaRecorder();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // prepare for recording\n sendVideoRecordingRequest();\n\n // start recording\n mMediaRecorder.start();\n\n if (mRokidCameraRecordingListener != null) {\n mRokidCameraRecordingListener.onRokidCameraRecordingStarted();\n }\n }",
"public void generateVideoFilename(int outputFileFormat) {\n long dateTaken = System.currentTimeMillis();\n String title = createName(dateTaken);\n String filename = new StringBuilder();\n filename.append(title);\n filename.append(convertOutputFormatToFileExt(outputFileFormat));\n filename = filename.toString();\n String mime = convertOutputFormatToMimeType(outputFileFormat);\n String path = new StringBuilder();\n path.append(Storage.DIRECTORY);\n path.append('/');\n path.append(filename);\n path = path.toString();\n String tmpPath = path;\n if (!(this.mNeedGLRender || isSupportEffects())) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(path);\n stringBuilder.append(VIDEO_TEMP_SUFFIXES);\n tmpPath = stringBuilder.toString();\n }\n this.mCurrentVideoValues = new ContentValues(9);\n this.mCurrentVideoValues.put(\"title\", title);\n this.mCurrentVideoValues.put(\"_display_name\", filename);\n this.mCurrentVideoValues.put(\"datetaken\", Long.valueOf(dateTaken));\n this.mCurrentVideoValues.put(InfoTable.DATE_MODIFIED, Long.valueOf(dateTaken / MIN_VIDEO_RECODER_DURATION));\n this.mCurrentVideoValues.put(InfoTable.MIME_TYPE, mime);\n this.mCurrentVideoValues.put(\"_data\", path);\n this.mCurrentVideoValues.put(InfoTable.WIDTH, Integer.valueOf(this.mProfile.videoFrameWidth));\n this.mCurrentVideoValues.put(InfoTable.HEIGHT, Integer.valueOf(this.mProfile.videoFrameHeight));\n ContentValues contentValues = this.mCurrentVideoValues;\n String str = InfoTable.RESOLUTION;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(Integer.toString(this.mProfile.videoFrameWidth));\n stringBuilder2.append(\"x\");\n stringBuilder2.append(Integer.toString(this.mProfile.videoFrameHeight));\n contentValues.put(str, stringBuilder2.toString());\n Location loc = this.mLocationManager.getCurrentLocation();\n if (loc != null) {\n this.mCurrentVideoValues.put(InfoTable.LATITUDE, Double.valueOf(loc.getLatitude()));\n this.mCurrentVideoValues.put(InfoTable.LONGITUDE, Double.valueOf(loc.getLongitude()));\n }\n this.mVideoFilename = tmpPath;\n Tag tag = TAG;\n stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"New video filename: \");\n stringBuilder2.append(this.mVideoFilename);\n Log.v(tag, stringBuilder2.toString());\n }",
"public static void main(String[] args){\n File f = new File(System.getProperty(\"user.dir\"));\n if(os){\n path = f.toString()+\"\\\\YuuTubevideos\";\n }else{\n path = f.toString()+\"/YuuTubevideos\";\n }\n start_page();\n }",
"private File createVideoFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"VIDEO_\" + timestamp + \"_\";\n File videoFile = File.createTempFile(prepend, \".mp4\", mVideoFolder);\n mVideoFileName = videoFile.getAbsolutePath();\n return videoFile;\n\n }",
"private void setAssetPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n assetPath_ = value;\n }",
"public void setVideoUrl(String newVideoUrl) {\n this.videoUrl = newVideoUrl;\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(mContext, ChangeClarityActivity.class);\n\t\t\t\t\tintent.putExtra(ChangeClarityActivity.VIDEOPATH, videoPath);\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}",
"protected void saveVideo(final Uri uriVideo) {\n\n // click the video to save it\n mVideoView.setOnTouchListener(new View.OnTouchListener() {\n\n public boolean onTouch(View v, MotionEvent event) {\n\n boolean success = false;\n\n // make the directory\n File vidDir = new File(android.os.Environment.getExternalStoragePublicDirectory\n (Environment.DIRECTORY_MOVIES) + File.separator + \"Saved iCute Videos\");\n vidDir.mkdirs();\n // create unique identifier\n Random generator = new Random();\n int n = 100;\n n = generator.nextInt(n);\n // create file name\n String videoName = \"Video_\" + n + \".mp4\";\n File fileVideo = new File(vidDir.getAbsolutePath(), videoName);\n\n try {\n fileVideo.createNewFile();\n success = true;\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if (success) {\n Toast.makeText(getApplicationContext(), \"Video saved!\",\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error during video saving\", Toast.LENGTH_LONG).show();\n }\n\n return true;\n }\n });\n }",
"public void setPath(String path);",
"@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tmyVideo.setVideoPath(file);\n\t\t\t\tmyVideo.start();\n\t\t\t}",
"public boolean videoPreviewEnabled();",
"private void setVideoURI(Uri uri, Map<String, String> headers) {\n mUri = uri;\n mHeaders = headers;\n mSeekWhenPrepared = 0;\n openVideo();\n requestLayout();\n invalidate();\n }",
"Builder addVideo(VideoObject value);",
"public void onVideoStarted () {}",
"public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }",
"public void goToVideoViewer(Uri vidURI) {\n Log.i(\"progress\",\"goToViewer\");\n\n Intent playerIntent = new Intent(this, VideoActivity.class);\n\n //attaches the video's uri\n playerIntent.putExtra(INTENT_MESSAGE, vidURI.toString());\n startActivity(playerIntent);\n }",
"@Override\r\n public void onClick(View v) {\n String path = \"http://techslides.com/demos/sample-videos/small.mp4\";\r\n// Uri uri=Uri.parse(path);\r\n// videoView.setVideoURI(uri);\r\n //MediaController mc = new MediaController(TransformDetailActivity.this);\r\n\r\n //videoView.start();\r\n// videoView.setOnTouchListener(new View.OnTouchListener() {\r\n// @Override\r\n// public boolean onTouch(View v, MotionEvent event) {\r\n// System.out.print(videoView.isPlaying());\r\n// if(videoView.isPlaying()) {\r\n// stopPosition[0] = videoView.getCurrentPosition();\r\n// videoView.pause();\r\n// } else {\r\n// videoView.seekTo(stopPosition[0]);\r\n// videoView.start();\r\n// }\r\n// return false;\r\n// }\r\n// });\r\n// String path = \"android.resource://\" + getPackageName() + \"/\" + R.raw.welcome;\r\n// Uri videoUri = Uri.parse(path);\r\n// Intent intent = new Intent(Intent.ACTION_VIEW, videoUri);\r\n// intent.setDataAndType(videoUri, \"video/*\");\r\n// startActivity(intent);\r\n\r\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(path));\r\n intent.setDataAndType(Uri.parse(path), \"video/mp4\");\r\n startActivity(intent);\r\n }",
"private void initVideoView(Context context) {\n IjkMediaPlayer.loadLibrariesOnce(null);\n IjkMediaPlayer.native_profileBegin(\"libijkplayer.so\");\n\n mAppContext = context.getApplicationContext();\n mActivity = (Activity) context;\n if (mActivity != null) {\n this.mBrightness = mActivity.getWindow().getAttributes().screenBrightness;\n }\n this.mAudioManager = (AudioManager) mAppContext.getSystemService(Context.AUDIO_SERVICE);\n this.mVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (mMediaController != null) {\n mMediaController.setVideoView(this);\n }\n screenWidthPixels = getScreenWidth(context);\n\n setRender(mCurrentRender);\n\n mVideoWidth = 0;\n mVideoHeight = 0;\n // REMOVED: getHolder().addCallback(mSHCallback);\n // REMOVED: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n setFocusable(true);\n setFocusableInTouchMode(true);\n requestFocus();\n // REMOVED: mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>();\n setCurrentState(STATE_IDLE);\n mTargetState = STATE_IDLE;\n\n subtitleDisplay = new TextView(context);\n subtitleDisplay.setTextSize(16);\n subtitleDisplay.setShadowLayer(3, 5, 5, getResources().getColor(R.color.black));\n subtitleDisplay.setGravity(Gravity.CENTER);\n subtitleDisplay.setTextColor(getResources().getColor(R.color.white));\n// subtitleDisplay.setBackgroundResource(R.color.red);\n LayoutParams layoutParams_txt = new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT,\n Gravity.BOTTOM);\n addView(subtitleDisplay, layoutParams_txt);\n }",
"public void uriParse() {\n uri = Uri.parse(getUrlVideo());\n }",
"@Override\n protected void initView() {\n view.setVideoThumbnail(model.getThumbnail());\n\n if (isInFocus) {\n playOrPauseVideoIfMomentIsInFocus();\n }\n\n view.setMomentTitle(model.getTitle());\n view.setCounterTimeText(\"\" + Math.round((model.getEndTimeMs() - model.getStartTimeMs())/ TimeUtil.MS_IN_SECOND));\n\n view.setState(isInFocus);\n }",
"public void setVid(java.lang.String param) {\r\n localVidTracker = param != null;\r\n\r\n this.localVid = param;\r\n }",
"@Override\n public void onClick(View v) {\n Intent it = new Intent(Intent.ACTION_VIEW);\n Uri uri = Uri.parse(\"http://\"+ PostUrl.Media+\":8080/upload/\"+item.getMediaPath().get(0).split(\"\\\\.\")[0]+\".mp4\");\n it.setDataAndType(uri, \"video/mp4\");\n context.startActivity(it);\n\n }",
"public Builder setAssetPath(\n java.lang.String value) {\n copyOnWrite();\n instance.setAssetPath(value);\n return this;\n }",
"private File createVideoFile() throws IOException {\n Date d = new Date();\n String nameDate = new SimpleDateFormat(\"ddMMyyyy_HHmmss\").format(d);\n this.date = new SimpleDateFormat(\"dd/MM/yyyy\").format(d);\n this.time = nameDate.substring(9,13);\n String videoFileName = \"MP4_\" + nameDate + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n videoFileName, /* prefix */\n \".mp4\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentVideoPath = image.getAbsolutePath();\n return image;\n }",
"private void setUpVideoThumbnail() {\n Pictures pictures = video.getPictures();\n if (pictures != null) {\n List<Size> sizes = pictures.getSizes();\n if (sizes != null && sizes.size() > 0) {\n Size size = sizes.get(sizes.size() - 1);\n if (size != null) {\n String link = size.getLink();\n if (!TextUtils.isEmpty(link)) {\n Glide.with(getActivity())\n .load(link)\n// .placeholder(R.drawable.ic_placeholder)\n// .error(R.drawable.ic_error)\n .into(videoThumbnailImageView);\n }\n }\n }\n }\n }",
"private File getOutputMediaFile(int type) {\n File mediaStorageDir = new File(Environment.getExternalStorageDirectory(), \"NDS videos\");\n\n\n // Create the storage directory(MyCameraVideo) if it does not exist\n if (!mediaStorageDir.exists()) {\n\n if (!mediaStorageDir.mkdirs()) {\n\n //output.setText(\"Failed to create directory MyCameraVideo.\");\n\n Toast.makeText(Suggestion_box_suggest.this, \"Failed to create directory Boo_videos.\",\n Toast.LENGTH_LONG).show();\n\n Log.d(\"MyCameraVideo\", \"Failed to create directory Boo_videos.\");\n return null;\n }\n }\n\n// For unique file name appending current timeStamp with file name\n java.util.Date date = new java.util.Date();\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\")\n .format(date.getTime());\n\n File mediaFile;\n\n if (type == MEDIA_TYPE_VIDEO) {\n\n // For unique video file name appending current timeStamp with file name\n String filename_video = \"NDS_video_\" + timeStamp + \".mp4\";\n videoFileName = filename_video;\n mediaFile = new File(mediaStorageDir.getPath() + File.separator +\n filename_video);\n final String path_0 = Environment.getExternalStorageDirectory() + File.separator\n + \"NDS videos/\" + filename_video;\n String filename_to_up = path_0.substring(path_0.lastIndexOf(\"/\") + 1);\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"video\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"audio\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n path_000 = path_0;\n filename_000 = filename_to_up;\n myRemoteId_000 = MYRemoteId;\n SuggestionBoxId_000 = (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString();\n//-------0--------------------------the video send--\n mediaType_000 = \"video\";\n image_tag.setVisibility(View.GONE);\n video_tag.setVisibility(View.VISIBLE);\n audio_tag.setVisibility(View.GONE);\n textSuggestion.setVisibility(View.GONE);\n video_tag.setTag(filename_to_up);\n String videoFile = path_0;\n Bitmap thumbnail = ThumbnailUtils.createVideoThumbnail(videoFile,\n MediaStore.Images.Thumbnails.FULL_SCREEN_KIND);\n//BitmapDrawable bitmapDrawable = new BitmapDrawable(thumbnail);\n // edixt_image_video.setImageBitmap(thumbnail);\n edixt_image_video.setVideoURI(Uri.parse(path_0));\n\n edixt_image_video.seekTo(100);\n///-------------\n edixt_image_video.setTag(path_0);\n///-------------\n edixt_image_video.setTag(path_0);\n//----\n edixt_image_video.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n }\n });\n edixt_image_video.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(path_0));\n intent.setDataAndType(Uri.parse(path_000), \"video/mp4\");\n startActivity(intent);\n\n return false;\n }\n });\n\n//------------0000000000000000000000000000000000000000000-dufhhhhhhhhhhhhhhhhhhhhh\n\n //-------------------\n\n } else {\n return null;\n }\n\n return mediaFile;\n }",
"public void recordVideo() {\n\n }",
"private void displayVideo(){\n ButtonBack displayVideo = new ButtonBack(\"/view/VideoWindow.fxml\");\n displayVideo.displayVideo(\"winner\",\"Congratulation\");\n }",
"public void setVideo(Video video) {\r\n this.video = video;\r\n\r\n nameField.setText(video.getName());\r\n urlField.setText(video.getUrl());\r\n }",
"public String getVideo() {\n return video;\n }",
"public void setVideoDevice(String id);",
"@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n if (mIsRecording) {\n try {\n mVideoFilePath = FileUtils.createVideoFile(getApplicationContext());\n } catch (IOException e) {\n e.printStackTrace();\n }\n startNewVideo();\n } else {\n startPreview();\n }\n }",
"public Builder setSrcPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n srcPath_ = value;\n onChanged();\n return this;\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}",
"public void setVideoPosition(long videoPosition) {\n this.videoPosition = videoPosition;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.page_video_playing_start, container, false);\n\t\tVideoView mVideoView =(VideoView)view.findViewById(R.id.video_view);\n\t\tmVideoView.setVideoPath(\"android.resource://\" + getActivity().getPackageName() + \"/\" + R.raw.video);\n\t\tmVideoView.start();\n\t\treturn view;\n\t\t//return super.onCreateView(inflater, container, savedInstanceState);\n\t}",
"public void setVideoDscp(int dscp);",
"abstract public VideoDefinition createVideoDefinition(int width, int height);",
"default void onVideoStarted() {\n }",
"public void setDataSource(StarObjectClass self,String path){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\ttry{\r\n \t\t\tmediaplayer.setDataSource(path);\r\n \t\t}catch(IOException e){\r\n \t\t\tSrvGroup._Print(e.toString());\r\n \t\t}\r\n \t}",
"public void startVideoPlayer(Context context, String url) {\n Resource item = new Resource();\n item.setType(context.getString(R.string.typeVideo));\n item.setUrlMain(url);\n context.startActivity(PlayVideoFullScreenActivity.getStartActivityIntent(context, ConstantUtil.BLANK, ConstantUtil.BLANK, PlayVideoFullScreenActivity.NETWORK_TYPE_ONLINE, (Resource) item));\n }",
"@Override\n public void videoStarted() {\n super.videoStarted();\n img_playback.setImageResource(R.drawable.ic_pause);\n if (isMuted) {\n muteVideo();\n img_vol.setImageResource(R.drawable.ic_mute);\n } else {\n unmuteVideo();\n img_vol.setImageResource(R.drawable.ic_unmute);\n }\n }",
"private void showPreview(File mediaPath) {\n\n Bitmap scaledBitmap = BitmapFactory.decodeFile(String.valueOf(mediaPath));\n if (scaledBitmap != null) {\n int bitmapHeight = (int) (scaledBitmap.getHeight() * (512.0 / scaledBitmap.getWidth()));\n scaledBitmap = Bitmap.createScaledBitmap(scaledBitmap, 512, bitmapHeight, true);\n scaledBitmap = ((MApplication) getApplication()).rotateImage(scaledBitmap, mediaPath.getPath());\n selectedImage.setImageBitmap(scaledBitmap);\n } else {\n CustomToast.showToast(this, getString(R.string.media_not_available));\n finish();\n }\n }",
"protected void setTimeline(RMTimeline aTimeline)\n{\n // Stop listening to old timeline property changes\n if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);\n \n // Set anim\n put(\"Anim\", aTimeline);\n \n // Set owner to this shape and start listening for property changes\n if(aTimeline!=null) {\n aTimeline.setOwner(this);\n aTimeline.addPropertyChangeListener(this);\n }\n}",
"private void listFileMyVideo() throws JSONException {\n\n listFileMyVideo = new JSONArray();\n\n int count = countFileMyVideo();\n\n for (int i = 0; count > i; i++) {\n\n JSONObject obj = new JSONObject();\n obj.put(\"name\", get_FileName(getPathMyVideo(), i));\n obj.put(\"path\", get_FilePath(getPathMyVideo(), i));\n\n listFileMyVideo.put(obj);\n }\n }",
"private void initiatePlayer() {\n ExoPlayerVideoHandler.getInstance().initiateLoaderController(\n this,\n loadingImage,\n exoPlayerView,\n ExoPlayerVideoHandler.getInstance().getVideoResolution()!=null?ExoPlayerVideoHandler.getInstance().getVideoResolution():getString(R.string.default_resolution),\n this\n );\n ExoPlayerVideoHandler.getInstance().playVideo();\n content = ExoPlayerVideoHandler.getInstance().getCurrentVideoInfo();\n //ExoPlayerVideoHandler.getInstance().goToForeground();\n setSpinnerValue();\n }",
"public void setPreviewBitmap(String previewPath)\n {\n if (previewPath != null) {\n // Set the preview image via Glide Library\n Glide.with(ITFImageView.this)\n .load(new File(previewPath)) // Uri of the picture\n .into(ITFImageView.this);\n }\n }",
"public void setPath(String path){\n mPath = path;\n }",
"private void updateVideo() {\n ArrayList<String> movieVideoArrayList = new ArrayList<String>();\n videoRecyclerView = findViewById(R.id.trailer_recycler_view);\n videoRecyclerView.setLayoutManager(new GridLayoutManager(this, 4));\n movieVideoAdapter = new MovieVideoAdapter(movieVideoArrayList, MovieDetailActivity.this);\n videoRecyclerView.setAdapter(movieVideoAdapter);\n }",
"public void setVideourl(String videourl) {\n this.videourl = videourl;\n }",
"@Override\n\tprotected void prepareDatas(Bundle savedInstanceState) {\n\t\tsuper.prepareDatas(savedInstanceState);\n\t\tif (null != mSection) {\n\t\t\tmVideoUrl = SdcardUtil.getSdcardPath() + GlobalConfig.DIR_VIDEO\n\t\t\t\t\t+ GlobalConfig.SEPERATOR + mSection.getUrl();\n\t\t}\n\t\tthis.buildVideoRecord(mVideoUrl);\n\t\tthis.setVideoName();\n\t}",
"private void showOST(int position) {\n\t\tString youtubeUrl = \"\";\n\t\tString youtubeId = \"\";\n\t\tString rtsp_link = \"\";\n\t\t\n\t\t//urlYoutube = ost_links[position];\n\t\t//youtubeUrl = \"http://www.youtube.com/watch?v=MV5qvrxmegY\";\n\t\t//rtsp_link = getUrlVideoRTSP(youtubeUrl);\n\t\t//rtsp_link = \"rtsp://r1---sn-a5m7zu7e.c.youtube.com/CiILENy73wIaGQkGema8vmpeMRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp\";\n\t\t//rtsp_link = \"https://archive.org/download/Pbtestfilemp4videotestmp4/video_test_512kb.mp4\";\n\t\t//rtsp_link = \"rtsp://r3---sn-a5m7zu7d.c.youtube.com/CiILENy73wIaGQn061BlwOVsxRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp\";\n\t\trtsp_link = ost_links[position];\t\t\n\t\tVideoView videoView = (VideoView) this.findViewById(R.id.videoView1);\n\t\tLog.v(\"Video\", \"***Video to Play:: \" + rtsp_link);\n\t\t\n\t\t// add controls to a MediaPlayer like play, pause.\n\t\tMediaController mc = new MediaController(this);\n\t\tvideoView.setMediaController(mc);\n\t\n\t\t// Set the path of Video or URI\n\t\tmc.setAnchorView(videoView);\n\t\tUri videoPath = null;\n\t\tvideoPath = Uri.parse(rtsp_link);\n\t\t\n\t\tvideoView.setVideoURI(videoPath);\n\t\tvideoView.requestFocus();\n\t\tvideoView.start();\t\n\t\tmc.show();\n\t}",
"public abstract void SetlocalTemporalFolder(String TemporalPath);",
"@Override\n\tpublic void start(Stage primaryStage)throws Exception\n\t{\n\t\tString path=\"src/java_javafx/javafx_media/Videos/Blank Space - Taylor Swift 1080p.mp4\";\n\t\t//Instantiating Media Class\n\t\tMedia media=new Media(new File(path).toURI().toString());\n\t\t//Instantiating MediaPlayer class\n\t\tMediaPlayer mediaPlayer=new MediaPlayer(media);\n\t\t//Instantiating MediaView class\n\t\tMediaView mediaView=new MediaView(mediaPlayer);\n \t\t//by setting this property to true, the Video will be played\n\t\tmediaPlayer.setAutoPlay(true);\n\t\t//setting group and scene\n\t\tStackPane root=new StackPane();\n\t\troot.getChildren().add(mediaView);\n\t\tScene scene=new Scene(root,1920,1080);\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setTitle(\"Playing Video\");\n\t\tprimaryStage.show();\n\t}",
"private String getVideoApiLink(String id) {\n String videoLink = \"https://api.themoviedb.org/3/movie/\" + id + \"/videos?api_key=8f067240d8717f510b4c79abe9f714b7&language=en-US\";\n return videoLink;\n }"
] |
[
"0.70608056",
"0.64640594",
"0.63433236",
"0.62452656",
"0.60228693",
"0.5968336",
"0.5932293",
"0.59311754",
"0.59138286",
"0.58641195",
"0.58580667",
"0.57629347",
"0.5757891",
"0.57064193",
"0.5641322",
"0.5610523",
"0.5599887",
"0.5589756",
"0.5521407",
"0.5508698",
"0.54765445",
"0.54701567",
"0.540038",
"0.5396339",
"0.5362261",
"0.5346651",
"0.5344102",
"0.5328555",
"0.53022665",
"0.52975196",
"0.5285603",
"0.5283968",
"0.5273123",
"0.52482235",
"0.5235512",
"0.52259946",
"0.5207662",
"0.52031106",
"0.5185817",
"0.5169059",
"0.51678854",
"0.5155237",
"0.5141044",
"0.51322263",
"0.51306844",
"0.51244944",
"0.5105482",
"0.51023746",
"0.5095406",
"0.50814587",
"0.5071061",
"0.5070418",
"0.5066438",
"0.50612074",
"0.5050719",
"0.5046805",
"0.5039396",
"0.50393087",
"0.50258523",
"0.5005261",
"0.5001297",
"0.49875924",
"0.4987368",
"0.49813417",
"0.49810088",
"0.4979021",
"0.49728337",
"0.49702016",
"0.49665633",
"0.49507162",
"0.49454975",
"0.4941263",
"0.4939727",
"0.4933969",
"0.49056613",
"0.4902015",
"0.4891126",
"0.48858494",
"0.48612693",
"0.48597258",
"0.48546234",
"0.4851391",
"0.48413798",
"0.48383194",
"0.48252705",
"0.48209614",
"0.48170626",
"0.48163325",
"0.4816154",
"0.48132458",
"0.48068833",
"0.48020607",
"0.47966403",
"0.47916853",
"0.47904405",
"0.47879156",
"0.47869632",
"0.4784892",
"0.4776292",
"0.47756776"
] |
0.7079469
|
0
|
This method was generated by MyBatis Generator. This method returns the value of the database column account_invoice_refund.id
|
public Integer getId() {
return id;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getRefundId() {\n return refundId;\n }",
"public String getRefundId() {\n return refundId;\n }",
"public void setRefundId(int value) {\n this.refundId = value;\n }",
"@Override\n\tpublic int getRefund(Refund refund) {\n\t\treturn paydao.doRefund(refund);\n\t}",
"Long getInvoiceId();",
"public Integer getRefund() {\n return refund;\n }",
"@Transient\n\tpublic String getRefundPaymentTransactionId()\t{\n\t\tif (mRefundPaymentTransactionId == null) {\n\t\t\tif (mRefundPaymentTransactionIdLong > 0) {\n\t\t\t\tmRefundPaymentTransactionId = Long.toString(mRefundPaymentTransactionIdLong);\n\t\t\t}\n\t\t}\n\t\treturn mRefundPaymentTransactionId;\n\t}",
"TRefundOrder selectByPrimaryKey(String refundorderid);",
"public Integer getRefundMoney() {\n return refundMoney;\n }",
"@Transient\n\tpublic long getRefundPaymentTransactionIdLong() {\n\t\tif (mRefundPaymentTransactionIdLong == -1) {\n\t\t\tif (mRefundPaymentTransactionId != null) {\n\t\t\t\ttry {\n\t\t\t\t\tmRefundPaymentTransactionIdLong = Long.parseLong(mRefundPaymentTransactionId);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException ne) {\n\t\t\t\t\t// nothing\n\t\t\t\t\tmRefundPaymentTransactionIdLong = -2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mRefundPaymentTransactionIdLong;\n\t}",
"@ApiModelProperty(value = \"A Square-issued ID associated with the refund. For single-tender refunds, payment_id is the ID of the original payment ID. For split-tender refunds, payment_id is the ID of the original tender. For exchange-based refunds (is_exchange == true), payment_id is the ID of the original payment ID even if the payment includes other tenders.\")\n public String getPaymentId() {\n return paymentId;\n }",
"public int getC_Invoice_ID();",
"public void setRefund(Integer refund) {\n this.refund = refund;\n }",
"public int getRefundQuantity() {\n return refundQuantity;\n }",
"public Guid getInvoiceRecipientId() {\r\n return invoiceRecipientId;\r\n }",
"public int getInvoiceID(){\n return invoiceID;\n }",
"com.dogecoin.protocols.payments.Protos.Output getRefundTo(int index);",
"@Override\r\n\tpublic Refund getRefund(int refundNo) throws Exception {\n\t\treturn null;\r\n\t}",
"@RequestMapping(value = \"/customer_refund/delete/{customer_refund_id}\",\n method = RequestMethod.DELETE, produces = \"application/json;charset=UTF-8\")\n public ResponseEntity<String> deleteCustomerRefund(@PathVariable int customer_refund_id) {\n try {\n int affectedRow = refundRepositoryImpl.deleteCustomerRefund(customer_refund_id);\n\n if (affectedRow == Integer.MIN_VALUE) {\n // Didn't find this event by event_id\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Organizer refund not found\\\"}\",\n HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\n \"{\\\"message\\\" : \\\"Organizer refund successfully deleted\\\"}\", HttpStatus.OK);\n }\n } catch (Exception e) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Unknown error\\\"}\",\n HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }",
"int deleteByPrimaryKey(String refundorderid);",
"public void setRefundMoney(Integer refundMoney) {\n this.refundMoney = refundMoney;\n }",
"public int getC_BankAccount_ID();",
"@Override\n\tpublic WxAddress queryOrderRefundAddress(Integer refundId) {\n\t\treturn orderMapper.queryOrderRefundAddress(refundId);\n\t}",
"@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Output getRefundTo(int index) {\n return instance.getRefundTo(index);\n }",
"public Integer getInvoiceDetailId() {\r\n return this.invoiceDetailId;\r\n }",
"public int getUlIdInvoInvoice()\r\n {\r\n return this._ulIdInvoInvoice;\r\n }",
"@Override\n\tpublic ResultBO<?> refund(RefundParamVO refundParam) {\n\t\treturn super.refund(refundParam);\n\t}",
"public void setRefundId(String refundId) {\n this.refundId = refundId == null ? null : refundId.trim();\n }",
"@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Output getRefundTo(int index) {\n return refundTo_.get(index);\n }",
"public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}",
"@Override\n\tpublic int updateRefundStatus(long transactionid) {\n\t\treturn paydao.modifyRefundStatus(transactionid);\n\t}",
"public int getAgentID(int agent_id) {\n int id = 0;\n try {\n checkAgentID.setInt(1, agent_id);\n ResultSet resultset = checkAgentID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"agent_id\");\n System.out.println(\"Agent ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"agent ID Invalid! No Agent Exists With That ID.\"); \n }\n return id;\n }",
"FinanceAccount selectByPrimaryKey(Integer id);",
"String getReceiptId();",
"public Integer getSubBankId() {\r\n return subBankId;\r\n }",
"private int getC_BankStatementLine_ID() {\n String sql = \"SELECT C_BankStatementLine_ID FROM C_BankStatementLine WHERE C_Payment_ID=?\";\n int id = DB.getSQLValue(get_TrxName(), sql, getC_Payment_ID());\n if (id < 0) {\n return 0;\n }\n return id;\n }",
"public int getOverdueBill() {\n int customer_id = 0;\n try {\n ResultSet resultset = overdueBills.executeQuery();\n while (resultset.next()) {\n customer_id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + customer_id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Try Again!\");\n }\n return customer_id;\n }",
"public int getLBR_NotaFiscal_ID();",
"public Integer getId() {\n\t\treturn loanId; //changed LoAn_Id to loanId\r\n\t}",
"private Integer obtainWarehouseId(Invoice invoice) {\r\n\t\ttry {\r\n\t\t\tIManagerBean invoiceDetailBean = BeanManager.getManagerBean(InvoiceDetail.class);\r\n\t\t\tCriteria criteria = new Criteria();\r\n\t\t\tcriteria.addEqualExpression(invoiceDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_INVOICE_ID), invoice.getId());\r\n\t\t\tcriteria.addEqualExpression(invoiceDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_SOURCE), InvoiceSource.DIRECT_PURCHASE);\r\n\t\t\tIterator iter = invoiceDetailBean.getList(criteria, 0, 1).iterator();\r\n\t\t\tIncomeDetail incomeDetail = null;\r\n\t\t\tif(iter.hasNext()){\r\n\t\t\t\tInvoiceDetail invoiceDetail = (InvoiceDetail)iter.next();\r\n\t\t\t\tincomeDetail = obtainIncomeDetail(invoiceDetail.getDeliveryDetail());\r\n\t\t\t}else{\r\n\t\t\t\tcriteria = new Criteria();\r\n\t\t\t\tcriteria.addEqualExpression(invoiceDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_INVOICE_ID), invoice.getId());\r\n\t\t\t\titer = invoiceDetailBean.getList(criteria, 0, 1).iterator();\r\n\t\t\t\tif(iter.hasNext()){\r\n\t\t\t\t\tInvoiceDetail invoiceDetail = (InvoiceDetail)iter.next();\r\n\t\t\t\t\tincomeDetail = obtainIncomeDetail(invoiceDetail.getDeliveryDetail());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(incomeDetail != null){\r\n\t\t\t\treturn incomeDetail.getWarehouse().getId();\r\n\t\t\t}\r\n\t\t} catch (ManagerBeanException e) {\r\n\t\t\tLOGGER.log(Level.SEVERE, \"Error obtaining warehouse for invoice with id= \" + invoice.getId(), e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Long getBusinessBankAccountId() {\n return businessBankAccountId;\n }",
"public Integer getRefundState() {\n return refundState;\n }",
"public int getC_Payment_ID();",
"public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }",
"BusinessRepayment selectByPrimaryKey(String id);",
"int updateByPrimaryKey(TRefundOrder record);",
"public int getLBR_InterestCharge_ID();",
"public Integer getId() {\n return (Integer) get(\"id\");\n }",
"Object getPrimaryKeyIDForForeignKeyID(Object foreignKeyID) throws Exception;",
"public int getLBR_ICMSST_TaxUFDue_ID();",
"public int getLBR_BankAccount_Carteira_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_LBR_BankAccount_Carteira_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}",
"public void setRefundQuantity(int value) {\n this.refundQuantity = value;\n }",
"public int getC_BankAccount_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BankAccount_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public BigDecimal getIdUnidadContratacion() {\r\n return idUnidadContratacion;\r\n }",
"public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }",
"InvoiceDTO fetchByID(int id);",
"public Invoice findById(long id);",
"@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }",
"io.dstore.values.IntegerValue getCampaignId();",
"io.dstore.values.IntegerValue getCampaignId();",
"@Override\n\tpublic int deleteFromLicenseOrderRefundByPrimaryKey(Integer id) {\n\t\treturn licenseOrderRefundMapper.deleteByPrimaryKey(id);\n\t}",
"public Integer getRentId() {\n return rentId;\n }",
"java.lang.String getCouponId();",
"public long getBankId() {\n return bankId;\n }",
"public int getPendingClaim() {\n int customer_id = 0;\n try {\n ResultSet resultset = pendingClaims.executeQuery();\n while (resultset.next()) {\n customer_id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + customer_id + \"\\n\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Try Again!\");\n }\n return customer_id;\n }",
"public String getRefundReason() {\n return refundReason;\n }",
"@Override\n public Class<RefundRecord> getRecordType() {\n return RefundRecord.class;\n }",
"@Override\n\tpublic void refundPoint(String id, int balance) throws Exception {\n\t\t\n\t}",
"@RequestMapping(value =\"/refund_order\", method = RequestMethod.GET)\n public String refundOrder(ModelMap model, @RequestParam(\"id\") String orderId, RedirectAttributes redirectAttributes){\n logger.info(\"*** OrderController - refundOrder ***\");\n Order order = orderService.getOrder(orderId);\n boolean isRefunded = orderService.processRefund(order);\n if(isRefunded) {\n redirectAttributes.addFlashAttribute(\"message\", \"Refund initiated successfully\");\n return \"redirect:/order_status\";\n }\n\n redirectAttributes.addFlashAttribute(\"message\", \"Order cannot be refunded !!\");\n return \"redirect:/order_status\";\n }",
"public Integer getIdNotaFiscal() {\n return idNotaFiscal;\n }",
"public int getJP_BankDataLine_ID();",
"java.util.List<com.dogecoin.protocols.payments.Protos.Output> \n getRefundToList();",
"@Override\r\n\tpublic int obtenerIdUbicacionDeposito(UbicacionDeposito ubicacionDeposito) {\n\t\treturn 0;\r\n\t}",
"public Integer getRecId() {\n return recId;\n }",
"@Schema(example = \"abcdzr8hnVWTgXXcFRLUMc\", description = \"Unique token identifying this refund.\")\n public String getRefundToken() {\n return refundToken;\n }",
"public Integer getRecapitoId() {\n\t\treturn this.recapitoId;\n\t}",
"@Override\r\n\tpublic Map<String, Object> listRefund(int refundNo) throws Exception {\n\t\treturn null;\r\n\t}",
"int getRefundToCount();",
"public BigDecimal getRefundPrice() {\n return refundPrice;\n }",
"public final int getId() {\n\t\treturn this.accessor.getId();\n\t}",
"public Integer getPurchaseId() {\r\n return purchaseId;\r\n }",
"public String getFinanceId() {\n\t\treturn financeId;\n\t}",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"public int getJP_BankData_ID();",
"public Integer getId() {\r\n return this.id;\r\n }",
"public Integer getId()\n\t{\n\t\treturn this.id; \n\t}",
"public Integer getId()\r\n/* */ {\r\n/* 114 */ return this.id;\r\n/* */ }",
"public Integer getId() {\n\t\treturn this.id;\n\t}",
"@RequestMapping(value = \"/customer_refund/update\", method = RequestMethod.PUT,\n produces = \"application/json;charset=UTF-8\")\n public ResponseEntity<String> updateCustomerRefund(\n @RequestBody(required = true) COrderRefundTable customerRefund) {\n try {\n int affectedRow = refundRepositoryImpl.updateCustomerRefund(customerRefund);\n\n if (affectedRow == 0) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Organizer refund not updated\\\"}\",\n HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\n \"{\\\"message\\\" : \\\"Organizer refund successfully updated\\\"}\", HttpStatus.OK);\n }\n } catch (DataIntegrityViolationException di) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Invalid input, lack of data\\\"}\",\n HttpStatus.BAD_REQUEST);\n } catch (Exception e) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Unknown error\\\"}\",\n HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }",
"public Integer getLedgerUid() {\n return ledgerUid;\n }",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"bmRmCodeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}",
"private int ricavaID(String itemSelected){\n String ogg = ricavaNome(itemSelected);\n String schema = ricavaSchema(itemSelected);\n int id = -1;\n \n Statement stmt; \n ResultSet rst;\n \n try{\n stmt = Database.getDefaultConnection().createStatement();\n \n if(modalita == TRIGGER)\n rst = stmt.executeQuery(\"SELECT T.id_trigger FROM trigger1 T WHERE T.nomeTrigger = '\" + ogg + \"' AND T.schema = '\" + schema + \"'\");\n else\n rst = stmt.executeQuery(\"SELECT P.ID_procedura FROM Procedura P WHERE P.nomeProcedura = '\" + ogg + \"' AND P.schema = '\" + schema + \"'\");\n \n while(rst.next()){\n id = rst.getInt(1);\n }\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n \n return id;\n }",
"public Integer getId() {\n return this.id;\n }",
"public Integer getId() {\n return this.id;\n }",
"Reimbursement getReimbursementByID(int id);",
"public Integer getId() {\n return this.id;\n }",
"public Integer getId() {\n return this.id;\n }",
"public Integer getId() {\n return this.id;\n }",
"public Integer getId() {\n return this.id;\n }",
"public int obtId() {\r\n\t\treturn id;\r\n\t}"
] |
[
"0.71255505",
"0.69291437",
"0.6533899",
"0.6517231",
"0.62249696",
"0.62158805",
"0.6020841",
"0.5954972",
"0.5936418",
"0.577991",
"0.57740706",
"0.5772013",
"0.57057476",
"0.56812274",
"0.5571045",
"0.55661064",
"0.55484396",
"0.55004555",
"0.54623264",
"0.54585487",
"0.5421847",
"0.53698516",
"0.5362367",
"0.5354755",
"0.53313935",
"0.5298432",
"0.5271803",
"0.52587026",
"0.52169484",
"0.52050006",
"0.51747096",
"0.5162868",
"0.51597244",
"0.51580876",
"0.5151423",
"0.5135392",
"0.5130869",
"0.5121313",
"0.5100459",
"0.50900257",
"0.5088681",
"0.50878066",
"0.5087445",
"0.50829595",
"0.5064026",
"0.50574857",
"0.50496393",
"0.5010909",
"0.5009622",
"0.49983937",
"0.49942723",
"0.49942607",
"0.49921224",
"0.49917892",
"0.49822792",
"0.49734622",
"0.49694413",
"0.49661338",
"0.49653965",
"0.49567956",
"0.49567956",
"0.49535444",
"0.494916",
"0.49439228",
"0.49430063",
"0.4932178",
"0.49305668",
"0.49009416",
"0.4898026",
"0.48928073",
"0.4892771",
"0.4892459",
"0.48901233",
"0.48886237",
"0.48884237",
"0.48797476",
"0.48754698",
"0.48714978",
"0.4868622",
"0.48542663",
"0.48481238",
"0.48465028",
"0.4845562",
"0.48435986",
"0.48422924",
"0.48418444",
"0.48367283",
"0.48365042",
"0.48313746",
"0.4830616",
"0.48305872",
"0.48288548",
"0.48262092",
"0.4818753",
"0.4818753",
"0.48185125",
"0.48147744",
"0.48147744",
"0.48147744",
"0.48147744",
"0.48128885"
] |
0.0
|
-1
|
This method was generated by MyBatis Generator. This method sets the value of the database column account_invoice_refund.id
|
public void setId(Integer id) {
this.id = id;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRefundId(int value) {\n this.refundId = value;\n }",
"public void setRefund(Integer refund) {\n this.refund = refund;\n }",
"public int getRefundId() {\n return refundId;\n }",
"public String getRefundId() {\n return refundId;\n }",
"public void setRefundId(String refundId) {\n this.refundId = refundId == null ? null : refundId.trim();\n }",
"public void setRefundMoney(Integer refundMoney) {\n this.refundMoney = refundMoney;\n }",
"public void setRefundQuantity(int value) {\n this.refundQuantity = value;\n }",
"@Override\r\n\tpublic void updateRefund(Refund refund) throws Exception {\n\t\t\r\n\t}",
"int updateByPrimaryKey(TRefundOrder record);",
"void setInvoiceId(Long invoiceId);",
"public void setC_Invoice_ID (int C_Invoice_ID);",
"public void setIdUnidadContratacion(BigDecimal idUnidadContratacion) {\r\n this.idUnidadContratacion = idUnidadContratacion;\r\n }",
"@Override\r\n public void refund() {\r\n vend.setCurrState(\"Refunding\");\r\n vend.refund();\r\n\r\n }",
"@Override\n\tpublic void refundPoint(String id, int balance) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic int updateRefundStatus(long transactionid) {\n\t\treturn paydao.modifyRefundStatus(transactionid);\n\t}",
"public Integer getRefund() {\n return refund;\n }",
"int updateByPrimaryKeySelective(TRefundOrder record);",
"TRefundOrder selectByPrimaryKey(String refundorderid);",
"@Override\n\tpublic int getRefund(Refund refund) {\n\t\treturn paydao.doRefund(refund);\n\t}",
"public void setRefundPrice(BigDecimal refundPrice) {\n this.refundPrice = refundPrice;\n }",
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"Long getInvoiceId();",
"@Override\n\tpublic ResultBO<?> refund(RefundParamVO refundParam) {\n\t\treturn super.refund(refundParam);\n\t}",
"@Override\n\tpublic WxAddress queryOrderRefundAddress(Integer refundId) {\n\t\treturn orderMapper.queryOrderRefundAddress(refundId);\n\t}",
"public void setRefundState(Integer refundState) {\n this.refundState = refundState;\n }",
"@RequestMapping(value = \"/customer_refund/update\", method = RequestMethod.PUT,\n produces = \"application/json;charset=UTF-8\")\n public ResponseEntity<String> updateCustomerRefund(\n @RequestBody(required = true) COrderRefundTable customerRefund) {\n try {\n int affectedRow = refundRepositoryImpl.updateCustomerRefund(customerRefund);\n\n if (affectedRow == 0) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Organizer refund not updated\\\"}\",\n HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\n \"{\\\"message\\\" : \\\"Organizer refund successfully updated\\\"}\", HttpStatus.OK);\n }\n } catch (DataIntegrityViolationException di) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Invalid input, lack of data\\\"}\",\n HttpStatus.BAD_REQUEST);\n } catch (Exception e) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Unknown error\\\"}\",\n HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }",
"private void setRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n value.getClass();\n ensureRefundToIsMutable();\n refundTo_.set(index, value);\n }",
"@ApiModelProperty(value = \"A Square-issued ID associated with the refund. For single-tender refunds, payment_id is the ID of the original payment ID. For split-tender refunds, payment_id is the ID of the original tender. For exchange-based refunds (is_exchange == true), payment_id is the ID of the original payment ID even if the payment includes other tenders.\")\n public String getPaymentId() {\n return paymentId;\n }",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public static void setInvoiceData (final InvoiceData id)\n {\n invoiceData = id;\n }",
"public Integer getRefundMoney() {\n return refundMoney;\n }",
"public void setUlIdInvoInvoice(int ulIdInvoInvoice)\r\n {\r\n this._ulIdInvoInvoice = ulIdInvoInvoice;\r\n this._has_ulIdInvoInvoice = true;\r\n }",
"public void setIdubicacionfiscal(int idubicacionfiscal)\r\n\t{\r\n\t\tthis.idubicacionfiscal = idubicacionfiscal;\r\n\t}",
"public void setIdCandidatura(int idCandidatura){\n if (idCandidatura < 0 ) {\n throw new IdInvalidoException(\"Id da Candidatura é inválido!\");\n }\n this.idCandidatura = idCandidatura;\n }",
"public int getInvoiceID(){\n return invoiceID;\n }",
"@Override\r\n\tpublic void addRefund(Refund refund) throws Exception {\n\t}",
"@Override\n\tpublic int deleteFromLicenseOrderRefundByPrimaryKey(Integer id) {\n\t\treturn licenseOrderRefundMapper.deleteByPrimaryKey(id);\n\t}",
"public int getRefundQuantity() {\n return refundQuantity;\n }",
"@RequestMapping(value = \"/customer_refund/delete/{customer_refund_id}\",\n method = RequestMethod.DELETE, produces = \"application/json;charset=UTF-8\")\n public ResponseEntity<String> deleteCustomerRefund(@PathVariable int customer_refund_id) {\n try {\n int affectedRow = refundRepositoryImpl.deleteCustomerRefund(customer_refund_id);\n\n if (affectedRow == Integer.MIN_VALUE) {\n // Didn't find this event by event_id\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Organizer refund not found\\\"}\",\n HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\n \"{\\\"message\\\" : \\\"Organizer refund successfully deleted\\\"}\", HttpStatus.OK);\n }\n } catch (Exception e) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Unknown error\\\"}\",\n HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }",
"int deleteByPrimaryKey(String refundorderid);",
"public Refund() {\n this(DSL.name(\"refund\"), null);\n }",
"public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }",
"public void setRefundReason(String refundReason) {\n this.refundReason = refundReason;\n }",
"public void setRefundPaymentTransactionId(String refundPaymentTransactionId )\t{\n\t\tmRefundPaymentTransactionId = refundPaymentTransactionId;\n\t}",
"@Override\n\tpublic void insertOrderRefund(WxOrderRefund refund) {\n\t\torderMapper.insertOrderRefund(refund);\n\t}",
"public Guid getInvoiceRecipientId() {\r\n return invoiceRecipientId;\r\n }",
"public void setInvoiceDetailId(Integer invoiceDetailId) {\r\n this.invoiceDetailId = invoiceDetailId;\r\n }",
"public void setIdContrato(BigDecimal idContrato) {\r\n this.idContrato = idContrato;\r\n }",
"@Override\r\n\tpublic Refund getRefund(int refundNo) throws Exception {\n\t\treturn null;\r\n\t}",
"public void setC_Payment_ID (int C_Payment_ID);",
"public Criteria andIsRefundEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"is_refund = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public void setRecapitoId(Integer recapitoId) {\n\t\tthis.recapitoId = recapitoId;\n\t}",
"Uni<BudgetMensuel> chargeBudgetMensuel(String idBudget) ;",
"private void addRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n value.getClass();\n ensureRefundToIsMutable();\n refundTo_.add(index, value);\n }",
"@RequestMapping(value =\"/refund_order\", method = RequestMethod.GET)\n public String refundOrder(ModelMap model, @RequestParam(\"id\") String orderId, RedirectAttributes redirectAttributes){\n logger.info(\"*** OrderController - refundOrder ***\");\n Order order = orderService.getOrder(orderId);\n boolean isRefunded = orderService.processRefund(order);\n if(isRefunded) {\n redirectAttributes.addFlashAttribute(\"message\", \"Refund initiated successfully\");\n return \"redirect:/order_status\";\n }\n\n redirectAttributes.addFlashAttribute(\"message\", \"Order cannot be refunded !!\");\n return \"redirect:/order_status\";\n }",
"@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }",
"public void setFinancialAid(double financialAid) {\r\n this.financialAid = financialAid;\r\n }",
"com.dogecoin.protocols.payments.Protos.Output getRefundTo(int index);",
"public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }",
"public int getC_Invoice_ID();",
"public final void setId_entreprise(final Long id_entreprise) {\n this.id_entreprise = id_entreprise;\n }",
"public void setCreditid(Integer creditid) {\n this.creditid = creditid;\n }",
"@ApiModelProperty(value = \"Override the affiliate id given credit for rebills of this auto order\")\r\n public Integer getOverrideAffiliateId() {\r\n return overrideAffiliateId;\r\n }",
"public void setId(BigDecimal id) {\n\t\tthis.id = id;\n\t}",
"public void refund(HashMap<String, String> params) {\n\t\tTRANSACTION_TYPE = \"REFUND\";\n\t\tRRNO = params.get(\"transactionID\");\n\t\tAMOUNT = params.get(\"amount\");\n\t\tAPI = \"bp10emu\";\n\t}",
"public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }",
"BrainTreeRefundTransactionResult refundTransaction(BrainTreeRefundTransactionRequest request);",
"public Builder setRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n copyOnWrite();\n instance.setRefundTo(index, value);\n return this;\n }",
"public void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);",
"@Transient\n\tpublic String getRefundPaymentTransactionId()\t{\n\t\tif (mRefundPaymentTransactionId == null) {\n\t\t\tif (mRefundPaymentTransactionIdLong > 0) {\n\t\t\t\tmRefundPaymentTransactionId = Long.toString(mRefundPaymentTransactionIdLong);\n\t\t\t}\n\t\t}\n\t\treturn mRefundPaymentTransactionId;\n\t}",
"public Integer getInvoiceDetailId() {\r\n return this.invoiceDetailId;\r\n }",
"public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }",
"int updateByPrimaryKey(FinanceAccount record);",
"public void setLBR_BankAccount_Carteira_ID (int LBR_BankAccount_Carteira_ID)\n\t{\n\t\tif (LBR_BankAccount_Carteira_ID < 1) \n\t\t\tset_ValueNoCheck (COLUMNNAME_LBR_BankAccount_Carteira_ID, null);\n\t\telse \n\t\t\tset_ValueNoCheck (COLUMNNAME_LBR_BankAccount_Carteira_ID, Integer.valueOf(LBR_BankAccount_Carteira_ID));\n\t}",
"public void setId(int id)\r\n {\r\n this.mId = id;\r\n }",
"public void requestRefund(RefundDTO refund, AsyncResponse response){\n\n Message message = new Message();\n message.setEvent(\"getRefund\");\n message.setService(\"payment_service\");\n message.setPayload(refund);\n message.setCallback(new Callback(\"customer_service\", \"requestRefundResponse\"));\n\n UUID requestId = responseHandler.saveRestResponseObject(response);\n message.setRequestId(requestId);\n\n this.sendMessage(message);\n }",
"public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }",
"@Override\n\tpublic int changeToProcessStatus(String payRefundNo) {\n\t\treturn payTradeRefundRecordMapper.updateToProcessStatus(payRefundNo);\n\t}",
"public void setInvoice(rules.engine.example.SalaryInvoice _invoice)\n {\n invoice = _invoice;\n }",
"@Override\n public void definirId(Endereco objeto, int id) {\n objeto.setId(id);\n }",
"public void setId(Integer id){\n\t\tthis.id = id;\n\t}",
"public Builder clearRefundTo() {\n copyOnWrite();\n instance.clearRefundTo();\n return this;\n }",
"public void setId( Long id ) {\n this.id = id ;\n }",
"public int getUlIdInvoInvoice()\r\n {\r\n return this._ulIdInvoInvoice;\r\n }",
"FinanceAccount selectByPrimaryKey(Integer id);",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public void setInvoiceNumber(int invoicenum) {\n invoiceNumber = invoicenum;\n }",
"public void setPropertyBuyerId(int propertyBuyerId) {\n\t\tthis.propertyBuyerId = propertyBuyerId;\n\t}",
"public void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);",
"public void setBankAccountDetails(int C_BankAccount_ID) {\n if (C_BankAccount_ID == 0) {\n return;\n }\n setC_BankAccount_ID(C_BankAccount_ID);\n //\n String sql = \"SELECT b.RoutingNo, ba.AccountNo \"\n + \"FROM C_BankAccount ba\"\n + \" INNER JOIN C_Bank b ON (ba.C_Bank_ID=b.C_Bank_ID) \"\n + \"WHERE C_BankAccount_ID=?\";\n try {\n PreparedStatement pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, C_BankAccount_ID);\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n setRoutingNo(rs.getString(1));\n setAccountNo(rs.getString(2));\n }\n rs.close();\n pstmt.close();\n } catch (SQLException e) {\n log.log(Level.SEVERE, \"setsetBankAccountDetails\", e);\n }\n }",
"public void setId_rango(java.lang.Integer newId_rango);",
"public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }",
"private void setId(Integer id) { this.id = id; }",
"public void setId( Integer id )\n {\n this.id = id ;\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }"
] |
[
"0.7551222",
"0.6736276",
"0.6546896",
"0.64253557",
"0.63648146",
"0.6295072",
"0.60965765",
"0.5781846",
"0.57684916",
"0.57563967",
"0.57420826",
"0.5690977",
"0.56011033",
"0.55803293",
"0.5560433",
"0.5479326",
"0.546487",
"0.54585415",
"0.54451513",
"0.5443728",
"0.5440882",
"0.5439009",
"0.54273164",
"0.5395804",
"0.5328841",
"0.53254926",
"0.531505",
"0.5295148",
"0.52898747",
"0.5281058",
"0.5261465",
"0.52462536",
"0.5236836",
"0.51934844",
"0.5178983",
"0.5169326",
"0.5142002",
"0.51111907",
"0.51108974",
"0.5107026",
"0.50924444",
"0.5010784",
"0.5008173",
"0.50078565",
"0.49501106",
"0.49461117",
"0.4926431",
"0.49186727",
"0.49176115",
"0.48773274",
"0.48469502",
"0.4828949",
"0.48210397",
"0.47903734",
"0.4770578",
"0.47629339",
"0.4747833",
"0.47430375",
"0.4740194",
"0.47384155",
"0.4736234",
"0.47324532",
"0.4730433",
"0.47132432",
"0.4707093",
"0.47048917",
"0.4701614",
"0.46972844",
"0.4692597",
"0.46862596",
"0.46638298",
"0.4660061",
"0.4657884",
"0.46539935",
"0.46521845",
"0.4650403",
"0.46397462",
"0.4635722",
"0.46323657",
"0.46322963",
"0.46315417",
"0.4624853",
"0.46241537",
"0.4622069",
"0.46123955",
"0.46118528",
"0.46111694",
"0.4610298",
"0.46079922",
"0.46047005",
"0.45971078",
"0.45939308",
"0.45857355",
"0.45851877",
"0.45849985",
"0.45849985",
"0.45849985",
"0.45849985",
"0.45849985",
"0.45849985",
"0.45849985"
] |
0.0
|
-1
|
This method was generated by MyBatis Generator. This method returns the value of the database column account_invoice_refund.create_uid
|
public Integer getCreateUid() {
return createUid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"long getUID() throws UidGenerateException;",
"public Integer getCreateUserId() {\n return createUserId;\n }",
"public String getCreateUserId() {\r\n return createUserId;\r\n }",
"public Long getCreateUserid() {\r\n\t\treturn createUserid;\r\n\t}",
"long getToUid();",
"public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }",
"public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }",
"public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }",
"public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }",
"public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }",
"public Integer getCreateUserid() {\n return createUserid;\n }",
"long getUid();",
"long getUid();",
"java.lang.String getToUid();",
"public OidDt getUid() { \n\t\tif (myUid == null) {\n\t\t\tmyUid = new OidDt();\n\t\t}\n\t\treturn myUid;\n\t}",
"public OidDt getUid() { \n\t\tif (myUid == null) {\n\t\t\tmyUid = new OidDt();\n\t\t}\n\t\treturn myUid;\n\t}",
"public OidDt getUid() { \n\t\tif (myUid == null) {\n\t\t\tmyUid = new OidDt();\n\t\t}\n\t\treturn myUid;\n\t}",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public int getUid() {\n return uid;\n }",
"java.lang.String getUid();",
"java.lang.String getUid();",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"int getUid();",
"int getUid();",
"public Long getUid() {\r\n return uid;\r\n }",
"String getUid();",
"int getUid() {\n return uid;\n }",
"public Long getUid() {\n return uid;\n }",
"public Long getUid() {\n return uid;\n }",
"public Long getUid() {\n return uid;\n }",
"public BigDecimal getFcreateuserid() {\n return fcreateuserid;\n }",
"public int getUID() {\n return uid;\n }",
"public int getUid() {\n return uid_;\n }",
"public int getUid() {\n return uid_;\n }",
"public ID getUid() {\n return (ID) get(\"uid\");\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Long getCreateId() {\n\t\treturn createId;\n\t}",
"public Integer getCreatedUserId() {\n return (Integer) get(4);\n }",
"@Override\n public long getUid() {\n return uid;\n }",
"public int getUid() {\n return uid_;\n }",
"public int getUid() {\n return uid_;\n }",
"public Long getUid() {\n\t\treturn uid;\n\t}",
"java.lang.String getRegistId();",
"@Override\r\n\tpublic String getUid() {\n\t\treturn uid;\r\n\t}",
"public Integer getCreatedUserId() {\n return this.createdUserId;\n }",
"public Integer getCreatedUserId() {\n return this.createdUserId;\n }",
"public Integer getCreateUser() {\n return createUser;\n }",
"public Integer getCreateUser() {\n return createUser;\n }",
"public long getUid() {\n return uid_;\n }",
"@Override\n public String getUid() {\n return uid;\n }",
"long getUID();",
"public int getRefundId() {\n return refundId;\n }",
"public int getUID() {\n return 0;\n }",
"public Integer getCreateuser() {\n return createuser;\n }",
"public String getCreateFid() {\n return createFid;\n }",
"public Long getUserCreate() {\n return userCreate;\n }",
"public long getUid() {\n return uid_;\n }",
"public Integer getLedgerUid() {\n return ledgerUid;\n }",
"@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}",
"public void getUID(int seqid, String prefix, String uid);",
"public int getUid() {\n\t\treturn this.uid;\n\t}",
"public String getUid() {\n return uid;\n }",
"public String getUid() {\n return uid;\n }",
"public String getUid() {\n return uid;\n }",
"public String getCreateId() {\n\t\treturn createId;\n\t}",
"public String getCreateId() {\n\t\treturn createId;\n\t}",
"private String generateUID()\n {\n String uid;\n int nbAccounts = this.getNumberOfAccounts();\n String host = this.registration.getHost();\n int nbAccountsForHost = this.getNbAccountForHost(host);\n \n if (nbAccounts == 0 || (this.isModification() && nbAccounts == 1) ||\n nbAccountsForHost == 0 || (this.isModification() && nbAccountsForHost == 1))\n {\n // We create the first account or we edit the onlyone\n // Or we create the first account for this server or edit the onlyone\n uid = host;\n }\n else\n {\n uid = host + \":\" + this.registration.getPort();\n }\n \n return uid;\n }",
"public void getOriginalUID(int seqid, String uid);",
"public Long getUid() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}",
"public java.lang.String getCreateuserid () {\n\t\treturn createuserid;\n\t}",
"public static String generateNewUserId() {\r\n\t\tDate date = new Date();\r\n\t\treturn String.format(\"%s-%s\", UUID.randomUUID().toString(),\r\n\t\t\t\tString.valueOf(date.getTime()));\r\n\t}",
"public String getRefundId() {\n return refundId;\n }",
"public String getId(){\n return uid;\n }",
"public String getUid() {\n\t\treturn uid;\n\t}",
"public String getUid() {\n\t\treturn uid;\n\t}"
] |
[
"0.60665315",
"0.60316426",
"0.59534407",
"0.5894279",
"0.5825283",
"0.5821755",
"0.5821755",
"0.5821755",
"0.5821755",
"0.5821755",
"0.577545",
"0.5680765",
"0.5680765",
"0.56583387",
"0.56471235",
"0.56471235",
"0.56471235",
"0.5644171",
"0.5644171",
"0.56267333",
"0.56231374",
"0.56231374",
"0.56044054",
"0.5597105",
"0.5597105",
"0.5597105",
"0.5597105",
"0.5597105",
"0.5597105",
"0.5597105",
"0.55686086",
"0.55686086",
"0.55555725",
"0.5554116",
"0.55460715",
"0.5537725",
"0.5537725",
"0.5537725",
"0.5534628",
"0.5531661",
"0.55174",
"0.55174",
"0.55133885",
"0.5505641",
"0.5505641",
"0.5505641",
"0.5505641",
"0.5505641",
"0.5505641",
"0.5505641",
"0.5505115",
"0.5505115",
"0.5505115",
"0.5505115",
"0.5505115",
"0.5505115",
"0.5503504",
"0.5493151",
"0.5475479",
"0.54552543",
"0.54552543",
"0.54539317",
"0.5446398",
"0.53927183",
"0.5390642",
"0.5390642",
"0.5387149",
"0.5387149",
"0.53857595",
"0.5379757",
"0.5370061",
"0.5355172",
"0.5354124",
"0.534115",
"0.53291345",
"0.5326203",
"0.5324247",
"0.5309132",
"0.53054726",
"0.53024423",
"0.5301023",
"0.52787954",
"0.52787954",
"0.52787954",
"0.52730435",
"0.52730435",
"0.5269201",
"0.52642316",
"0.5253233",
"0.5252942",
"0.5229815",
"0.5219054",
"0.5215818",
"0.5213111",
"0.5198958",
"0.5198958"
] |
0.6688078
|
4
|
This method was generated by MyBatis Generator. This method sets the value of the database column account_invoice_refund.create_uid
|
public void setCreateUid(Integer createUid) {
this.createUid = createUid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public void setCreateUserId(Integer createUserId) {\n this.createUserId = createUserId;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setCreateUserid(Integer createUserid) {\n this.createUserid = createUserid;\n }",
"public void setRefundId(int value) {\n this.refundId = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"@PrePersist\n public void assignUUID() {\n this.uid = UUID.randomUUID();\n }",
"public void setCreateUserId(String createUserId) {\r\n this.createUserId = createUserId;\r\n }",
"public void setCreateUserid(Long createUserid) {\r\n\t\tthis.createUserid = createUserid;\r\n\t}",
"public void setUID(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }",
"public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public Long getCreateUserid() {\r\n\t\treturn createUserid;\r\n\t}",
"public Integer getCreateUserId() {\n return createUserId;\n }",
"public void setLedgerUid(Integer aLedgerUid) {\n ledgerUid = aLedgerUid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public String getCreateUserId() {\r\n return createUserId;\r\n }",
"public void setUid(Long uid) {\r\n this.uid = uid;\r\n }",
"long getUID() throws UidGenerateException;",
"public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }",
"public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }",
"public void setId(String uid){\n this.uid = uid;\n }",
"@Override\n\tpublic void setUid(Integer uid) {\n\t\tthis.ordAmmId = uid;\n\t}",
"public void setUid(Long uid) {\n this.uid = uid;\n }",
"public void setUid(Long uid) {\n this.uid = uid;\n }",
"public void setUid(Long uid) {\n this.uid = uid;\n }",
"public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }",
"public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }",
"public Integer getCreateUserid() {\n return createUserid;\n }",
"@Override\n\tpublic void setUid(UID uid) {\n\t\t\n\t}",
"public void setCreateuser(Integer createuser) {\n this.createuser = createuser;\n }",
"public Builder setUid(long value) {\n \n uid_ = value;\n onChanged();\n return this;\n }",
"public void getOriginalUID(int seqid, String uid);",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public void setRegItemUid(Integer aRegItemUid) {\n regItemUid = aRegItemUid;\n }",
"public int getUid() {\n return uid;\n }",
"public void getUID(int seqid, String prefix, String uid);",
"public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }",
"public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }",
"public void setRefund(Integer refund) {\n this.refund = refund;\n }",
"public void setUid(String uid) {\n this.uid = uid;\n }",
"public void setUid(String uid) {\n this.uid = uid;\n }",
"public void setCreatedUserId(Integer value) {\n set(4, value);\n }",
"public void setRefundQuantity(int value) {\n this.refundQuantity = value;\n }",
"public void setCreateFid(String createFid) {\n this.createFid = createFid == null ? null : createFid.trim();\n }",
"int insertGenDetail(Integer uid, Integer merid, Double paymoney, Double sendmoney, Double tomoney, Double balance, Double topupbalance, Double givebalance, String ordernum, Date createTime, Integer paysource, String remark);",
"public void setFcreateuserid(BigDecimal fcreateuserid) {\n this.fcreateuserid = fcreateuserid;\n }",
"public int getRefundId() {\n return refundId;\n }",
"public void setCreateId(Long createId) {\n\t\tsetField(\"createId\", createId);\n\t}",
"@Override\n public long getUid() {\n return uid;\n }",
"public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}",
"public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }",
"public int getUid() {\n return uid;\n }",
"int getUid() {\n return uid;\n }",
"public void setU_ID( Integer U_ID )\n {\n this.U_ID = U_ID ;\n }",
"public void setUidPk(final long uidPk) {\n\t\tthis.uidPk = uidPk;\n\t}",
"public void setUidPk(final long uidPk) {\n\t\tthis.uidPk = uidPk;\n\t}",
"public Long getUid() {\r\n return uid;\r\n }",
"public void setUidTrabalha(String uidTrabalha) {\n\t\tthis.uidTrabalha = uidTrabalha;\n\t}",
"public int getUID() {\n return uid;\n }",
"public void setRegItemDetUid(Integer aRegItemDetUid) {\n regItemDetUid = aRegItemDetUid;\n }",
"public void setAppTransRegFeeUid(Integer aAppTransRegFeeUid) {\n appTransRegFeeUid = aAppTransRegFeeUid;\n }",
"public void setUserCreate(Long userCreate) {\n this.userCreate = userCreate;\n }",
"public String getRefundId() {\n return refundId;\n }"
] |
[
"0.5826079",
"0.5826079",
"0.5826079",
"0.5826079",
"0.5826079",
"0.5690098",
"0.5626223",
"0.56044495",
"0.5602375",
"0.5591687",
"0.5591687",
"0.5591687",
"0.5591687",
"0.5591687",
"0.5591687",
"0.5591687",
"0.5507402",
"0.5452825",
"0.5424085",
"0.5384682",
"0.53659093",
"0.5311568",
"0.5311568",
"0.5282071",
"0.5282071",
"0.5282071",
"0.5282071",
"0.5282071",
"0.5282071",
"0.52799463",
"0.526631",
"0.52559143",
"0.5247215",
"0.5247215",
"0.5247215",
"0.5247215",
"0.5247215",
"0.5247215",
"0.5247215",
"0.52195036",
"0.5181015",
"0.5165312",
"0.5159858",
"0.5159858",
"0.5147248",
"0.5139597",
"0.5131141",
"0.5131141",
"0.5131141",
"0.5122896",
"0.5122896",
"0.5110099",
"0.50831354",
"0.50650114",
"0.5052178",
"0.5042707",
"0.50398344",
"0.50398344",
"0.50398344",
"0.50398344",
"0.50398344",
"0.50398344",
"0.50398344",
"0.50035334",
"0.5000885",
"0.49937764",
"0.4989921",
"0.4989921",
"0.49890897",
"0.49878594",
"0.49878594",
"0.4974232",
"0.4961335",
"0.49484837",
"0.49477172",
"0.49469125",
"0.4941331",
"0.4878603",
"0.48751083",
"0.48744768",
"0.48744768",
"0.4872061",
"0.4872061",
"0.48713106",
"0.4865626",
"0.48618582",
"0.48510998",
"0.4843896",
"0.4843896",
"0.48394203",
"0.4829709",
"0.48289028",
"0.48167145",
"0.48144665",
"0.48011026",
"0.47935954"
] |
0.6543285
|
4
|
This method was generated by MyBatis Generator. This method returns the value of the database column account_invoice_refund.write_uid
|
public Integer getWriteUid() {
return writeUid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setWriteUid(Integer writeUid) {\n this.writeUid = writeUid;\n }",
"public void setWriteUid(Integer writeUid) {\n this.writeUid = writeUid;\n }",
"public void setWriteUid(Integer writeUid) {\n this.writeUid = writeUid;\n }",
"public void setWriteUid(Integer writeUid) {\n this.writeUid = writeUid;\n }",
"public void setWriteUid(Integer writeUid) {\n this.writeUid = writeUid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getRefundId() {\n return refundId;\n }",
"public int getUid() {\n return uid;\n }",
"int getUid() {\n return uid;\n }",
"public Long getUid() {\r\n return uid;\r\n }",
"public Long getUid() {\n return uid;\n }",
"public Long getUid() {\n return uid;\n }",
"public Long getUid() {\n return uid;\n }",
"public int getUID() {\n return uid;\n }",
"@Override\n public long getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"@Transient\n\tpublic String getRefundPaymentTransactionId()\t{\n\t\tif (mRefundPaymentTransactionId == null) {\n\t\t\tif (mRefundPaymentTransactionIdLong > 0) {\n\t\t\t\tmRefundPaymentTransactionId = Long.toString(mRefundPaymentTransactionIdLong);\n\t\t\t}\n\t\t}\n\t\treturn mRefundPaymentTransactionId;\n\t}",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public long getWriteId() {\n return writeId;\n }",
"public String getRefundId() {\n return refundId;\n }",
"@Override\n public String getUid() {\n return uid;\n }",
"public ID getUid() {\n return (ID) get(\"uid\");\n }",
"@Override\r\n\tpublic String getUid() {\n\t\treturn uid;\r\n\t}",
"@Override\n\tpublic int getRefund(Refund refund) {\n\t\treturn paydao.doRefund(refund);\n\t}",
"public Long getUid() {\n\t\treturn uid;\n\t}",
"public int getUid() {\n return uid_;\n }",
"public int getUid() {\n return uid_;\n }",
"long getToUid();",
"java.lang.String getUid();",
"java.lang.String getUid();",
"public int getUid() {\n return uid_;\n }",
"public int getUid() {\n return uid_;\n }",
"public int getUid() {\n\t\treturn this.uid;\n\t}",
"long getUid();",
"long getUid();",
"public long getUid() {\n return uid_;\n }",
"public String getId(){\n return uid;\n }",
"public String getUid() {\n return uid;\n }",
"public String getUid() {\n return uid;\n }",
"public String getUid() {\n return uid;\n }",
"public long getUid() {\n return uid_;\n }",
"int getUid();",
"int getUid();",
"public Integer getU_ID()\n {\n return this.U_ID;\n }",
"public int uid() { return uid; }",
"@Transient\n\tpublic long getRefundPaymentTransactionIdLong() {\n\t\tif (mRefundPaymentTransactionIdLong == -1) {\n\t\t\tif (mRefundPaymentTransactionId != null) {\n\t\t\t\ttry {\n\t\t\t\t\tmRefundPaymentTransactionIdLong = Long.parseLong(mRefundPaymentTransactionId);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException ne) {\n\t\t\t\t\t// nothing\n\t\t\t\t\tmRefundPaymentTransactionIdLong = -2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mRefundPaymentTransactionIdLong;\n\t}",
"java.lang.String getToUid();",
"String getUid();",
"public String getUid() {\n\t\treturn uid;\n\t}",
"public String getUid() {\n\t\treturn uid;\n\t}",
"long getUID() throws UidGenerateException;",
"public Integer getRefund() {\n return refund;\n }",
"@Override\n\tpublic Integer getUid() {\n\t\treturn this.ordAmmId;\n\t}",
"public Integer getLedgerUid() {\n return ledgerUid;\n }",
"public java.lang.CharSequence getUid() {\n return uid;\n }",
"public Integer getRefundMoney() {\n return refundMoney;\n }",
"public long getToUid() {\n return toUid_;\n }",
"public java.lang.CharSequence getUid() {\n return uid;\n }",
"public Long getUserId()\n/* */ {\n/* 73 */ return this.userId;\n/* */ }",
"public int getOwnUserId()\n {\n return this.ownUserId;\n }",
"@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Output getRefundTo(int index) {\n return instance.getRefundTo(index);\n }",
"public void getOriginalUID(int seqid, String uid);",
"public Integer getRegItemUid() {\n return regItemUid;\n }",
"protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }",
"public Long getUid() {\n\t\treturn null;\n\t}",
"public long getToUid() {\n return toUid_;\n }",
"@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Output getRefundTo(int index) {\n return refundTo_.get(index);\n }",
"public synchronized static String getRew3UserId() {\n return \"userId\";\n }",
"public Long getDealingUserID()\n/* */ {\n/* 135 */ return this.dealingUserID;\n/* */ }",
"public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }",
"int getTargetSummonUid();",
"public int getUID() {\n return 0;\n }",
"public void getRemappedUID(int seqid, String uid);",
"public int getRefundQuantity() {\n return refundQuantity;\n }",
"public long getBuid() {\r\n return buid;\r\n }",
"long getUID();",
"public Integer getLastUpdUserId() {\n return (Integer) get(6);\n }",
"public Integer getDealUid() {\r\n return dealUid;\r\n }"
] |
[
"0.5951859",
"0.5951859",
"0.5951859",
"0.5951859",
"0.5951859",
"0.5817586",
"0.57610893",
"0.57610893",
"0.57610893",
"0.57610893",
"0.57610893",
"0.57610893",
"0.57610893",
"0.5757677",
"0.5740856",
"0.5730341",
"0.5709046",
"0.5708808",
"0.5708808",
"0.5708808",
"0.5695241",
"0.5690782",
"0.5683515",
"0.5683515",
"0.5683515",
"0.5683515",
"0.5683515",
"0.5683515",
"0.5683515",
"0.56767136",
"0.566957",
"0.566957",
"0.566957",
"0.566957",
"0.566957",
"0.566957",
"0.56616753",
"0.5630119",
"0.56180465",
"0.5606251",
"0.55810094",
"0.5579974",
"0.55769736",
"0.557635",
"0.557635",
"0.556514",
"0.55546486",
"0.55546486",
"0.55102175",
"0.55102175",
"0.54992265",
"0.5494304",
"0.5494304",
"0.5477869",
"0.54674083",
"0.54491967",
"0.54491967",
"0.54491967",
"0.54075664",
"0.5384497",
"0.5384497",
"0.5383428",
"0.537755",
"0.5376923",
"0.5376071",
"0.5373632",
"0.5308876",
"0.5308876",
"0.52917147",
"0.52628404",
"0.52614754",
"0.52407986",
"0.52045065",
"0.52021766",
"0.5169099",
"0.5168674",
"0.5159497",
"0.5159413",
"0.5154544",
"0.5149872",
"0.51403713",
"0.51131",
"0.5099539",
"0.50927186",
"0.5091644",
"0.5078697",
"0.5076068",
"0.5075058",
"0.5059266",
"0.5058964",
"0.5048487",
"0.50359756",
"0.50252295",
"0.5024556",
"0.50202876",
"0.5016527"
] |
0.65993744
|
4
|
This method was generated by MyBatis Generator. This method sets the value of the database column account_invoice_refund.write_uid
|
public void setWriteUid(Integer writeUid) {
this.writeUid = writeUid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Integer getWriteUid() {\n return writeUid;\n }",
"public Integer getWriteUid() {\n return writeUid;\n }",
"public Integer getWriteUid() {\n return writeUid;\n }",
"public Integer getWriteUid() {\n return writeUid;\n }",
"public Integer getWriteUid() {\n return writeUid;\n }",
"public void setRefundId(int value) {\n this.refundId = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"@Override\n\tpublic void setUid(Integer uid) {\n\t\tthis.ordAmmId = uid;\n\t}",
"public void setRefund(Integer refund) {\n this.refund = refund;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"public void setUid(Integer uid) {\n this.uid = uid;\n }",
"@Override\n\tpublic void setUid(UID uid) {\n\t\t\n\t}",
"private void setRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n value.getClass();\n ensureRefundToIsMutable();\n refundTo_.set(index, value);\n }",
"public void setUid(Long uid) {\r\n this.uid = uid;\r\n }",
"public void setUid(Long uid) {\n this.uid = uid;\n }",
"public void setUid(Long uid) {\n this.uid = uid;\n }",
"public void setUid(Long uid) {\n this.uid = uid;\n }",
"public void setUID(int value) {\n this.uid = value;\n }",
"public void setId(String uid){\n this.uid = uid;\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public void setRefundQuantity(int value) {\n this.refundQuantity = value;\n }",
"public int getRefundId() {\n return refundId;\n }",
"int updateByPrimaryKey(TRefundOrder record);",
"public void setRefundMoney(Integer refundMoney) {\n this.refundMoney = refundMoney;\n }",
"@Override\n\tpublic void setUid(Integer uid) {\n\t\tthis.elemId = uid;\n\t}",
"public void setUid(String uid) {\n this.uid = uid;\n }",
"public void setUid(String uid) {\n this.uid = uid;\n }",
"@Override\r\n\tpublic void updateRefund(Refund refund) throws Exception {\n\t\t\r\n\t}",
"public String getRefundId() {\n return refundId;\n }",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public void setUid(String uid) {\n\t\tthis.uid = uid == null ? null : uid.trim();\n\t}",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public int getUid() {\n return uid;\n }",
"public long getWriteId() {\n return writeId;\n }",
"public void setLedgerUid(Integer aLedgerUid) {\n ledgerUid = aLedgerUid;\n }",
"@Override\n public long getUid() {\n return uid;\n }",
"public void setRegItemUid(Integer aRegItemUid) {\n regItemUid = aRegItemUid;\n }",
"public void setC_Invoice_ID (int C_Invoice_ID);",
"int updateByPrimaryKeySelective(TRefundOrder record);",
"public void setDealingUserID(Long dealingUserID)\n/* */ {\n/* 147 */ this.dealingUserID = dealingUserID;\n/* */ }",
"public void setU_ID( Integer U_ID )\n {\n this.U_ID = U_ID ;\n }",
"int getUid() {\n return uid;\n }",
"@Override\n public String getUid() {\n return uid;\n }",
"public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}",
"@Override\r\n\tpublic void saveRole(Integer uid) {\n\t\tum.saveRole(uid);\r\n\t}",
"public int getUid() {\n return uid;\n }",
"public Long getUid() {\r\n return uid;\r\n }",
"public int getUID() {\n return uid;\n }",
"public void getOriginalUID(int seqid, String uid);",
"public void getRemappedUID(int seqid, String uid);",
"public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }",
"public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic int updateRefundStatus(long transactionid) {\n\t\treturn paydao.modifyRefundStatus(transactionid);\n\t}",
"public Long getUid() {\n return uid;\n }",
"public Long getUid() {\n return uid;\n }",
"public Long getUid() {\n return uid;\n }",
"@Override\r\n public void refund() {\r\n vend.setCurrState(\"Refunding\");\r\n vend.refund();\r\n\r\n }",
"public void setUid(String uid) {\n\t\tif ( uid == null ) {\n\t\t\tthrow new IllegalArgumentException(\"uid value must not be null\");\n\t\t}\n\t\tthis.uid = uid;\n\t\tthis.stats.setUid(uid);\n\t}",
"@Override\n\tpublic void refundPoint(String id, int balance) throws Exception {\n\t\t\n\t}",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"public Integer getUid() {\r\n return uid;\r\n }",
"@Override\r\n\tpublic String getUid() {\n\t\treturn uid;\r\n\t}",
"public void updateSalerCustomerByForbidden(int uid) {\n\t\tthis.salerCustomerMapper.updateSalerCustomerByForbidden(uid);\n\t}",
"public void setDealUid(Integer dealUid) {\r\n this.dealUid = dealUid;\r\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }",
"public Integer getUid() {\n return uid;\n }"
] |
[
"0.5713792",
"0.5713792",
"0.5713792",
"0.5713792",
"0.5713792",
"0.5644578",
"0.5554917",
"0.55521876",
"0.5496285",
"0.5463061",
"0.5463061",
"0.5463061",
"0.5463061",
"0.5463061",
"0.5463061",
"0.5463061",
"0.53513676",
"0.53513676",
"0.53513676",
"0.53513676",
"0.53513676",
"0.53513676",
"0.5346217",
"0.5346217",
"0.5346217",
"0.5346217",
"0.5346217",
"0.5346217",
"0.5346217",
"0.5332261",
"0.53162146",
"0.5302298",
"0.5272605",
"0.5272605",
"0.5272605",
"0.52702415",
"0.5263936",
"0.5182678",
"0.5175045",
"0.51172644",
"0.5085976",
"0.508229",
"0.50774634",
"0.5047804",
"0.5047804",
"0.49894184",
"0.49824813",
"0.49806643",
"0.49739078",
"0.49586037",
"0.49586037",
"0.49586037",
"0.49586037",
"0.49586037",
"0.49586037",
"0.49586037",
"0.49405128",
"0.48857614",
"0.4875269",
"0.4852246",
"0.4822381",
"0.48206526",
"0.48157573",
"0.48105815",
"0.47832012",
"0.47803786",
"0.47782335",
"0.47643036",
"0.47607687",
"0.4752446",
"0.4742515",
"0.47418937",
"0.47357604",
"0.4734119",
"0.47340098",
"0.47340098",
"0.47300676",
"0.4690826",
"0.4690826",
"0.4690826",
"0.46749592",
"0.46600062",
"0.46565983",
"0.46553764",
"0.46553764",
"0.46553764",
"0.46553764",
"0.46553764",
"0.46553764",
"0.46419066",
"0.46359894",
"0.4634413",
"0.46338877",
"0.46338877",
"0.46338877",
"0.46338877"
] |
0.67189354
|
4
|
This method was generated by MyBatis Generator. This method returns the value of the database column account_invoice_refund.date_invoice
|
public Date getDateInvoice() {
return dateInvoice;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.util.Date getInvoiceDate () {\n\t\treturn invoiceDate;\n\t}",
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public LocalDate GetFechaUltimoCambio() throws RemoteException;",
"public void setDateInvoice(Date dateInvoice) {\n this.dateInvoice = dateInvoice;\n }",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }",
"@Override\n\tpublic FdBusinessDate getCurrencyFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"01\");\n\t\treturn mapper.selectByPK(map);\n\t}",
"public Date getInquirydate() {\n return inquirydate;\n }",
"public static String getBillDueDate(String account){\n return \"select cb_duedate from current_bills where cb_account = '\"+account+\"'\";\n }",
"public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }",
"public void setInvoiceDate (java.util.Date invoiceDate) {\n\t\tthis.invoiceDate = invoiceDate;\n\t}",
"public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);",
"public Date getDebitStartDate() {\n return debitStartDate;\n }",
"public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }",
"Date getInvoicedDate();",
"public java.util.Calendar getLastInvoiceDate() {\n return lastInvoiceDate;\n }",
"public Date getDebitEndDate() {\n return debitEndDate;\n }",
"public java.sql.Date getChargedate() {\n\treturn chargedate;\n}",
"public LocalDate getDateOfPurchase() {\n return dateOfPurchase;\n }",
"@Override\n public LocalDate getReturnDate() {\n return returnDate;\n }",
"public org.exolab.castor.types.Date getDtDtInvoWarrantDate()\r\n {\r\n return this._dtDtInvoWarrantDate;\r\n }",
"public java.util.Date getPaymentreceiptdate () {\r\n\t\treturn paymentreceiptdate;\r\n\t}",
"java.lang.String getOrderDate();",
"public java.sql.Date getDate(String columnName) throws SQLException\n {\n return m_rs.getDate(columnName);\n }",
"public Date getRecdate() {\n return recdate;\n }",
"@Override\n\tpublic int getRefund(Refund refund) {\n\t\treturn paydao.doRefund(refund);\n\t}",
"public String getReturnDate();",
"public Date getFinancialDocumentRevolvingFundDate() {\r\n return financialDocumentRevolvingFundDate;\r\n }",
"public Date getFecRegistro() {\n return fecRegistro;\n }",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"@Query(value = \"select rec_date from receipt where amc_no = :amcNo\", nativeQuery = true)\n\tList<Date> findDateByAmcNo(@Param(\"amcNo\") String amcNo);",
"public Integer getRefundMoney() {\n return refundMoney;\n }",
"public Date getDate(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getDate\", columnName);\n return get(columnName).getDate();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public java.sql.Date getReceiveDate () {\r\n\t\treturn receiveDate;\r\n\t}",
"@Override\n\tpublic List<String> getListDueDate() {\n\t\ttry{\n\t\t\t\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT DISTINCT mo.O_DueDate\"\n\t\t\t\t\t+ \" FROM mOrders mo\"\n\t\t\t\t\t+ \"\tWHERE mo.O_Status_Code='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\"' \"\n\t\t\t\t\t\t\t+ \"OR mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"'\"\n\t\t\t\t\t+ \" ORDER BY mo.O_DueDate ASC\";\n\t\t\tList<String> lstOrDate = getSession().createQuery(sql).list();\n\t\t\t//System.out.println(name()+\"::getListDueDate--lstOrDate: \"+lstOrDate.toString());\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn lstOrDate;\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}",
"private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}",
"@ApiModelProperty(\n value =\n \"UTC Date when the last bank statement item was entered into Xero. This date is\"\n + \" represented in ISO 8601 format.\")\n /**\n * UTC Date when the last bank statement item was entered into Xero. This date is represented in\n * ISO 8601 format.\n *\n * @return statementBalanceDate LocalDate\n */\n public LocalDate getStatementBalanceDate() {\n return statementBalanceDate;\n }",
"@Override\n\tpublic Date convertToDatabaseColumn(LocalDate attribute) {\n\t\treturn Date.valueOf(attribute);\n\t}",
"Date getNextIncomeDate() throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }",
"public String getLastPaymentDate() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"PAYMENT_DATE\").get(0);\n\t}",
"private LocalDate get_DATE(int column) {\n // DATE column is always 10 chars long\n String dateString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 10, charset_[column - 1]).toString();\n return LocalDate.parse(dateString, DRDAConstants.DB2_DATE_FORMAT);\n// return DateTime.dateBytesToDate(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }",
"@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}",
"public Integer getRefund() {\n return refund;\n }",
"public Number getBudgetAsToDate() {\n return (Number) getAttributeInternal(BUDGETASTODATE);\n }",
"Date getDateField();",
"public Date getDateOfPurchase() {\n return dateOfPurchase;\n }",
"Long getInvoiceId();",
"public java.sql.Date getClosedate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"closedate\")));\n }",
"LocalDate getCheckInDate();",
"public LocalDate getDate() {\r\n\t\treturn loanDate;\r\n\t}",
"public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }",
"public Date getDataNascimentoToSQL() {\r\n\t\treturn new Date(dataNascimento.getTimeInMillis());\r\n\t}",
"@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }",
"java.lang.String getToDate();",
"public String getInvoice() {\n return invoice;\n }",
"@Override\n\tpublic FdBusinessDate getCommonFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"00\");\n\t\treturn mapper.selectByPK(map);\n\t}",
"public Date getDate() {\n DateTimeField dateField = obtainField(FieldName.DATE);\n if (dateField == null)\n return null;\n\n return dateField.getDate();\n }",
"public Date getTrxDate() {\r\n return trxDate;\r\n }",
"public Date getFechaFinDate(){\n Date date=new Date(fechaFin.getTime());\n return date;\n }",
"public Invoice getInvoice() {\n return invoice;\n }",
"@Transient\n\tpublic String getRefundPaymentTransactionId()\t{\n\t\tif (mRefundPaymentTransactionId == null) {\n\t\t\tif (mRefundPaymentTransactionIdLong > 0) {\n\t\t\t\tmRefundPaymentTransactionId = Long.toString(mRefundPaymentTransactionIdLong);\n\t\t\t}\n\t\t}\n\t\treturn mRefundPaymentTransactionId;\n\t}",
"public int getInvoiceID(){\n return invoiceID;\n }",
"public LocalDate getOrderDate() {\n return new LocalDate(this.orderDate.getMonth(), this.orderDate.getDay(), this.orderDate.getYear());\n\n }",
"public void setInquirydate(Date inquirydate) {\n this.inquirydate = inquirydate;\n }",
"public String getIncomingPaymentDate() {\n return incomingPaymentDate;\n }",
"List<Invoice> getByDebtorIdOrderByDateDesc(int debtorId);",
"public Date obtenerUltimaFecha() {\n String sql = \"SELECT proyind_periodo_fin\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_fin IS NOT NULL\"\n + \" ORDER BY proyind_periodo_fin DESC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }",
"public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }",
"public Date getDate() {\n return order.getDate();\n }",
"protected Date getReturnDate() \t{ return this.returnDate; }",
"public String getAccountCloseDate() {\n return accountCloseDate;\n }",
"public int getRefundId() {\n return refundId;\n }",
"InvoiceDTO fetchByID(int id);",
"LocalDate getDate();",
"@Override\r\n\tpublic Refund getRefund(int refundNo) throws Exception {\n\t\treturn null;\r\n\t}",
"Date getDueDate();",
"Date getDueDate();",
"public Date getDueDate() {\n\t\treturn date; //changed DaTe to date\r\n\t}",
"public java.sql.Date getDatebldbeg() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"datebldbeg\")));\n }",
"@Transient\n\tpublic Date getPurchaseDate()\t{\n\t\treturn mPurchaseDate;\n\t}",
"public LocalDate getDate() {\n return date;\n }",
"public java.sql.Date getDate(int columnIndex) throws SQLException\n {\n return m_rs.getDate(columnIndex);\n }",
"@Override\n\tpublic LocalDate convertToEntityAttribute(Date dbData) {\n\t\treturn dbData.toLocalDate();\n\t}",
"public Date getSupEntRegdate() {\n return supEntRegdate;\n }",
"public java.math.BigDecimal getInvoiceAmount () {\n\t\treturn invoiceAmount;\n\t}",
"public LocalDate getDateFin() {\n\t\treturn dateFin;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Object[] findBillingByInvoiceAndDate(String invoice, Date trxDate,\n\t\t\tObject[] mt940Data) {\n\t\tString sql = \"select \"\n\t\t\t\t\t+\"inv.invoice_number, \"\n\t\t\t\t\t+\"reg.id_registrant, \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.due_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.payment_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"nama_registrant, \"\n\t\t\t\t\t+\"inv.amount \"\n\t\t\t\t\t+\"from \"\n\t\t\t\t\t+\"invoices inv join payments pay on \"\n\t\t\t\t\t+\"inv.id_invoice = pay.id_invoice \"\n\t\t\t\t\t+\"join registrants reg \"\n\t\t\t\t\t+\"on pay.id_registrant = reg.id_registrant \"\n\t\t\t\t\t+\"where inv.invoice_number = :invoice \"\n\t\t\t\t\t+\"and pay.payment_date is not null \"; \n\t\t\n\t\tQuery query = getSessionFactory().getCurrentSession().createSQLQuery(sql);\n\t\tquery.setParameter(\"invoice\", invoice);\n\t\t\t\n\t\tObject obj = new Object();\n\t\tObject[] objectArray = null;\n\t\t\n\t\tList<Object> result = query.list();\n\t\tif (result.size()>0) {\n\t\t\tobj = result.get(0);\n\t\t\tobjectArray = (Object[]) obj;\n\t\t}\n\t\treturn objectArray;\n\t}",
"public LocalDate getDate() {\n\t\treturn this.date;\n\t}",
"public java.sql.Date getDatepr() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"datepr\")));\n }",
"public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }",
"public java.sql.Date getDateassemb() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"dateassemb\")));\n }",
"public LocalDate getDate() {\n return date;\n }",
"public LocalDate getDate() {\n return date;\n }",
"public String getRefundId() {\n return refundId;\n }",
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String Get_date() \n {\n \n return date;\n }",
"public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }"
] |
[
"0.63478494",
"0.5958412",
"0.58207065",
"0.57081515",
"0.56698245",
"0.56402975",
"0.5599696",
"0.559848",
"0.5595551",
"0.55682904",
"0.5528948",
"0.54973704",
"0.54915947",
"0.5469198",
"0.5463559",
"0.54623026",
"0.54451483",
"0.54384255",
"0.54065895",
"0.5397656",
"0.5380479",
"0.53035474",
"0.5299387",
"0.5283772",
"0.5260111",
"0.52118343",
"0.52055657",
"0.5190303",
"0.51873815",
"0.5186483",
"0.5182847",
"0.5182847",
"0.51541597",
"0.5151462",
"0.5123859",
"0.51115066",
"0.50925153",
"0.50903136",
"0.50797755",
"0.5064424",
"0.5063849",
"0.5062174",
"0.50601166",
"0.5058961",
"0.505172",
"0.5042415",
"0.5005722",
"0.4998283",
"0.49933743",
"0.49877992",
"0.49833843",
"0.49726057",
"0.49684396",
"0.49651396",
"0.49600977",
"0.49579772",
"0.4955994",
"0.49545783",
"0.49453643",
"0.49431083",
"0.4933159",
"0.49264145",
"0.49223042",
"0.49194995",
"0.4918731",
"0.4917267",
"0.49165806",
"0.49127233",
"0.4909645",
"0.49078724",
"0.49045315",
"0.4898485",
"0.48981038",
"0.48913988",
"0.48883867",
"0.48878035",
"0.48825866",
"0.48766327",
"0.48766327",
"0.48671728",
"0.48609963",
"0.48591998",
"0.48572275",
"0.48549765",
"0.4849986",
"0.48472857",
"0.4847166",
"0.48443916",
"0.48441216",
"0.4834618",
"0.48321518",
"0.48305863",
"0.48302713",
"0.4822785",
"0.4822785",
"0.48193514",
"0.48151833",
"0.4810876",
"0.48023355",
"0.48012424"
] |
0.6707364
|
0
|
This method was generated by MyBatis Generator. This method sets the value of the database column account_invoice_refund.date_invoice
|
public void setDateInvoice(Date dateInvoice) {
this.dateInvoice = dateInvoice;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public void setInvoiceDate (java.util.Date invoiceDate) {\n\t\tthis.invoiceDate = invoiceDate;\n\t}",
"public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);",
"public Date getDateInvoice() {\n return dateInvoice;\n }",
"public void setInquirydate(Date inquirydate) {\n this.inquirydate = inquirydate;\n }",
"public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }",
"public java.util.Date getInvoiceDate () {\n\t\treturn invoiceDate;\n\t}",
"void setInvoicedDate(Date invoicedDate);",
"public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }",
"@Override\n public void setReturnDate(LocalDate date) {\n this.returnDate = date;\n }",
"Order setInvoiceCreatedStatus(Order order, User user, Date invoiceDate, Date invoiceDueDate);",
"public void setDateFin(LocalDate dateFin_) {\n\t\tdateFin = dateFin_;\n\t}",
"public void setLastInvoiceDate(java.util.Calendar lastInvoiceDate) {\n this.lastInvoiceDate = lastInvoiceDate;\n }",
"public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }",
"public void setDebitStartDate(Date debitStartDate) {\n this.debitStartDate = debitStartDate;\n }",
"void setInvoiceId(Long invoiceId);",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}",
"@Override\n\tpublic void setPaymentDate(java.util.Date paymentDate) {\n\t\t_esfShooterAffiliationChrono.setPaymentDate(paymentDate);\n\t}",
"public void setC_Invoice_ID (int C_Invoice_ID);",
"public void setReceivalDate(String receivalDate){\n\t\tthis.receivalDate = \"\";\n\t\tthis.receivalDate += receivalDate;\n\t}",
"public void setClosedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.closedDate, v))\n {\n this.closedDate = v;\n setModified(true);\n }\n \n \n }",
"void setDateOfBirth(LocalDate dateOfBirth);",
"public void setInvoice(String invoice) {\n this.invoice = invoice;\n }",
"public Date getInquirydate() {\n return inquirydate;\n }",
"public void setRefund(Integer refund) {\n this.refund = refund;\n }",
"public void setDate(LocalDate date) {\n this.date = date;\n }",
"public void setInDate(Date inDate) {\r\n this.inDate = inDate;\r\n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public void setInvoice(rules.engine.example.SalaryInvoice _invoice)\n {\n invoice = _invoice;\n }",
"public void setDebitEndDate(Date debitEndDate) {\n this.debitEndDate = debitEndDate;\n }",
"public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }",
"protected void setReturnDate(Date d){ this.returnDate = d; }",
"public void setFecRegistro(Date fecRegistro) {\n this.fecRegistro = fecRegistro;\n }",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"public void setSupEntRegdate(Date supEntRegdate) {\n this.supEntRegdate = supEntRegdate;\n }",
"public void setDateOfBirth(LocalDate dateOfBirth) {\n this.dateOfBirth = dateOfBirth;\n }",
"public void setInvoiceAmount (java.math.BigDecimal invoiceAmount) {\n\t\tthis.invoiceAmount = invoiceAmount;\n\t}",
"public void setPaymentDate( Date paymentDate ) {\n this.paymentDate = paymentDate;\n }",
"public final void setDate(LocalDate date) {\n dateProperty().set(date);\n }",
"public void setDueDate(Date d){dueDate = d;}",
"public void setInvoice(java.lang.String invoice) {\r\n this.invoice = invoice;\r\n }",
"public void setDateOfPurchase(Date dateOfPurchase) {\n this.dateOfPurchase = dateOfPurchase;\n }",
"public void setRefundMoney(Integer refundMoney) {\n this.refundMoney = refundMoney;\n }",
"public void setTranDate(int date)\n\t{\n\t\tthis.tranDate = date;\n\t}",
"@WebMethod\n\tpublic String updateFechaInicio(\n\t\t@WebParam(name=\"inCrrsd_codigo\")String inCrrsd_codigo,\n\t\t@WebParam(name=\"inCrrsd_fecha_inicio\")java.util.Date inCrrsd_fecha_inicio\t\n\t) throws SOAPException{\n\t\tString res = \"true\";\n\t\tHttpServletRequest tmpRequest = (HttpServletRequest) wctx.getMessageContext().get(MessageContext.SERVLET_REQUEST);\n\t\tcom.besixplus.sii.objects.Cgg_res_residencia obj = new com.besixplus.sii.objects.Cgg_res_residencia();\n\t\tobj.setCRRSD_CODIGO(inCrrsd_codigo);\n\t\tobj.setCRRSD_FECHA_INICIO(inCrrsd_fecha_inicio);\n\t\tobj.setCRRSD_ESTADO(true);\n\t\tobj.setCRRSD_USUARIO_UPDATE(tmpRequest.getUserPrincipal().getName());\n\t\ttry{\n\t\t\tConnection con = ManagerConnection.getConnection();\n\t\t\tif(!com.besixplus.sii.db.Cgg_sec_objeto.isGrant(con, Thread.currentThread().getStackTrace()[1].getMethodName(), Thread.currentThread().getStackTrace()[1].getClassName(), tmpRequest.getUserPrincipal().getName(), 1)){\n\t\t\t\tcon.close();\n\t\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(\"Acceso no autorizado.\", new QName(\"http://schemas.xmlsoap.org/soap/envelope/\",Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t\t}\n\t\t\tres = new com.besixplus.sii.db.Cgg_res_residencia(obj).updateFechaInicio(con);\n\t\t\tcon.close();\n\t\t\tif(!res.equals(\"true\"))\n\t\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(res, new QName(\"http://schemas.xmlsoap.org/soap/envelope/\",Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}catch(SQLException inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\n\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(inException.getMessage(), new QName(\"http://schemas.xmlsoap.org/soap/envelope/\", Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}catch (Exception inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\n\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(inException.getMessage(), new QName(\"http://schemas.xmlsoap.org/soap/envelope/\", Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}\n\t\treturn res;\n\t}",
"public void setDate(LocalDate date) {\n\t\tthis.date = date;\n\t}",
"public void setChargedate(java.sql.Date newChargedate) {\n\tchargedate = newChargedate;\n}",
"public void testUpdateInvoiceAccuracy() throws Exception {\n Invoice invoice = new Invoice();\n\n invoice.setId(4);\n invoice.setCreationDate(new Date());\n invoice.setCreationUser(\"tc\");\n invoice.setModificationDate(new Date());\n invoice.setModificationUser(\"tc\");\n invoice.setCompanyId(5);\n invoice.setProjectId(8);\n invoice.setInvoiceNumber(\"invoiceNumber\");\n invoice.setPaid(true);\n invoice.setDueDate(new Date());\n invoice.setInvoiceDate(new Date());\n invoice.setPurchaseOrderNumber(\"purchaseOrderNumber\");\n invoice.setSalesTax(new BigDecimal(5));\n\n ExpenseEntry entry = new ExpenseEntry();\n entry.setAmount(new BigDecimal(5));\n ExpenseEntry[] expenseEntries = new ExpenseEntry[] {entry};\n invoice.setExpenseEntries(expenseEntries);\n\n PaymentTerm paymentTerm = new PaymentTerm();\n paymentTerm.setId(3);\n invoice.setPaymentTerm(paymentTerm);\n\n FixedBillingEntry fixedBillingEntry = new FixedBillingEntry();\n FixedBillingEntry[] fixedBillingEntries = new FixedBillingEntry[] {fixedBillingEntry};\n invoice.setFixedBillingEntries(fixedBillingEntries);\n\n InvoiceServiceDetail detail = new InvoiceServiceDetail();\n detail.setAmount(new BigDecimal(8));\n detail.setId(4);\n InvoiceServiceDetail[] serviceDetails = new InvoiceServiceDetail[] {detail};\n invoice.setServiceDetails(serviceDetails);\n\n InvoiceStatus invoiceStatus = new InvoiceStatus(4, \"description\", \"user\", \"user\", new Date(), new Date());\n invoice.setInvoiceStatus(invoiceStatus);\n\n invoiceSessionBean.updateInvoice(invoice, true);\n\n }",
"public LocalDate GetFechaUltimoCambio() throws RemoteException;",
"@Override\r\n\tpublic void updateRefund(Refund refund) throws Exception {\n\t\t\r\n\t}",
"public void updateDate(String columnName, Date x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateDate(\" + quote(columnName) + \", x);\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueDate.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }",
"public void setOldOrderToPaid() {\n\n\t\tDate date = new Date();\n\n\t\tTimestamp ts = new Timestamp(date.getTime());\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n\t\tString sql = \"UPDATE restodb.order, location set status = 'Paid', state = 'Vacant' where idorder > 0 and date < '\"\n\t\t\t\t+ formatter.format(ts).substring(0, 10) + \" 00:00:00\" + \"'\";\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tstatement.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t}",
"public void setInvoiceStatus(InvoiceStatus invoiceStatus)\n {\n this.invoiceStatus = invoiceStatus;\n }",
"public void setBirthDate(Date inBirthDate)\n {\n birthdate = inBirthDate;\n }",
"public void setFinancialDocumentRevolvingFundDate(Date financialDocumentRevolvingFundDate) {\r\n this.financialDocumentRevolvingFundDate = financialDocumentRevolvingFundDate;\r\n }",
"public Date getDebitEndDate() {\n return debitEndDate;\n }",
"@Override\n public void setRegistrationDate(java.util.Date registrationDate) {\n _entityCustomer.setRegistrationDate(registrationDate);\n }",
"public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }",
"public void updateDate(String columnName, java.sql.Date x) throws SQLException\n {\n m_rs.updateDate(columnName, x);\n }",
"public void setInDerate(BigDecimal inDerate) {\n this.inDerate = inDerate;\n }",
"public void setOrderDate(LocalDate orderDate) {\n try {\n if(orderDate!=null){\n LocalDate newOrderDAte = new LocalDate(orderDate.getMonth(), orderDate.getDay(), orderDate.getYear());\n this.orderDate = newOrderDAte;\n }\n else{\n this.orderDate=new LocalDate();\n throw new SupplyOrderException(\"Invalid date\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }",
"public void setDate(int date){\n this.date = date;\n }",
"public void setDateInvoiced (Timestamp DateInvoiced);",
"public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }",
"@Override\n\tpublic void update(Invoice invoice) {\n\t\tinvoiceDao.update(invoice);\n\t}",
"public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }",
"public void setPaymentreceiptdate (java.util.Date paymentreceiptdate) {\r\n\t\tthis.paymentreceiptdate = paymentreceiptdate;\r\n\t}",
"public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }",
"public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }",
"public void setIncidentDate(String incidentDate){\n\t\tthis.incidentDate = \"\";\n\t\tthis.incidentDate += incidentDate;\n\t}",
"public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }",
"public Date getDebitStartDate() {\n return debitStartDate;\n }",
"public void setInvoiceNumber(int invoicenum) {\n invoiceNumber = invoicenum;\n }",
"public void setRefundId(int value) {\n this.refundId = value;\n }",
"public void setDEPARTURE_FROM_LOC_DATE(java.sql.Date value)\n {\n if ((__DEPARTURE_FROM_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__DEPARTURE_FROM_LOC_DATE)))\n {\n _isDirty = true;\n }\n __DEPARTURE_FROM_LOC_DATE = value;\n }",
"public Invoice(){//String invoiceId, String customer, String invoiceIssuer, Timestamp invoicingDate, TimeStamp dueDate, BigDecimal netAmount, BigDecimal vat, BigDecimal totalAmount, String currency, String linkToInvoiceDocument, String linkToInvoiceDocumentCopy, String invoicingPeriod, BigDecimal gp, Event event, Timestamp paidDate, BigDecimal amountOpen, String revenueType, String originalInvoiceId) {\r\n }",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public void setFechaNacimiento(Date fechaNacimiento)\r\n/* 138: */ {\r\n/* 139:252 */ this.fechaNacimiento = fechaNacimiento;\r\n/* 140: */ }",
"public void setOpenDate(LocalDate date){\n\t\topenDate = date;\n\t}",
"public void setDataAffidamento(Optional<LocalDate> dataAffidamento) {\n\t\tthis.dataAffidamento = dataAffidamento;\n\t}",
"public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }",
"public void setDateClose(java.lang.String dateClose)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATECLOSE$4);\n }\n target.setStringValue(dateClose);\n }\n }",
"protected void saveLocalDate() {\n\n }",
"public void setBudgetAsToDate(Number value) {\n setAttributeInternal(BUDGETASTODATE, value);\n }",
"public java.util.Calendar getLastInvoiceDate() {\n return lastInvoiceDate;\n }",
"public void setAccountCloseDate(final String accountCloseDate) {\n this.accountCloseDate = accountCloseDate;\n }",
"public void setRefundPrice(BigDecimal refundPrice) {\n this.refundPrice = refundPrice;\n }",
"public LocalDate getDateOfPurchase() {\n return dateOfPurchase;\n }",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }",
"public void setServiceDate(java.util.Date value);",
"public void setStatementBalanceDate(LocalDate statementBalanceDate) {\n this.statementBalanceDate = statementBalanceDate;\n }",
"public static void setInvoiceData (final InvoiceData id)\n {\n invoiceData = id;\n }",
"@Override\n public void populate(PaymentCriteria paymentCriteria) {\n paymentCriteria.setDateFrom(dateFrom);\n paymentCriteria.setDateTo(dateTo);\n }",
"public void setDEAL_VALUE_DATE(Date DEAL_VALUE_DATE) {\r\n this.DEAL_VALUE_DATE = DEAL_VALUE_DATE;\r\n }",
"public org.exolab.castor.types.Date getDtDtInvoWarrantDate()\r\n {\r\n return this._dtDtInvoWarrantDate;\r\n }",
"void setDate(int index, Date value) throws SQLException;"
] |
[
"0.6859494",
"0.685261",
"0.66710585",
"0.62436223",
"0.620341",
"0.61326325",
"0.5858062",
"0.5855622",
"0.58354455",
"0.5603156",
"0.5522879",
"0.5506024",
"0.54987496",
"0.5442824",
"0.5412928",
"0.5391315",
"0.5361584",
"0.5361584",
"0.53430265",
"0.53293055",
"0.5306958",
"0.53020746",
"0.52825594",
"0.52735674",
"0.52599275",
"0.5245842",
"0.5245673",
"0.52325356",
"0.5230505",
"0.52272516",
"0.5218856",
"0.5193895",
"0.5189782",
"0.5187123",
"0.51728016",
"0.51672775",
"0.51597595",
"0.51548463",
"0.5150576",
"0.51474416",
"0.51467425",
"0.5143403",
"0.5142818",
"0.51352143",
"0.5133945",
"0.5132817",
"0.5128294",
"0.50995696",
"0.5099102",
"0.50831944",
"0.5080421",
"0.5078863",
"0.5075667",
"0.5075033",
"0.50712025",
"0.50624514",
"0.5051509",
"0.5049794",
"0.50480133",
"0.5047595",
"0.5045787",
"0.5038092",
"0.50344056",
"0.5033466",
"0.50321877",
"0.50203985",
"0.501983",
"0.50131434",
"0.50129986",
"0.50014746",
"0.49851108",
"0.49844503",
"0.49808988",
"0.49805817",
"0.4972818",
"0.49705523",
"0.4959841",
"0.4958474",
"0.49374935",
"0.49239248",
"0.4915012",
"0.4911223",
"0.4908462",
"0.49073356",
"0.49061137",
"0.4894255",
"0.4893929",
"0.488926",
"0.488856",
"0.48844817",
"0.48721904",
"0.48710924",
"0.4864798",
"0.48564723",
"0.48483366",
"0.48461926",
"0.4844235",
"0.48441726",
"0.48400655",
"0.48297438"
] |
0.7158883
|
0
|
This method was generated by MyBatis Generator. This method returns the value of the database column account_invoice_refund.write_date
|
public Date getWriteDate() {
return writeDate;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setWriteDate(Date writeDate) {\n this.writeDate = writeDate;\n }",
"public void setWriteDate(Date writeDate) {\n this.writeDate = writeDate;\n }",
"public void setWriteDate(Date writeDate) {\n this.writeDate = writeDate;\n }",
"public void setWriteDate(Date writeDate) {\n this.writeDate = writeDate;\n }",
"public void setWriteDate(Date writeDate) {\n this.writeDate = writeDate;\n }",
"public String getReturnDate();",
"public Date getDebitEndDate() {\n return debitEndDate;\n }",
"@Override\n public LocalDate getReturnDate() {\n return returnDate;\n }",
"public static String getBillDueDate(String account){\n return \"select cb_duedate from current_bills where cb_account = '\"+account+\"'\";\n }",
"@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}",
"public Date getDateInvoice() {\n return dateInvoice;\n }",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"protected Date getReturnDate() \t{ return this.returnDate; }",
"public String getLastPaymentDate() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"PAYMENT_DATE\").get(0);\n\t}",
"public java.sql.Date getChargedate() {\n\treturn chargedate;\n}",
"public java.sql.Date getReceiveDate () {\r\n\t\treturn receiveDate;\r\n\t}",
"public String getReturningDate() {\r\n return returningDate;\r\n }",
"public String getPayoutDate() {\n return payoutDate;\n }",
"public String getAccountCloseDate() {\n return accountCloseDate;\n }",
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }",
"public Date getRecdate() {\n return recdate;\n }",
"@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }",
"public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }",
"public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }",
"public Date getInquirydate() {\n return inquirydate;\n }",
"public java.util.Date getPaymentreceiptdate () {\r\n\t\treturn paymentreceiptdate;\r\n\t}",
"public java.sql.Date getDate(String columnName) throws SQLException\n {\n return m_rs.getDate(columnName);\n }",
"public Date getReportDate() {\r\n return reportDate;\r\n }",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Date getDebitStartDate() {\n return debitStartDate;\n }",
"public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"protected String getReturnDateString() { return \"\" + dateFormat.format(this.returnDate); }",
"public java.sql.Date getClosedate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"closedate\")));\n }",
"public Date getTrxDate() {\r\n return trxDate;\r\n }",
"@ApiModelProperty(\n value =\n \"UTC Date when the last bank statement item was entered into Xero. This date is\"\n + \" represented in ISO 8601 format.\")\n /**\n * UTC Date when the last bank statement item was entered into Xero. This date is represented in\n * ISO 8601 format.\n *\n * @return statementBalanceDate LocalDate\n */\n public LocalDate getStatementBalanceDate() {\n return statementBalanceDate;\n }",
"@Override\n\tpublic FdBusinessDate getCurrencyFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"01\");\n\t\treturn mapper.selectByPK(map);\n\t}",
"@Override\n\tpublic Date getDbDate() {\n\t\treturn systemMapper.selectNow();\n\t}",
"java.lang.String getToDate();",
"public org.exolab.castor.types.Date getDtDtInvoWarrantDate()\r\n {\r\n return this._dtDtInvoWarrantDate;\r\n }",
"public java.sql.Timestamp getRegdate()\n {\n return regdate; \n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public String Get_date() \n {\n \n return date;\n }",
"public Date getDate(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getDate\", columnName);\n return get(columnName).getDate();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"public java.util.Date getInvoiceDate () {\n\t\treturn invoiceDate;\n\t}",
"java.lang.String getOrderDate();",
"public java.lang.String getDate_last_update() {\n return date_last_update;\n }",
"public String getDate(){\n\n return this.date;\n }",
"protected String getRentDateString() { return \"\" + dateFormat.format(this.rentDate); }",
"public void test_Date_utilDateColumn_selects_sqlDate_Tx() throws Exception {\n // ## Arrange ##\n final Integer memberId = 1;\n\n // ## Act ##\n final Member member = jdbcManager.from(Member.class).where(\"memberId = ?\", memberId).getSingleResult();\n\n // ## Assert ##\n assertNotNull(member);\n log(member.toString());\n assertEquals(memberId, member.memberId);\n assertEquals(java.sql.Date.class, member.birthdate.getClass());\n }",
"public String getReturnDate() {\n\t\treturn returnDateElement.getAttribute(\"value\");\n\t}",
"@ApiModelProperty(value = \"The date when the claim was entered.\")\n public DtoValueNullableDateTime getDate() {\n return date;\n }",
"public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }",
"public Date getDueDate() {\n\t\treturn date; //changed DaTe to date\r\n\t}",
"public Date getFinancialDocumentRevolvingFundDate() {\r\n return financialDocumentRevolvingFundDate;\r\n }",
"public LocalDate getDateOfPurchase() {\n return dateOfPurchase;\n }",
"Date getForLastUpdate();",
"public String getDate() {\n return this.date;\n }",
"public String getDate() {\n return this.date;\n }",
"public int getTranDate()\n\t{\n\t\treturn tranDate;\n\t}",
"public Date getDob() {\n return dob;\n }",
"public int getDate() {\n return date ;\n }",
"@JsonIgnore\n @Override\n public Date getRegistrationDate()\n {\n return registrationDate;\n }",
"public java.sql.Date getREQ_END_DATE()\n {\n \n return __REQ_END_DATE;\n }",
"public String getJP_AcctDate();",
"Date getCheckedOutDate();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Due date for the document, use in conjunction with Auto Expire.\")\n @JsonIgnore\n\n public OffsetDateTime getDueDateField() {\n return dueDateField.orElse(null);\n }",
"Date getDueDate();",
"Date getDueDate();",
"public Date getRegistDt() {\n return registDt;\n }",
"Date getDateRDV() {\n return this.dateRDV;\n }",
"public Date getUppertransdate() {\n\t\treturn uppertransdate;\n\t}",
"public Date getRecordDate() {\n return recordDate;\n }",
"public Date getPayDate() {\n\t\treturn payDate;\n\t}",
"long getContactRegistrationDate();",
"public LocalDate getDate() {\r\n\t\treturn loanDate;\r\n\t}",
"public String getDate() {\r\n\t\treturn this.date;\r\n\t}",
"public java.sql.Date getDocumentDate() {\n\treturn documentDate;\n}",
"public java.sql.Date getDate(int columnIndex) throws SQLException\n {\n return m_rs.getDate(columnIndex);\n }",
"public int getDate() {\n return date;\n }",
"public int getDate() {\n return date;\n }",
"public Date getDate()\n {\n return this.date;\n }",
"Date getCheckedOut();",
"public String getDueDate()\r\n {\r\n return dueDate;\r\n }",
"public java.util.Date getDateDue() {\n return this.dateDue;\n }",
"public String getDateOfBirth(){\n return(this.dateOfBirth);\n }",
"public String getDate() {\n\t\treturn this.mDate;\n\t}",
"public String getDate() {\n\t\treturn this.date;\n\t}",
"public String getDate() {\n return date;\n }",
"public Date getEditDate()\r\n/* */ {\r\n/* 186 */ return this.editDate;\r\n/* */ }",
"public Date getFechaExclusion()\r\n/* 160: */ {\r\n/* 161:178 */ return this.fechaExclusion;\r\n/* 162: */ }",
"public Date getDate() {\n return this.date;\n }",
"public int getDate(){\n return date;\n }"
] |
[
"0.5829255",
"0.5829255",
"0.5829255",
"0.5829255",
"0.5829255",
"0.5754952",
"0.57291484",
"0.57247585",
"0.57037437",
"0.5695802",
"0.5673385",
"0.566207",
"0.5635635",
"0.56282496",
"0.5622946",
"0.5605652",
"0.5598376",
"0.5591931",
"0.55880433",
"0.5580862",
"0.55603683",
"0.55537444",
"0.5530582",
"0.55210465",
"0.55103356",
"0.5501323",
"0.54897696",
"0.5485366",
"0.54620576",
"0.5456277",
"0.5445654",
"0.54318535",
"0.5419475",
"0.5419475",
"0.5414663",
"0.5405311",
"0.53940976",
"0.53675026",
"0.53530514",
"0.5344657",
"0.5339635",
"0.5339011",
"0.5327891",
"0.5327216",
"0.5325973",
"0.5325774",
"0.53227645",
"0.53219044",
"0.5303937",
"0.52778924",
"0.52755827",
"0.52701783",
"0.526238",
"0.5257548",
"0.52539194",
"0.52502555",
"0.5237358",
"0.5233823",
"0.52242297",
"0.5217615",
"0.52100617",
"0.52100617",
"0.52008426",
"0.5199372",
"0.51899284",
"0.5185034",
"0.5182766",
"0.5176628",
"0.51760995",
"0.5172676",
"0.5172271",
"0.5172271",
"0.5170239",
"0.51680714",
"0.5168038",
"0.51658905",
"0.5161088",
"0.5157082",
"0.51563656",
"0.5154585",
"0.51510274",
"0.51498544",
"0.51470554",
"0.51470554",
"0.51423025",
"0.5138039",
"0.5136751",
"0.5129237",
"0.51273316",
"0.51241255",
"0.51237863",
"0.5121232",
"0.51209927",
"0.51190436",
"0.5113406",
"0.5110287"
] |
0.6503087
|
4
|
This method was generated by MyBatis Generator. This method sets the value of the database column account_invoice_refund.write_date
|
public void setWriteDate(Date writeDate) {
this.writeDate = writeDate;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);",
"public Date getWriteDate() {\n return writeDate;\n }",
"public Date getWriteDate() {\n return writeDate;\n }",
"public Date getWriteDate() {\n return writeDate;\n }",
"public Date getWriteDate() {\n return writeDate;\n }",
"public Date getWriteDate() {\n return writeDate;\n }",
"protected void setReturnDate(Date d){ this.returnDate = d; }",
"public void setDateInvoice(Date dateInvoice) {\n this.dateInvoice = dateInvoice;\n }",
"public void setInquirydate(Date inquirydate) {\n this.inquirydate = inquirydate;\n }",
"public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }",
"@Override\n\tpublic void setPaymentDate(java.util.Date paymentDate) {\n\t\t_esfShooterAffiliationChrono.setPaymentDate(paymentDate);\n\t}",
"@Override\n public void setReturnDate(LocalDate date) {\n this.returnDate = date;\n }",
"public void setClosedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.closedDate, v))\n {\n this.closedDate = v;\n setModified(true);\n }\n \n \n }",
"void setInvoicedDate(Date invoicedDate);",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public void setDueDate(Date d){dueDate = d;}",
"public void updateDate(String columnName, java.sql.Date x) throws SQLException\n {\n m_rs.updateDate(columnName, x);\n }",
"public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }",
"void setCheckedOutDate(Date checkedOutDate);",
"void setDateOfBirth(LocalDate dateOfBirth);",
"public void setDebitEndDate(Date debitEndDate) {\n this.debitEndDate = debitEndDate;\n }",
"public void updateDate(String columnName, Date x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateDate(\" + quote(columnName) + \", x);\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueDate.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setDate(DateTime \n date) {\n this.date = date;\n }",
"public void setDateClose(java.lang.String dateClose)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATECLOSE$4);\n }\n target.setStringValue(dateClose);\n }\n }",
"public void SetDate(Date date);",
"public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }",
"public Date getDebitEndDate() {\n return debitEndDate;\n }",
"public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }",
"public void updateEndCaseDate(String claimNo,Date endCaseDate) throws SQLException,Exception\n {\n //创建数据库管理对象\n DBManager dbManager = new DBManager();\n dbManager.open(AppConfig.get(\"sysconst.DBJNDI\")) ;\n //开始事务\n dbManager.beginTransaction();\n try\n {\n new BLClaimAction().updateEndCaseDate(dbManager,claimNo,endCaseDate);\n //提交事务\n dbManager.commitTransaction();\n }\n catch(SQLException sqle)\n {\n //回滚事务\n dbManager.rollbackTransaction();\n throw sqle;\n }\n catch(Exception ex)\n {\n //回滚事务\n dbManager.rollbackTransaction();\n throw ex;\n }\n finally\n {\n //关闭数据库连接\n dbManager.close();\n }\n\n }",
"public void setUpdateDatetime(Date updateDatetime);",
"protected void saveLocalDate() {\n\n }",
"public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"void setCreateDate(Date date);",
"public void setTranDate(int date)\n\t{\n\t\tthis.tranDate = date;\n\t}",
"public void setJP_AcctDate (String JP_AcctDate);",
"public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }",
"public void setAccountCloseDate(final String accountCloseDate) {\n this.accountCloseDate = accountCloseDate;\n }",
"@Override\n public void setRegistrationDate(java.util.Date registrationDate) {\n _entityCustomer.setRegistrationDate(registrationDate);\n }",
"public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }",
"public void setDate(int date){\n this.date = date;\n }",
"public void setReceivalDate(String receivalDate){\n\t\tthis.receivalDate = \"\";\n\t\tthis.receivalDate += receivalDate;\n\t}",
"public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setBirthDate(Date inBirthDate)\n {\n birthdate = inBirthDate;\n }",
"void setDate(int index, Date value) throws SQLException;",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }",
"@Override\n\tprotected void setDate() {\n\n\t}",
"public void setDate(Date date) {\r\n this.date = date;\r\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDebitStartDate(Date debitStartDate) {\n this.debitStartDate = debitStartDate;\n }",
"public void setDrawDate(Date drawDate) {\n\t\tthis.drawDate = drawDate;\n\t}",
"public void setBirthDate(Date birthDate);",
"public void setEndDate(java.util.Date value);",
"public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}",
"public void setReportDate(Date reportDate) {\r\n this.reportDate = reportDate;\r\n }",
"void setBirthDate(Date birthDate);",
"public void setUpdatedOn(Date updatedOn);",
"public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }",
"public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }",
"public void setDateSaved(String dateSaved)\n {\n this.dateSaved = dateSaved; \n }",
"public void setCreateDate(Date createDate) { this.createDate = createDate; }",
"public void setInvoiceDate (java.util.Date invoiceDate) {\n\t\tthis.invoiceDate = invoiceDate;\n\t}",
"public void setDate(long date) {\n\t\tthis.date = date;\n\t}",
"public void setChargedate(java.sql.Date newChargedate) {\n\tchargedate = newChargedate;\n}",
"public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}",
"public void setDate(String date){\n this.date = date;\n }",
"public void setClosedate( java.sql.Date newValue ) {\n __setCache(\"closedate\", newValue);\n }",
"public Date getDateInvoice() {\n return dateInvoice;\n }",
"void setDate(Date data);",
"public void setDob(Date dob) {\n this.dob = dob;\n }",
"@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}",
"public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(long value) {\n this.date = value;\n }",
"void setUpdatedDate(Date updatedDate);",
"public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }",
"public void setDate(final int tranDate) {\n this.date = tranDate;\n }",
"public void setReturningDate(String returningDate) {\r\n this.returningDate = returningDate;\r\n }",
"public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}",
"public final void setDate(LocalDate date) {\n dateProperty().set(date);\n }"
] |
[
"0.6413462",
"0.60143644",
"0.5867136",
"0.5867136",
"0.5867136",
"0.5867136",
"0.5867136",
"0.5832945",
"0.5807439",
"0.57759845",
"0.5695562",
"0.56624323",
"0.5651948",
"0.5604035",
"0.56017536",
"0.5541506",
"0.5520927",
"0.55072796",
"0.54907197",
"0.5413163",
"0.54115707",
"0.54000765",
"0.5348296",
"0.53293234",
"0.5324415",
"0.5314657",
"0.53140634",
"0.5293099",
"0.52774787",
"0.52765065",
"0.52706116",
"0.526683",
"0.5261901",
"0.5261579",
"0.5240249",
"0.52365613",
"0.5236368",
"0.5230905",
"0.52234125",
"0.5219299",
"0.52161056",
"0.5213035",
"0.5207756",
"0.52052844",
"0.5203577",
"0.5203577",
"0.5203577",
"0.5200327",
"0.5198584",
"0.5198232",
"0.5198232",
"0.5197654",
"0.5191498",
"0.5185552",
"0.5173033",
"0.5173033",
"0.5173033",
"0.5173033",
"0.5173033",
"0.5173033",
"0.5173033",
"0.5173033",
"0.5173033",
"0.51688784",
"0.51665604",
"0.51617604",
"0.515712",
"0.51468885",
"0.51400155",
"0.5139354",
"0.513542",
"0.51331186",
"0.51311886",
"0.5126821",
"0.5126213",
"0.512569",
"0.51256394",
"0.51213646",
"0.5121074",
"0.5109714",
"0.5100175",
"0.5096737",
"0.50918245",
"0.508801",
"0.50872403",
"0.5086577",
"0.50831777",
"0.50831777",
"0.50831777",
"0.5081032",
"0.5080982",
"0.50799423",
"0.50720537",
"0.5070786",
"0.5066663",
"0.50642264"
] |
0.68140507
|
4
|
This method was generated by MyBatis Generator. This method returns the value of the database column account_invoice_refund.date
|
public Date getDate() {
return date;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public Date getDateInvoice() {\n return dateInvoice;\n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }",
"public static String getBillDueDate(String account){\n return \"select cb_duedate from current_bills where cb_account = '\"+account+\"'\";\n }",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"public Date getDebitStartDate() {\n return debitStartDate;\n }",
"@Override\n public LocalDate getReturnDate() {\n return returnDate;\n }",
"public LocalDate GetFechaUltimoCambio() throws RemoteException;",
"public java.sql.Date getChargedate() {\n\treturn chargedate;\n}",
"public LocalDate getDateOfPurchase() {\n return dateOfPurchase;\n }",
"public Date getDebitEndDate() {\n return debitEndDate;\n }",
"public java.util.Date getInvoiceDate () {\n\t\treturn invoiceDate;\n\t}",
"public Date getFinancialDocumentRevolvingFundDate() {\r\n return financialDocumentRevolvingFundDate;\r\n }",
"public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }",
"@ApiModelProperty(\n value =\n \"UTC Date when the last bank statement item was entered into Xero. This date is\"\n + \" represented in ISO 8601 format.\")\n /**\n * UTC Date when the last bank statement item was entered into Xero. This date is represented in\n * ISO 8601 format.\n *\n * @return statementBalanceDate LocalDate\n */\n public LocalDate getStatementBalanceDate() {\n return statementBalanceDate;\n }",
"@Override\n\tpublic FdBusinessDate getCurrencyFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"01\");\n\t\treturn mapper.selectByPK(map);\n\t}",
"public LocalDate getDate() {\r\n\t\treturn loanDate;\r\n\t}",
"public java.sql.Date getDate(String columnName) throws SQLException\n {\n return m_rs.getDate(columnName);\n }",
"public Date getInquirydate() {\n return inquirydate;\n }",
"public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }",
"java.lang.String getOrderDate();",
"public java.sql.Date getReceiveDate () {\r\n\t\treturn receiveDate;\r\n\t}",
"public Date getRecdate() {\n return recdate;\n }",
"@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}",
"@Override\n\tpublic Date convertToDatabaseColumn(LocalDate attribute) {\n\t\treturn Date.valueOf(attribute);\n\t}",
"@Override\n\tpublic List<String> getListDueDate() {\n\t\ttry{\n\t\t\t\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT DISTINCT mo.O_DueDate\"\n\t\t\t\t\t+ \" FROM mOrders mo\"\n\t\t\t\t\t+ \"\tWHERE mo.O_Status_Code='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\"' \"\n\t\t\t\t\t\t\t+ \"OR mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"'\"\n\t\t\t\t\t+ \" ORDER BY mo.O_DueDate ASC\";\n\t\t\tList<String> lstOrDate = getSession().createQuery(sql).list();\n\t\t\t//System.out.println(name()+\"::getListDueDate--lstOrDate: \"+lstOrDate.toString());\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn lstOrDate;\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}",
"public LocalDate getDate() {\n return date;\n }",
"private LocalDate get_DATE(int column) {\n // DATE column is always 10 chars long\n String dateString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 10, charset_[column - 1]).toString();\n return LocalDate.parse(dateString, DRDAConstants.DB2_DATE_FORMAT);\n// return DateTime.dateBytesToDate(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }",
"public java.util.Date getPaymentreceiptdate () {\r\n\t\treturn paymentreceiptdate;\r\n\t}",
"public Date getFecRegistro() {\n return fecRegistro;\n }",
"public String getReturnDate();",
"public Number getBudgetAsToDate() {\n return (Number) getAttributeInternal(BUDGETASTODATE);\n }",
"public LocalDate getDate() {\n return date;\n }",
"public LocalDate getDate() {\n return date;\n }",
"public LocalDate getDate() {\n\t\treturn this.date;\n\t}",
"public static void getAccountDateAfter(java.util.Date date) {\n\t\t\n\t\t\n\t java.sql.Date sqlDate = new java.sql.Date(date.getTime());\n\t\t\n\t\taccounts.clear();\n\t\t\n\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t \"from ser322.account,ser322.customer \" + \n\t \"WHERE customer.accID = account.accID AND dateCreated >\" + \"'\" + sqlDate + \"'\";\n\n\t\ttry {\n\t\t\t\n\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t ResultSet rs = stmt.executeQuery(query);\n\t while (rs.next()) {\n\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t \n\t }\n\t \n\t } catch (SQLException e ) {\n\t \tSystem.out.println(\"QUERY WRONG - getAccountDateAfter\");\n\t }\n\n\t}",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"public String getLastPaymentDate() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"PAYMENT_DATE\").get(0);\n\t}",
"public Date getDate(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getDate\", columnName);\n return get(columnName).getDate();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n\tpublic LocalDate convertToEntityAttribute(Date dbData) {\n\t\treturn dbData.toLocalDate();\n\t}",
"Date getNextIncomeDate() throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }",
"public Date getTrxDate() {\r\n return trxDate;\r\n }",
"public String getAccountCloseDate() {\n return accountCloseDate;\n }",
"public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }",
"LocalDate getDate();",
"Date getDateField();",
"@Override\n public void setReturnDate(LocalDate date) {\n this.returnDate = date;\n }",
"Date getInvoicedDate();",
"public Date getDate() {\n DateTimeField dateField = obtainField(FieldName.DATE);\n if (dateField == null)\n return null;\n\n return dateField.getDate();\n }",
"@Query(value = \"select rec_date from receipt where amc_no = :amcNo\", nativeQuery = true)\n\tList<Date> findDateByAmcNo(@Param(\"amcNo\") String amcNo);",
"public Integer getRefundMoney() {\n return refundMoney;\n }",
"public Integer getRefund() {\n return refund;\n }",
"public Date getDateOfPurchase() {\n return dateOfPurchase;\n }",
"public java.sql.Date getClosedate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"closedate\")));\n }",
"Date getDateRDV() {\n return this.dateRDV;\n }",
"public java.util.Date getDisbursmentDate () {\n\t\treturn disbursmentDate;\n\t}",
"public Date getDueDate() {\n\t\treturn date; //changed DaTe to date\r\n\t}",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"protected Date getReturnDate() \t{ return this.returnDate; }",
"@Transient\n\tpublic Date getPurchaseDate()\t{\n\t\treturn mPurchaseDate;\n\t}",
"public org.exolab.castor.types.Date getDtDtInvoWarrantDate()\r\n {\r\n return this._dtDtInvoWarrantDate;\r\n }",
"public LocalDate getOrderDate() {\n return new LocalDate(this.orderDate.getMonth(), this.orderDate.getDay(), this.orderDate.getYear());\n\n }",
"public String Get_date() \n {\n \n return date;\n }",
"java.lang.String getToDate();",
"public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }",
"public LocalDate getDateDebut() {\n\t\treturn dateDebut;\n\n\t}",
"public Date getDate() {\n return order.getDate();\n }",
"@Override\n\tpublic int getRefund(Refund refund) {\n\t\treturn paydao.doRefund(refund);\n\t}",
"public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);",
"public int getRefundId() {\n return refundId;\n }",
"LocalDate getCheckInDate();",
"public Date getSupEntRegdate() {\n return supEntRegdate;\n }",
"public java.sql.Date getDateassemb() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"dateassemb\")));\n }",
"public void setDateInvoice(Date dateInvoice) {\n this.dateInvoice = dateInvoice;\n }",
"public String getRefundId() {\n return refundId;\n }",
"private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}",
"public String getJP_AcctDate();",
"public Date getBDate(){\n \treturn bDate;\n }",
"public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }",
"@Override\n public Date getDate() {\n return date;\n }",
"public String getDate(){\n\n return this.date;\n }",
"public void test_Date_utilDateColumn_selects_sqlDate_Tx() throws Exception {\n // ## Arrange ##\n final Integer memberId = 1;\n\n // ## Act ##\n final Member member = jdbcManager.from(Member.class).where(\"memberId = ?\", memberId).getSingleResult();\n\n // ## Assert ##\n assertNotNull(member);\n log(member.toString());\n assertEquals(memberId, member.memberId);\n assertEquals(java.sql.Date.class, member.birthdate.getClass());\n }",
"public java.sql.Date getDatepr() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"datepr\")));\n }",
"@Override\n public LocalDate getDate() {\n return null;\n }",
"Date getDueDate();",
"Date getDueDate();",
"public java.sql.Date getDate(int columnIndex) throws SQLException\n {\n return m_rs.getDate(columnIndex);\n }",
"public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }",
"public String getPurchaseDate()\n {\n return purchaseDate;\n }",
"@ApiModelProperty(value = \"The date when the claim was entered.\")\n public DtoValueNullableDateTime getDate() {\n return date;\n }",
"public String getReturningDate() {\r\n return returningDate;\r\n }",
"public java.sql.Date getDEPARTURE_FROM_LOC_DATE()\n {\n \n return __DEPARTURE_FROM_LOC_DATE;\n }",
"public String getPurchaseDate() {\n return purchaseDate;\n }",
"public Date getDate()\n {\n return this.date;\n }",
"public LocalDate getFecha() {\n\t\treturn fecha;\n\t}",
"public Date getDate() {\n return this.date;\n }",
"public List<String> getAccountBetweenDate(String first_date, String second_date) throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<String> accountList= session.createQuery(\"select account_no from Account where date(opening_date) BETWEEN '\"+first_date+\"' AND '\"+second_date+\"'\",String.class).list();\n return AccountDto.AccountBtwDate(accountList);\n }",
"public String getReturnDate() {\n\t\treturn returnDateElement.getAttribute(\"value\");\n\t}"
] |
[
"0.67460763",
"0.60222",
"0.5917619",
"0.5915415",
"0.59120214",
"0.59117454",
"0.58161485",
"0.5807813",
"0.57901496",
"0.57591903",
"0.57326794",
"0.5728658",
"0.5720376",
"0.567423",
"0.56059176",
"0.55972",
"0.55714476",
"0.55465984",
"0.55462146",
"0.5542345",
"0.5528354",
"0.5498615",
"0.5465843",
"0.5465258",
"0.5464258",
"0.5457661",
"0.545276",
"0.5442947",
"0.5425972",
"0.54188025",
"0.5417209",
"0.54164284",
"0.5414134",
"0.540724",
"0.540724",
"0.5400902",
"0.5391877",
"0.53890556",
"0.53890556",
"0.5355253",
"0.53466666",
"0.5330821",
"0.53304666",
"0.5324171",
"0.5319482",
"0.5316837",
"0.53002",
"0.529766",
"0.5287987",
"0.52828914",
"0.5273017",
"0.5269447",
"0.5261622",
"0.5257384",
"0.5241449",
"0.5238505",
"0.5231303",
"0.5222296",
"0.52145964",
"0.52138865",
"0.52093345",
"0.5208735",
"0.52067465",
"0.51981604",
"0.519109",
"0.5170624",
"0.5162619",
"0.51625913",
"0.5160068",
"0.5155323",
"0.51548374",
"0.51508707",
"0.5148367",
"0.51429546",
"0.51369107",
"0.5133003",
"0.51249105",
"0.512409",
"0.5123077",
"0.51207453",
"0.51147455",
"0.5108538",
"0.510075",
"0.51002485",
"0.5093182",
"0.50806075",
"0.5079851",
"0.50774276",
"0.50774276",
"0.50760156",
"0.507016",
"0.50700206",
"0.5059219",
"0.504987",
"0.50485915",
"0.5042018",
"0.5041186",
"0.5040108",
"0.5039268",
"0.50386935",
"0.50384533"
] |
0.0
|
-1
|
This method was generated by MyBatis Generator. This method sets the value of the database column account_invoice_refund.date
|
public void setDate(Date date) {
this.date = date;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }",
"public void setDateInvoice(Date dateInvoice) {\n this.dateInvoice = dateInvoice;\n }",
"@Override\n public void setReturnDate(LocalDate date) {\n this.returnDate = date;\n }",
"public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);",
"public void setInquirydate(Date inquirydate) {\n this.inquirydate = inquirydate;\n }",
"public void setInvoiceDate (java.util.Date invoiceDate) {\n\t\tthis.invoiceDate = invoiceDate;\n\t}",
"public void setDebitStartDate(Date debitStartDate) {\n this.debitStartDate = debitStartDate;\n }",
"public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }",
"public void setDate(LocalDate date) {\n this.date = date;\n }",
"public void setDateFin(LocalDate dateFin_) {\n\t\tdateFin = dateFin_;\n\t}",
"public void setDate(LocalDate date) {\n\t\tthis.date = date;\n\t}",
"public final void setDate(LocalDate date) {\n dateProperty().set(date);\n }",
"public void setFinancialDocumentRevolvingFundDate(Date financialDocumentRevolvingFundDate) {\r\n this.financialDocumentRevolvingFundDate = financialDocumentRevolvingFundDate;\r\n }",
"@Override\n\tpublic void setPaymentDate(java.util.Date paymentDate) {\n\t\t_esfShooterAffiliationChrono.setPaymentDate(paymentDate);\n\t}",
"public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }",
"public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }",
"protected void setReturnDate(Date d){ this.returnDate = d; }",
"public void setDebitEndDate(Date debitEndDate) {\n this.debitEndDate = debitEndDate;\n }",
"public void setReceivalDate(String receivalDate){\n\t\tthis.receivalDate = \"\";\n\t\tthis.receivalDate += receivalDate;\n\t}",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"void setDateOfBirth(LocalDate dateOfBirth);",
"void setInvoicedDate(Date invoicedDate);",
"public void setDateOfBirth(LocalDate dateOfBirth) {\n this.dateOfBirth = dateOfBirth;\n }",
"public void setSupEntRegdate(Date supEntRegdate) {\n this.supEntRegdate = supEntRegdate;\n }",
"public void setFecRegistro(Date fecRegistro) {\n this.fecRegistro = fecRegistro;\n }",
"public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }",
"public void setAccountCloseDate(final String accountCloseDate) {\n this.accountCloseDate = accountCloseDate;\n }",
"public void updateDate(String columnName, java.sql.Date x) throws SQLException\n {\n m_rs.updateDate(columnName, x);\n }",
"public void setChargedate(java.sql.Date newChargedate) {\n\tchargedate = newChargedate;\n}",
"public void setTranDate(int date)\n\t{\n\t\tthis.tranDate = date;\n\t}",
"public void setClosedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.closedDate, v))\n {\n this.closedDate = v;\n setModified(true);\n }\n \n \n }",
"public Date getDateInvoice() {\n return dateInvoice;\n }",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"public void setDate(Date date) {\r\n this.date = date;\r\n }",
"public void updateDate(String columnName, Date x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateDate(\" + quote(columnName) + \", x);\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueDate.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setDEPARTURE_FROM_LOC_DATE(java.sql.Date value)\n {\n if ((__DEPARTURE_FROM_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__DEPARTURE_FROM_LOC_DATE)))\n {\n _isDirty = true;\n }\n __DEPARTURE_FROM_LOC_DATE = value;\n }",
"public void setDateClose(java.lang.String dateClose)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATECLOSE$4);\n }\n target.setStringValue(dateClose);\n }\n }",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setOrderDate(LocalDate orderDate) {\n try {\n if(orderDate!=null){\n LocalDate newOrderDAte = new LocalDate(orderDate.getMonth(), orderDate.getDay(), orderDate.getYear());\n this.orderDate = newOrderDAte;\n }\n else{\n this.orderDate=new LocalDate();\n throw new SupplyOrderException(\"Invalid date\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }",
"public void setDEAL_VALUE_DATE(Date DEAL_VALUE_DATE) {\r\n this.DEAL_VALUE_DATE = DEAL_VALUE_DATE;\r\n }",
"public void setDate(long date) {\n\t\tthis.date = date;\n\t}",
"public void setDueDate(Date d){dueDate = d;}",
"public void setDate(int date){\n this.date = date;\n }",
"public void setStatementBalanceDate(LocalDate statementBalanceDate) {\n this.statementBalanceDate = statementBalanceDate;\n }",
"public void setDate(Date date) {\n\t\tthis._date = date;\n\t}",
"public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }",
"public void setDateOfPurchase(Date dateOfPurchase) {\n this.dateOfPurchase = dateOfPurchase;\n }",
"public Date getDebitEndDate() {\n return debitEndDate;\n }",
"public void setPaymentDate( Date paymentDate ) {\n this.paymentDate = paymentDate;\n }",
"public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}",
"private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}",
"public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}",
"public Date getDebitStartDate() {\n return debitStartDate;\n }",
"public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}",
"public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public void setJP_AcctDate (String JP_AcctDate);",
"public void setBudgetAsToDate(Number value) {\n setAttributeInternal(BUDGETASTODATE, value);\n }",
"public void setaBrithdate(Date aBrithdate) {\n this.aBrithdate = aBrithdate;\n }",
"public void setDate(Date date) {\n setDate(date, null);\n }",
"@Override\n public void setRegistrationDate(java.util.Date registrationDate) {\n _entityCustomer.setRegistrationDate(registrationDate);\n }",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }",
"public void setDate(String date) {\r\n this.date = date;\r\n }",
"@Transactional\n @Override\n public void updatedExpiredTradesStatus(LocalDate date) {\n tradeRepository.updateExpiredTradesStatus(date);\n }",
"public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(final Date date) {\n this.date = date;\n }",
"public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }",
"public void setOpenDate(LocalDate date){\n\t\topenDate = date;\n\t}",
"public void setBirthDate(Date inBirthDate)\n {\n birthdate = inBirthDate;\n }",
"public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public void setDate(String date){\n this.date = date;\n }",
"@Override\r\n\tpublic void updateRefund(Refund refund) throws Exception {\n\t\t\r\n\t}",
"public void setDate(String date){\n this.date = date;\n }",
"public void SetDate(Date date);",
"public void setDate(final int tranDate) {\n this.date = tranDate;\n }",
"public void setDate(Date date) {\n mDate = date;\n }",
"@Override\n public LocalDate getReturnDate() {\n return returnDate;\n }",
"public void setDate(String date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(String date) {\n\t\tthis.date = date;\n\t}"
] |
[
"0.75818515",
"0.65385664",
"0.6503039",
"0.62354314",
"0.6234008",
"0.6203877",
"0.5958604",
"0.5939826",
"0.5936085",
"0.59344554",
"0.58785975",
"0.5846123",
"0.5809375",
"0.576799",
"0.57629937",
"0.5697564",
"0.56883377",
"0.5682368",
"0.5670165",
"0.5665243",
"0.5656533",
"0.5656533",
"0.5635678",
"0.5619068",
"0.5599506",
"0.5576137",
"0.5564578",
"0.5558687",
"0.5558326",
"0.5552372",
"0.5551031",
"0.5544418",
"0.5529901",
"0.5507804",
"0.55018216",
"0.54868037",
"0.5480931",
"0.5475188",
"0.5466865",
"0.54388744",
"0.54388744",
"0.54388744",
"0.54366696",
"0.54366696",
"0.54366696",
"0.5435263",
"0.54343504",
"0.5419874",
"0.5416765",
"0.54167366",
"0.5411063",
"0.54045415",
"0.53956574",
"0.5381814",
"0.5376948",
"0.53743136",
"0.535897",
"0.53519726",
"0.5350982",
"0.5346483",
"0.53365076",
"0.5323397",
"0.53208816",
"0.53153133",
"0.53146726",
"0.5314626",
"0.5310531",
"0.5308088",
"0.53063035",
"0.53060377",
"0.5302454",
"0.5302391",
"0.53018796",
"0.53018796",
"0.53018796",
"0.53018796",
"0.53018796",
"0.5300049",
"0.52888983",
"0.528152",
"0.52802175",
"0.5273265",
"0.52695274",
"0.5266799",
"0.5263725",
"0.52613354",
"0.52600515",
"0.52593136",
"0.524917",
"0.52490133",
"0.5243193",
"0.5243193"
] |
0.54780716
|
45
|
This method was generated by MyBatis Generator. This method returns the value of the database column account_invoice_refund.create_date
|
public Date getCreateDate() {
return createDate;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Basic( optional = true )\r\n\t@Column( name = \"create_date\" )\r\n\tpublic Date getCreateDate() {\r\n\t\treturn this.createDate;\r\n\t\t\r\n\t}",
"public Date getCreateDate() { return this.createDate; }",
"public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }",
"public Date getCreate_date() {\n return create_date;\n }",
"Date getCreateDate();",
"Date getCreateDate();",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn _second.getCreateDate();\n\t}",
"public Date getCreateDate() {\n return createDate;\n }",
"public Date getCreateDate();",
"public Date getCreateDate();",
"public Date getCreateDate();",
"public Date getCreateDate() {\r\n return createDate;\r\n }",
"public Date getCreateDate() {\r\n return createDate;\r\n }",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}",
"public String getCreateDate() {\n return createDate;\n }",
"public Date getCreateDt() {\n\t\treturn this.createDt;\n\t}",
"public Date getCreateDt() {\n return createDt;\n }",
"public java.util.Date getCreateDate() {\n return this.createDate;\n }",
"public Date getdCreateDate() {\r\n return dCreateDate;\r\n }",
"public Date getdCreateDate() {\r\n return dCreateDate;\r\n }",
"public Date getCreateDate() {\r\n\t\treturn createDate;\r\n\t}",
"public java.util.Date getCreateDate() {\n if (createDate == null) {\n return null;\n }\n return (java.util.Date)createDate.clone();\n }",
"public String getCreateDate() {\n return createDate;\n }",
"public String getCreateDate() {\n return createDate;\n }",
"public String getCreateDate() {\n return createDate;\n }",
"public Date getCreateDate() {\n\t\treturn createDate;\n\t}",
"public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}",
"@Override\n\tpublic Date getCreateDate();",
"@Override\n\tpublic Date getCreateDate();",
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }",
"public String getRebillCreationDate()\n\t{\n\t\tif(response.containsKey(\"creation_date\")) {\n\t\t\treturn response.get(\"creation_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn _changesetEntry.getCreateDate();\n\t}",
"public Long getCreateDatetime() {\n return createDatetime;\n }",
"public Long getCreateDatetime() {\n return createDatetime;\n }",
"@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public void setCreateDate(Date createDate) { this.createDate = createDate; }",
"public Timestamp getCreateDate() {\n return createDate;\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}",
"public void setCreateDate(String value) {\n this.createDate = value;\n }",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"public Date getCreateBy() {\n return createBy;\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _employee.getCreateDate();\n\t}",
"Date getCreatedDate();",
"@Override\n\tpublic Date getCreated_date() {\n\t\treturn _buySellProducts.getCreated_date();\n\t}",
"public Date getCreateDatetime() {\r\n\t\treturn createDatetime;\r\n\t}",
"public java.sql.Date getReceiveDate () {\r\n\t\treturn receiveDate;\r\n\t}",
"public String getRequisitionCreateDate() {\r\n return requisitionCreateDate;\r\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _esfTournament.getCreateDate();\n\t}",
"public Date getDateCreated(){return DATE_CREATED;}",
"public LocalDateTime getCreateDate() {\n return createDate;\n }",
"public String getCreateDate(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(CREATE_DATE_COLUMN);\n }",
"@Override\n public LocalDate getReturnDate() {\n return returnDate;\n }",
"public void setCreate_date(Date create_date) {\n this.create_date = create_date;\n }",
"public LocalDate getDateOfCreation() {\n return this.dateOfCreation;\n }",
"@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}",
"public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }",
"public Date getDateInvoice() {\n return dateInvoice;\n }",
"Date getCreationDate()\n throws RemoteException;",
"public Date getDebitStartDate() {\n return debitStartDate;\n }",
"public LocalDate GetFechaUltimoCambio() throws RemoteException;",
"public java.sql.Date getChargedate() {\n\treturn chargedate;\n}",
"Date getDateField();",
"public Date getCreateOn() {\n\t\treturn this.createOn;\r\n\t}",
"public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }",
"public java.lang.String getCreateDate() {\n java.lang.Object ref = createDate_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createDate_ = s;\n return s;\n }\n }",
"@ApiModelProperty(value = \"The time when the merchant initiated the refund for Square to process, in ISO 8601 format.\")\n public String getCreatedAt() {\n return createdAt;\n }",
"public Date getCreatedDate();",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _dictData.getCreateDate();\n\t}",
"public Date getFecRegistro() {\n return fecRegistro;\n }",
"public String getReturnDate();",
"@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }"
] |
[
"0.63680995",
"0.6347765",
"0.63121974",
"0.62568384",
"0.6253021",
"0.6253021",
"0.6195371",
"0.61950076",
"0.6177746",
"0.6177746",
"0.6177746",
"0.6095195",
"0.6095195",
"0.6088294",
"0.6088294",
"0.6088294",
"0.60753345",
"0.60440475",
"0.6033155",
"0.6025734",
"0.6025467",
"0.6025467",
"0.6022235",
"0.6014981",
"0.6012639",
"0.60086495",
"0.60086495",
"0.5994609",
"0.59642345",
"0.59533274",
"0.59533274",
"0.59174466",
"0.5853321",
"0.583604",
"0.58032995",
"0.57881683",
"0.57881683",
"0.57848287",
"0.57587403",
"0.5755311",
"0.575305",
"0.5691029",
"0.56725144",
"0.56681657",
"0.56681216",
"0.5667538",
"0.5667538",
"0.5667538",
"0.5666087",
"0.56562436",
"0.564122",
"0.5639742",
"0.5624213",
"0.56226444",
"0.5609909",
"0.5603263",
"0.5594553",
"0.55758625",
"0.55727744",
"0.5566788",
"0.5563707",
"0.556158",
"0.55549467",
"0.5554332",
"0.5544064",
"0.5526025",
"0.5519475",
"0.5511036",
"0.5510503",
"0.55049706",
"0.54862654",
"0.54862654",
"0.54848653",
"0.547058",
"0.54635465",
"0.54597616",
"0.5458406",
"0.54497534",
"0.5443009"
] |
0.61055803
|
31
|
This method was generated by MyBatis Generator. This method sets the value of the database column account_invoice_refund.create_date
|
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }",
"public void setCreateDate(Date createDate) { this.createDate = createDate; }",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public void setCreate_date(Date create_date) {\n this.create_date = create_date;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }",
"public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }",
"public void setCreateDate(String value) {\n this.createDate = value;\n }",
"@Override\n\tpublic void setCreateDate(Date createDate);",
"@Override\n\tpublic void setCreateDate(Date createDate);",
"public void setCreateDate( Date createDate ) {\n this.createDate = createDate;\n }",
"public void setCreateDate( Date createDate ) {\n this.createDate = createDate;\n }",
"void setCreateDate(Date date);",
"public void setCreateDt(Date createDt) {\n this.createDt = createDt;\n }",
"public void setCreateDate(Date createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}",
"public void setCreateDate(Date createDate) {\n\t\tthis.createDate = createDate;\n\t}",
"public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_second.setCreateDate(createDate);\n\t}",
"public void setDateCreate(Date dateCreate) {\n this.dateCreate = dateCreate;\n }",
"public void setCreateDate(java.util.Date createDate) {\n this.createDate = createDate;\n }",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}",
"public void setCreateDate(String createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}",
"@Override\n public void setCreateDate(java.util.Date createDate) {\n _partido.setCreateDate(createDate);\n }",
"public void setCreateDt(Date createDt) {\n\t\tthis.createDt = createDt;\n\t}",
"public void setCreateDate(LocalDateTime createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(final Date createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_esfTournament.setCreateDate(createDate);\n\t}",
"public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }",
"public void setdCreateDate(Date dCreateDate) {\r\n this.dCreateDate = dCreateDate;\r\n }",
"public void setdCreateDate(Date dCreateDate) {\r\n this.dCreateDate = dCreateDate;\r\n }",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\tmodel.setCreateDate(createDate);\n\t}",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\tmodel.setCreateDate(createDate);\n\t}",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\tmodel.setCreateDate(createDate);\n\t}",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_employee.setCreateDate(createDate);\n\t}",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_candidate.setCreateDate(createDate);\n\t}",
"public void setCreateDate(java.util.Calendar createDate) {\n this.createDate = createDate;\n }",
"public void setDateInvoice(Date dateInvoice) {\n this.dateInvoice = dateInvoice;\n }",
"public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }",
"public void setCreateDatetime(Date createDatetime) {\r\n\t\tthis.createDatetime = createDatetime;\r\n\t}",
"public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }",
"@Override\n public void setReturnDate(LocalDate date) {\n this.returnDate = date;\n }",
"public void setCreateDate(Timestamp createDate) {\n this.createDate = createDate;\n }",
"public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_dictData.setCreateDate(createDate);\n\t}",
"public void setCreatedDate(Date createDate) {\n\t\tthis.createdDate = createDate;\n\t}",
"public Date getCreateDate() { return this.createDate; }",
"@Override\n\tpublic void setCreated_date(Date created_date) {\n\t\t_buySellProducts.setCreated_date(created_date);\n\t}",
"public void setCreateDate(long newVal) {\n setCreateDate(new java.util.Date(newVal));\n }",
"public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }",
"public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }",
"public void setInquirydate(Date inquirydate) {\n this.inquirydate = inquirydate;\n }",
"public Builder setCreateDate(String value) {\n validate(fields()[2], value);\n this.createDate = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_paper.setCreateDate(createDate);\n\t}",
"void setCreatedDate(Date createdDate);",
"public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}",
"public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }",
"public void setCreatedDate(Date createdDate);",
"public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }",
"public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }",
"public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }",
"public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }",
"public void setDateCreated(Date dateCreated);",
"public void setCreatedDate(Date value) {\n this.createdDate = value;\n }",
"public void setCreatedDate(Date value) {\n this.createdDate = value;\n }",
"@Basic( optional = true )\r\n\t@Column( name = \"create_date\" )\r\n\tpublic Date getCreateDate() {\r\n\t\treturn this.createDate;\r\n\t\t\r\n\t}",
"public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }",
"public void setDebitStartDate(Date debitStartDate) {\n this.debitStartDate = debitStartDate;\n }",
"public Date getCreate_date() {\n return create_date;\n }",
"public void setCreateDateTime(LocalDateTime createDateTime) {\n\t\tthis.createDateTime = createDateTime;\n\t}",
"void setCreationDate(Date val)\n throws RemoteException;",
"public void setDate(LocalDate date) {\n this.date = date;\n }",
"void setDateOfBirth(LocalDate dateOfBirth);",
"public Date getCreateDate() {\n return createDate;\n }",
"void setCreateDate(final Date creationDate);",
"public void setFecRegistro(Date fecRegistro) {\n this.fecRegistro = fecRegistro;\n }"
] |
[
"0.6916522",
"0.67117554",
"0.66448396",
"0.6587316",
"0.65471166",
"0.65363216",
"0.65363216",
"0.65363216",
"0.64999735",
"0.64999735",
"0.645229",
"0.6411863",
"0.6411863",
"0.64069575",
"0.64069575",
"0.63998306",
"0.63850397",
"0.6365232",
"0.6303797",
"0.6294023",
"0.6294023",
"0.6293736",
"0.6257176",
"0.6243851",
"0.6204634",
"0.6190158",
"0.6184703",
"0.61797535",
"0.6168403",
"0.6132115",
"0.6112693",
"0.60296494",
"0.59804213",
"0.59804213",
"0.5967899",
"0.5967899",
"0.5967899",
"0.5948647",
"0.59229594",
"0.59074944",
"0.5907069",
"0.5904377",
"0.5870699",
"0.58359736",
"0.580324",
"0.58014876",
"0.5793904",
"0.5792717",
"0.5792084",
"0.57704157",
"0.5705444",
"0.56979156",
"0.56774414",
"0.56774414",
"0.5670547",
"0.56698257",
"0.565036",
"0.56307936",
"0.5627726",
"0.56275344",
"0.5621723",
"0.5614814",
"0.5614814",
"0.5614814",
"0.5608758",
"0.55993015",
"0.55961466",
"0.55961466",
"0.55934405",
"0.5592589",
"0.5536159",
"0.55143213",
"0.55126023",
"0.55084366",
"0.55036986",
"0.54886657",
"0.54857737",
"0.54773146",
"0.54612696"
] |
0.64860535
|
28
|
Returns (already cast to the type T) the data (if any) with the given key.
|
@SuppressWarnings("unchecked")
public <T> T getData(String key) {
return (T) data.get(key);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"<T> T getValue(DataKey<T> key);",
"public <T> T get(String key) {\n return (T) data.get(key);\n }",
"@Nullable\n public Object getData(final @NotNull String key) {\n return data.get(key);\n }",
"public T get(K key);",
"public abstract T get(String key);",
"T get(String key);",
"@Override\n public T get(Object key) {\n return get(key, null);\n }",
"public Object getDataValue(String key) {\n\t\t if (data.containsKey(key)) {\n\t\t\t return data.get(key);\n\t\t }\n\t\t return null;\n\t }",
"public Object get(String key);",
"public V get(K key)\r\n\t{\r\n\t\tEntry retrieve = data.get(new Entry(key, null));\r\n\t\t\r\n\t\tif(retrieve != null)\r\n\t\t{\r\n\t\t\treturn retrieve.value;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"Object get(String key);",
"Object get(String key);",
"@SuppressWarnings(\"unchecked\")\n public final <T> T require(final Class<T> key)\n throws Exception {\n\n if(!contains(key)) throw new Exception(\n String.format(\"Data[%s] not \" +\n \"available in Task.\", key));\n\n return (T) _data.get(key);\n }",
"public Value get(Key key);",
"T get(@NonNull String key);",
"public Value get(Key key) {\r\n\t\t\tValue ret = null;\r\n\t\t\t\r\n\t\t\tdata.reset();\r\n\t\t\tfor (int i = 0; i < data.size(); i++) {\r\n\t\t\t\tif (data.get().getKey().compareTo(key) == 0) {\r\n\t\t\t\t\tret = data.get().getValue();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdata.next();\r\n\t\t\t}\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\treturn ret;\r\n\t\t}",
"V get(Object key);",
"public Object get(String key) {\n \t\treturn this.get(null, key);\n \t}",
"public T get(Object key)\n\t{\n\t\tif(root == null || key == null)\n\t\t\treturn null;\n\t\tif(!(key instanceof CharSequence))\n\t\t\treturn null;\n\t\treturn root.get((CharSequence)key,0);\n\t}",
"protected abstract Object _get(String key);",
"public Value get(Key key) ;",
"public abstract V get(K key);",
"public <T> T get(Object key) {\n if(attributes == null)\n return null;\n Object value = attributes.get(key);\n return value == null ? null : (T) value;\n }",
"public E get(String key) {\n TSTNode<E> node = getNode(key);\n if(node==null) return null;\n return node.data;\n }",
"V get(final K key);",
"public String getData(String key) {\r\n\t\treturn (String) data.get(key);\r\n\t}",
"public String get(String key) {\n return getData().get(key);\n }",
"Object get(Object key);",
"@Override\r\n public V get(Object key) {\r\n return get(key,table);\r\n }",
"protected abstract V get(K key);",
"T get(String key) throws IOException;",
"public V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"public V get(String key);",
"public T retrieveByKey(S key) throws SQLException;",
"public <T> T get(TypedKey<T> key)\n\t{\n\t\tObject value = map.get(Objects.requireNonNull(key));\n\t\treturn (value == null) ? key.getDefaultValue() : key.cast(value);\n\t}",
"public abstract <T> MarketDataBox<T> getValue(MarketDataKey<T> key);",
"@Nullable\n public <T> T get(MDSKey id, Type typeOfT) {\n Row row = table.get(id.getKey());\n if (row.isEmpty()) {\n return null;\n }\n\n byte[] value = row.get(COLUMN);\n if (value == null) {\n return null;\n }\n\n return deserialize(id, value, typeOfT);\n }",
"public final <T> T getMetaData(final MetaDataKey<T> key)\n\t{\n\t\treturn key.get(metaData);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic <T> T get(String key) {\n\t\treturn (T)other.get(key);\n\t}",
"public Object \n\tgetData(\n\t\t\tString key) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) return null;\n\n\t\t\treturn user_data.get(key);\n\n\t\t}finally{\n\n\t\t\tthis_mon.exit();\n\t\t}\n\t}",
"@Override\n public Object data_get(String key) {\n return _dataBind.get(key);\n }",
"public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n V result = null;\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n result = node.getData().value;\n }\n\n return result;\n\n }",
"public Object getObject(String key);",
"public Object get(String key)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? null : section.get(pieces[1]);\n }\n return data.get(key);\n }",
"public native V get(K key);",
"public HeaderData get(String key){\r\n\t\treturn map.get(key);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public V get(Object key)\n {\n V value = delegate.get(key);\n if(value == null && factory != null)\n {\n value = factory.getValue((K)key);\n if(value != null)\n {\n delegate.put((K)key, value);\n }\n }\n return value;\n }",
"public V get(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n V result = null;\r\n if (data[hash] != null) {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n result = (V) currentNode.value;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n return result;\r\n }",
"V getEntry(K key);",
"public V get(Object key) { return _map.get(key); }",
"public T get(Object key, T dflt) {\n Map.Entry<String, T> e = entries.get((String) key);\n return e != null ? e.getValue() : dflt;\n }",
"public Data get(Key key) {\n var curr = root;\n var next = root;\n while (next != null && next.key.compareTo(key) != 0) {\n curr = next;\n\n if (key.compareTo(curr.key) < 0) {\n next = curr.left; \n } else {\n next = curr.right;\n }\n }\n return next == null ? null\n : next.data;\n }",
"public V getValue(K key);",
"public V getValue(K key);",
"<T> T get(String key, Class<T> clazz);",
"public <K> Object getSpecific(K key, String valueKey);",
"public Object get(Object key) {\n CacheEntry entry = (CacheEntry)_hash.get(key);\n if (entry != null) {\n touchEntry(entry);\n return entry.getValue();\n } else {\n return null;\n }\n }",
"public AnyType get(AnyType key) {\n \tif (contains(key)) {\n \t\tint currentPos = findPos( key );\n \t\t\treturn ((array[currentPos] != null) ? array[currentPos].value : null); \n \t}\n \telse {\n \t\treturn null;\n \t}\n }",
"public V get(K key) {\n\t\treturn table.get(calcIndex(key)).get(key);\n\t}",
"public KeyedItem retrieve(Comparable key){\r\n\t\treturn retrieve(this,key);\r\n\t}",
"public abstract Object getMetadata(String key);",
"@Override\n\tpublic V get(Object key) {\n\t\tfor (int i = 0; i < tabla.size(); i++) {\n\t\t\tint indice = tabla.get(i).keySet().indexOf(key);\n\t\t\tif (indice != -1) {\n\t\t\t\treturn tabla.get(i).valueSet().get(indice);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic V get(Object key) {\n\t\treturn map.get(key);\n\t}",
"@Override\n public V get(K key) {\n return getHelper(key, root);\n }",
"String getValue(String type, String key);",
"public Object getItem(String key);",
"public Object get(Object key) {\n byte[] byteKey = keySerde.toBytes(key);\n byte[] result = null;\n try {\n result = db.get(byteKey);\n } catch (RocksDBException e) {\n log.error(\"can not get the value for key: \" + key);\n }\n\n if (result == null) {\n log.info(key + \" does not exist in the rocksDb\");\n return null;\n } else {\n return valueSerde.fromBytes(result);\n }\n }",
"Object getMetadata(String key);",
"public V get(Object key) {\r\n if (cacheDelegate != null) {\r\n cacheDelegate.keyLookup(key);\r\n }\r\n\r\n if (key == null) {\r\n return null;\r\n }\r\n\r\n V value;\r\n CacheData<K, V> cacheData = getEntry(key);\r\n if (cacheData != null) {\r\n // see if the key passed in matches this one\r\n if ((value = cacheData.validateKey(key, cacheDelegate)) != null) {\r\n return value;\r\n }\r\n }\r\n // if we made it here and source!=null use the passthrough\r\n if (source!=null) {\r\n value = source.get(key);\r\n put((K)key, value);\r\n return value;\r\n }\r\n return null;\r\n }",
"@Override\n\tpublic T get(S key) throws Exception {\n\t\treturn null;\n\t}",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"public T getValue(String key) {\r\n\t\tNode node = getNode(root, key, 0);\r\n\t\treturn node == null ? null : node.value;\r\n\t}",
"@Override\r\n\tpublic <T> T get(Object key, Class<T> type) {\n\t\treturn null;\r\n\t}",
"public V get(K key) {\n V value = null;\n\n if (key != null) {\n int index = indexFor(key);\n if (container[index] != null) {\n value = (V) container[index].value;\n }\n }\n return value;\n }",
"@SuppressWarnings(\"unchecked\")\n public T get(K key) {\n synchronized (cacheMap) {\n CacheObject c = (CacheObject) cacheMap.get(key);\n\n if (c == null) {\n return null;\n } else {\n c.lastAccessed = System.currentTimeMillis();\n return c.value;\n }\n }\n }",
"public Object get(String key) {\n return objectMap.get(key);\n }",
"public Object get(Object key){\n\t\tNode tempNode = _locate(key);\r\n\t\tif(tempNode != null){\r\n\t\t\treturn tempNode._value;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic <T> T get(Class<T> clazz, String key) {\n\t\treturn (T) (cacheMap.get(clazz) == null ? null : cacheMap.get(clazz).get(key));\n\t}",
"T getData();",
"public Value get(Value key) {\n\t\treturn storage.get(key);\n\t}",
"public Object get(String key) {\r\n\t\treturn objectMap.get(key);\r\n\t}",
"public Object extGet(String key) throws ClassCastException,\n\t\t\tNullPointerException {\n\t\treturn get(key);\n\t}",
"@Override\n public V get(K key) {\n return getHelper(root, key);\n }",
"@Override\n public V get(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in the table.\n }\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n if (nextItem.key.equals(key)) {\n return nextItem.value;\n }\n }\n\n // assert: key is not in the table.\n return null;\n }",
"@Override\n\tpublic V retrieve(K key) {\n\t\tcheckNullKey(key);\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.get(key);\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}",
"@Override\n public V get(K key) {\n return get(root, key);\n }",
"protected final Object get(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.get(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"Nda<V> get( Object key );",
"<E> E get(String key, Class<E> type);",
"StoragePrimitive get(String key);",
"private V get(K key) {\n\t\t\tif (keySet.contains(key)) {\n\t\t\t\treturn valueSet.get(keySet.indexOf(key));\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"public Object getTransient(Object key);"
] |
[
"0.82788944",
"0.80032593",
"0.74900883",
"0.7337959",
"0.7110672",
"0.7052178",
"0.7013601",
"0.7009909",
"0.6965786",
"0.6934528",
"0.68536776",
"0.68536776",
"0.68217",
"0.6821307",
"0.6800793",
"0.6782174",
"0.67790043",
"0.6775049",
"0.6754791",
"0.67540056",
"0.67362493",
"0.6688354",
"0.6683401",
"0.66526896",
"0.6649856",
"0.6639148",
"0.66347957",
"0.66222733",
"0.6615701",
"0.6593398",
"0.6585643",
"0.6581956",
"0.6576819",
"0.6576819",
"0.6576819",
"0.6576819",
"0.6576819",
"0.6576819",
"0.6576819",
"0.6550188",
"0.6532694",
"0.6531704",
"0.65185285",
"0.6498624",
"0.64985347",
"0.64729846",
"0.64321405",
"0.64271414",
"0.63976926",
"0.6389816",
"0.63870984",
"0.63868177",
"0.63780034",
"0.6363708",
"0.6361917",
"0.6341863",
"0.6340449",
"0.6327941",
"0.6295091",
"0.6294544",
"0.6294544",
"0.6291825",
"0.6278362",
"0.627733",
"0.62769276",
"0.62717235",
"0.6254015",
"0.6253978",
"0.6233853",
"0.6230704",
"0.6225015",
"0.62249255",
"0.6223994",
"0.6218062",
"0.62101865",
"0.62083393",
"0.62062275",
"0.61880356",
"0.61873275",
"0.6178198",
"0.617682",
"0.61728936",
"0.61696434",
"0.6167074",
"0.6156464",
"0.61547095",
"0.6147295",
"0.6146332",
"0.61397856",
"0.6131752",
"0.61240256",
"0.61203694",
"0.60823756",
"0.60763973",
"0.6073497",
"0.60681987",
"0.6058603",
"0.6056002",
"0.60537237",
"0.6053668"
] |
0.82219845
|
1
|
Checks if there is data with the given key.
|
public boolean hasData(String key) {
return data.containsKey(key);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean hasKey(String key) {\n return data.containsKey(key);\n }",
"public boolean containsKey(K key)\r\n\t{\r\n\t\treturn data.contains(new Entry(key,null));\r\n\t}",
"public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\n\t}",
"public boolean has(String key)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section != null && section.has(pieces[1]);\n }\n return data.containsKey(key);\n }",
"boolean hasKey(String key);",
"public synchronized boolean hasKey(K key) {\n return getValue(key) != null;\n }",
"public boolean containsKey(int key) {\n return getElement(key) != null;\n }",
"public boolean containsKey(String key) {\n \treturn (getNode(key) != null);\n }",
"@Override\r\n\tpublic boolean containsKey(Object key) {\r\n\t\tif (key == null) throw new NullPointerException();\r\n\t\treturn get(key) != null;\r\n\t}",
"boolean containsKey(Object key) throws NullPointerException;",
"public boolean has(byte[] key) throws IOException {\n assert (RAMIndex == true);\r\n return index.geti(key) >= 0;\r\n }",
"@Override\n public boolean isKeyPresent(K key){\n return (this.cache.get(key) != null);\n }",
"public synchronized boolean recordExists(String key) {\n return getMemIndex().containsKey(key);\n }",
"@Override\r\n\tpublic boolean exists(T key) {\r\n\t\treturn existsRec(raiz, key);\r\n\t}",
"@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}",
"public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}",
"public boolean hasProperty(String key) {\n return commandData.containsKey(key);\n }",
"boolean has(String key);",
"public boolean contains(String key) {\r\n\t\treturn getValue(key) != null;\r\n\t}",
"public boolean contains(String key)\r\n { return get(key) != null; }",
"public boolean contains(Key key) {\n return get(key) != null;\n }",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"@Request(id = 6, retryable = true, response = ResponseMessageConst.BOOLEAN)\n Object containsKey(String name, Data key);",
"boolean containsInfo(\n int key);",
"public boolean containsKey(Object key)\n {\n // check if the cache needs flushing\n checkFlush();\n\n return getEntryInternal(key) != null;\n }",
"public boolean hasKey() {\n return key_ != null;\n }",
"@Override\n public boolean containsKey(K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to containsKey() is null\");\n }\n return get(key) != null;\n }",
"@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to contains() is null\");\n }\n return get(root, key, 0) != null;\n }",
"public boolean contains(Key key) {\n\t\treturn get(key) != null;\n\t}",
"public boolean contains(String key) {\n return find(key) != null;\n }",
"public synchronized boolean has(byte[] key) throws IOException {\n if ((kelondroAbstractRecords.debugmode) && (RAMIndex != true)) serverLog.logWarning(\"kelondroFlexTable\", \"RAM index warning in file \" + super.tablename);\r\n assert this.size() == index.size() : \"content.size() = \" + this.size() + \", index.size() = \" + index.size();\r\n return index.geti(key) >= 0;\r\n }",
"public boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}",
"public boolean containsKey(String key);",
"public boolean containsKey(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\treturn slot >= 0;\r\n\t}",
"public boolean containsKey(Key key) ;",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean isKeyInCache(Object key);",
"public native Boolean has(K key);",
"public boolean containsKey(String key) {\n int index = hashOf(key);\n return index < capacity && values[index] != null;\n }",
"public final <T> boolean contains(final Class<T> key) {\n return _data.containsKey(key);\n }",
"private boolean contains(String key) {\n return contains(dict, key);\n }",
"public boolean isNewDataAvailable(String key)\n\t{\n\t\tboolean ret = false;\n\t\tsynchronized(mSyncStatusMap)\n\t\t{\n\t\t\tif(mSyncStatusMap.containsKey(key))\n\t\t\t{\n\t\t\t\tret = mSyncStatusMap.get(key);\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public boolean containsKey(int key) {\r\n\t\ttry {\r\n\t\t\tthis.hashlock.readLock().lock();\r\n\t\t\tint index = index(key);\r\n\t\t\tif (index >= 0) {\r\n\t\t\t\tint pos = (index / FREE.length);\r\n\t\t\t\tthis.claims.position(pos);\r\n\t\t\t\tthis.claims.put((byte) 1);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSDFSLogger.getLog().fatal(\"error getting record\", e);\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t\tthis.hashlock.readLock().unlock();\r\n\t\t}\r\n\t}",
"public boolean contains(String key) {\n\t \tNode node = get(key);\n\t return node!=null && node.value!=null;\n\t }",
"public boolean containsKey(K key) {\r\n\t\tif (get(key) == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean hasDataKey(String xryLine) {\n int dataKeyIndex = xryLine.indexOf(KEY_VALUE_DELIMITER);\n //No key structure found.\n if (dataKeyIndex == -1) {\n return false;\n }\n\n String normalizedDataKey = xryLine.substring(0,\n dataKeyIndex).trim().toLowerCase();\n return normalizedDataKey.equals(DATA_KEY);\n }",
"public boolean hasData();",
"public boolean contains( T key )\n {\n if (key == null) return false;\n for ( int i=0 ; i < size() ; ++i )\n if ( get(i).equals( key ) ) \n return true;\n \n return false;\n }",
"boolean containsKey(int key) throws ContentStoreException;",
"final boolean hasKey(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return true;\r\n }\r\n return false;\r\n }",
"private boolean isPresent(JSONObject object, String key) {\n\n\t\treturn !(object.isNull(key));\n\n\t}",
"public boolean containsKey(TKey key) {\n return !(bstFind(key, mRoot) == null);\n }",
"public boolean containsKey(Object key)\r\n/* 386: */ {\r\n/* 387:556 */ return this.headers.containsKey(key);\r\n/* 388: */ }",
"public boolean containsKey(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n Node targetNode = data[hash];\r\n while (targetNode != null) {\r\n if (targetNode.key == key || targetNode.key.equals(key)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n return false;\r\n }",
"public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }",
"public abstract boolean containsKey(K key);",
"public boolean existsKey(String inKey);",
"public boolean checkKey(int key) {\n\t\tBoolean b = getKey(key);\n\t\tclearLastKey();\n\t\treturn b;\n\t}",
"@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public boolean containsKey(Object key) {\n String fieldName = key.toString();\n ScriptDocValues<?> scriptValues = localCacheFieldData.get(fieldName);\n if (scriptValues == null) {\n MappedFieldType fieldType = mapperService.fieldType(fieldName);\n if (fieldType == null) {\n return false;\n }\n }\n return true;\n }",
"public boolean containsKey(Object key) {\r\n if (cacheDelegate != null) {\r\n cacheDelegate.keyLookup(key);\r\n }\r\n\r\n if (key == null) {\r\n return false;\r\n }\r\n\r\n CacheData<K, V> cacheData = getEntry(key);\r\n if (cacheData != null) {\r\n // see if the key passed in matches this one\r\n if ((cacheData.validateKey(key, cacheDelegate)) != null) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}",
"boolean containsKey(K key);",
"boolean containsKey(K key);",
"boolean containsKey(long key);",
"public boolean hasKey(String key) {\r\n\t\tif (objectMap.containsKey(key))\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}",
"public boolean contains(int key) {\n int h = hash(key);\n Iterator<Integer> iterator = data[h].iterator();\n while (iterator.hasNext()) {\n Integer element = iterator.next();\n if (element == key) {\n return true;\n }\n }\n return false;\n }",
"public boolean contains(Key key);",
"boolean exists(Integer key);",
"public boolean contains(long key){\n for (int i = 0; i < numKeys; i++){\n if (keys[i].key == key){\n return true;\n }\n }\n return false;\n }",
"@Override\n public boolean containsKey(Object key) {\n return entries.containsKey(key);\n }",
"@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }",
"public boolean containsKey(K key) {\n synchronized(theLock) {\n return valueMap.containsKey(key) && ! isExpired(valueMap.get(key)); \n }\n }",
"public boolean containsKey(K key) {\n return keys[findIndex(key)] != null;\n }",
"public boolean hasKey() {\n return keyBuilder_ != null || key_ != null;\n }",
"public boolean hasProperty( String key );",
"public boolean contains(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\treturn (entries[n] == null) ? false : entries[n].contains(new Entry(key, null));\n\t}",
"public boolean contains(Key key) {\n return auxContains(root, key);\n }",
"@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}",
"@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }",
"public boolean containsKey(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn false;\r\n\t}",
"@Override\n\t\t\tpublic boolean contains(String key) {\n\t\t\t\treturn false;\n\t\t\t}",
"public final boolean containsKey(String key)\n {\n\n for (int i = m_firstFree - 1; i >= 0; --i)\n {\n if (m_map[i].get(key) != null)\n return true;\n }\n\n return false;\n }",
"private boolean isKeyAtIndex(String key, int index) {\n return index >= 0 && index < size() && mDataSnapshots.get(index).getKey().equals(key);\n }",
"public boolean hasKey() {\n Item[] items = getRoomContents();\n for (int i = 0; i < items.length; i++) {\n if (items[i].getDesc().equals(\"A shiny gold key.\")) {\n return true;\n }\n }\n return false;\n }",
"public boolean containsKey(DNA key){\n Node actual_node = this.getReference(key);\n\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> buscando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n int reference_page = actual_node.getReference(), hash = key.hashCode();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n boolean res = false;\n\n while(true) {\n int cant = content.get(0);\n\n for(int i=1; i<=cant; i++) {\n if(content.get(i) == hash) {\n res = true;\n }\n }\n\n if(res)\n break;\n\n if(content.size() != B)\n break;\n\n reference_page = content.get(B-1);\n content = this.fm.read(reference_page); this.in_counter++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> cadena encontrada: \" + res);\n\n return res;\n }",
"boolean containsStatMetadata(\n long key);",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn map.containsKey(key);\n\t}",
"public final boolean containsKey(final E key) {\r\n if (key == null) throw new NullPointerException();\r\n Node<E,V> l = root.c.get(0);\r\n while (l.c != null) l = child(key, l); /* while l is internal */\r\n return l.hasKey(key);\r\n }",
"public boolean isKeyExists(String key) {\n\t\tSystem.out.println(\"Checking for key : \" + key + \" existance\");\n\t\tboolean keyExist = false;\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\tif (dictMap.containsKey(key))\n\t\t\t\tkeyExist = true;\n\t\t}\n\t\treturn keyExist;\n\t}"
] |
[
"0.7788398",
"0.73930544",
"0.73781174",
"0.7216325",
"0.7175998",
"0.71642685",
"0.7087211",
"0.70778346",
"0.70645475",
"0.70562726",
"0.70422053",
"0.70282036",
"0.6983143",
"0.69615555",
"0.6928873",
"0.69239724",
"0.6917844",
"0.6909225",
"0.68819916",
"0.6870307",
"0.684812",
"0.68417645",
"0.68417645",
"0.68417645",
"0.68417645",
"0.68417645",
"0.6825771",
"0.68244356",
"0.68185294",
"0.6803291",
"0.67888325",
"0.6747758",
"0.6743653",
"0.67334616",
"0.67308253",
"0.67291015",
"0.6728811",
"0.6719879",
"0.67069715",
"0.6705066",
"0.6705066",
"0.6705066",
"0.6705066",
"0.6705066",
"0.6705066",
"0.6705066",
"0.6692129",
"0.6679698",
"0.66675085",
"0.6659699",
"0.66571164",
"0.66348946",
"0.6593201",
"0.65904427",
"0.6588617",
"0.6582494",
"0.65633094",
"0.6556126",
"0.65477794",
"0.654",
"0.65292823",
"0.65215534",
"0.6520388",
"0.6511247",
"0.650831",
"0.6508085",
"0.6502635",
"0.6501063",
"0.6494868",
"0.6488492",
"0.64740676",
"0.64731205",
"0.6469861",
"0.6469861",
"0.64547366",
"0.6446544",
"0.64452785",
"0.64432096",
"0.6440126",
"0.6434225",
"0.64291155",
"0.6420928",
"0.64086574",
"0.63977665",
"0.6396185",
"0.63926697",
"0.6391865",
"0.6391204",
"0.63875985",
"0.63810885",
"0.63706887",
"0.6358166",
"0.63541776",
"0.635406",
"0.6353879",
"0.6353321",
"0.63519716",
"0.6350213",
"0.6346448",
"0.6341289"
] |
0.82519287
|
0
|
If the titles of books are same, no need to update the cell, onBindViewHolder() will not be called.
|
@Override
public boolean areContentsTheSame(Comment newItem) {
return getItem().getName().equals(newItem.getName());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n Book tmp = mDataset.get(position);\n\n if (tmp != null) {\n\n holder.mTextView.setText(tmp.getTitle());\n holder.mDescView.setText(tmp.getDescription());\n holder.bookId.setText(tmp.getIsbn() + \"-\" + tmp.getOwner());\n\n\n if (tmp.getCover() != null) {\n\n Bitmap cover = decodeBase64(tmp.getCover());\n holder.coverBook.setImageBitmap(cover);\n\n } else {\n holder.coverBook.setImageResource(R.drawable.icon_book);\n }\n\n }\n\n }",
"@Override\n public void onBindViewHolder(LoreBookSelectionViewHolder holder, int position) {\n LoreBookSelectionInformation current = bookSelectionData.get(position);\n\n holder.bookIcon.setImageResource(current.getBookIconID());\n holder.bookName.setText(current.getBookName());\n }",
"@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final String title = this.mDataset.get(position).getTitle();\n holder.title.setText(title);\n }",
"@Override\n //updates view items in recycler view\n public final void onBindViewHolder(ViewHolder holder, int position) {\n Book book = bookList.get(position);\n\n holder.authorName.setText(book.getAuthor());\n holder.bookTitle.setText(book.getTitle());\n\n //takes updated image url to load image inside imageview\n Glide.with(context).load(book.getImageURL()).into(holder.cover);\n\n }",
"@Override\n\tpublic void updateBookData() {\n\t\tList<Book> bookList = dao.findByHql(\"from Book where bookId > 1717\",null);\n\t\tString bookSnNumber = \"\";\n\t\tfor(Book book:bookList){\n\t\t\tfor (int i = 1; i <= book.getLeftAmount(); i++) {\n\t\t\t\t// 添加图书成功后,根据ISBN和图书数量自动生成每本图书SN号\n\t\t\t\tBookSn bookSn = new BookSn();\n\t\t\t\t// 每本书的bookSn号根据书的ISBN号和数量自动生成,\n\t\t\t\t// 如书的ISBN是123,数量是3,则每本书的bookSn分别是:123-1,123-2,123-3\n\t\t\t\tbookSnNumber = \"-\" + i;//book.getIsbn() + \"-\" + i;\n\t\t\t\tbookSn.setBookId(book.getBookId());\n\t\t\t\tbookSn.setBookSN(bookSnNumber);\n\t\t\t\t// 默认书的状态是0表示未借出\n\t\t\t\tbookSn.setStatus(new Short((short) 0));\n\t\t\t\t// 添加bookSn信息\n\t\t\t\tbookSnDao.save(bookSn);\n\t\t\t}\n\t\t}\n\t}",
"public void returnBook(String title){\n\t\tif(b1.getTitle().equals(title)){\n\t\t\tb1 = null;\n\t\t\tbooks--;\n\t\t}\n\t\telse if(b2.getTitle().equals(title)){\n\t\t\tb2 = null;\n\t\t\tbooks--;\n\t\t}\n\t\telse if(b3.getTitle().equals(title)){\n\t\t\tb3 = null;\n\t\t\tbooks--;\n\t\t}\n\t}",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n for (int i = 0; i < LEADERBOARD_TITLE_INDICES.length; i++) {\n if (position == LEADERBOARD_TITLE_INDICES[i]) { // Must be a title\n setTitleFormat(holder, i);\n return;\n } else if (position > LEADERBOARD_TITLE_INDICES[i]\n && (i == LEADERBOARD_TITLE_INDICES.length - 1\n || position < LEADERBOARD_TITLE_INDICES[i + 1])) {\n formatTopScore(holder, position, LEADERBOARD_TITLE_INDICES[i], LEADERBOARD_SCORE_TYPE[i]);\n return;\n }\n }\n }",
"@Override\n public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n DetailedResponse detailedResponse = getItem(position);\n\n // - replace the contents of the view with that element\n // holder.title.setText(sampleBook.getFkBookInfoModel());\n holder.bind(detailedResponse);\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n ModsItem item = mItemList.get(position);\n\n if (item != null) {\n holder.mTitle.setText(item.title);\n\n String subTitle = item.subTitle;\n if (!item.partName.isEmpty()) {\n subTitle = item.partName + \"; \" + subTitle;\n }\n if (!item.partNumber.isEmpty()) {\n subTitle = item.partNumber + \"; \" + subTitle;\n }\n holder.mSub.setText(subTitle);\n\n String authorString = \"\";\n Iterator<String> it = item.authors.iterator();\n while (it.hasNext()) {\n String author = it.next();\n authorString += author;\n\n if (it.hasNext()) {\n authorString += \", \";\n }\n }\n holder.mAuthor.setText(authorString);\n\n if (item.issuedDate != null) {\n holder.mPublication.setText(item.issuedDate);\n }\n\n Resources res = mContext.getResources();\n holder.mImage.setImageResource(res.getIdentifier(\"mediaicon_\" + item.mediaType.toLowerCase(Locale.GERMANY), \"drawable\", mContext.getPackageName()));\n }\n }",
"@Override\n public void onBindViewHolder(ReviewsAdapter.ReviewDataViewHolder holder, int position) {\n // Involves populating letsdecode.com.popularmovies.data into the item through holder\n // Get the letsdecode.com.popularmovies.data model based on position\n ReviewData reviewData = reviewDataList.get(position);\n int sequence = position + 1;\n holder.numberTextView.setText(sequence + \".\");\n holder.authorNameTextView.setText(\"Author: \" + reviewData.getAuthorName());\n holder.contentTextView.setText(reviewData.getContent());\n\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {\n if (viewHolder instanceof AlbumPageViewHolder) {\n AlbumPageViewHolder holder = (AlbumPageViewHolder) viewHolder;\n Song song = album.getSongs().get(position - 1);\n holder.title.setText(song.getTitle());\n holder.number.setText(Integer.toString(position));\n holder.duration.setText(song.getDurationString());\n } else if (viewHolder instanceof AlbumPageViewHolderHeader) {\n final AlbumPageViewHolderHeader holder = (AlbumPageViewHolderHeader) viewHolder;\n holder.tvAlbum.setText(album.getTitle());\n holder.tvArtist.setText(album.getArtist());\n\n if (Settings.getInstance().getSettingsData().get(Settings.BOOL_ALP_HEADER_USE_PALETTE +\n String.valueOf(album.getAlbumId())) != null) {\n if ((boolean) Settings.getInstance().getSettingsData().get(Settings.BOOL_ALP_HEADER_USE_PALETTE +\n String.valueOf(album.getAlbumId()))) {\n\n if (album.getPaletteColors().get(Album.PALETTE_COLOR_MAIN) != null) {\n int mainColor = album.getPaletteColors().get(Album.PALETTE_COLOR_MAIN);\n holder.background.setBackgroundColor(mainColor);\n holder.tvAlbum.setTextColor(album.getPaletteColors().get(Album.PALETTE_COLOR_TITLE_TEXT));\n holder.tvArtist.setTextColor(album.getPaletteColors().get(Album.PALETTE_COLOR_BODY_TEXT));\n } else {\n holder.background.setBackgroundColor(Color.WHITE);\n holder.tvAlbum.setTextColor(Color.BLACK);\n holder.tvArtist.setTextColor(Color.BLACK);\n }\n } else {\n int color = (int) Settings.getInstance().getSettingsData().get(Settings.INT_ALP_HEADER_COLOR\n + String.valueOf(album.getAlbumId()));\n if (Utils.useWhiteFont(color)) {\n holder.tvAlbum.setTextColor(Color.WHITE);\n holder.tvArtist.setTextColor(Color.WHITE);\n }\n holder.background.setBackgroundColor(color);\n }\n }\n }\n }",
"@Override\n public boolean onQueryTextChange(String newText) {\n if (myBookingsModels.size() != 0){\n myBookingsAdapter.getFilter().filter(newText);\n myBookingsAdapter.notifyDataSetChanged();\n\n\n }else{\n myBookingsAdapter.getFilter().filter(newText);\n myBookingsAdapter.notifyDataSetChanged();\n }\n\n return true;\n\n }",
"@Override\n public void onClick(View v) {\n boolean isFromMain = true;\n\n for (Book book:DatabaseOP.getInstance().selectALLBook()){\n if (!mBook.getISBN().equals(book.getISBN())){\n isFromMain = false;\n }\n }\n if (isFromMain){\n DatabaseOP.getInstance().updateAllBook(mBook);\n MainActivity.bookList = DatabaseOP.getInstance().selectALLBook();\n adapter.setmBookList(MainActivity.bookList);\n adapter.notifyDataSetChanged();\n }else {\n getView(mBook);\n MainActivity.addbook.set(index,mBook);\n adapter.setmBookList(MainActivity.bookList);\n adapter.notifyDataSetChanged();\n }\n finish();/////add\n }",
"public void prepareBooks(ArrayList<Book> list) {\n\n bookList.clear();\n for(Book book : list) {\n bookList.add(book);\n }\n adapter.notifyDataSetChanged();\n }",
"@Override\n public void showBooks(List<Book> bookList) {\n RecyclerViewBookAdapter recyclerViewAdapter = new RecyclerViewBookAdapter(this, bookList, this);\n recyclerView.swapAdapter(recyclerViewAdapter, false);\n recyclerView.setVisibility(VISIBLE);\n }",
"private void changeTableBookOnSearch(){\n FilteredList<TeacherBookIssue> filteredData = new FilteredList<>(teacherBooksData,p -> true);\r\n \r\n //set the filter predicate whenever the filter changes\r\n teacher_searchTeacherID.textProperty().addListener((observable,oldValue,newValue)->{\r\n \r\n filteredData.setPredicate(TeacherBookIssue -> {\r\n \r\n //if filter text is empty, display all product\r\n if (newValue == null || newValue.isEmpty()) {\r\n return true;\r\n }\r\n \r\n //compare product id and product name of every product with the filter text\r\n String lowerCaseFilter =newValue.toLowerCase();\r\n \r\n if (TeacherBookIssue.getTeacherID().toLowerCase().contains(lowerCaseFilter)) {\r\n return true; // Filter matches product Id\r\n } \r\n \r\n return false; // Do not match \r\n });\r\n \r\n });\r\n \r\n //wrap the filteredList in a sortedList\r\n SortedList<TeacherBookIssue> sortedData = new SortedList<>(filteredData);\r\n \r\n //bind the sortedData to the Tableview\r\n sortedData.comparatorProperty().bind(teachserIssuedTable.comparatorProperty());\r\n \r\n //add sorted and filtered data to the table\r\n teachserIssuedTable.setItems(sortedData); \r\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n MyDataset listItem = listItems.get(position);\n\n// Log.d(TAG, \"onBindViewHolder: string\" + listItem.toString());\n\n if(listItem.getNewComplaint()==false)\n holder.itemView.setBackgroundColor((int)R.color.gray);\n\n holder.itemView.setTag(position);\n holder.textViewComplaint.setText(listItem.getQuery());\n holder.textViewTime.setText(listItem.getTime());\n holder.textViewComplaintId.setText(listItem.getComplaintIdString());\n }",
"@Override\n public View getView(int position, View contentView, ViewGroup arg2) {\n ViewHolder holder = null;\n if (contentView == null) {\n holder = new ViewHolder();\n if (isFamousBook) {\n contentView = LayoutInflater.from(context).inflate(R.layout.view_famous_book_item, null);\n } else {\n contentView = LayoutInflater.from(context).inflate(R.layout.sync_tech_item, null);\n }\n holder.iv_book = (ImageView) contentView.findViewById(R.id.iv_book);\n holder.layout_bg = (RelativeLayout) contentView.findViewById(R.id.layout_book);\n holder.tv_name = (TextView) contentView.findViewById(R.id.tv_name);\n contentView.setTag(holder);\n } else {\n holder = (ViewHolder) contentView.getTag();\n }\n BookEntity book = listBook.get(position);\n if (position == 0) {\n if (book.getType() == AppConstant.FAMOUS_BOOK) {\n holder.iv_book.setImageResource(R.drawable.video_1);\n holder.tv_name.setText(\"Hello World!\");\n } else if (book.getType() == AppConstant.EXAM) {\n holder.layout_bg.setBackgroundResource(R.drawable.exam_book_bg);\n holder.tv_name.setText(\"新课标\\n语文\\n三年级\\n下\");\n book.setName(\"新课标\\n语文\\n三年级\\n下\");\n } else {\n holder.iv_book.setImageResource(R.drawable.english_default);\n holder.tv_name.setText(\"Android程序\\n课件列表\");\n }\n } else if(position == 1){\n if (book.getType() == AppConstant.FAMOUS_BOOK) {\n holder.iv_book.setImageResource(R.drawable.video_2);\n holder.tv_name.setText(\"我是练习生CXK\");\n }\n }\n else if(position == 2){\n if (book.getType() == AppConstant.FAMOUS_BOOK) {\n holder.iv_book.setImageResource(R.drawable.video_3);\n holder.tv_name.setText(\"组件与插件化\");\n }\n }\n else if(position == 3){\n if (book.getType() == AppConstant.FAMOUS_BOOK) {\n holder.iv_book.setImageResource(R.drawable.video_4);\n holder.tv_name.setText(\"第一个安卓应用\");\n }\n }\n else if(position == 4){\n if (book.getType() == AppConstant.FAMOUS_BOOK) {\n holder.iv_book.setImageResource(R.drawable.video_5);\n holder.tv_name.setText(\"多线程开发\");\n }\n }\n else {\n if (book.getType() == AppConstant.FAMOUS_BOOK) {\n holder.iv_book.setImageResource(R.drawable.video_6);\n holder.tv_name.setText(\"Android简介\");\n } else if (book.getType() == AppConstant.EXAM) {\n holder.layout_bg.setBackgroundResource(R.drawable.exam_book_bg);\n holder.tv_name.setText(\"新课标\\n语文\\n三年级\\n下\");\n book.setName(\"新课标\\n语文\\n三年级\\n下\");\n } else {\n holder.iv_book.setImageResource(R.drawable.book_default);\n holder.tv_name.setText(\"新课标\\n语文\\n三年级\\n下\");\n book.setName(\"新课标\\n语文\\n三年级\\n下\");\n }\n }\n return contentView;\n }",
"@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n //Find the individual views that we want to modify in the list item layout\n TextView titleTextView = (TextView) view.findViewById(R.id.title);\n TextView priceTextView = (TextView) view.findViewById(R.id.price);\n TextView quantityTextView = (TextView) view.findViewById(R.id.quantity);\n Button saleButton = (Button) view.findViewById(R.id.sale_button);\n\n //Find the colums of book attributes we want to display\n int titleColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_TITLE);\n int priceColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_PRICE);\n int quantityColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_QUANTITY);\n\n //Read the book attributes from the cursor for the current book\n String bookTitle = cursor.getString(titleColumnIndex);\n String bookAuthor = cursor.getString(priceColumnIndex);\n String bookQuantity = cursor.getString(quantityColumnIndex);\n\n //Update the TextViews with the attributes for the current book\n titleTextView.setText(bookTitle);\n priceTextView.setText(bookAuthor);\n quantityTextView.setText(bookQuantity);\n\n final int quantity = Integer.valueOf(bookQuantity);\n final int currentBookId = cursor.getInt(cursor.getColumnIndex(BookEntry._ID));\n\n//Set up the sale button to decrement when the user clicks on it\n saleButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Let's the user only decrement when the quantity of books is > 0\n if (quantity > 0) {\n int decrementedQuantity = quantity - 1;\n\n //Get the URI with the ID for the row\n Uri quantityUri = ContentUris.withAppendedId(BookEntry.CONTENT_URI, currentBookId);\n\n //Update the database with the new quantity value\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, decrementedQuantity);\n context.getContentResolver().update(quantityUri, values, null, null);\n } else {\n //Show an error when the quantity reaches 0\n Toast.makeText(context, R.string.out_of_stock_message, Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@Override\n public void onBindViewHolder(Review model) {\n binding.setModel(model);\n binding.seriesTitle.setTitle(model);\n binding.reviewVote.setModel(model, R.color.white);\n binding.executePendingBindings();\n }",
"public StrColumn getBookTitle() {\n return delegate.getColumn(\"book_title\", DelegatingStrColumn::new);\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n String tmp = String.valueOf(mDataset.get(position).getLikes());\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.nName.setText(mDataset.get(position).getName());\n holder.mLikes.setText(tmp);\n holder.mImageView.setImageResource(mDataset.get(position).getPicture());\n }",
"@Override\n public void onBindViewHolder(Review model) {\n binding.setModel(model);\n binding.seriesTitle.setTitle(model);\n binding.reviewVote.setModel(model, 0);\n binding.executePendingBindings();\n }",
"void sell(String bookTitle, int numOfCopies){\n for(int i = 0;i<books.size();i++)\r\n {\r\n Book bk = books.get(i);\r\n if(bk.bookTitle == bookTitle)\r\n {\r\n bk.numOfCopies -= numOfCopies; \r\n }\r\n }\r\n \r\n }",
"@Override\n public void onBindViewHolder(final ReviewAdapterViewHolder holder, int position) {\n Review review = reviewList.get(position);\n\n holder.authorView.setText(review.getAuthor());\n holder.contentView.setText(review.getContent());\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n holder.title.setText(problems.getProblem(position).getTitle());\n holder.date.setText(problems.getProblem(position).getDate());\n holder.description.setText(problems.getProblem(position).getDescription());\n }",
"@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDataset[position]); //informacion es el dato que nos entrega el arreglo\n }",
"public void bind(final Book book) {\n final long id = book.getId();\n\n textTitle.setText(book.getTitle());\n textAuthor.setText(book.getAuthor());\n textDescription.setText(book.getDescription());\n\n // load the background image\n if (book.getImageUrl() != null) {\n Glide.with(context)\n .load(book.getImageUrl())\n .fitCenter()\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(imageBackground);\n }\n\n //remove single match from realm\n card.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n booksPresenter.deleteBookById(id);\n return false;\n }\n });\n\n //update single match from realm\n card.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n booksPresenter.showEditDialog(book);\n }\n });\n }",
"@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView bookTitle = view.findViewById(R.id.text_book_title);\n TextView bookAuthor = view.findViewById(R.id.text_book_writer);\n final TextView bookQuantity = view.findViewById(R.id.text_instock_number);\n TextView bookPrice = view.findViewById(R.id.text_price_number);\n\n //Find the volumes of Bookentries we're interested in\n int titleColumnIndex = cursor.getColumnIndex(BooksContract.BooksEntry.COLUMN_BOOK_TITLE);\n int authorColumnIndex = cursor.getColumnIndex(BooksContract.BooksEntry.COLUMN_BOOK_AUTHOR);\n int quantityColumnIndex = cursor.getColumnIndex(BooksContract.BooksEntry.COLUMN_BOOK_QUANTITY);\n int priceColumnIndex = cursor.getColumnIndex(BooksContract.BooksEntry.COLUMN_BOOK_PRICE);\n\n // Extract properties from cursor\n String name = cursor.getString(titleColumnIndex);\n String author = cursor.getString(authorColumnIndex);\n final int quantity = cursor.getInt(quantityColumnIndex);\n int price = cursor.getInt(priceColumnIndex);\n\n // Populate fields with extracted properties\n bookTitle.setText(name);\n bookAuthor.setText(author);\n bookQuantity.setText(String.valueOf(quantity));\n bookPrice.setText(String.valueOf(price));\n\n //Add the sale button to the listview.\n final Button orderButton = view.findViewById(R.id.order_button);\n orderButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int QuantityAfterSale = Integer.parseInt(bookQuantity.getText().toString().trim());\n if (QuantityAfterSale > 0) {\n bookQuantity.setText(String.valueOf(QuantityAfterSale - 1));\n Toast.makeText(context, R.string.toast_book_sold,\n Toast.LENGTH_SHORT).show();\n }\n if (QuantityAfterSale == 0) {\n orderButton.setEnabled(false);\n Toast.makeText(context, R.string.toast_out_of_stock, Toast.LENGTH_SHORT).show();\n }\n ContentValues values = new ContentValues();\n values.put(BooksContract.BooksEntry.COLUMN_BOOK_QUANTITY, QuantityAfterSale);\n }\n });\n }",
"@Override\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n\n final ItemBT itemBT = listItemsBT.get(position);\n //como cambia la arquitectura de listview a recyclerview. para reciclar cada row , entonces solo se vuelve a llenar la info del objeto a partir del onBinViewHolder\n //así no sé tiene que llamas una nueva instancia.\n holder.nombreItemBT.setText(itemBT.getName() + (itemBT.isVinculado()?\" VINCULADO\":\" \") );\n holder.macItemBT.setText(itemBT.getMAC());\n // ViewGroup.LayoutParams layoutParams = holder.itemView.getLayoutParams();\n //holder.selectOverlay.setVisibility(isSelected(position) ? View.VISIBLE : View.INVISIBLE);\n\n }",
"@Override\n public void onBindViewHolder(QuizListAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n quiz = quizzes.get(position);\n\n holder.vQuizTitle.setText(quiz.getQuizTitle());\n holder.cardView.setTag(quiz.getQuizTitle());\n\n\n }",
"@Override\n public void onBindViewHolder(QuoteCursorAdapter.ViewHolder viewHolder, final Cursor cursor) {\n\n viewHolder.symbol.setText(cursor.getString(cursor.getColumnIndex(\"symbol\")));\n viewHolder.bidPrice.setText(cursor.getString(cursor.getColumnIndex(\"bid_price\")));\n int sdk = Build.VERSION.SDK_INT;\n if (cursor.getInt(cursor.getColumnIndex(\"is_up\")) == 1) {\n if (sdk < Build.VERSION_CODES.JELLY_BEAN) {\n viewHolder.change.setBackgroundDrawable(\n mContext.getResources().getDrawable(R.drawable.percent_change_pill_green));\n } else {\n viewHolder.change.setBackground(\n mContext.getResources().getDrawable(R.drawable.percent_change_pill_green));\n }\n } else {\n if (sdk < Build.VERSION_CODES.JELLY_BEAN) {\n viewHolder.change.setBackgroundDrawable(\n mContext.getResources().getDrawable(R.drawable.percent_change_pill_red));\n } else {\n viewHolder.change.setBackground(\n mContext.getResources().getDrawable(R.drawable.percent_change_pill_red));\n }\n }\n if (Utils.showPercent) {\n viewHolder.change.setText(cursor.getString(cursor.getColumnIndex(\"percent_change\")));\n } else {\n viewHolder.change.setText(cursor.getString(cursor.getColumnIndex(\"change\")));\n }\n\n String contentDescription = \"Bid Price of \" + viewHolder.symbol.getText() + \" stock is\" +\n \" \" + viewHolder.bidPrice.getText();\n viewHolder.linearLayout.setContentDescription(contentDescription);\n\n }",
"@Override\npublic void refillColumnTitle(CompositeAdapter firstRowAdapter) {\n\t\n}",
"@Override\n protected void fillData(GoodsAdapter.ViewHolder holder, GoodsPageModel model) {\n holder.tvTitle.setText(model.getGoodsName());\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mListener.onCardClickListener(position);\n }\n });\n\n holder.title.setText(mDataset.get(position).getTitle());\n Picasso.with(mContext).load(mDataset.get(position).getCover()).error(R.drawable.book).into(holder.cover);\n// holder.author.setText(mDataset.get(position).getAuthor_id());\n holder.author.setText(DataManager.getInstance().getAuthorFromId(mDataset.get(position).getAuthor_id()));\n holder.sumary.setText(mDataset.get(position).getSummary());\n holder.sumary.setMinLines(1);\n holder.sumary.setMaxLines(3);\n holder.sumary.setEllipsize(TextUtils.TruncateAt.END);\n }",
"public void loadBooksOfCategory(){\n long categoryId=mainActivityViewModel.getSelectedCategory().getMcategory_id();\n Log.v(\"Catid:\",\"\"+categoryId);\n\n mainActivityViewModel.getBookofASelectedCategory(categoryId).observe(this, new Observer<List<Book>>() {\n @Override\n public void onChanged(List<Book> books) {\n if(books.isEmpty()){\n binding.emptyView.setVisibility(View.VISIBLE);\n }\n else {\n binding.emptyView.setVisibility(View.GONE);\n }\n\n booksAdapter.setmBookList(books);\n }\n });\n }",
"@Override\n public void onBindViewHolder(MyAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n View holder1, holder2, holder3, holder4;\n holder1 = holder.mView.findViewById(R.id.subText);\n holder2 = holder.mView.findViewById(R.id.dueDateText);\n // holder3 = holder.mView.findViewById(R.id.gradeText);\n// holder4 = holder.mView.findViewById(R.id.descText);\n if (mDataset.get(position).getCourse() != null) {\n ((TextView) holder1).setText(mDataset.get(position).getCourse().getSub());\n }\n if (mDataset.get(position).getDueDate() != null) {\n ((TextView) holder2).setText((CharSequence) mDataset.get(position).getDueDate());\n }\n // ((TextView) holder3).setText(mDataset.get(position).get);\n// ((TextView) holder4).setText(mDataset[position]);\n //.setText(mDataset[position]));\n //setText(mDataset[position]);\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n }",
"@Override\n public int getItemCount() {\n return bookSelectionData.size();\n }",
"@Override\n public void onBindViewHolder(AddFriendAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Friends thisFriend = addFriendList.get(position);\n String thisName = thisFriend.getFirstName() + \" \" + thisFriend.getLastName();\n holder.FriendName.setText(thisName);\n holder.ButtonText.setText(\"Add\");\n }",
"@Override\n public void onBindViewHolder(StoryViewHolder holder, int position) {\n }",
"@Override\n\tpublic void onBindViewHolder(ViewHolder holder, int position) {\n\t\tif(cellBankCustomerProducts == null || cellBankCustomerPersons == null){\n\t\t\treturn ;\n\t\t}\n\t\tif (holder instanceof ProductViewHolder){ \n\t\t\tCellBankCustomerProduct cbcp = cellBankCustomerProducts.get(position);\n\t\t\t((ProductViewHolder)holder).tvShouji_kaihujigou.setText(cbcp.getZzjc());\n\t\t\t((ProductViewHolder)holder).tvShouji_kaihuriqi.setText(cbcp.getKhrq());\n\t\t\ttry{\n\t\t\t((ProductViewHolder)holder).tvShouji_leixing.setText(CommonContent.YINGXIAO_LEIXING[cbcp.getYxlx()]);\n\t\t\t}catch(IndexOutOfBoundsException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t((ProductViewHolder)holder).tvShouji_zhuxiaoriqi.setText(cbcp.getZxrq());\n\t\t\t((ProductViewHolder)holder).tvShouji_tiepianriqi.setText(cbcp.getTprq());\n\t\t\t((ProductViewHolder)holder).tvShouji_tuozhanren.setText(cbcp.getTzr()); \n\t\t\t((ProductViewHolder)holder).tvShouji_bili.setText(cbcp.getTzbl() != null ? cbcp.getTzbl()+\"\" : \"\");\n\n\t\t}else if (holder instanceof PersonViewHolder){ \n\t\t\tposition = position - cellBankCustomerProducts.size() - 1;\n\t\t\tif(position == -1){\n\t\t\t\t((PersonViewHolder)holder).tvXingming.setText(\"管户人姓名\");\n\t\t\t\t((PersonViewHolder)holder).tvBili.setText(\"管户比例(%)\");\n\t\t\t\t((PersonViewHolder)holder).tvKaishi.setText(\"开始时间\");\n\t\t\t\t((PersonViewHolder)holder).tvJieshu.setText(\"结束时间\");\n\n\t\t\t}else{\n\t\t\t\tCellBankCustomerPerson cbcp = cellBankCustomerPersons.get(position);\n\t\t\t\t((PersonViewHolder)holder).tvXingming.setText(cbcp.getYgxm());\n\t\t\t\t((PersonViewHolder)holder).tvBili.setText(cbcp.getGhbl()+\"\");\n\t\t\t\t((PersonViewHolder)holder).tvKaishi.setText(cbcp.getKsrq());\n\t\t\t\t((PersonViewHolder)holder).tvJieshu.setText(cbcp.getJsrq());\n\t\t\t}\n\t\t} \n\t}",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset.get());\n final OrderItem item = mDataset.get(position);\n holder.txtTheme.setText(item.getTheme().toUpperCase());\n holder.txtAdress.setText(item.getAdress());\n holder.progressOrder.setPercent(item.getPercent() / 100f);\n holder.txtPercent.setText(Integer.toString(item.getPercent())+\"%\");\n\n if (position%2==0){\n holder.img.setImageResource(R.drawable.order_1);\n }else {\n holder.img.setImageResource(R.drawable.order_2);\n }\n\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n if(values != null) {\n final Genres genre = values.get(position);\n holder.txtHeader.setText(genre.getName());\n holder.txtFooter.setText(\"Type : \" + genre.getType());\n\n Picasso.get().load(img_url).resize(170,180).into(holder.img);\n\n }else if(animevalues != null){\n final Anime anime = animevalues.get(position);\n holder.txtHeader.setText(anime.getTitle());\n /*holder.txtHeader.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });*/\n holder.txtFooter.setText(\"Type : \" + anime.getType());\n\n Picasso.get().load(anime.getImage_url()).resize(150,180).into(holder.img);\n }\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n // here, we the comment that should be displayed at index `position` in our recylcer view\n // everytime the recycler view is refreshed, this method is called getItemCount() times (because\n // it needs to recreate every cell).\n Comment comment = mComments.get(position);\n ((CommentViewHolder) holder).bind(comment);\n }",
"public void onBookEvent(final BookStatusEvent event) {\n if (this.feed.containsID(event.book())) {\n LOG.debug(\"update: updated feed entry\");\n UIThread.runOnUIThread(adapter::notifyDataSetChanged);\n }\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mname.setText(mDataset.get(position).getCode());\n holder.mprice.setText(mDataset.get(position).getStock_name());\n }",
"boolean contains(Book title){\n return false;\n }",
"@Override\n public void onBindViewHolder(ViewHolder itemViewHolder, int position) {\n }",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn books.size();\n\t\t}",
"@Override\n public void onBindViewHolder(CommonViewHolder holder, int position) {\n holder.mTitle.setText(context.getString(R.string.exam_practice) + (position + 1));\n holder.mDescription.setText(R.string.exam_detail_decs);\n holder.mLogo.setImageResource(R.drawable.exam);\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n // Individually handles each Contact in the contactList\n LeaderEntry currentEntry = leaderList.get(position);\n\n // Extracts the name of the Contact\n TextView name = holder.mTextViewName.findViewById(R.id.textView_Name);\n name.setText(currentEntry.getLeaderName());\n\n // Extracts the phone number of the Contact\n TextView number = holder.mTextViewName.findViewById(R.id.textView_Score);\n number.setText(currentEntry.getHighScore());\n\n }",
"@Override\n public void bindView(View view, final Context context, final Cursor cursor) {\n // Find individual views that we want to modify in the list item layout\n TextView nameTextView = (TextView) view.findViewById(R.id.name);\n TextView summaryTextView = (TextView) view.findViewById(R.id.summary);\n final TextView summary2TextView = (TextView) view.findViewById(R.id.summary2);\n\n // Find the columns of books attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_NAME);\n int priceColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_PRICE_BOOK);\n int quantityColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_QUANTITY_BOOK);\n\n // Read the book attributes from the Cursor for the current book\n String bookName = cursor.getString(nameColumnIndex);\n String bookPrice = cursor.getString(priceColumnIndex);\n String bookQuantity = cursor.getString(quantityColumnIndex);\n\n //Attributes of for the current book items\n String nameText = mContext.getResources().getString(R.string.name_text) + bookName;\n String priceText = mContext.getResources().getString(R.string.price_text) + bookPrice;\n String quantityText = mContext.getResources().getString(R.string.quantity_text) + bookQuantity;\n\n // Update the TextViews with the attributes for the current book\n nameTextView.setText(nameText);\n summaryTextView.setText(priceText);\n summary2TextView.setText(quantityText);\n\n //Button onClick to reduce quantity\n Button button = view.findViewById(R.id.sale);\n int columnIdIndex = cursor.getColumnIndex(BookContract.BookEntry._ID);\n button.setOnClickListener(new OnItemClickListener(cursor.getInt(columnIdIndex)));\n }",
"@Override\n public int getCount() {\n return listBook.size();\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n holder.tvTitle.setText(daftarBarang.get(position).getNama());\n holder.tvLokasi.setText(daftarBarang.get(position).getLokasi());\n holder.tvTanggal.setText(daftarBarang.get(position).getTanggal());\n holder.tvDeskripsi.setText(daftarBarang.get(position).getDeskripsi());\n holder.tvTitle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Read detail data\n */\n context.startActivity(FirebaseDBReadSingleActivity.getActIntent((Activity) context).putExtra(\"data\", daftarBarang.get(position)));\n }\n });\n holder.tvImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Read detail data\n */\n context.startActivity(FirebaseDBReadSingleActivity.getActIntent((Activity) context).putExtra(\"data\", daftarBarang.get(position)));\n }\n });\n holder.tvTitle.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Delete dan update data\n */\n return true;\n }\n });\n }",
"@Override\n public void onBindViewHolder(@NonNull FavouriteRecyclerViewAdapter.MyViewHolder holder, int position) {\n Log.e(\"TAG\", \"onBindViewHolder: \");\n final Blog currBlog = blogArrayList.get(position);\n// Picasso.get().load(currBlog.getAuthorImage()).into(holder.circleImageView);\n// holder.authName.setText(currBlog.getAuthor());\n//// holder.date.setText(\"Posted on : \" + currBlog.getCalendar().get(Calendar.DATE) +\"/\"+ currBlog.getCalendar().get(Calendar.MONTH));\n// holder.title.setText(currBlog.getTitle());\n//// holder.content.setText(Html.fromHtml(currBlog.getContent(), Html.FROM_HTML_MODE_COMPACT));\n// holder.likes.setText(currBlog.getLikes() + \"\");\n\n if(currBlog.getAuthorImage()!=null){\n Picasso.get().load(currBlog.getAuthorImage()).into(holder.circleImageView);\n }else{\n holder.circleImageView.setImageResource(R.drawable.ic_person_gray_24dp);\n }\n holder.authName.setText(currBlog.getAuthor());\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(currBlog.getTime());\n\n holder.date.setText(calendar.get(Calendar.DATE) +\"/\"+ calendar.get(Calendar.MONTH)+\"/\"+ calendar.get(Calendar.YEAR));\n holder.title.setText(currBlog.getTitle());\n// holder.content.setText(Html.fromHtml(currBlog.getContent(), Html.FROM_HTML_MODE_COMPACT));\n holder.likes.setText(currBlog.getLikes()+ \" Likes\");\n// if(currBlog.getContent().length()>=100) {\n// holder.content.setText(Html.fromHtml(currBlog.getContent()).subSequence(0, 100)+\"....\");\n// }else{\n holder.content.setText(Html.fromHtml(currBlog.getContent()));\n// }\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(context, DetailedBlogActivity.class);\n intent.putExtra(\"blog\", currBlog);\n context.startActivity(intent);\n }\n });\n }",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void bindView(View view, Context context, Cursor cursor) {\n if(Utils.weAreLollipop())view.findViewById(R.id.card).setElevation(contex.getResources().getDimension(R.dimen.elevation));\n String title=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_TITLE));\n long itemID=cursor.getLong(cursor.getColumnIndexOrThrow(Contract.ITEM_ID));\n String date=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_DATE));\n String sub=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_SUBTITLE));\n TextView titleTextView= (TextView) view.findViewById(R.id.title);\n TextView subTextView= (TextView) view.findViewById(R.id.sub);\n TextView idTextView= (TextView) view.findViewById(R.id.item_id);\n TextView dateTextView= (TextView) view.findViewById(R.id.date);\n titleTextView.setText(title!=null?title:\"\");\n subTextView.setText(sub!=null?sub:\"\");\n idTextView.setText(\"\"+itemID);\n dateTextView.setText(date!=null?date:\"\");\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n final MyViewHolder viewHolder = (MyViewHolder) holder;\n final BeanItems.ItemsBean bean = mData.get(position);\n viewHolder.setIsRecyclable(false);\n if (!mActivity.hasData(bean.getItemid())) {\n //无数据\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_data_entry_add);\n viewHolder.mTvTitle.setText(bean.getItemname());\n viewHolder.mTvContent.setVisibility(View.GONE);\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = position;\n mListener.onItemClick(v, bean.getItemid(), bean.getItemname() + \"第1组\", position, 0);\n }\n }\n });\n } else if (position != selectPosition) {\n //有数据未打开\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_down_arrow_data_entry);\n viewHolder.mTvTitle.setText(bean.getItemname());\n Cursor c = mActivity.query(bean.getItemid());\n viewHolder.mTvContent.setText(\"已录入\" + c.getCount() + \"组\");\n c.close();\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = position;\n mListener.onItemClick(v, bean.getItemid(), null, position, 1);\n }\n }\n });\n } else {\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_down_up_data_entry);\n viewHolder.mTvTitle.setText(bean.getItemname());\n Cursor c = mActivity.query(bean.getItemid());\n viewHolder.mTvContent.setText(\"已录入\" + c.getCount() + \"组\");\n c.moveToFirst();\n List<String> data = new ArrayList<>();\n List<List<String>> datas = new ArrayList<>();\n String itemID = c.getString(1);\n String group = c.getString(2);\n String strength = c.getString(3);\n String time = c.getString(4);\n// Log.d(\"AdapterDataEntryRightLi\", strength);\n data.add(itemID);\n data.add(group);\n data.add(strength);\n data.add(time);\n datas.add(data);\n while (c.moveToNext()) {\n data = new ArrayList<>();\n itemID = c.getString(1);\n group = c.getString(2);\n strength = c.getString(3);\n time = c.getString(4);\n Log.d(\"data\", strength);\n data.add(itemID);\n data.add(group);\n data.add(strength);\n data.add(time);\n datas.add(data);\n }\n c.close();\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = 999999;\n mListener.onItemClick(v, bean.getItemid(), null, position, 3);\n }\n }\n });\n LinearLayoutManager layoutManager = new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false);\n viewHolder.mRvContent.setLayoutManager(layoutManager);\n viewHolder.mRvContent.setItemAnimator(new DefaultItemAnimator());\n// String itemid = bean.getItemid();\n AdapterDataEntryContentListAty mAdapter = new AdapterDataEntryContentListAty(mActivity, datas, AdapterDataEntryRightListAty.this);\n viewHolder.mRvContent.setAdapter(mAdapter);\n ItemTouchHelper.Callback callback = new SimpleItemTouchHelperCallback(mAdapter);\n mItemTouchHelper = new ItemTouchHelper(callback);\n mItemTouchHelper.attachToRecyclerView(viewHolder.mRvContent);\n mAdapter.setOnItemClickListener(new AdapterDataEntryContentListAty.OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n if (mModifyListener != null) {\n mModifyListener.onItemClick(view, position, mData);\n }\n }\n });\n mAdapter.setOnItemAddClickListener(new AdapterDataEntryContentListAty.OnItemAddClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n mAddListener.onItemClick(view, position, mData);\n }\n });\n// mAdapter.seti\n mAdapter.setOnItemLongClickListener(new AdapterDataEntryContentListAty.OnItemLongClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n mModifyLongListener.onItemClick(view, position, mData);\n }\n });\n }\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n //get the data according to mposition\n Tweet tweet=mTweets.get(position);\n\n //populate the views according to this data\n holder.tvUsername.setText(tweet.user.name);\n holder.tvBody.setText(tweet.body);\n\n }",
"private void displayBookInfo(){\n //Set text of TextViews\n mTitle.setText(currentBook.title);\n mAuthors.setText(currentBook.authors);\n mDescription.setText(currentBook.description);\n mAvgRating.setText(String.format(\"%.01f\", currentBook.averageRating));\n mBookRating.setRating(currentBook.averageRating);\n\n //Concatenate string and set text to string\n String numRatingsString = String.valueOf(currentBook.numRatings) + \" Ratings\";\n mNumRatings.setText(numRatingsString);\n\n //Concatenate strings before setting them\n String titleString = \"Title: \" + currentBook.title;\n String authorsString = \"Authors: \" + currentBook.authors;\n String subjectString = \"Subject: \" + currentBook.subject;\n String copiesString = \"Library Copies: \" + currentBook.numCopies;\n String ISBN10String = \"ISBN10: \" + currentBook.ISBN10;\n String ISBN13String = \"ISBN13: \" + currentBook.ISBN13;\n\n //Set text data\n mFullTitle.setText(titleString);\n mFullAuthors.setText(authorsString);\n mSubject.setText(subjectString);\n mCopies.setText(copiesString);\n mISBN10.setText(ISBN10String);\n mISBN13.setText(ISBN13String);\n\n //Hide subtitle if it doesn't exist\n if(currentBook.subTitle.length() < 2)\n mSubTitle.setVisibility(GONE);\n else\n mSubTitle.setText(currentBook.subTitle);\n\n //Get reviews\n reviews = currentBook.reviews;\n\n //Add first 3 reviews, unless there are less than 3 reviews - Then add all reviews\n int upperBound = ((reviews.size() - 1) > 1)?2:(reviews.size()-1);\n reviewAdapter(reviews, mReviews, 0, upperBound, true);\n\n //If there are 3 reviews or less, then hide the see all button\n if(reviews.size() < 4)\n mSeeAll.setVisibility(GONE);\n }",
"@Override\n public void onBindViewHolder(@NonNull StudentViewHolder holder, int position) {\n // .\n // .\n // .\n\n\n }",
"public boolean hasBook(String title){\n\t\tif(books == 0){\n\t\t\treturn false;\n\t\t}\n\t\telse if(b1 != null && b1.getTitle().equals(title)){\n\t\t\treturn true;\n\t\t}\n\t\telse if(b2 != null && b2.getTitle().equals(title)){\n\t\t\treturn true;\n\t\t}\n\t\telse if(b3 != null && b3.getTitle().equals(title)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void replaceBooks(List<Book> newItems)\r\n\t{\r\n\t\tList<Book> oldValue = items;\r\n\t\titems = newItems;\r\n\t\tfirePropertyChange(\"books\", oldValue, items);\r\n\t\ttry {\r\n\t\t\tfirePropertyChange(\"itemsCount\", oldValue.size(), items.size());\r\n\t\t} catch(NullPointerException npe) {\r\n\t\t\tfirePropertyChange(\"itemsCount\", 0, items.size());\r\n\t\t}\r\n\t}",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n Subgenre subgenre = subgenreList.get(position);\n holder.tvSubGenre.setText(subgenre.getSubgenreName());\n Picasso.get().load(subgenre.getSubgenrePhoto()).into(holder.ivSubGenre);\n\n }",
"b(ConnectedRelationTitleViewHolder connectedRelationTitleViewHolder) {\n super(1);\n this.this$0 = connectedRelationTitleViewHolder;\n }",
"@Override\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n holder.title.setText(recommendedList.get(position).getBookTitle());\n String coverURL = recommendedList.get(position).cover.replace(\"http\", \"https\");\n Picasso.get().load(coverURL).fit().into(holder.thumbnail);\n }",
"@Override\n public final void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n position = holder.getAdapterPosition();\n if (position == RecyclerView.NO_POSITION) {\n return;\n }\n // Logger.w(\"QuickRecycleViewAdapter\", \"onBindViewHolder\", \"position_2 = \" + position);\n if (mHeaderFooterHelper != null) {\n if (mHeaderFooterHelper.isInHeader(position)\n || mHeaderFooterHelper.isInFooter(position, mAdapterManager.getItemSize())) {\n /** let head/footer fullspan in StaggeredGridLayoutManager\n * added in 1.5\n */\n ViewGroup.LayoutParams layoutParams = holder.itemView.getLayoutParams();\n if (layoutParams instanceof StaggeredGridLayoutManager.LayoutParams) {\n ((StaggeredGridLayoutManager.LayoutParams) layoutParams).setFullSpan(true);\n }\n return;\n }\n position -= mHeaderFooterHelper.getHeaderViewSize();\n }\n if (!(holder instanceof IRecyclerViewHolder)) {\n throw new RuntimeException(\"all quick adapter's viewHolder must implement\" +\n \" the interface IRecyclerViewHolder\");\n }\n //notify bind ViewHolder\n getSelectHelper().onBindViewHolder(holder);\n\n //not in header or footer populate it\n final T item = getItem(position);\n final int layoutId = ((IRecyclerViewHolder) holder).getLayoutId();\n final ViewHelper helper = ((IRecyclerViewHolder) holder).getViewHelper();\n\n onBindDataImpl(holder, position, item);\n\n if (getAdapterManager().getPostRunnableCallbacks() != null) {\n final int pos = position;\n for (final AdapterManager.IPostRunnableCallback<T> callback : getAdapterManager()\n .getPostRunnableCallbacks()) {\n holder.itemView.post(new Runnable() {\n @Override\n public void run() {\n callback.onPostCallback(pos, item, layoutId, helper);\n }\n });\n }\n }\n }",
"protected abstract void onBindDescription(ViewHolder vh, Object item);",
"@Override\n public void onBindViewHolder(@NonNull BarHolder holder, int position) {\n holder.bind();\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n holder.mIdView.setText(mValues.get(position).getTitle());\n holder.mContentView.setText(mValues.get(position).getDate());\n holder.itemView.setTag(mValues.get(position));\n holder.itemView.setOnClickListener(mOnClickListener);\n }",
"private Void setBooksRecyclerView(RecyclerView recyclerView, List<BookItem> booksList) {\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(this.getContext(),\n LinearLayoutManager.HORIZONTAL, false);\n recyclerView.setLayoutManager(mLayoutManager);\n adapterMyBooks = new MyBooksRecyclerAdapter(this.getContext(), booksList,\n new MyBooksRecyclerAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(BookItem book) {\n BookPageFragment.bookToDisplay = book;\n loadBookPageFragment();\n }\n });\n recyclerView.setAdapter(adapterMyBooks);\n return null;\n }",
"@Override\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n History history = listHistories.get(position);\n\n holder.txtDateTime.setText(history.getDateTime());\n holder.txtTypeTran.setText(history.getTypeTran());\n holder.txtNumTran.setText(String.valueOf(history.getNumTran()));\n\n }",
"@Override\n public void onBindViewHolder(MyAdapter.ViewHolder holder, final int position) {\n if(holder.Holderid ==1) { // as the list view is going to be called after the header view so we decrement the\n // position by 1 and pass it to the holder while setting the text and image\n holder.textView.setText(mNavTitles[position - 1]); // Setting the Text with the array of our Titles\n holder.imageView.setImageResource(mIcons[position -1]);// Settimg the image with array of our icons\n }\n else{\n\n holder.profile11.setImageBitmap(bitmap1); // Similarly we set the resources for header view\n holder.Name.setText(name);\n holder.email.setText(email);\n\n }\n\n }",
"public void addBook(Book book) {\n\t\tboolean notFound = true;\n\t\tfor (Item item : items) {\n\t\t\tif(item.getName().equals(book.getName())) {\n\t\t\t\t// Found\n\t\t\t\tnotFound = false;\n\t\t\t\titem.updateQuantity();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(notFound) {\n\t\t\tItem item = new Item(book, 1);\n\t\t\titems.add(item);\n\t\t}\n\t}",
"@Override\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n Log.d(\"MovieAdapter\", \"onBindViewHolder\" + position);\n //get the movie at the position\n Movie movie = movies.get(position);\n //bind the movie data into view holder\n holder.bind(movie);\n }",
"@Override\r\n public void onBindViewHolder(ViewHolder viewHolder, Cursor cursor) {\r\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n c.moveToPosition(position);\n holder.tv1.setText(c.getInt(0)+\"\");\n holder.tv2.setText(c.getString(1));\n holder.tv3.setText(c.getString(2));\n }",
"public List<String > getBooks(){\n List<String> titles = new ArrayList<>();\n\n String strSQL = \"SELECT B._id, B.Title FROM TBooks B WHERE NOT B._id IN (Select TLoaned.TitleID \" +\n \" FROM TLoaned WHERE TLoaned.ReturnDate IS NULL);\";\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(strSQL, null);\n try {\n if (c.moveToFirst()) {\n do {\n titles.add(c.getString(0) + \". \" + c.getString(1));\n } while (c.moveToNext());\n }\n }\n finally {\n c.close();\n db.close();\n }\n return titles;\n }",
"@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int pos) {\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n PollStudent singleData = studentsData.get(pos);\n viewHolder.getStudent().setText(singleData.getId() + \" | \" + singleData.getName());\n // also update the layout according to the status value\n int status = singleData.getStatus();\n switch (status) {\n case 0:\n viewHolder.getCard().setCardBackgroundColor(Color.GREEN);\n //todo other animations on cards\n break;\n case 1:\n viewHolder.getCard().setCardBackgroundColor(Color.RED);\n break;\n case 2:\n viewHolder.getCard().setCardBackgroundColor(Color.BLUE);\n break;\n }\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n Picture pictures = picture.get(position);\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.title.setText(pictures.getTitle());\n holder.image.setImageURI(pictures.getUrl());\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mTextViewSongName.setText(mDataset.get(position).trackName);\n holder.mTextViewAlbumName.setText(mDataset.get(position).albumName);\n Picasso.with(mContext).\n load(mDataset.get(position).imageURL).\n into(holder.mImageView);\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // http://www.androidhive.info/2016/01/android-working-with-recycler-view/\n Treatment treatment = treatmentList.get(position);\n holder.compl.setText(treatment.complaint);\n holder.date.setText(treatment.date);\n holder.treat.setText(treatment.prescription);\n }",
"private boolean updateTitle()\r\n\t{\r\n\t\tString newTitle = titleBase != null ? titleBase : \"\";\r\n\r\n\t\tif (propertyBrowser.isReadOnly() && readonlyText != null)\r\n\t\t{\r\n\t\t\tnewTitle += readonlyText;\r\n\t\t}\r\n\r\n\t\tif (propertyBrowser.isObjectModified() && modifiedText != null)\r\n\t\t{\r\n\t\t\tnewTitle += modifiedText;\r\n\t\t}\r\n\r\n\t\tif (title == null || !title.equals(newTitle))\r\n\t\t{\r\n\t\t\ttitle = newTitle;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private void setTitleFormat(LeaderboardAdapter.ViewHolder holder, int titleIndex) {\n holder.mRank.setText(\" \");\n holder.mTitle.setText(LEADERBOARD_TITLES[titleIndex]);\n holder.mTitle.setTypeface(Typeface.SERIF, Typeface.BOLD);\n holder.mValue.setText(\" \");\n }",
"@Override\n public Object getItem(int position) {\n return listBook.get(position);\n }",
"@Override\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n // Get data at position\n Ticker ticker = mTicker.get(position);\n\n if (mFromSearch) {\n TextView nameView = holder.mNameView;\n nameView.setText(ticker.getName());\n TextView tickerView = holder.mTickerView;\n tickerView.setText(ticker.getTicker());\n } else {\n TextView nameView = holder.mNameView;\n nameView.setText(ticker.getName());\n TextView priceView = holder.mPriceView;\n priceView.setText(ticker.getPrice());\n }\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) { //Cuando un elemento hace binding\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final Track track = values.get(position); //RECUPERA ELEMENTO QUE QUIERES VISUALIZAR\n final ViewHolder vh = holder; //HEMOS TENIDO QUE CREARLA PORQUE ESTA ARRIBA EN LA CLASE Y EN EL REMOVE NO LA PODRIAMOS UTILIZAR\n holder.title.setText(track.getTitle());\n holder.id.setText(track.getSinger());\n holder.title.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n Intent trackview = new Intent(activity.getApplicationContext(), TrackDetailActivity.class);\n trackview.putExtra(\"id\",track.getId());\n trackview.putExtra(\"title\", track.getTitle());\n trackview.putExtra(\"singer\", track.getSinger());\n activity.startActivity(trackview);\n }\n });\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n Enroll_Model_List p = items.get(position);\n if (holder instanceof EnRoll_Adapter.OriginalViewHolder) {\n final EnRoll_Adapter.OriginalViewHolder view = (EnRoll_Adapter.OriginalViewHolder) holder;\n\n view.text_student.setText(p.getFirst_name() +\" \"+p.getLast_name());\n\n view.text_enroll_num.setText(p.getEnroll_num());\n view.text_expiry.setText(p.getExpiry_date());\n String exam_id = p.getExam_id();\n String study_id = p.getStudy_mterial_id();\n String video_id = p.getVideo_id();\n\n if (exam_id != null && !exam_id.isEmpty() && !exam_id.equals(\"null\")) {\n view.text_exam.setText(exam_id);\n }else if (study_id != null && !study_id.isEmpty() && !study_id.equals(\"null\")) {\n view.text_exam.setText(study_id);\n }else if (video_id != null && !video_id.isEmpty() && !video_id.equals(\"null\")) {\n view.text_exam.setText(video_id);\n }\n\n //view.description.setTextColor( ctx.getResources().getColor( R.color.grey_80 ) );\n\n /* view.lyt_parent.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (mOnItemClickListener != null) {\n mOnItemClickListener.onItemClick(view, items.get(position), position);\n }\n }\n });*/\n }\n }",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n ViewHolder holder;\n\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_item, parent, false);\n holder = new ViewHolder(convertView);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n\n Book book = getItem(position);\n\n String bookTitle = book.getTitle();\n String bookAuthor = book.getAuthor();\n\n holder.titleTextView.setText(bookTitle);\n holder.authorTextView.setText(bookAuthor);\n\n return convertView;\n }",
"@Override\n public int getItemCount() {\n return bookListings.size();\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n holder.currentPosition = position;\n holder.bindData(mCaloriesEntryList.get(position));\n }",
"private void premium_ui_Bookmark_Row(RecyclerView.ViewHolder viewHolder, ArticleBean bean, int position) {\n BookmarkPremiumViewHolder holder = (BookmarkPremiumViewHolder) viewHolder;\n\n holder.authorName_Txt.setText(ContentUtil.getAuthor(bean.getAuthor()));\n holder.title.setText(bean.getArticletitle());\n // Section Name\n String sectionName = bean.getArticleSection();\n if (sectionName == null || TextUtils.isEmpty(sectionName)) {\n sectionName = bean.getSectionName();\n }\n\n sectionName = ResUtil.capitalizeFirstLetter(sectionName);\n holder.sectionName.setText(sectionName);\n // Publish Date\n String formatedPubDt = CommonUtil.fomatedDate(bean.getPubDateTime(), mFrom);\n holder.time_Txt.setText(formatedPubDt);\n\n holder.bookmarkProgressBar.setVisibility(View.GONE);\n holder.share_Img.setVisibility(View.GONE);\n\n isExistInBookmark(holder.bookmark_Img.getContext(), bean, holder.bookmark_Img);\n\n PicassoUtil.loadImageWithFilePH(holder.itemView.getContext(), holder.image, ContentUtil.getThumbUrl(bean.getThumbnailUrl()));\n\n holder.bookmark_Img.setOnClickListener(v -> {\n if (bean.getGroupType() == null || bean.getGroupType().equals(NetConstants.G_BOOKMARK_DEFAULT)) {\n local_removeBookmarkFromApp(v.getContext(), bean.getArticleId(), bean, holder.bookmarkProgressBar, holder.bookmark_Img, position, mFrom);\n } else if (NetUtils.isConnected(v.getContext()) && bean.getGroupType().equals(NetConstants.G_BOOKMARK_PREMIUM)) {\n premium_updateBookmarkFavLike(holder.bookmarkProgressBar, holder.bookmark_Img, holder.bookmark_Img.getContext(), position, bean, \"bookmark\");\n } else {\n Alerts.noConnectionSnackBar(v, (AppCompatActivity) v.getContext());\n }\n }\n );\n\n holder.share_Img.setOnClickListener(v -> {\n SharingArticleUtil.shareArticle(v.getContext(), bean);\n }\n );\n\n holder.itemView.setOnClickListener(v -> {\n if (PremiumPref.getInstance(holder.itemView.getContext()).isUserAdsFree()) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_PREMIUM, bean.getArticleUrl(), position, bean.getArticleId());\n } else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom, bean.getArticleUrl(), position, bean.getArticleId());\n }\n } else {\n IntentUtil.openSubscriptionActivity(holder.itemView.getContext(), THPConstants.FROM_SUBSCRIPTION_EXPLORE);\n }\n THPFirebaseAnalytics.setFirbaseAnalyticsEvent(holder.itemView.getContext(), \"Action\", ResUtil.capitalizeFirstLetter(mFrom) + \" clicked : \" + bean.getArticleId() + \" : \" + bean.getTitle(), ResUtil.capitalizeFirstLetter(mFrom) + \" List Screen\");\n\n if (getSnackbar() != null && getSnackbar().isShown()) {\n getSnackbar().dismiss();\n }\n }\n );\n }",
"@Override\n public int getCount() {\n return titles.size();\n }",
"@Override\n public void onBindViewHolder(SpareAdapter.MyViewHolder holder, Cursor cursor) {\n holder.partno.setText(cursor.getString(cursor.getColumnIndex(SpareModel.partno)));\n holder.issueapproval.setText(\"No\");\n int advancereturn=cursor.getInt(cursor.getColumnIndex(SpareModel.advreturn));\n if(advancereturn==1){\n holder.advancereturn.setText(\"Yes\");\n }\n else {\n holder.advancereturn.setText(\"No\");\n }\n int samepart=cursor.getInt(cursor.getColumnIndex(SpareModel.samepart));\n if(samepart==1){\n holder.samepart.setText(\"Yes\");\n }\n else {\n holder.samepart.setText(\"No\");\n }\n holder.partstatus.setText(cursor.getString(cursor.getColumnIndex(SpareModel.partstatus)));\n }",
"@Override\n public Object getItem(int position) {\n return titleA[position];\n }",
"void clearbookcache(){\n\t \tBookname.setText(\"\");\n\t \tBookauthor.setText(\"\");\n\t \tbookstatus.setText(\"\");\n\t }",
"@Override\n protected void updateItem(T item, boolean empty) {\n\n // Do the normal Cell.updateItem() things\n super.updateItem(item, empty);\n\n // If the item in question exists, use its name as text instead\n if (item != null) {\n setText(item.getName());\n }\n }",
"@Override\n public void onBindViewHolder(TaskViewHolder holder, int position) {\n int idIndex = mCursor.getColumnIndex(ContractClass.TodoEntry._ID);\n int descriptionIndex = mCursor.getColumnIndex(ContractClass.TodoEntry.COLUMN_DESCRIPTION);\n\n mCursor.moveToPosition(position); // get to the right location in the cursor\n\n // Determine the values of the wanted data\n final int id = mCursor.getInt(idIndex);\n String description = mCursor.getString(descriptionIndex);\n\n\n //Set values\n holder.itemView.setTag(id);\n holder.taskDescriptionView.setText(description);\n\n\n }",
"public BookViewHolder(View itemView) {\n super(itemView);\n tvTitle = (TextView) itemView.findViewById(R.id.tvTitle);\n tvAuthors = (TextView) itemView.findViewById(R.id.tvAuthors);\n tvDate = (TextView) itemView.findViewById(R.id.tvPublishedDate);\n tvPublisher = (TextView) itemView.findViewById(R.id.tvPublisher);\n itemView.setOnClickListener(this);\n }",
"@NonNull\n @Override\n public View getView(int position, View convertView, ViewGroup parent){\n BookListing book = getItem(position);\n\n //If there's nothing there, inflate it\n if (convertView == null) convertView = LayoutInflater.from(getContext()).inflate(R.layout.book_listing_view, parent, false);\n\n //Store Views to change\n TextView authorName = convertView.findViewById(R.id.authorName);\n TextView bookName = convertView.findViewById(R.id.bookName);\n ImageView thumbnail = convertView.findViewById(R.id.thumbnail);\n\n //Change the views\n assert book != null;\n authorName.setText(book.getbAuthors()[0]);\n bookName.setText(book.getbTitle());\n Ion.with(thumbnail).load(book.getbThumbnailURL());\n\n return convertView;\n }"
] |
[
"0.6180056",
"0.6051516",
"0.5970466",
"0.59471226",
"0.57185286",
"0.5674194",
"0.56637573",
"0.55911946",
"0.55504376",
"0.5545757",
"0.55305487",
"0.55138123",
"0.5501143",
"0.54743624",
"0.5459989",
"0.5407472",
"0.5383239",
"0.5380456",
"0.5361472",
"0.5355053",
"0.53485644",
"0.53408265",
"0.533531",
"0.5334384",
"0.5327728",
"0.53201437",
"0.53171414",
"0.5305781",
"0.52995867",
"0.52991444",
"0.5295298",
"0.52943534",
"0.52830195",
"0.52725965",
"0.52674556",
"0.52632785",
"0.5256736",
"0.5252762",
"0.5234194",
"0.5227445",
"0.5225681",
"0.52220166",
"0.52160037",
"0.52157515",
"0.5215465",
"0.5213241",
"0.52076066",
"0.5206775",
"0.51887196",
"0.5180022",
"0.51743835",
"0.5173545",
"0.5171616",
"0.5168857",
"0.5164567",
"0.51583624",
"0.515615",
"0.51544875",
"0.5154066",
"0.5149662",
"0.5147747",
"0.5143738",
"0.5139467",
"0.51208466",
"0.51201016",
"0.5116417",
"0.5111562",
"0.5108616",
"0.5103721",
"0.51005274",
"0.5097106",
"0.5096101",
"0.50916946",
"0.5091673",
"0.5085872",
"0.5085485",
"0.5079369",
"0.5076407",
"0.5070992",
"0.50587726",
"0.50560075",
"0.5049609",
"0.5049486",
"0.5038134",
"0.50363284",
"0.50344634",
"0.5031173",
"0.50235975",
"0.50043714",
"0.5002074",
"0.5001092",
"0.4991835",
"0.49882463",
"0.49872047",
"0.4984795",
"0.49768308",
"0.4975727",
"0.49644208",
"0.49636734",
"0.49623132"
] |
0.5088519
|
74
|
If getItem() is the same as newItem (i.e. their return value of getItemId() are the same) and areContentsTheSame() return false, then the cell need to be updated, onBindViewHolder() will be called with this payload object.
|
@Override
public Object getChangePayload(Comment newItem) {
Bundle bundle = new Bundle();
bundle.putString(KEY_TITLE, newItem.getName());
return bundle;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {\n return DiffRecyclerAdapter.this.areContentsTheSame(backupList.get(oldItemPosition), displayList.get(newItemPosition));\n }",
"@Override\n public boolean areItemsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n // Two Note item are same if there ID are same - uniquely identify each entry\n return oldItem.getId() == newItem.getId();\n }",
"@Override\n public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) {\n return DiffRecyclerAdapter.this.areItemsTheSame(backupList.get(oldItemPosition), displayList.get(newItemPosition));\n }",
"@Override\n public void updateItem(DataModel newItem, int position) {\n\n deleteItem(position);\n originalData.add(0, newItem);\n currentData.add(0, newItem);\n }",
"@Override\n public boolean areContentsTheSame(Comment newItem) {\n return getItem().getName().equals(newItem.getName());\n }",
"@Override\n public boolean areItemsTheSame(@NonNull EntityBook oldItem, @NonNull EntityBook newItem) {\n return oldItem.getChecksum().equals(newItem.getChecksum());\n }",
"public boolean addRow(MessageListItem newItem){\n // Bad data.\n if (newItem == null)\n return false;\n \n if (DEBUG) Timber.v(\"addRow, ID: %s, delivered: %s\", newItem.id, newItem.delivered);\n\n // Dont add message that does not have entity id and the status of the message is not sending.\n if (newItem.entityId == null && (newItem.delivered != BMessage.Delivered.No\n || newItem.status != BMessage.Status.SENDING))\n {\n if (DEBUG) Timber.d(\"Message has no entity and was sent.: \", newItem.text);\n return false;\n }\n\n\n Timber.d(\"Checking if exist\");\n // Check for duplicates, And update the message status if its already exist.\n\n for (ListIterator iterator = listData.listIterator(); iterator.hasNext();) {\n MessageListItem item = (MessageListItem) iterator.next();\n Timber.d(\"OldId: %s, NewId: %s\", item.id, newItem.id);\n if (item.id == newItem.id)\n {\n Timber.d(\"Updating old item\");\n iterator.set(newItem);\n notifyDataSetChanged();\n return false;\n }\n }\n\n listData.add(newItem);\n\n Collections.sort(listData, new MessageItemSorter(MessageSorter.ORDER_TYPE_DESC));\n\n notifyDataSetChanged();\n\n return true;\n }",
"@Override\n public boolean areContentsTheSame(HomeSubCategoryData oldItem,\n HomeSubCategoryData newItem) {\n return false;\n }",
"@Override\n public boolean areContentsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n return oldItem.getTitle().equals(newItem.getTitle()) &&\n oldItem.getDescription().equals(newItem.getDescription()) &&\n oldItem.getPriority() == newItem.getPriority();\n }",
"@Nullable\n @Override\n public Object getChangePayload(int oldItemPosition, int newItemPosition) {\n return super.getChangePayload(oldItemPosition, newItemPosition);\n }",
"@Nullable\n @Override\n public Object getChangePayload(int oldItemPosition, int newItemPosition) {\n return super.getChangePayload(oldItemPosition, newItemPosition);\n }",
"@Nullable\n @Override\n public Object getChangePayload(int oldItemPosition, int newItemPosition) {\n return super.getChangePayload(oldItemPosition, newItemPosition);\n }",
"@Override\n public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {\n Station oldStation = mOldStations.get(oldItemPosition);\n Station newStation = mNewStations.get(newItemPosition);\n if (oldStation.getStationName().equals(newStation.getStationName()) &&\n oldStation.getPlaybackState() == newStation.getPlaybackState() &&\n oldStation.getStationImageSize() == newStation.getStationImageSize()) {\n return true;\n } else {\n return false;\n }\n }",
"public @NotNull Item newItem();",
"@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n Note selectedNote = mNoteWithNotificationList.get(position);\n\n if (selectedNote != null)\n holder.setData(selectedNote, position);\n }",
"@Override\n public boolean isSame(Item other) {\n return this.equals(other);\n }",
"@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }",
"@Override\n public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) {\n Station oldStation = mOldStations.get(oldItemPosition);\n Station newStation = mNewStations.get(newItemPosition);\n return oldStation.getStreamUri().equals(newStation.getStreamUri());\n }",
"@Test\n public void addExactDupItemTest() {\n List<Item> items = itemSrv.getAllItems();\n Assert.assertNotNull(\"List of items is null\", items);\n\n Assert.assertEquals(\"Wrong initial size of the list, should be 0\", 0, items.size());\n\n final Item item = new Item(\"item1\", \"item1 description\");\n Assert.assertEquals(\"Item adding failure\", ErrCode.ADD_SUCCESS, itemSrv.addItem(item));\n\n items = itemSrv.getAllItems();\n Assert.assertEquals(\"Total item count should be 1\", 1, items.size());\n\n // Add same exact/original/duplicate item\n Assert.assertEquals(\"Duplicate item protection fails\", ErrCode.ADD_DUPLICATE_ITEM, itemSrv.addItem(item));\n Assert.assertEquals(\"Total item count should still be 1 after adding duplicate item\", 1, itemSrv.getAllItems().size());\n Assert.assertEquals(\"Retrieved item is not the same as original\", item, items.get(0));\n }",
"@Test\n public void addDiffItemDupNameTest() {\n final String itemName = \"item1\";\n List<Item> items = itemSrv.getAllItems();\n Assert.assertNotNull(\"List of items is null\", items);\n\n Assert.assertEquals(\"Wrong initial size of the list, should be 0\", 0, items.size());\n\n final Item item = new Item(itemName, \"item1 description\");\n Assert.assertEquals(\"Item adding failure\", ErrCode.ADD_SUCCESS, itemSrv.addItem(item));\n\n items = itemSrv.getAllItems();\n Assert.assertEquals(\"Total item count should be 1\", 1, items.size());\n\n // Add different item, but with duplicate Name\n final Item diffItemSameName = new Item(itemName, \"different description\");\n itemSrv.addItem(diffItemSameName);\n\n items = itemSrv.getAllItems();\n Assert.assertEquals(\"Total item count should be 1 after addition of different item which has duplicate Name\", 1, items.size());\n\n final Item retrievedItem = items.get(0);\n\n Assert.assertEquals(\"Retrieved item is not the same as original\", item, retrievedItem);\n Assert.assertNotEquals(\"Retrieved item should NOT be the same as duplicate item that was attempted to be inserted\",\n diffItemSameName, retrievedItem);\n }",
"@Override\n\tpublic void modifyItem(Object toUpdated) {}",
"private void insertOrUpdateItem(){\n Toaster toaster = new Toaster(getContext());\n DBManager dbManager = new DBManager(getContext());\n if((Afegir.getText() == getText(R.string.actualitza) && updateItem(dbManager)) ||\n (Afegir.getText() == getText(R.string.afegir) && insertItem(dbManager))){\n\n ((MainActivity) getActivity()).swapFrameLayoutVisibility(true);\n ((MainActivity) getActivity()).refreshListView();\n toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.commit_insert).toString(), null);\n reset(true);\n }\n\n else toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.reboke_action).toString(), getContext().getDrawable(R.drawable.ic_error_vector));\n }",
"private void refreshItem() {\n\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(true);\r\n\t\tboundSwagForm.saveData(new DSCallback() {\r\n\t\t\t//reselect selected tile (call to saveData de-selects it)\r\n\t\t\tpublic void execute(DSResponse response,\r\n\t\t\t\t\tObject rawData, DSRequest request) {\r\n\t\t\t\t//get updated record\r\n\t\t\t\tfinal TileRecord rec = new TileRecord(request.getData());\r\n\t\t\t\t//Note: selectRecord seems to only work on the tile index\r\n\t\t\t\titemsTileGrid.selectRecord(itemsTileGrid.getRecordIndex(rec));\r\n\t\t\t\t//saveData adds tileRecord to the end.\r\n\t\t\t\t//make sure sort order is preserved\r\n\t\t\t\tdoSort();\r\n\t\t\t}});\r\n\t}",
"@Override\n // Replace the contents of a view (invoked by the layout manager)\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n holder.bind(getItem(position));\n }",
"public void addItem(Item newItem){\n // check for duplicate item ID\n for (Item item: items) {\n if (item.getItemID() == newItem.getItemID()) {\n item.setQuantity(item.getQuantity() + 1);\n return;\n }\n }\n newItem.setQuantity(1);\n this.items.add(newItem);\n }",
"@Override\r\n\t\tpublic CompareEntity getItem(int position) {\n\t\t\treturn super.getItem(position);\r\n\t\t}",
"private void replaceMessage(ChatMsgContainer newMsgData, String prevId)\n {\n int flag = 0;\n for(int i=0; i<mChatData.getChatMsgData().size();i++ )\n {\n if(!prevId.equals(\"\")) {\n if (mChatData.getChatMsgData().get(i).getId().equals(prevId)) {\n mChatData.getChatMsgData().get(i).copy(newMsgData);\n flag = 1;\n break;\n }\n }\n else\n {\n if (mChatData.getChatMsgData().get(i).getId().equals(newMsgData.getId())) {\n mChatData.getChatMsgData().get(i).copy(newMsgData);\n flag = 1;\n break;\n }\n }\n }\n if(flag == 0)\n {\n mChatData.getChatMsgData().add(newMsgData);\n }\n\n //mitemListAdapter.add(mChatData.getChatMsgData());\n\n mitemListAdapter.notifyDataSetChanged();\n mitemListAdapter.notifyDataSetInvalidated();\n lvChatMsgList.invalidate();\n scrollToBottom();\n }",
"void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item again if missing\n mItems.add(ADD_NEW_ENTRY);\n // need to manually call, since this item is not in Db and hence ignored by DiffUtil\n notifyItemInserted(mItems.size() - 1);\n }\n }",
"private void updateItem(ItemBox itemBox) {\n\t\ttry {\n\t\t\tItem temp = getNewItem(itemBox.getGtin());\n\n\t\t\t// checks if the currently fetched temp Item is the still the same\n\t\t\t// item as the one online\n\t\t\tif (!temp.equals(itemBox.getItem())) {\n\t\t\t\tlog.info(temp.name + \" unequal to \" + itemBox.getItem().name);\n\t\t\t\titemBox.setItem(temp);\n\t\t\t\tlog.info(\"Changed to \" + temp.name);\n\t\t\t}\n\t\t} catch (Exception e1) {\n\t\t\tlog.error(\"Error updating Item \" + itemBox.getName() + \" - \" + e1.getMessage());\n\t\t}\n\t}",
"@Override\n protected void updateItem(Podcast podcast, boolean empty) {\n boolean wasEmpty = isEmpty();\n super.updateItem(podcast, empty);\n\n //Stores the podcast so it can be used later\n this.podcast = podcast;\n\n //Will be used to monitor settings to display icons etc.\n final ChangeListener<Boolean> changeListener =(observableValue, oldValue, newValue) -> {\n if(model.DEBUG)\n System.out.println(\"[\"+getClass().getName()+\"] The observableValue has \" + \"changed: oldValue = \" + oldValue + \", newValue = \" + newValue);\n };\n //if empty || null hides the libcell components\n if (empty || podcast == null) {\n podCastTitle.setVisible(false);\n podcastDuration.setVisible(false);\n podcastPubDate.setVisible(false);\n podcastDuration.setVisible(false);\n HBox temp = new HBox();\n temp.setPrefHeight(55.0);\n setGraphic(temp);\n } else {\n\n //Checks if the file is downloaded to the directory\n if(!this.podcast.isDownloaded()){\n queueBtn.setText(\"Download & Queue\");\n queueBtn.setWrapText(true);\n }\n\n //Fills in the information of the podcast into the cell\n podCastTitle.setVisible(true);\n podCastTitle.setText(podcast.getTitle());\n podcastCover.setImage(new Image(podcast.getImgPath()));\n podcastPubDate.setVisible(true);\n podcastPubDate.setText(\"Published: \"+podcast.getPubDate());\n podcastDuration.setVisible(true);\n podcastDuration.setText(podcast.getDuration());\n\n //Adds tooltip to remove button\n Tooltip.install(removeBtn, new Tooltip(\"Click for more options\"));\n\n //If this cell was just added, assign listeners\n //Only done once to prevent wasted resources\n if(wasEmpty != empty){\n this.podcast.hasNotesProperty().addListener(changeListener);\n this.podcast.isQueuedProperty().addListener(changeListener);\n queueBtn.disableProperty().bind(this.podcast.isQueuedProperty());\n viewNotes.disableProperty().bind(this.podcast.hasNotesProperty());\n }\n\n /*\n\n Following if statements adds tooltips based on properties\n of the podcast being displayed\n\n */\n if(podcast.hasNotes()){\n Tooltip.install(viewNotes, new Tooltip(\"View the notes for this podcast\"));\n }\n\n if(!podcast.isQueued()){\n Tooltip.install(queueBtn, new Tooltip(\"Add this podcast to your queue!\"));\n }\n\n setGraphic(container);\n }\n\n\n }",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\tEntity clonedItem = room.entityFactory.itemFactory.createItem(itemComponent.getItemType().type, null);\n\t\t\t\tItemComponent clonedItemCompo = Mappers.itemComponent.get(clonedItem);\n\t\t\t\tboolean pickedUp = clonedItemCompo.pickUp(GameScreen.player, clonedItem, room);\n\t\t\t\tif (pickedUp) {\n\t\t\t\t\t//TODO\n\t\t\t\t} else {\n\t\t\t\t\t//TODO\n\t\t\t\t}\n\t\t\t}",
"@Override\n protected void updateItem(T item, boolean empty) {\n\n // Do the normal Cell.updateItem() things\n super.updateItem(item, empty);\n\n // If the item in question exists, use its name as text instead\n if (item != null) {\n setText(item.getName());\n }\n }",
"protected void updateItemIfNeeded(int oldIndex, T oldItem, boolean wasEmpty) {\r\n // weed out the obvious\r\n if (oldIndex != getIndex()) return;\r\n if (oldItem == null || getItem() == null) return;\r\n if (wasEmpty != isEmpty()) return;\r\n // here both old and new != null, check whether the item had changed\r\n if (oldItem != getItem()) return;\r\n // unchanged, check if it should have been changed\r\n T listItem = getTableView().getItems().get(getIndex());\r\n // update if not same\r\n if (oldItem != listItem) {\r\n // doesn't help much because itemProperty doesn't fire\r\n // so we need the help of the skin: it must listen\r\n // to invalidation and force an update if \r\n // its super wouldn't get a changeEvent\r\n updateItem(listItem, isEmpty());\r\n }\r\n }",
"@Test\n\tpublic void copy() {\n\t\tBody b1 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tCollisionItemAdapter<Body, BodyFixture> c1 = this.item.copy();\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tCollisionItemAdapter<Body, BodyFixture> c2 = this.item.copy();\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t\t\n\t\t// make sure it's a deep copy\n\t\tc1.set(null, null);\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t}",
"@Override\n public BoardItem getItem(int position) {\n return boardItemslist.get(position);\n }",
"@Override\n public boolean areItemsTheSame(Concert oldConcert, Concert newConcert) {\n return oldConcert.getId() == newConcert.getId();\n }",
"@Override\n public void bindView(Chat item, List<Object> payloads) {\n\n setAvatar(item);\n setMessage(item);\n }",
"@Override\n public void onBindViewHolder(ItemAdapter.ViewHolder holder, int position) {\n // Grab the item at the position\n // Get the data model based on position\n String item = items.get(position);\n // Bind the item at the specified view holder\n holder.bind(item);\n holder.removeItem();\n holder.attachActivity();\n }",
"@Override\n public void onBindViewHolder(ViewHolder itemViewHolder, int position) {\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n MyDataset listItem = listItems.get(position);\n\n// Log.d(TAG, \"onBindViewHolder: string\" + listItem.toString());\n\n if(listItem.getNewComplaint()==false)\n holder.itemView.setBackgroundColor((int)R.color.gray);\n\n holder.itemView.setTag(position);\n holder.textViewComplaint.setText(listItem.getQuery());\n holder.textViewTime.setText(listItem.getTime());\n holder.textViewComplaintId.setText(listItem.getComplaintIdString());\n }",
"@Override\n public void onItemRangeChanged(\n int startPosition, int itemCount, Object payload) {\n }",
"@Override\n public void onBindViewHolder(ItemViewHolder holder, int position)\n {\n Item item = itemList.get(position);\n holder.bindItem(item);\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n final MyViewHolder viewHolder = (MyViewHolder) holder;\n final BeanItems.ItemsBean bean = mData.get(position);\n viewHolder.setIsRecyclable(false);\n if (!mActivity.hasData(bean.getItemid())) {\n //无数据\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_data_entry_add);\n viewHolder.mTvTitle.setText(bean.getItemname());\n viewHolder.mTvContent.setVisibility(View.GONE);\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = position;\n mListener.onItemClick(v, bean.getItemid(), bean.getItemname() + \"第1组\", position, 0);\n }\n }\n });\n } else if (position != selectPosition) {\n //有数据未打开\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_down_arrow_data_entry);\n viewHolder.mTvTitle.setText(bean.getItemname());\n Cursor c = mActivity.query(bean.getItemid());\n viewHolder.mTvContent.setText(\"已录入\" + c.getCount() + \"组\");\n c.close();\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = position;\n mListener.onItemClick(v, bean.getItemid(), null, position, 1);\n }\n }\n });\n } else {\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_down_up_data_entry);\n viewHolder.mTvTitle.setText(bean.getItemname());\n Cursor c = mActivity.query(bean.getItemid());\n viewHolder.mTvContent.setText(\"已录入\" + c.getCount() + \"组\");\n c.moveToFirst();\n List<String> data = new ArrayList<>();\n List<List<String>> datas = new ArrayList<>();\n String itemID = c.getString(1);\n String group = c.getString(2);\n String strength = c.getString(3);\n String time = c.getString(4);\n// Log.d(\"AdapterDataEntryRightLi\", strength);\n data.add(itemID);\n data.add(group);\n data.add(strength);\n data.add(time);\n datas.add(data);\n while (c.moveToNext()) {\n data = new ArrayList<>();\n itemID = c.getString(1);\n group = c.getString(2);\n strength = c.getString(3);\n time = c.getString(4);\n Log.d(\"data\", strength);\n data.add(itemID);\n data.add(group);\n data.add(strength);\n data.add(time);\n datas.add(data);\n }\n c.close();\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = 999999;\n mListener.onItemClick(v, bean.getItemid(), null, position, 3);\n }\n }\n });\n LinearLayoutManager layoutManager = new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false);\n viewHolder.mRvContent.setLayoutManager(layoutManager);\n viewHolder.mRvContent.setItemAnimator(new DefaultItemAnimator());\n// String itemid = bean.getItemid();\n AdapterDataEntryContentListAty mAdapter = new AdapterDataEntryContentListAty(mActivity, datas, AdapterDataEntryRightListAty.this);\n viewHolder.mRvContent.setAdapter(mAdapter);\n ItemTouchHelper.Callback callback = new SimpleItemTouchHelperCallback(mAdapter);\n mItemTouchHelper = new ItemTouchHelper(callback);\n mItemTouchHelper.attachToRecyclerView(viewHolder.mRvContent);\n mAdapter.setOnItemClickListener(new AdapterDataEntryContentListAty.OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n if (mModifyListener != null) {\n mModifyListener.onItemClick(view, position, mData);\n }\n }\n });\n mAdapter.setOnItemAddClickListener(new AdapterDataEntryContentListAty.OnItemAddClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n mAddListener.onItemClick(view, position, mData);\n }\n });\n// mAdapter.seti\n mAdapter.setOnItemLongClickListener(new AdapterDataEntryContentListAty.OnItemLongClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n mModifyLongListener.onItemClick(view, position, mData);\n }\n });\n }\n }",
"@Override\n public Object getItem(int item) {\n return dataList.get(item);\n }",
"@Override\n public Item getItem(int position) {\n return data.get(position);\n }",
"@Override\r\n public void onItemsChanged(RecyclerView recyclerView){\r\n isNotifyDataSetChanged = true;\r\n }",
"@Override\n\t\t\t\t\tpublic void update(float delta) {\n\t\t\t\t\t\tUpdateItem(delta);\n\t\t\t\t\t}",
"@Override\n public int getItemViewType(int position) {\n return position; // USE THIS FOR KEEP OLD VIEW DATA WHEN SCROLL.\n }",
"@Test\n public void removeSameItemTwiceTest() {\n List<Item> items = itemSrv.getAllItems();\n Assert.assertNotNull(\"List of items is null\", items);\n\n Assert.assertEquals(\"Wrong initial size of the list, should be 0\", 0, items.size());\n\n final Item item1 = new Item(\"item1\", \"item1 description\");\n Assert.assertEquals(\"Item 1 adding failure\", ErrCode.ADD_SUCCESS, itemSrv.addItem(item1));\n\n items = itemSrv.getAllItems();\n Assert.assertEquals(\"One item added, total item count should be 1 now\", 1, items.size());\n\n final Item retrievedItem1 = items.get(0);\n Assert.assertEquals(\"Retrieved item1 is not the same as original\", item1, retrievedItem1);\n\n Assert.assertEquals(\"Error removing an item\", ErrCode.REMOVE_SUCCESS, itemSrv.removeItemById(retrievedItem1.getId()));\n Assert.assertEquals(\"Item was removed, count should be back to 0\", 0, itemSrv.getAllItems().size());\n\n // Removing the same exact item\n Assert.assertEquals(\"Should return REMOVE_NON_EXISTENT code\", ErrCode.REMOVE_NON_EXISTENT, itemSrv.removeItemById(retrievedItem1.getId()));\n Assert.assertEquals(\"Items count should be still 0 after removing the only item twice in the row\", 0, itemSrv.getAllItems().size());\n }",
"public void insert(KeyedItem newItem);",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n if (holder instanceof OriginalViewHolder) {\n OriginalViewHolder view = (OriginalViewHolder) holder;\n\n Product p = items.get(position);\n view.name.setText(p.getName());\n view.description.setText(Tools.currency(\"Rp\",p.getPrice()));\n view.stock.setText(\"Stock :\"+p.getStock());\n view.delete.setOnClickListener(del->{\n if (onItemRemove != null) {\n onItemRemove.onItemRemove(del, items.get(position), position);\n }\n });\n view.edit.setOnClickListener(edit->{\n Intent i = new Intent(ctx,EditProduct.class);\n i.putExtra(\"product_id\",p.getId());\n i.putExtra(\"name\",p.getName());\n i.putExtra(\"stock\",p.getStock());\n i.putExtra(\"price\",p.getPrice());\n ctx.startActivity(i);\n });\n Tools.displayImageOriginal(ctx, view.image, p.getImage());\n view.lyt_parent.setOnClickListener(view1 -> {\n if (mOnItemClickListener != null) {\n mOnItemClickListener.onItemClick(view1, items.get(position), position);\n }\n });\n }\n }",
"@Override\n public long getItemId(int itemId) {\n return itemId;\n }",
"@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }",
"@Override\n public void setChanged() {\n set(getItem());\n }",
"public void newItemNotAdded(String itemValue);",
"public int insertItem(DataItem newItem)\n\t{\n\t\tnumItems++;\n\t\tlong newKey = newItem.dData;\n\t\t\n\t\tfor(int j=ORDER-2; j>=0; j--)\n\t\t{\n\t\t\tif(itemArray[j] == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlong itsKey = itemArray[j].dData;\n\t\t\t\tif(newKey < itsKey)\n\t\t\t\t\titemArray[j+1] = itemArray[j];\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\titemArray[j+1] = newItem;\n\t\t\t\t\treturn j+1;\n\t\t\t\t}\n\t\t\t}//end else (not null)\n\t\t}//end for\n\t\titemArray[0] = newItem;\n\t\treturn 0;\n\t}",
"@Override\n\t\tpublic int getItemViewType(int arg0) {\n\t\t\treturn IGNORE_ITEM_VIEW_TYPE;\n\t\t}",
"public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}",
"@Override\n public void onBindViewHolder(CustomAdapter.CustomViewHolder holder, int position) {\n //11. and now the ViewHolder data\n ListItem currentItem = listOfData.get(position);\n\n holder.coloredCircle.setImageResource(\n currentItem.getColorResource()\n );\n\n holder.message.setText(\n currentItem.getMessage()\n );\n\n holder.dateAndTime.setText(\n currentItem.getDateAndTime()\n );\n\n holder.loading.setVisibility(View.INVISIBLE);\n }",
"public Item getItem() { \n return myItem;\n }",
"protected boolean areItemsTheSame(T old, T news) {\n if (old == null)\n return news == null;\n return old.sameItems(news);\n }",
"@Override\n public void onBindViewHolder(@NonNull WaiterNotificationsAdapter.NotificationViewHolder holder, int position) {\n\n WaiterNotification notification = waiterNotifications.get(position);\n\n try { // Mostro la notifica cameriere\n\n String prefix = activity.getString(R.string.table_prefix);\n holder.tableTextView.setText(String.format(\"%s %s\", prefix, Local.getInstance().getTable(notification.getCustomer()).getId()));\n\n holder.dateHourTextView.setText(notification.getPrettyTime());\n\n holder.deleteButton.setOnClickListener(view->{ // Voglio eliminare la notifica cameriere\n try {\n Local.getInstance().removeWaiterNotification(notification); // Rimuovo la notifica\n\n int notificationToRemoveIndex = waiterNotifications.indexOf(notification); // Ricarico adapter\n waiterNotifications.remove(notificationToRemoveIndex);\n notifyItemRemoved(notificationToRemoveIndex);\n\n } catch (WaiterNotificationException e) { // Errore nel rimuovere la notifica\n Snackbar.make(\n activity.findViewById(android.R.id.content),\n R.string.error_delete_notification_snackbar,\n BaseTransientBottomBar.LENGTH_LONG\n ).show();\n }\n });\n\n // Setto la riga visibile\n holder.itemView.setVisibility(View.VISIBLE);\n holder.itemView.setLayoutParams(new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n\n } catch (TableException e) { // Cliente della notifica non ha un tavolo: notifica non valida. Non mostro la riga di tale notifica\n holder.itemView.setVisibility(View.GONE);\n holder.itemView.setLayoutParams(new RecyclerView.LayoutParams(0, 0));\n }\n }",
"public interface Item {\n void fill(RecyclerView.ViewHolder viewHolder);\n\n int getType();\n\n}",
"@Override\n public void onItemInserted(Object toInsert, String prevId) {\n if(toInsert instanceof SpotifyItem)\n return;\n DrinkInfo prevItem = new DrinkInfo();\n prevItem.setFirebaseId(prevId);\n\n //Get position of the preceeding item\n int prevIndex = mDrinkInfos.indexOf(prevItem);\n\n if(prevIndex == -1)\n prevIndex = 0;\n Log.d(TAG, \"Array size = \" + mDrinkInfos.size() + \", prevIndex = \" + prevIndex);\n\n //Perform insertion\n mDrinkInfos.add(mDrinkInfos.size(), (DrinkInfo)toInsert);\n Log.d(TAG, \"Added: \" + ((DrinkInfo) toInsert).getDrinkName() + \", at index: \" + prevIndex);\n mDrinkQueueAdapter.notifyDataSetChanged();\n }",
"@Override\n public void updateItem(P_CK t) {\n \n }",
"@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }",
"@Override\r\n public int getItemId() {\n return this.itemId;\r\n }",
"public void onSetNewCurrentItem() {\n }",
"public Object getItem(int arg0) {\n\t\tif ((newTwitts != null) && (oldTwitts.moveToFirst())){\r\n\t\t\t\r\n\t\t\tif(arg0 < newTwitts.size())\r\n\t\t\t\treturn newTwitts.get(arg0);\r\n\t\t\t\r\n\t\t\telse if (arg0 < getCount()){\r\n\t\t\t\t\r\n\t\t\t\toldTwitts.moveToPosition(arg0 - newTwitts.size());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tStatus status = (Status) new JSONObject(oldTwitts.getString(oldTwitts.getColumnIndex(\"json_string\")));\r\n\t\t\t\t\treturn status;\r\n\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t}else if(oldTwitts.moveToFirst()){\r\n\t\t\t\r\n\t\t\tif (arg0 < oldTwitts.getCount()){\r\n\t\t\t\t\r\n\t\t\t\toldTwitts.moveToPosition(arg0);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tStatus status = (Status) new JSONObject(oldTwitts.getString(oldTwitts.getColumnIndex(\"json_string\")));\r\n\t\t\t\t\treturn status;\r\n\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t}else if(arg0 < newTwitts.size())\t\t\t\r\n\t\t\treturn newTwitts.get(arg0);\r\n\t\t\t\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"@Override\n public E push(E item) {\n // do not allow nulls\n if (item == null) {\n return null;\n }\n\n // do not allow same item twice in a row\n if (size() > 0 && item.equals(peek())) {\n return null;\n }\n\n // okay to add item to stack\n super.push(item);\n\n // remove oldest item if stack is now larger than max size\n if (size() > maxSize) {\n remove(0);\n }\n contentsChanged();\n return item;\n }",
"@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}",
"public static void syncItems() {\n ArrayList<Contest> keep = null;\n if (contestItems.size() > CONTEST_LIST_SIZE) {\n keep = new ArrayList<>(contestItems.subList(0, CONTEST_LIST_SIZE));\n keep = removeDups(keep);\n // sort and redraw\n Collections.sort(keep, new ContestComparator());\n adapter.clear();\n adapter.addAll(keep);\n //adapter = new ContestItemsAdapter(mCtx, keep);\n }\n\n adapter.notifyDataSetChanged();\n }",
"@Override\n public Object getItem(int pos) {\n return mItems.get(pos);\n }",
"protected abstract ReadCell<DataType> createItemCell(LayoutInflater inflater, View convertView, ViewGroup parent);",
"protected abstract void compareItem(Item expected, Item actual);",
"public abstract void refreshItem();",
"@Override\n public void onBindViewHolder(AddFriendAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Friends thisFriend = addFriendList.get(position);\n String thisName = thisFriend.getFirstName() + \" \" + thisFriend.getLastName();\n holder.FriendName.setText(thisName);\n holder.ButtonText.setText(\"Add\");\n }",
"@Override\n public T getItemVO() {\n return this.itemVO;\n }",
"private void createChangeItem(Issue issue, ChangeItemBean changeItemBean, ApplicationUser remoteUser) {\n IssueUpdateBean issueUpdateBean = new IssueUpdateBean(issue, issue, EventType.ISSUE_UPDATED_ID, remoteUser);\n issueUpdateBean.setDispatchEvent(false);\n issueUpdateBean.setChangeItems(ImmutableList.of(changeItemBean));\n issueUpdater.doUpdate(issueUpdateBean, true);\n }",
"private void dragDownToAdd() {\n ItemTouchHelper.SimpleCallback itemTouchHelperCallback =\n new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.DOWN) {\n\n @Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder,\n RecyclerView.ViewHolder target) {\n return true;\n }\n\n @Override\n public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) {\n if (viewHolder != null) {\n final View cardView =\n ((HorizontalCompanyListAdapter.ViewHolder) viewHolder).cardView;\n getDefaultUIUtil().onSelected(cardView);\n }\n }\n\n @Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {\n\n final Company temp = dashboardCompanies.get(viewHolder.getAdapterPosition());\n\n if (!checkDuplicate(comparisonCompaniesAdapter.getDataSet(), temp.getIdentifiers().getTicker())) {\n selectedCompanies.add(temp);\n //adapter.notifyDataSetChanged();\n horizontalCompanyListAdapter.removeItem(viewHolder.getAdapterPosition());\n comparisonCompaniesAdapter.addItem(temp);\n }\n }\n\n @Override\n public void clearView(RecyclerView recyclerView,\n RecyclerView.ViewHolder viewHolder) {\n final View cardView =\n ((HorizontalCompanyListAdapter.ViewHolder) viewHolder).cardView;\n getDefaultUIUtil().clearView(cardView);\n }\n\n @Override\n public void onChildDraw(Canvas c, RecyclerView recyclerView,\n RecyclerView.ViewHolder viewHolder, float dX, float dY,\n int actionState, boolean isCurrentlyActive) {\n\n final View cardView =\n ((HorizontalCompanyListAdapter.ViewHolder) viewHolder).cardView;\n\n getDefaultUIUtil().onDraw(c, recyclerView,\n cardView, dX, dY, actionState, isCurrentlyActive);\n }\n\n @SuppressWarnings(\"EmptyMethod\")\n @Override\n public int convertToAbsoluteDirection(int flags, int layoutDirection) {\n return super.convertToAbsoluteDirection(flags, layoutDirection);\n }\n };\n\n // attaching the touch helper to recycler view\n ItemTouchHelper mItemTouchHelper = new ItemTouchHelper(itemTouchHelperCallback);\n mItemTouchHelper.attachToRecyclerView(dashboardCompaniesRecyclerView);\n }",
"@Override\r\n\t\tpublic Item getItem() {\n\t\t\treturn null;\r\n\t\t}",
"public Item getItem() {\n return item;\n }",
"public int getItemID()\n {\n return itemID;\n }",
"@Test\r\n\tpublic void itemLiveTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setDescription(\"word\");\r\n\t\titem.setType(\"type\");\r\n\t\titem.setName(\"name\");\r\n\t\titem.setSellerId(SELLER);\r\n\t\titem.setCount(NUMBER);\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\titem.setPicture(\"picture\");\r\n\t\ttry {\r\n\t\t\titem.createItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to create new item: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load newly created item\r\n\t\tItem itemNew = new Item();\t\t\r\n\t\tassertNotSame(itemNew.getId(), item.getId());\r\n\t\ttry {\r\n\t\t\titemNew.loadById(item.getId());\r\n\t\t\tassertEquals(itemNew.getId(), item.getId()); // item actually loaded\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load item id \"+item.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\titemNew.setName(\"another name\");\r\n\t\ttry {\r\n\t\t\titemNew.updateItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to update item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load updated item\r\n\t\titem = new Item();\t\t\r\n\t\ttry {\r\n\t\t\titem.loadById(itemNew.getId());\r\n\t\t\tassertEquals(item.getId(), itemNew.getId()); // item actually loaded\r\n\t\t\tassertEquals(itemNew.getName(), \"another name\"); // update has been saved\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load updated item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\titem.deleteItem(true);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to delete item id \"+item.getId()+\": SQLException\");\r\n\t\t}\t\t\r\n\t}",
"@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}",
"public Item getItem() { return this; }",
"@Override\n public int getItemPosition(Object object) {\n return super.getItemPosition(object);\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n holder.currentPosition = position;\n holder.bindData(mCaloriesEntryList.get(position));\n }",
"public void getItem(int pos){\n getItemCard(itemList.get(pos).getId());\n itemPos = pos;\n }",
"public void push(T newItem);",
"@Override\n public MyItem getItem(int position){\n return mItems.get(position);\n }",
"@NonNull\n @Override\n public Object instantiateItem(@NonNull ViewGroup container, final int position) {\n layoutInflater = LayoutInflater.from(context);\n View view = layoutInflater.inflate(R.layout.whatsnew_image_slide, container, false);\n\n final HashMap whatsNewFoodItemHashMap = Home.whatsNewArr.get(position);\n ImageView whatsNewImage = view.findViewById(R.id.whatsNewImage);\n final FloatingActionButton addtocartWhatsNew = view.findViewById(R.id.addtocartWhatsNew);\n final ProgressBar progressBar = view.findViewById(R.id.progressBar);\n\n whatsNewStorageRef = Home.storageRef.child(whatsNewFoodItemHashMap.get(\"pic\").toString());\n Glide.with(whatsNewImage.getContext())\n .using(new FirebaseImageLoader())\n .load(whatsNewStorageRef)\n .listener(new RequestListener<StorageReference, GlideDrawable>() {\n @Override\n public boolean onException(Exception e, StorageReference model, Target<GlideDrawable> target, boolean isFirstResource) {\n return false;\n }\n @Override\n public boolean onResourceReady(GlideDrawable resource, StorageReference model, Target<GlideDrawable> target, boolean isFromMemoryCache, boolean isFirstResource) {\n progressBar.setVisibility(View.GONE);\n return false;\n }\n })\n .into(whatsNewImage);\n\n if(home.checkFoodIteminCart(whatsNewFoodItemHashMap)) {\n addtocartWhatsNew.setImageResource(R.drawable.addedtocart_icon);\n }\n\n addtocartWhatsNew.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Add or Remove to/from Cart\n if(home.checkFoodIteminCart(whatsNewFoodItemHashMap)) {\n Home.progressDialog.setMessage(\"Removing Food Item from your Cart\");\n addtocartWhatsNew.setImageResource(R.drawable.addtocart_icon);\n home.removefromcart(whatsNewFoodItemHashMap);\n }else {\n HashMap foodItemFound = home.findFoodItem(whatsNewFoodItemHashMap);\n if(foodItemFound != null) {\n Home.progressDialog.setMessage(\"Adding Food Item to your Cart\");\n home.addtocart(foodItemFound);\n addtocartWhatsNew.setImageResource(R.drawable.addedtocart_icon);\n }\n }\n new CountDownTimer(1000, 1000) {\n @Override\n public void onTick(long millisUntilFinished) { }\n @Override\n public void onFinish() {\n Home.progressDialog.dismiss();\n }\n }.start();\n }\n });\n\n container.addView(view);\n return view;\n\n }",
"public boolean replaceTileInSameTileLocation(Tile newTileInstance) {\n\t\tif(newTileInstance== null) return false;\n\t\tboolean isSuccess = false;\n\t\tint tileRow = newTileInstance.getLocation().getRow();\n\t\tint tileCol = newTileInstance.getLocation().getColumn();\n\n\t\tArrayList<Tile> boardRow= tiles.get(tileRow);\n\n\t\tboardRow.set(tileCol - getColumnLowerBound(), newTileInstance);\n\t\tthis.tiles.put(tileRow, boardRow);\n\t\tisSuccess = true;\n\n\t\treturn isSuccess;\n\t}",
"public void push(E newItem);",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n }",
"@Override\n public boolean equals(Object o)\n {\n if (this == o)\n {\n return true;\n }\n if (o == null || getClass() != o.getClass())\n {\n return false;\n }\n\n Item item = (Item) o;\n\n if (getId() != item.getId())\n {\n return false;\n }\n if (getUserId() != item.getUserId())\n {\n return false;\n }\n if (getListId() != item.getListId())\n {\n return false;\n }\n if (getPositionIndex() != item.getPositionIndex())\n {\n return false;\n }\n if (!getTitle().equals(item.getTitle()))\n {\n return false;\n }\n return getBody().equals(item.getBody());\n }",
"@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n int fromPosition = viewHolder.getAdapterPosition();\n int toPosition = target.getAdapterPosition();\n Collections.swap(mAdapter.mItems, fromPosition, toPosition);\n mAdapter.notifyItemMoved(fromPosition, toPosition);\n\n // Move in underlying list used by loader\n SelectedBuses.moveBusInList(\n getContext(),\n ((BusViewHolder) viewHolder).mBusIdInApi,\n ((BusViewHolder) target).mBusIdInApi\n );\n\n // Dismiss Snackbar\n if (mSnackbar != null) {\n mSnackbar.dismiss();\n }\n return true;\n }",
"@Override\r\n\tpublic void copy(MetaInterface item, MetaInterface alreadyExists) {\n\t\t\r\n\t}",
"void updateItem(E itemElementView);",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n int viewType = holder.getItemViewType();\n\n if (viewType == TaskDetail.VIEW_TYPE_EDIT_VALUE) {\n presenter.bindTaskTitleViewToValue((TaskTitleViewHolder) holder, position);\n\n } else if (viewType == TaskDetail.VIEW_TYPE_ADD_SUBTASK || viewType == TaskDetail.VIEW_TYPE_NOTE || viewType == TaskDetail.VIEW_TYPE_SCHEDULE) {\n presenter.bindBasicViewToValue((BasicViewHolder) holder, position);\n\n } else if (viewType == TaskDetail.VIEW_TYPE_SUBTASK) {\n presenter.bindSubtaskViewToValue((SubtaskViewHolder) holder, position);\n }\n }"
] |
[
"0.6173576",
"0.61676973",
"0.61149293",
"0.60440123",
"0.6036396",
"0.5925758",
"0.5910707",
"0.5880041",
"0.5876684",
"0.56472886",
"0.56472886",
"0.56472886",
"0.55508584",
"0.5534677",
"0.55198705",
"0.54770756",
"0.5421357",
"0.53922546",
"0.5352852",
"0.5325891",
"0.5304664",
"0.53008074",
"0.5273936",
"0.526045",
"0.5258944",
"0.5246242",
"0.5176396",
"0.5173078",
"0.51601666",
"0.5152597",
"0.5139497",
"0.51344955",
"0.51253664",
"0.51131856",
"0.5110205",
"0.5088048",
"0.5087145",
"0.50784695",
"0.5059015",
"0.50453603",
"0.5040206",
"0.5022973",
"0.50181884",
"0.5012903",
"0.50083846",
"0.4985553",
"0.4971969",
"0.49704516",
"0.49700397",
"0.49297422",
"0.49260604",
"0.49241918",
"0.49222174",
"0.4906445",
"0.48988476",
"0.48954758",
"0.48952472",
"0.48916107",
"0.48740956",
"0.48738727",
"0.48713794",
"0.48658568",
"0.48655435",
"0.48585868",
"0.48577482",
"0.48566735",
"0.48526004",
"0.48504847",
"0.48423618",
"0.48417252",
"0.4841115",
"0.48396572",
"0.4838155",
"0.4833299",
"0.48263237",
"0.4824842",
"0.4818605",
"0.48111674",
"0.48076648",
"0.48033342",
"0.48026",
"0.4798636",
"0.47974217",
"0.47973904",
"0.47954547",
"0.47864163",
"0.47798872",
"0.4778064",
"0.47774076",
"0.4771313",
"0.4770572",
"0.47638896",
"0.47634327",
"0.4758762",
"0.47499794",
"0.47466868",
"0.4744407",
"0.47437808",
"0.47408023",
"0.4739966",
"0.47386163"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public float getX() {
return this.x;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void setX(float x) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public float getY() {
return this.y;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void setY(float y) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public float getWidth() {
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void setWidth(float width) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public float getHeight() {
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void setHeight(float height) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public int getId() {
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public int getTexture() {
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void setTexture(int texID) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public float getHitCircleRadius() {
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void damage(float f) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
Creates a new game
|
public Game() {
users = new ArrayList<>();
tmpTeam = new UserTeam();
core = new Core();
market = new Market(core);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Game createGame();",
"public void createGame();",
"void createNewGame() {\n _gameList.add(new GameObject());\n Log.i(\"createGame\", \"Created New Game\");\n }",
"void createNewGame(Player player);",
"public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }",
"void newGame() {\n logger.log(\"New game starting.\");\n logger.log(divider);\n\n\n // Create the deck.\n createDeck();\n logger.log(\"Deck loaded: \" + deck.toString());\n\t logger.log(divider);\n\n\n // Shuffle the deck.\n shuffleDeck();\n logger.log(\"Deck shuffled: \" + deck.toString());\n logger.log(divider);\n\n // Create the players.\n createPlayers();\n setGameState(GameState.PLAYERS_SPAWNED);\n\n // Deal cards to players' decks.\n deal();\n for (Player player : players) {\n logger.log(\"Hand: \" + player);\n }\n \n\n // Randomly select the active player for the first round.\n selectRandomPlayer();\n\n setGameState(GameState.NEW_GAME_INITIALISED);\n }",
"@PostMapping(\"/createNewGameRoom\")\n @ResponseStatus(HttpStatus.CREATED)\n public Game generateNewGameRoom() {\n String entrycode = service.generateEntryCode();\n currentGame.setEntrycode(entrycode);\n currentGame = gameDao.add(currentGame);\n return currentGame;\n }",
"@Override\n\tpublic void createNewGame() \n\t{\n\t\t//Create new game\n\t\tboolean randomhexes = getNewGameView().getRandomlyPlaceHexes();\n\t\tboolean randomnumbers = getNewGameView().getRandomlyPlaceNumbers();\n\t\tboolean randomports = getNewGameView().getUseRandomPorts();\n\t\tString title = getNewGameView().getTitle();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tReference.GET_SINGLETON().proxy.createGame(title, randomhexes, randomnumbers, randomports);\n\t\t} \n\t\tcatch (JoinExceptions e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Refresh game list\n\t\tList<Game> gamelist = Reference.GET_SINGLETON().proxy.getGameList();\n\t\tGameInfo[] games = new GameInfo[gamelist.size()];\n\t\tint counter = 0;\n\t\tfor(Game game: gamelist)\n\t\t{\n\t\t\tGameInfo thisgame = new GameInfo();\n\t\t\tthisgame.setId(game.getId());\n\t\t\tthisgame.setTitle(game.getTitle());\n\t\t\tfor(Player player : game.getPlayers())\n\t\t\t{\n\t\t\t\tPlayerInfo player_info = new PlayerInfo(player);\n\t\t\t\tplayer_info.setColor(player.getColor());\n\t\t\t\tif(!(player.color == null))thisgame.addPlayer(player_info);\n\t\t\t}\n\t\t\tgames[counter] = thisgame;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tReference ref = Reference.GET_SINGLETON();\n\t\t\n\t\tPlayerInfo ourguy = new PlayerInfo();\n\t\t\n\t\tourguy.setId(ref.player_id);\n\t\tourguy.setName(ref.name);\n\t\tif(getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\t\tif (getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\n\t\tgetJoinGameView().setGames(games, ourguy);\n\t\t\n\t}",
"public Long createGame() {\n Game game;\n synchronized (this.games) {\n Long id = this.sessionService.incrementGameId();\n\n game = new Game(id,\n new ArrayList<>(), new ArrayList<>());\n\n this.games.put(id, game);\n }\n this.save(game);\n\n return game.getGameIdentifier();\n }",
"private void createGame(String name){\n\n }",
"public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(null, \"What's your name ?\");\n if (playername == null) playername = \"anon\";\n System.out.println(playername);\n\n this.player = new Player(playername, rooms[0], 0, 0);\n player.getCurrentCell().setVisible(true);\n rooms[0].getCell(0, 0).setEntity(player);\n\n frame.showGame();\n frame.refresh(player.getCurrentRoom().toString());\n frame.setHUD(player.getGold(), player.getStrength(), player.getCurrentRoom().getLevel());\n }",
"public void newGame() {\r\n\r\n gameObjects.newGame();\r\n\r\n // Reset the mScore\r\n playState.mScore = 0;\r\n\r\n // Setup mNextFrameTime so an update can triggered\r\n mNextFrameTime = System.currentTimeMillis();\r\n }",
"public RPSGame createNewGame(String playerId) {\n\t\tif (playerId == null) {\n\t\t\tthrow new RuntimeException(\"Player ID can't be null!\");\n\t\t}\n\t\tlong gameId = currentGameId.getAndIncrement();\n\t\tRPSGame newGame = new RPSGame(gameId, playerId);\n\t\tgames.put(gameId, newGame);\n\t\treturn newGame;\n\t}",
"public Game createGame(int numberOfPlayers) {\n return new Game(numberOfPlayers);\n }",
"public void newGame();",
"public void newGame();",
"public void newGame();",
"public void createGame(View view) {\n EditText editText = (EditText) findViewById(R.id.enter_game_keyword);\n gameName = editText.getText().toString();\n\n if (!nameEntered(gameName)) {\n return;\n }\n GameNameHandler.createGameHandler(this,gameName, getPlayerName());\n saveInPreferences(gameName);\n }",
"void create(GameLogic gameLogic);",
"public void newGame() {\n init();\n updateScoreBoard();\n Toast.makeText(getContext(), \"New Game started\", Toast.LENGTH_LONG).show();\n }",
"public void createGame() {\n boolean foundValid = false;\n\n while (! foundValid) {\n createRandomGame();\n foundValid = checkRules();\n }\n\n printBoard();\n }",
"public void newGame(){\n\t\tsoundMan.BackgroundMusic1();\n\n\t\tstatus.setGameStarting(true);\n\n\t\t// init game variables\n\t\tbullets = new ArrayList<Bullet>();\n\n\t\tstatus.setShipsLeft(8);\n\t\tstatus.setGameOver(false);\n\n\t\tif (!status.getNewLevel()) {\n\t\t\tstatus.setAsteroidsDestroyed(0);\n\t\t}\n\n\t\tstatus.setNewAsteroid(false);\n\n\t\t// init the ship and the asteroid\n\t\tnewShip(gameScreen);\n\t\tnewAsteroid(gameScreen);\n\n\t\t// prepare game screen\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic2();\n\t\tsoundMan.StopMusic3();\n\t\tsoundMan.StopMusic4();\n\t\tsoundMan.StopMusic5();\n\t\tsoundMan.StopMusic6();\n\t\t// delay to display \"Get Ready\" message for 1.5 seconds\n\t\tTimer timer = new Timer(1500, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameStarting(false);\n\t\t\t\tstatus.setGameStarted(true);\t\n\n\t\t\t\tstatus.setLevel(1);\n\t\t\t\tstatus.setNumLevel(1);\n\t\t\t\tstatus.setScore(0);\n\t\t\t\tstatus.setYouWin(false);\n\t\t\t\tstatus.setBossLife(0);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}",
"private void launchCreateGame() {\n\t\tString name = nameText.getText().toString();\n\t\tString cycle = cycleText.getText().toString();\n\t\tString scent = scentText.getText().toString();\n\t\tString kill = killText.getText().toString();\n\t\t\n\t\tif (name.equals(\"\")){\n\t\t\tname = defaultName;\n\t\t} \n\t\tif (cycle.equals(\"\")) {\n\t\t\tcycle = \"720\";\n\t\t} \n\t\tif (scent.equals(\"\")) {\n\t\t\tscent = \"1.0\";\n\t\t}\n\t\tif (kill.equals(\"\")) {\n\t\t\tkill = \".5\";\n\t\t}\n\t\t\n\t\t\t\n\t\tAsyncJSONParser pewpew = new AsyncJSONParser(this);\n\t\tpewpew.addParameter(\"name\", name);\n\t\tpewpew.addParameter(\"cycle_length\", cycle);\n\t\tpewpew.addParameter(\"scent_range\", scent);\n\t\tpewpew.addParameter(\"kill_range\", kill);\n\t\tpewpew.execute(WerewolfUrls.CREATE_GAME);\n\t\t\n\t\tsetProgressBarEnabled(true);\n\t\tsetErrorMessage(\"\");\n\t}",
"public abstract boolean createGame(int nbplayers, boolean status, String creator) throws SQLException;",
"void startNewGame(String playerName, String gameType) throws GameServiceException;",
"public void createNewGame() {\n\t\tfor(int n = 0; n < 8; n++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif ( n % 2 == j % BLACK_PAWN ) {\n\t\t\t\t\tif (n < 3)\n\t\t\t\t\t\tarr[n][j] = RED_PAWN;\n\t\t\t\t\telse if (n > 4)\n\t\t\t\t\t\tarr[n][j] = BLACK_PAWN;\n\t\t\t\t\telse\n\t\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t } \n\t\t\t\telse\n\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t\t}\n\t\t}\n\t}",
"public void newGame() {\n\n //reset game board before initializing newgame\n clearGame();\n \n whiteplayer = new Player(\"white\", chessboard, this);\n blackplayer = new Player(\"black\", chessboard, this);\n colorsTurn = \"white\";\n gamelog.logCurrentTurn(colorsTurn);\n\n }",
"public void createNewGame(Stage menuStage) {\n\t\t\n\t\tthis.menuStage = menuStage;\n\t\tthis.menuStage.hide();\n\t\tview = new GameView(inputs[1]);\n\t\ttry {\n\t\tview.show();\n\t\tgame = new Game(getNames(), inputs[0]);\n\t\tturned = false;\n\t\tview.initialisePlayerViews(nameList);\n\t\tcreateKeyListeners();\n\t\tcreateGameLoop();\n\t\t}catch (IndexOutOfBoundsException ex){\n\t\t\tthrow new GameException(\"User cancelled game\");\n\t\t}\n\t}",
"public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}",
"@Override\n\tpublic void startCreateNewGame() \n\t{\t\n\t\tgetNewGameView().setTitle(\"\");\n\t\tgetNewGameView().setRandomlyPlaceHexes(false);\n\t\tgetNewGameView().setRandomlyPlaceNumbers(false);\n\t\tgetNewGameView().setUseRandomPorts(false);\n\t\tif(!getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().showModal();\n\t\t}\n\t}",
"public static void createGame(Player admin, String name, String baseName, boolean createWorlds) {\n\t\t\n\t\tWorldSet worldSet = new WorldSet(baseName, createWorlds);\n\t\t\n\t\t// create new game\n\t\tGame game = new Game(admin, name, worldSet, createWorlds);\n\t\tgames.add(game);\n\t\t\n\t\tPreGame preGame = new PreGame(admin.getUniqueId(), name);\n\t\tpreGames.remove(preGame);\n\t\t\n\t\tadmin.sendMessage(AQUA + \"A game has been successfully created with the name of \" + WHITE + name + AQUA + \n\t\t\t\t\". The admin of the game is \" + WHITE + admin.getName() + AQUA + \".\");\n\t\t\n\t}",
"public Game newGame( String player ) throws IllegalArgumentException{\n Game game = new Game();\n game.setPlayer( playersRepository.getByLogin( player )\n .orElseThrow( () -> new IllegalArgumentException( \"This player doesn't exists\" ) ) );\n game.setGuessedNumber( new Random( System.currentTimeMillis() ).ints( 0 , 9 )\n .distinct()\n .limit( 4 )\n .boxed()\n .map( String::valueOf )\n .collect( Collectors.joining( \"\" ) ) );\n return gamesRepository.saveAndFlush( game );\n }",
"void startGame(int gameId) {\n game = new Game(gameId);\n }",
"public void newGame()\n\t{\n\t\tplanet.setLevel(0);\n\t\tship.resetScore();\n\t\tstopThreads();\n\t\tplanet = new Planet(750,600);\n\t\tship = new Ship(20.0,750,600,planet);\n\t\tbuttonPanel.update(ship,planet);\n\t\tgamePanel.update(ship,planet);\n\n\t\trestartThreads();\n\t}",
"public void startNewGame()\n {\n // Display the Banner Page.\n \n System.out.println(\"\\nWelcome to the city of Aaron.\");\n \n // Prompt for and get the user’s name.\n String name;\n System.out.println(\"\\nPlease type in your first name: \");\n name = keyboard.next();\n\n // Call the createNewGame() method in the GameControl class\n \n GameControl.createNewGame(name);\n\n // Display a welcome message\n System.out.println(\"Welcome \" + name + \" have fun!!!\");\n \n //Call the GameMenuView\n GameMenuView gmv = new GameMenuView();\n gmv.displayMenu();\n }",
"@Override\n public void newGame() {\n //TODO Implement this method\n }",
"void createGameCode(GameCode gameCode);",
"void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}",
"public static void newGame(){\n\t\tsetUp.buildBoard(8,8);\n\t\tfor(int i = 0; i < boardBoundsRow * boardBoundsColumn; i++){\n\t\t\tJPanel selectedTile = (JPanel) userInterface.boardButtons.getComponent(i);\n\t\t\tselectedTile.removeAll();\n\t\t\tselectedTile.revalidate();\n\t\t}\n\t\tuserInterface.addBlackPiece();\n\t\tuserInterface.addWhitePiece();\n\t\tuserInterface.check.setText(\"You are not in check\");\n\t\tking.blackKingCheck = false;\n\t\tking.whiteKingCheck = false;\n\t\tturn = \"white\";\n\t\tString playerTurn = \"Player turn: \";\n\t\tuserInterface.turn.setText(playerTurn.concat(turn));\n\t\tundoMoveClass.clearStacks();\n\t}",
"public PlayerGame create(PlayerGame playerGame) {\n if (playerGame.getId() == null) {\n playerGame.setId(++PLAYER_GAME_ID_SEQ);\n }\n\n playerGames.add(playerGame);\n\n return playerGame;\n }",
"@Override @Transactional\n public Game createGame(LocalDate date, LocalTime time, String venue, String location, Set<UserAccount> users) {\n Game game = new Game(date, time, venue, location, users);\n gameDataAccess.save(game);\n return game;\n }",
"public static void newGame(GameType t) {\n\t\ttype = t;\n\t}",
"@Override\n\tpublic void newGame(String level) {\n\t\tmanager.newGame(level);\n\t}",
"public Game() {}",
"public static void createGame(String gamecode, String creator, String gamename){\n \ttry {\n\t\t\tDBHandler.newGame(gamecode,gamename, creator, c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void handleNewGameEvent(ActionEvent event) {\n\t\tgame.startNewGame();\n\t}",
"public void startNewGame();",
"private void createGame(int port, String playername) throws UnableToCreateSocketException, UnknownHostException, IOException, ClassNotFoundException, UnableToStartGameException\n\t{\n\t\tgameServer = new GameServer(port);\n\t\tnew Thread(gameServer).start();\n\t\tjoinGame(\"localhost\", port, playername);\n\t}",
"@PostMapping(\"/game\")\n @ResponseStatus(HttpStatus.CREATED)\n public GameResponse createGame(@RequestBody GameRequest gameRequest) {\n return new GameResponse(gameService.createGame(gameRequest.getUsers(), gameRequest.getGameType()));\n }",
"public GameScreen newGame() {\n gameScreen = new GameScreen(this);\n return gameScreen;\n }",
"protected void newGameClicked(ActionEvent e) {\n startNewGame();\n }",
"private void createGame(String[] items){\r\n\t\t\r\n\t\tString name = items[1];\r\n\t\tint[] settings = new int[5];\t\t\r\n\t\tboolean ok = true;\r\n\t\t\r\n\t\tfor(int i=2; i<items.length; i++){\r\n\t\t\tif(isInteger(items[i]))\r\n\t\t\t\tsettings[i-2] = Integer.parseInt(items[i]);\t\t\t\r\n\t\t\telse{\r\n\t\t\t\tok = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tif(ok == true )\r\n\t\t\tlobby.createGame(name, settings);\t\t\r\n\t}",
"private void newGame() {\n\t\t// Firstly, we spawn the player.\n\t\tplayer = new AsteroidsPlayer(GameObject.ROOT, this);\n\t\tspawnPlayer();\n\n\t\t// Make sure that no other objects exist.\n\t\tasteroids.clear();\n\t\tlaserShots.clear();\n\t\totherObjects.clear();\n\n\t\t// Then we create the score text using two strings.\n\t\tAsteroidsString scoreText = new AsteroidsString(GameObject.ROOT, \"SCORE\", true, false);\n\t\tscoreText.translate(new Vector3(-cameraZoom, cameraZoom - 1));\n\t\totherObjects.add(scoreText);\n\t\tscoreString = new AsteroidsString(GameObject.ROOT, Integer.toString(score), true, false);\n\t\tscoreString.translate(new Vector3(-cameraZoom, cameraZoom - 3));\n\t\totherObjects.add(scoreString);\n\n\t\t// We set our starting lives to 3.\n\t\tlives = 3;\n\n\t\t//And we also create the lives text.\n\t\tAsteroidsString livesText = new AsteroidsString(GameObject.ROOT, \"LIVES\", false, true);\n\t\tlivesText.translate(new Vector3(cameraZoom, cameraZoom - 1));\n\t\totherObjects.add(livesText);\n\t\tlivesString = new AsteroidsString(GameObject.ROOT, Integer.toString(lives), false, true);\n\t\tlivesString.translate(new Vector3(cameraZoom, cameraZoom - 3));\n\t\totherObjects.add(livesString);\n\n\t\t// Then we just set the delay to the first asteroid.\n\t\ttimeToNextAsteroid = asteroidDelay;\n\t}",
"protected void newGame() {\r\n playSound( RESET );\r\n\r\n timeTitle.setText( Msgs.str( \"Time\" ) );\r\n timeMesg.setText( Msgs.str( \"zeroTime\" ) );\r\n infoMesg.setText( Msgs.str( \"Ready\" ) );\r\n scoreTitle.setText( Msgs.str( \"Score\" ) );\r\n\r\n adjustScore();\r\n currentScore = 0;\r\n scoreMesg.setText( \"0\" );\r\n\r\n mineField.newGame();\r\n minesTitle.setText( Msgs.str( \"mines.left\" ) );\r\n setMinesMesg( mineField.getNumHiddenMines() );\r\n\r\n pane.repaint();\r\n }",
"public void createNewGame(int numPlayers, String playersAndTheirNames){\n\t\tcurrentGame = new GameController(new GameModel(numPlayers), new GamePanel(numPlayers), playersAndTheirNames, numPlayers);\n\t\t\n\t\tframe.setFrameContent(currentGame.getGamePanel());\n\t}",
"void createGame(User playerOne, User playerTwo) throws RemoteException;",
"public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}",
"@Override\n public LocalGame createLocalGame() {\n return new LocalGameActual();\n }",
"public Game()\n {\n createRooms();\n parser= new Parser();\n }",
"@Override\n\tpublic void newGame() {\n\t\tround = 0;\n\t\tnewRound();\n\t\t\n\t\tgameOverSoundPlayed = false;\n\t\t\n\t\t// Reset player scores\n\t\tfor (Player player : players) {\n\t\t\tsetPlayerScore(player, 0);\n\t\t}\n\t\t\n\t\t// Reset all button press counters\n\t\tfor (IButton button : buttons) {\n\t\t\tbutton.resetPressCounter();\n\t\t}\n\t\t\n\t\t// Start the game timer\n\t\tdeltaTimeAlive = getPhysicsTickMillis();\n\t\tdeltaTimeDead = deltaTimeAlive / 4;\n\t}",
"public void newGame()\n\t{\n\t\tthis.setVisible(false);\n\t\tthis.playingField = null;\n\t\t\n\t\tthis.playingField = new PlayingField(this);\n\t\tthis.setSize(new Dimension((int)playingField.getSize().getWidth()+7, (int)playingField.getSize().getHeight() +51));\n\t\tthis.setLocation(new Point(200,20));\n\t\tthis.setContentPane(playingField);\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"private void disposeDialogAndCreateNewGame() {\r\n resultDialog.dispose();\r\n Utilities.bringWindowToFront(parentFrame);\r\n game.createNewGameState(game.getBoard().getRowLength(), game.getBoard().getColumnLength());\r\n }",
"public String createNewGame(SportType type) {\n switch (type) {\n case Swimming:\n return String.format(\"S%02d\", ++swimmingID);\n case Running:\n return String.format(\"R%02d\", ++runningID);\n case Cycling:\n return String.format(\"C%02d\", ++cyclingID);\n default:\n return \"\";\n }\n }",
"@Override\n\tpublic void create() {\n\t\tthis.playScreen = new PlayScreen<EntityUnknownGame>(this);\n\t\tsetScreen(this.playScreen);\n\t\t\n\t\t//this.shadowMapTest = new ShadowMappingTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.shadowMapTest);\n\t\t\n\t\t//this.StillModelTest = new StillModelTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.StillModelTest);\n\t\t\n//\t\tthis.keyframedModelTest = new KeyframedModelTest<EntityUnknownGame>(this);\n//\t\tsetScreen(this.keyframedModelTest);\n\t}",
"private void createGame() {\n String[] options = { \"2\", \"3\", \"4\" };\n String result = (String) JOptionPane.showInputDialog(frame, \"Please enter the max player amount (must be between 2-4\", \"Create game\", JOptionPane.QUESTION_MESSAGE, null, options, options[2]);\n if (result == null) {\n System.out.println(\"[Client] Cancelled game creation\");\n } else {\n connectedServer.writeMessage(client.create(Integer.parseInt(result)));\n gameWindow();\n }\n }",
"public Game() {\n }",
"void createPlayer(Player player);",
"public void doNewGame() {\n setGameInProgress(false);\n console(\"New Game\");\n if (gameInProgress() == true) {\n // This should not be possible, but it doens't hurt to check.\n console(\"Finish the current game first!\");\n return;\n }\n\n boardData.setUpGame(); // Set up the pieces.\n currentPlayer = CheckersData.RED; // RED moves first.\n legalMoves = boardData.getLegalMoves(CheckersData.RED); // Get RED's legal moves.\n selectedRow = -1; // RED has not yet selected a piece to move.\n console(\"Red: Make your move.\");\n setGameInProgress(true);\n refreshBoard();\n }",
"public Game() \n {\n createRooms();\n parser = new Parser();\n }",
"public Game() \n {\n createRooms();\n parser = new Parser();\n }",
"@RequestMapping(value = \"/game\", method = RequestMethod.POST)\n @ResponseStatus(value = HttpStatus.CREATED)\n public Game addGame(@RequestBody @Valid Game game) {\n return serviceLayer.addGame(game);\n }",
"void newGame(boolean isAccepted);",
"@Override\n public void onMessageCreate(MessageCreateEvent event) {\n event.getServer().ifPresent(server ->\n {\n var existingGame = gameInstance.get(server);\n if (existingGame != null) {\n existingGame.processMessage(event);\n } else {\n for (var gameFactory : gameFactories) {\n gameFactory\n .createGame(event.getMessageContent())\n .ifPresent(game -> {\n gameInstance.put(server, game);\n game.start();\n });\n }\n }\n }\n );\n\n }",
"public Game() {\n\n\t}",
"static Game newGame(Player player1, Player player2) {\n return new GameImpl(player1, player2);\n }",
"GameModel createGameModel(GameModel gameModel);",
"public void newGame() {\n \tturn = PieceColor.White;\n \t\n \t//the middle are empty squares\n \tfor(int i = 2; i < 6; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tsetPiece(j, i, new NoPiece(j, i));\n \t\t}\n \t}\n \t\n \t//pawns\n \tfor(int i = 0; i < 8; i++) {\n \t\t//make these pawns\n \t\tsetPiece(i, 1, new Pawn(i, 1, PieceColor.White, this));\n \t\tsetPiece(i, 6, new Pawn(i, 6, PieceColor.Black, this));\n \t}\n \t\n \t//white back row\n \tsetPiece(0, 0, new Rook(0, 0, PieceColor.White, this));\n \tsetPiece(1, 0, new Knight(1, 0, PieceColor.White, this));\n \tsetPiece(2, 0, new Bishop(2, 0, PieceColor.White, this));\n \tsetPiece(3, 0, new Queen(3, 0, PieceColor.White, this));\n \tsetPiece(4, 0, new King(4, 0, PieceColor.White, this));\n \tsetPiece(5, 0, new Bishop(5, 0, PieceColor.White, this));\n \tsetPiece(6, 0, new Knight(6, 0, PieceColor.White, this));\n \tsetPiece(7, 0, new Rook(7, 0, PieceColor.White, this));\n \t\n \t//black back row\n \tsetPiece(0, 7, new Rook(0, 7, PieceColor.Black, this));\n \tsetPiece(1, 7, new Knight(1, 7, PieceColor.Black, this));\n \tsetPiece(2, 7, new Bishop(2, 7, PieceColor.Black, this));\n \tsetPiece(3, 7, new Queen(3, 7, PieceColor.Black, this));\n \tsetPiece(4, 7, new King(4, 7, PieceColor.Black, this));\n \tsetPiece(5, 7, new Bishop(5, 7, PieceColor.Black, this));\n \tsetPiece(6, 7, new Knight(6, 7, PieceColor.Black, this));\n \tsetPiece(7, 7, new Rook(7, 7, PieceColor.Black, this));\n \t\n \t//store locations of king so they can be checked\n \twKing = new Square(4, 0);\n \tbKing = new Square(4, 7);\n }",
"private void newGame ()\n {\n this.game.abort ();\n try\n {\n Thread.sleep(50);\n }catch (InterruptedException e)\n { \n Logger.getLogger(AsteroidsFrame.class.getName()).log(Level.SEVERE, \"Could not sleep before initialing a new game.\");\n }\n this.game.initGameData ();\n }",
"private void newGame(long seed) {\n ter.initialize(WIDTH, HEIGHT, 0, -3);\n GameWorld world = new GameWorld(seed);\n String toSave = \"N\" + seed + \"S\";\n world.setSaveScript(toSave);\n for (int x = 0; x < WIDTH; x += 1) {\n for (int y = 0; y < HEIGHT; y += 1) {\n world.world[x][y] = Tileset.NOTHING;\n }\n }\n world.buildManyRandomSq();\n GameWorld.Position avatarPosition = randomAvatarPosition(world);\n ter.renderFrame(world.world);\n loadAvatar(world, avatarPosition);\n }",
"Games game();",
"public Game startGame(Game game);",
"public PlayerFighter create(GamePlayer player);",
"public static void createMultiplayerGame(\n\t\t\tNewMultiGameRequest multiGameRequest) {\n\t\tarcade.createMultiplayerGame(multiGameRequest);\n\t}",
"public Game() \n {\n parser = new Parser();\n name = new String();\n player = new Player();\n ai = new AI();\n createRooms();\n rand = -1;\n enemyPresent = false;\n wantToQuit = false;\n alive = true;\n createItems();\n createWeapons();\n createEnemy();\n setEnemy();\n setItems();\n setWeapons();\n setExits();\n }",
"public void createPlayer() {\n ColorPicker colorPicker = new ColorPicker();\n\n for (Player player : players) {\n if (player.getColor() == color(0, 0, 0) || (player.hasName() == false)) {\n pickColor(player, colorPicker);\n return;\n }\n }\n\n // if (ENABLE_SOUND) {\n // sfx.moveToGame();\n // }\n\n state = GameState.PLAY_GAME;\n\n // Spawn players\n int index = 0;\n for (int i=players.size()-1; i>=0; i--) {\n String dir = directions.get(index); // Need to add players in reverse so that when they respawn, they move in the right direction\n players.get(i).setSpawn(spawns.get(dir)).setDirection(dir);\n index++;\n }\n\n // Update game state only if all players have name and color\n}",
"public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }",
"@Test\r\n\tpublic void saveGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGame \r\n\t\tGame game = new tsw.domain.Game();\r\n\t\tTswacct tswAcct = null;\r\n\t\tservice.saveGame(tswAcct, game, null);\r\n\t}",
"private void newGame() {\n try {\n toServer.writeInt(READY);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void createUnassignedGame() throws Exception {\n final GameResource resource = TestUtils.newGameResource();\n resource.setStartsAt(\"2014-03-21T16:00:00.000\");\n\n mockMvc.perform(post(BASE_REQUEST_URL).with(superadmin)\n .header(AUTH_HEADER_NAME, createTokenForUser())\n .contentType(contentType)\n .content(TestUtils.convertObjectToJson(resource)))\n .andExpect(status().isCreated())\n .andExpect(content().contentType(contentType))\n .andExpect(jsonPath(\"$.site\", is(resource.getSite())))\n .andExpect(jsonPath(\"$.startsAt\", is(resource.getStartsAt())));\n }",
"public Game(){\n\n }",
"private static boolean transactionAddGame(Transaction tx, GameBean newGame) {\n HashMap<String, Object> parameters = new HashMap<>();\n parameters.put(\"name\", newGame.getName());\n if(!newGame.getCategory1().equals(\"\")) {\n parameters.put(\"category1\", newGame.getCategory1() );\n\n String checkGame = \"MATCH (g:Game{name:$name})\" +\n \" RETURN g\";\n\n Result result = tx.run(checkGame, parameters);\n\n if (result.hasNext()) {\n return false;\n }\n\n result = tx.run(\"CREATE (g:Game{name:$name, category1:$category1})\"\n , parameters);\n\n return true;\n }\n\n return false;\n }",
"public GameLuncher(GameGUI gameGUI) {\n this.gameGUI = gameGUI;\n createGame();\n }",
"public void createTurn() {\n Turn turn = new Turn(this.getOnlinePlayers());\n this.setCurrentTurn(turn);\n }",
"private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }",
"public void newGame() {\n gameString = playerPlays = computerPlays = \"\";\n pScore = cScore = 0;\n setLabels();\n }",
"private Button createNewGameButton() {\n Button newGameButton = new Button(Config.NEW_GAME_BUTTON);\n newGameButton.setTranslateY(10);\n newGameButton.setTranslateX(10);\n\n // TODO: move stuff like this to the CSS resources.\n DropShadow effect = new DropShadow();\n effect.setColor(Color.BLUE);\n newGameButton.setEffect(effect);\n\n return newGameButton;\n }",
"public PlayableGame() {\r\n\r\n }",
"public static String newGame(final String token,\n final String teamA,\n final String teamB,\n final int gameType,\n final int ageCategory,\n final int court,\n final boolean mirrored) throws IOException {\n\n String NEW_GAME_URL = String.format(RestURI.CREATE_GAME.getValue(), Server.getIp(),\n URLEncoder.encode(teamA, \"UTF8\"),\n URLEncoder.encode(teamB, \"UTF8\"),\n gameType, ageCategory, court, mirrored, token);\n\n Request request = new Request.Builder()\n .url(NEW_GAME_URL)\n .post(emptyBody)\n .build();\n\n try (Response response = getHttpClient(30).newCall(request).execute()) {\n return getResponseMessage(response);\n }\n }",
"public String createGame(CreateGameRequestParams params) throws Exception { \n\t\t\n\t\tString url = server_url + \"/games/create\";\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n\t\t//add request header\n\t\tcon.setRequestMethod(\"POST\");\n\t\tcon.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\t\tcon.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\n\t\t//String urlParameters = \"name=\" + params.name + \"&randomTiles=\" + params.randomTiles + \"&randomNumbers=\" + params.randomNumbers + \"&randomPorts=\" + params.randomPorts;\n\t\tJsonObject urlParameters = new JsonObject();\n\t\turlParameters.addProperty(\"name\", params.name);\n\t\turlParameters.addProperty(\"randomTiles\", params.randomTiles);\n\t\turlParameters.addProperty(\"randomNumbers\", params.randomNumbers);\n\t\turlParameters.addProperty(\"randomPorts\", params.randomPorts);\n\t\t\n\t\t// Send post request\n\t\tcon.setDoOutput(true);\n\t\tDataOutputStream wr = new DataOutputStream(con.getOutputStream());\n\t\twr.writeBytes(urlParameters.toString());\n\t\twr.flush();\n\t\twr.close();\n\n\t\tint responseCode = con.getResponseCode();\n//\t\t//System.out.println(\"\\nSending 'POST' request to URL : \" + url);\n//\t\t//System.out.println(\"Post parameters : \" + urlParameters);\n//\t\t//System.out.println(\"Response Code : \" + responseCode);\n\t\t\n\t\tif (responseCode == 400) {\n\t\t\tthrow new Exception();\n\t\t}\n\n\t\tBufferedReader in = new BufferedReader(\n\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\t\n\t\t//print result\n\t\t////System.out.println(response.toString());\n\t\treturn response.toString();\n\t}",
"private void startNewGame()\n {\n \n \t//this.mIsSinglePlayer = isSingle;\n \n \tmGame.clearBoard();\n \n \tfor (int i = 0; i < mBoardButtons.length; i++)\n \t{\n \t\tmBoardButtons[i].setText(\"\");\n \t\tmBoardButtons[i].setEnabled(true);\n \t\tmBoardButtons[i].setOnClickListener(new ButtonClickListener(i));\n \t\t//mBoardButtons[i].setBackgroundDrawable(getResources().getDrawable(R.drawable.blank));\n \t}\n \n \t\tmPlayerOneText.setText(\"Player One:\"); \n \t\tmPlayerTwoText.setText(\"Player Two:\"); \n \n \t\tif (mPlayerOneFirst) \n \t{\n \t\t\tmInfoTextView.setText(R.string.turn_player_one); \n \t\tmPlayerOneFirst = false;\n \t}\n \telse\n \t{\n \t\tmInfoTextView.setText(R.string.turn_player_two); \n \t\tmPlayerOneFirst = true;\n \t}\n \t\n \n \tmGameOver = false;\n }",
"private void startNewGame( ){\n\n mGame.clearBoard();\n mGameOver = false;\n\n // Reset all buttons\n for (int i = 0; i < mBoardButtons.length; i++) {\n mBoardButtons[i].setText(\"\");\n mBoardButtons[i].setEnabled(true);\n mBoardButtons[i].setOnClickListener(new ButtonClickListener(i));\n }\n // Human goes first\n mDiffTextView.setText(mGame.dificult);\n mInfoTextView.setText(\"You go first.\");\n\n }"
] |
[
"0.79286337",
"0.78404224",
"0.76136935",
"0.7579567",
"0.7505941",
"0.74647856",
"0.73769903",
"0.73734635",
"0.73438567",
"0.73380613",
"0.71153915",
"0.7105616",
"0.7034729",
"0.7026153",
"0.7023848",
"0.7023848",
"0.7023848",
"0.7021599",
"0.6973264",
"0.6924295",
"0.69203943",
"0.69155145",
"0.6873579",
"0.6864953",
"0.6863315",
"0.68339056",
"0.6784196",
"0.67733437",
"0.6754291",
"0.67490757",
"0.67272526",
"0.671251",
"0.6693523",
"0.66916347",
"0.66908973",
"0.6683737",
"0.66539055",
"0.66434073",
"0.66369903",
"0.6618483",
"0.6546605",
"0.65353394",
"0.6530499",
"0.6527095",
"0.6519487",
"0.65006757",
"0.6492982",
"0.6488975",
"0.64860666",
"0.64790535",
"0.64640695",
"0.6426557",
"0.6422526",
"0.6410776",
"0.6407732",
"0.6397412",
"0.6395106",
"0.63763094",
"0.63746834",
"0.63450557",
"0.63185287",
"0.63121563",
"0.6301191",
"0.629891",
"0.6290543",
"0.6286911",
"0.62655395",
"0.6251517",
"0.6250674",
"0.6250674",
"0.62464",
"0.6242699",
"0.62338513",
"0.6223932",
"0.622272",
"0.620877",
"0.62075603",
"0.6196326",
"0.6192948",
"0.61891085",
"0.618772",
"0.6185944",
"0.6185684",
"0.6171019",
"0.61618865",
"0.6146597",
"0.6143539",
"0.6140692",
"0.6136402",
"0.6130339",
"0.6120466",
"0.6091625",
"0.60833156",
"0.60766387",
"0.60746986",
"0.6074614",
"0.60677713",
"0.60494727",
"0.60426503",
"0.6041968",
"0.6032174"
] |
0.0
|
-1
|
Creates a new user
|
public void addNewUser(String userName) {
User newUser = new User(userName, this);
users.add(newUser);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void createUser(User user) {\n\n\t}",
"public void createUser(User user);",
"UserCreateResponse createUser(UserCreateRequest request);",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;",
"boolean create(User user) throws Exception;",
"User createUser(User user);",
"@POST\n\t@Path(\"/newUser\")\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Transactional\n\tpublic Response createUser(User user) {\n\t\tuserDao.createUser(user);\n\n\t\treturn Response.status(201)\n\t\t\t\t.entity(\"A new user has been created\").build();\n\t}",
"User createUser();",
"public void creatUser(String name, String phone, String email, String password);",
"User createUser(UserCreationModel user);",
"private void createUser(final String email, final String password) {\n\n }",
"Boolean registerNewUser(User user);",
"boolean createUser(String username, String password);",
"@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}",
"@Override\n\tpublic void create(User user) {\n\t\t\n\t}",
"@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}",
"User create(User user);",
"public void newUser(User user);",
"@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}",
"@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}",
"int createUser(User data) throws Exception;",
"User create(final User user) throws DatabaseException;",
"public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }",
"public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);",
"int newUser(String username, String password, Time creationTime);",
"public UserAuthToken createUser(CreateUserRequest request);",
"private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }",
"public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }",
"public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Test\n\tpublic void test_create_new_user_success(){\n\t\tUser user = new User(null, \"create_user\", \"[email protected]\", \"12345678\");\n\t\tResponseEntity<User> response = template.postForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, user, User.class);\n\t\tUser newUser = response.getBody();\n\t\tassertThat(newUser.getName(), is(\"create_user\"));\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.CREATED));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}",
"Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);",
"private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }",
"@PostMapping(\"/users\")\n public UsersResponse createNewUser(@RequestBody NewUserRequest request) {\n User user = new User();\n user.setName(request.getName());\n user.setAge(request.getAge());\n user = userRepository.save(user);\n return new UsersResponse(user.getId(), user.getName() + user.getAge());\n }",
"@POST\n public User create(User user) {\n SecurityUtils.getSubject().checkPermission(\"User:Edit\");\n\n userFacade.create(user);\n return user;\n }",
"public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;",
"public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}",
"@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}",
"@POST\n\t@Path(\"/signUp\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic String createUser(User user) {\n\t\tUserService.createUser(user);\n\t\treturn \"User \" + user.getUsername() + \" is created successfully\";\n\t}",
"@Override\npublic String createUser(String userAccount, String userPassword,\n\t\tString userSex, String userEmail, String userName) {\n\t\n\tUser user = new User(userAccount, userPassword, userSex , userEmail, userName);\n\tem.persist(user) ;\n\t return \n\t\t\t \"Account: \" + user.getUserAccount() + \"\\n\" +\n\t\t\t\"Password: \" + user.getUserPassword() + \"\\n\" + \n\t\t\t\"Sex: \" + user.getUserSex() + \"\\n\" +\n\t\t\t\"Email: \" + user.getUserEmail() + \"\\n\" +\n\t\t\t\"Name: \" + user.getUserName();\n\n\t\n}",
"@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}",
"@PostMapping(\"/users\")\n\tpublic ResponseEntity<UserDTO> creareUser(@RequestBody(required = true) @Valid UserDTO user) {\n\t\tuser = userService.createUser(user);\n\t\treturn new ResponseEntity<>(user, HttpStatus.CREATED);\n\t}",
"private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }",
"public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}",
"public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }",
"public void createUserAccount(UserAccount account);",
"public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@PostMapping\n public User create(@RequestBody final User user) {\n return userService.create(user);\n }",
"@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"@PostMapping\n @ResponseStatus(HttpStatus.CREATED)\n public UserResponse createUser(@Valid @RequestBody CreateUserRequest createUser) {\n return userMapper.toUserResponse(\n userService.createUser(\n userMapper.toDto(createUser)\n )\n );\n }",
"private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}",
"public void createUser(VUser vUser) {\n\t\tUser user = new User();\n\n\t\tboolean match = Pattern.matches(Constants.REGEX_EMAIL, vUser.getEmail());\n\t\tif (!match) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"El email tiene formato incorrecto.\");\n\t\t}\n\n\t\tif (repo.getUserByEmail(vUser.getEmail()) != null) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Ya hay un usuario con ese email.\");\n\t\t}\n\n\t\tuser.setEmail(vUser.getEmail());\n\t\tuser.setFullName(vUser.getFullName());\n\t\t\n\t\tif(vUser.getFullName() == null || vUser.getFullName().isEmpty()) {\n\t\t\tuser.setFullName(vUser.getEmail());\n\t\t}\n\n\t\t// TODO: hashear password\n\t\tuser.setPasswordHash(vUser.getPassword());\n\n\t\tuser.setRoles(vUser.getRoles());\n\t\tuser.setUserType(vUser.getUserType());\n\n\t\trepo.createUser(user);\n\t}",
"public void createUser(User u) {\n\n em.persist(u);\n\n String content = \"new user: \" + u.getName() + \" => \" + u.getPassword();\n\n MailMessage mailMessage = new MailMessage();\n\n mailMessage.addRecipient(\"[email protected]\");\n mailMessage.setContent(content);\n mailMessage.setSubject(\"new user: \" + u.getName());\n mailer.sendAsyncMail(mailMessage);\n\n mailer.sendSyncMail(mailMessage);\n\n }",
"@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}",
"@PostMapping(\"/user\")\n\tpublic ResponseEntity<User> createUser(@RequestBody User user) throws Exception {\n\t\tlog.debug(\"REST request to save User : {}\", user);\n\t\tif (user.getId() != null) {\n\t\t\tthrow new Exception(\"A new user cannot already have an ID\");\n\t\t}\n\t\tUser result = userService.save(user);\n\t\tlog.debug(\"Added new user:: \" + user);\n\t\treturn new ResponseEntity<User>(result, HttpStatus.CREATED);\n\t}",
"public void createUser(String username, String password, String role) {\r\n Optional<User> user = userRepo.findByName(username);\r\n if (!user.isPresent()) {\r\n User newUser = new User();\r\n newUser.setName(username);\r\n newUser.setPassword(password);\r\n newUser.setRole(role);\r\n userRepo.save(newUser);\r\n }\r\n }",
"@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"administrators\")\n Call<Void> createUser(\n @retrofit2.http.Body UserBody userBody\n );",
"void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }",
"@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }",
"void registerUser(User newUser);",
"public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}",
"@PostMapping(path = \"/online-sales-service/registerUser\")\n\tpublic ResponseEntity<?> createUser(@RequestBody final ActiveDirectory user, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tActiveDirectory thisUser = null;\n\t\ttry {\n\t\t\tthisUser = activeDirectoryService.createNewUser(user);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<ActiveDirectory>(thisUser, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"public User createUser(User newUser) {\n if(userRepository.findByUsername(newUser.getUsername()) != null){\n throw new UsernameException(\"The username is already taken please choose another one\");\n }\n newUser.setToken(\"dummy_token\"); //not really needed after registration;\n\n newUser.setStatus(UserStatus.ONLINE);\n userRepository.save(newUser); //userRepository creates User entity for the first time\n\n newUser.setToken(generateToken(newUser));\n userRepository.save(newUser); //userRepository saves the new entity items to existing user\n\n log.debug(\"Created Information for User: {}\", newUser);\n return newUser;\n }",
"public UserEntity create(String userId) throws CreateException;",
"@Override\n\tpublic User createUser(User user) {\n\t\tem.persist(user);\n\t\tem.flush();\n\t\treturn user;\n\t}",
"@PostMapping(\"/users\")\n\tpublic ResponseEntity<Object> createUser(@Valid @RequestBody User user) {\n\t\tUser createUser = userService.save(user);\n\n\t\t// Return Created User URI e.g. users/6\n\t\t// It Will return the status code of 201 created\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(createUser.getId())\n\t\t\t\t.toUri();\n\t\treturn ResponseEntity.created(uri).build();\n\n\t}",
"@PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseBody\n public UserResult createUser(@RequestBody UserInput userInput) {\n return userService.create(userInput);\n }",
"@Override\n public User create(User user) {\n user.setPassword(bCryptPasswordEncoder.encode(user.getPassword()));\n if (user.getCreateDate() == null) {\n DateTime dt = new DateTime();\n user.setCreateDate(dt.toDate());\n }\n user.setEnabled(true);\n user.setRoleList(Collections.singletonList(roleDao.findByName(\"ROLE_USER\")));\n\n return dao.create(user);\n }",
"public void createUser(String email, String password) {\n\n if (!validateForm()) {\n return;\n }\n\n signupBtn.setEnabled(false);\n startLoadAnim(getString(R.string.registering_user));\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, R.string.registration_failed, Toast.LENGTH_SHORT).show();\n signupBtn.setEnabled(true);\n stopLoadAnim();\n }\n }\n });\n }",
"public UserProfile createUserProfile(String username, UserProfile newProfile);",
"HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);",
"public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }",
"public void createUser(String firstName, String emailAddress) {\n\n this.firstName = firstName;\n this.emailAddress = emailAddress;\n\n }",
"public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }",
"void createUser(CreateUserDto createUserDto);",
"@Override\n public User signUpUser(String name, String username, String password, String email) throws UsernameExistsException {\n User u = new User(name, username, password, email);\n if (userDataMapper.getUserByUserName(username) != null)\n throw new UsernameExistsException();\n userDataMapper.add(u);\n return u;\n }",
"public User createUser(User user) {\r\n user.setPassword(hashPassword(user.getPassword()));\r\n\r\n if(!isLetters(user.getFirstname()) || !isLetters(user.getLastname()) || !isLetters(user.getCity())) {\r\n throw new IllegalArgumentException(\"Firstname, lastname or city did not contain only letters\");\r\n } else if (!user.getEmail().contains(\"@\") || !user.getEmail().contains(\".\")) {\r\n throw new IllegalArgumentException(\"Email must contain @ and .\");\r\n } else if (String.valueOf(user.getBirthyear()).length() != 4) {\r\n throw new IllegalArgumentException(\"Wrong format for birthday\");\r\n } else if (!isValidGender(user.getGender())) {\r\n throw new IllegalArgumentException(\"Wrong format for gender\");\r\n }\r\n if (user.getRating() == null){\r\n Rating rating = new Rating(user);\r\n user.setRating(rating);\r\n }\r\n return userRepo.save(user);\r\n }",
"public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }",
"private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }",
"@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }",
"public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users\", method = RequestMethod.POST)\n\tpublic ResponseEntity<AppUser> createUser(@RequestBody AppUser appUser) {\n\t\tif (appUserRepository.findOneByUsername(appUser.getUsername()) != null) {\n\t\t\tthrow new RuntimeException(\"Username already exist\");\n\t\t}\n\t\treturn new ResponseEntity<AppUser>(appUserRepository.save(appUser), HttpStatus.CREATED);\n\t}",
"@PostMapping(value=\"/addUser\")\n\t\t@Consumes({\"application/json\"})\n\t\t@ResponseBody\n\t\tpublic ResponseEntity<User> createUser(@RequestBody User user) throws TaskTrackerException{\n\t\t\tboolean isCreated = false;\n\t\t\ttry {\n\t\t\t\tisCreated = userService.createUser(user);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TaskTrackerException(\"usernot created, Check if Parent task exists!\",e);\n\t\t\t}\n\t\t\t\n\t\t\tif(isCreated){\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.CREATED);\n\t\t\t} else {\n//\t\t\t\treturn new ResponseEntity<Product>(HttpStatus.OK);\n\t\t\t\t\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).header(\"message\", \"User not created, Check if User exists!\").build();\n\t\t\t}\n\t\t}",
"@Transactional\n public Long createUser(User user) {\n user.setId(null);\n final User createdUser = userRepository.save(user);\n return createdUser.getId();\n }",
"private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}",
"public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}",
"public boolean createUser(String username, String password) {\r\n \t\tboolean result = this.dataLayer.addUser(username, password);\r\n \r\n \t\treturn result;\r\n \t}",
"public void createUserAccount(SignupRequest signUpRequest) {\n\t\tApplicationUser user = new ApplicationUser(signUpRequest.getUsername(), \r\n\t\t\t\t\t\t\t signUpRequest.getEmail(),\r\n\t\t\t\t\t\t\t encoder.encode(signUpRequest.getPassword()));\r\n\r\n\t\tSet<String> strRoles = signUpRequest.getRole();\r\n\t\tSet<Role> roles = new HashSet<>();\r\n\r\n\t\tif (strRoles == null || strRoles.isEmpty()) {\r\n\t\t\tRole userRole = roleRepository.findByName(ERole.ROLE_USER)\r\n\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\troles.add(userRole);\r\n\t\t} else {\r\n\t\t\tstrRoles.forEach(role -> {\r\n\t\t\t\tswitch (role) {\r\n\t\t\t\tcase \"ROLE_ADMIN\":\r\n\t\t\t\t\tRole adminRole = roleRepository.findByName(ERole.ROLE_ADMIN)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(adminRole);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"ROLE_POC\":\r\n\t\t\t\t\tRole modRole = roleRepository.findByName(ERole.ROLE_POC)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(modRole);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tRole userRole = roleRepository.findByName(ERole.ROLE_USER)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(userRole);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tuser.setRoles(roles);\r\n\t\tuserRepository.save(user);\r\n\t}",
"@PostMapping(value = \"/user\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<User> createUser(@Valid @RequestBody User user) {\n\n userRepository.save(user);\n\n return ResponseEntity.ok().body(user);\n }",
"@POST(\"/users\")\n Call<User> createUser(\n @Body User user\n );",
"public static void createUser(User user) throws LegoHouseException {\n try {\n Connection con = Connector.connection();\n String SQL = \"INSERT INTO users (email, password, role) VALUES (?, ?, ?)\";\n PreparedStatement ps = con.prepareStatement(SQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, user.getEmail());\n ps.setString(2, user.getPassword());\n ps.setString(3, user.getRole());\n ps.executeUpdate();\n ResultSet ids = ps.getGeneratedKeys();\n ids.next();\n int id = ids.getInt(1);\n user.setId(id);\n }\n catch (SQLException | IllegalAccessException | InstantiationException | ClassNotFoundException ex) {\n throw new LegoHouseException(ex.getMessage(), \"index\");\n }\n }",
"User registration(User user);",
"@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"[email protected]\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }"
] |
[
"0.8285556",
"0.8226307",
"0.81556773",
"0.8057081",
"0.785873",
"0.78227836",
"0.7706839",
"0.76914215",
"0.7667593",
"0.7642965",
"0.7590664",
"0.7561163",
"0.7551333",
"0.7538725",
"0.75092685",
"0.746668",
"0.74647075",
"0.7434978",
"0.74146515",
"0.74129474",
"0.74102664",
"0.7374394",
"0.7364678",
"0.7336711",
"0.73152924",
"0.7306381",
"0.72871184",
"0.7280308",
"0.72616225",
"0.7248998",
"0.7246491",
"0.72372186",
"0.72367287",
"0.7233097",
"0.721193",
"0.7197941",
"0.7196616",
"0.7194928",
"0.7188108",
"0.71874475",
"0.71752834",
"0.71730566",
"0.7172724",
"0.71533203",
"0.7145828",
"0.7145714",
"0.7143217",
"0.7139476",
"0.71383184",
"0.71266544",
"0.7105422",
"0.7105422",
"0.7101946",
"0.70953786",
"0.709413",
"0.7084212",
"0.70740074",
"0.7066312",
"0.70635945",
"0.70247",
"0.7014653",
"0.700914",
"0.70088315",
"0.70021003",
"0.70018214",
"0.6998959",
"0.6998829",
"0.6998638",
"0.6985885",
"0.69800735",
"0.69787407",
"0.69760364",
"0.69745415",
"0.69728804",
"0.6965933",
"0.6906529",
"0.6904667",
"0.6902262",
"0.6900967",
"0.68953246",
"0.68864983",
"0.6885412",
"0.68821955",
"0.68775505",
"0.6876958",
"0.68650496",
"0.686043",
"0.6849",
"0.6847456",
"0.68442744",
"0.6842829",
"0.6842648",
"0.6832046",
"0.68320334",
"0.68267965",
"0.6826349",
"0.6819656",
"0.68167055",
"0.68147796",
"0.6809428",
"0.6805676"
] |
0.0
|
-1
|
Sets the team the user has selected for the next round
|
public void updateUserTeam() {
User user = users.get(userTurn);
System.out.println(user.getName());
System.out.println(tmpTeam.size());
UserTeam roundTeam = new UserTeam();
roundTeam.putAll(tmpTeam.getPlayers());
System.out.println(roundNumber);
System.out.println(roundTeam.size());
System.out.println("dfdfdfd");
user.setUserTeam(roundTeam, roundNumber);
System.out.println("dfdfdfd");
tmpTeam = new UserTeam();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public synchronized void pickTeam() {\n voteTeamState = pickTeamState.pickTeam(teamSelection);\n state = State.VOTE_TEAM;\n playerVotes = new HashMap<>();\n }",
"public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}",
"public Builder setTeam(int value) {\n bitField0_ |= 0x00000004;\n team_ = value;\n onChanged();\n return this;\n }",
"void setWinningTeam(TeamId winner) {\n winningTeam.set(winner);\n }",
"public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}",
"public static void setTeam(UserTeam team) {\n\t\tgame.setTmpTeam(team);\n\t\tint i=0;\n\t\tfor (Iterator<FootballPlayer> iterator = team.getPlayers().values().iterator(); iterator\n\t\t\t\t.hasNext();) {\n\t\t\tFootballPlayer player = iterator.next();\n\t\t\tnamesLabels.get(i).setText(game.getLastName(player.getName()));\n\t\t\tshirtLabels.get(i).setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[i].setText(\"X\");\n\t\t\ti++;\n\t\t}\n\t}",
"private static void switchTeam(BrowserWindow bw, String team) {\n\t\tRepeat rpt = Repeat.findRepeatByIdEndsWith(bw, \"repeat\");\n\t\trpt.clickRow(team);\n\t}",
"@Override\n\tpublic void setTeam(int i) {\n\t\t\n\t}",
"public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}",
"public void setTeam(String team) {\n\t\tthis.team = team;\n\t}",
"public void setTeamId(int value) {\n this.teamId = value;\n }",
"public void teamChange() {\n if (teamCombobox.getValue().getTeamLogo() != null) {\n teamPhoto.setImage(teamCombobox.getValue().getTeamLogo().getImage());\n }\n teamCode.setText(\"Team code : \" + teamCombobox.getValue().getTeamCode());\n }",
"@Override\n\tpublic void setHomeTeam() {\n\t\t\n\t}",
"protected abstract void assignTeam(boolean playerR, boolean playerB);",
"void resetMyTeam(Team team);",
"public void newTeam(Team team);",
"public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }",
"@Override\n\tpublic void setIsTeamMatch(boolean isTeamMatch) {\n\t\t_esfTournament.setIsTeamMatch(isTeamMatch);\n\t}",
"public void updateTeam(int team, GameData gameData) {\n currentTeam = gameData.getTeamDataList().get(team);\n passButton.setVisible(false);\n answerField.setText(\"\");\n //if the current team is this client\n if (team == teamIndex) {\n AppearanceSettings.setEnabled(true, submitAnswerButton, answerField);\n announcementsLabel.setText(\"It's your turn to try to answer the question!\");\n }\n //if the current team is an opponent\n else {\n AppearanceSettings.setEnabled(false, submitAnswerButton, answerField);\n announcementsLabel.setText(\"It's \" + currentTeam.getTeamName() + \"'s turn to try to answer the question.\");\n }\n //mark down that this team has had a chance to answer\n teamHasAnswered.replace(team, true);\n hadSecondChance = false;\n teamLabel.setText(currentTeam.getTeamName());\n }",
"void resetMyTeam();",
"public synchronized void startGame() {\n PreGameState preGameState = new PreGameState();\n pickTeamState = preGameState.startGame(players);\n state = State.PICK_TEAM;\n teamSelection = new HashSet<>();\n }",
"public static void set2v2Teams(int gameModeSelected, int numPlayers){\n\t\tint randomPlayer1;\n\t\tint randomPlayer2;\n\t\t\n\t\tif(gameModeSelected==2) {\n\t\t\tRandom playerGen =new Random();\n\t\t\trandomPlayer1=playerGen.nextInt(numPlayers)+1;\n\t\t\tRandom playerGen2 =new Random();\n\t\t\trandomPlayer2=playerGen2.nextInt(numPlayers)+1;\n\t\t\tif(randomPlayer1!=randomPlayer2) {\n\t\t\t\tif(randomPlayer1==1) {\n\t\t\t\t\tteam1[0]=\"Player 1\";\n\t\t\t\t\tif(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==3) {\n\t\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\tteam2[1]=\"Player 3\";\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==2){\n\t\t\t\t\tteam1[0]=\"Player 2\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==3) {\n\t\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 3\";\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==3){\n\t\t\t\t\tteam1[0]=\"Player 3\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 2\";\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tteam1[0]=\"Player 4\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 3\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 3\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 2\";\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}//end of if generated nums aren't equal\n\t\t\t\n\t\t\telse{ \n\t\t\t\tif(randomPlayer1==1) {\n\t\t\t\tteam1[0]=\"Player 1\";\n\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==2) {\n\t\t\t\t\tteam1[0]=\"Player 2\";\n\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==3) {\n\t\t\t\t\tteam1[0]=\"Player 3\";\n\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tteam1[0]=\"Player 4\";\n\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Team 1 is \" + team1[0] + \" and \" + team1[1]);\n\t\t\tSystem.out.println(\"Team 2 is \" + team2[0] + \" and \" + team2[1]);\n\t\t}//end of if right gameMode\n\t}",
"public void setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}",
"private static void displayUserTeam() {\n\t\tif (game.getCurrentRound()==1) {\n\t\t\tfor (int i = 0; i<11; i++) {\n\t\t\t\tplayerNameArray[i].setText(\"Name\");\n\t\t\t\timageArray[i].setIcon(MainGui.getShirt(\"noTeam\"));\n\t\t\t\tbuttonArray[i].setText(\"+\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(TeamActivity.this, TeamActivity.class); //If the team number is pressed start a new TeamActivity with information about the selected team\n intent.putExtra(\"Team#\", TeamNumber); //Send the team number into the new activity in order to know which team the new activity should be about\n TeamActivity.this.startActivity(intent); //Start the new activity\n }",
"private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }",
"public void setTeamName(String name) {\n\t\tteamName = name;\n\t}",
"@When(\"^I select \\\"Home team to win\\\"$\")\n public void iSelectHomeTeamToWin() {\n\n eventsPage.selectBetButtonByOrder(0);\n }",
"@Override\n\tpublic void setVisitTeam() {\n\t\t\n\t}",
"public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }",
"private void setNextGame() {\n Persistence db = Persistence.getInstance();\n game = db.getNextGame();\n\n // set the initial grid in the model\n grid = game.getInitial();\n\n // get rid of everything on the view grid\n view.clearGrid(true);\n\n // put givens for new game into view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n } // if given\n } // for j\n } // for i\n\n }",
"@Given(\"^I navigate to team page \\\"([^\\\"]*)\\\"$\")\n public void navigate_to_teamPage(String nameTeam){\n addNewTeam = mainPage.clickNewTeam();\n teamPage = addNewTeam.createTeam(nameTeam);\n }",
"static public void set_team_data(String league){\n\n\t\tEdit_row_window.attrs = new String[]{\"team name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_\"+league+\"_players p, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_\"+league+\"_player_team pt \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where pt.player_id=p.id and pt.team_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by links_to_player desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\" from curr_\"+league+\"_players p \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"player name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"PLAYERS\";\n\t}",
"public void setWinner(int num){\r\n \twinner = num;\r\n }",
"@Override\n public void setWinner(Player winner)\n {\n for(int i = 0; i < gc.getF().size(); i++)\n {\n if(gc.getF().get(i).readyStart() == 0 || gc.getF().get(i).readyStart() == 1)\n {\n gc.getF().get(gc.getF().size() -1).addPlayer(this.winner);\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n return;\n }\n }\n //If there are no available spots, make a new game\n Final f = new Final();\n System.out.println(\"created a new Final!\");\n f.addPlayer(winner);\n //Save winner details\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n \n gc.getF().add(f);\n //Move game to history \n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n \n }",
"public String getTeam() {\n return team;\n }",
"@Override\r\n\tpublic ResultMessage updateTeam(TeamPO oneTeam) {\n\t\treturn teams.updateTeam(oneTeam);\r\n\t}",
"public void setSelectedTerritoryForTurn(Territory selectedTerritory) {\n selectedTerritoryByPlayer = selectedTerritory;\n }",
"public int getTeam() {\n return team;\n }",
"public int getTeam() {\n return team_;\n }",
"public void cmdSetTeam(User teller, Team team, String var, StringBuffer setting) throws MalformedURLException, InvalidNameException {\n String value = setting.toString();\n var = var.toLowerCase();\n if (\"name\".equals(var)) {\n team.setRealName(value);\n } else if (ComparisionHelper.anyEquals(var, \"loc\", \"loc.\", \"location\")) {\n team.setLocation(value);\n } else if (ComparisionHelper.anyEquals(var, \"web\", \"webpage\", \"website\")) {\n team.setWebsite(value);\n } else if (ComparisionHelper.anyEquals(var, \"div\", \"division\")) {\n team.setDivision(value);\n } else {\n command.tell(teller, \"Unknown variable: \" + var);\n return;\n }\n cmdShowTeam(teller, team);\n tournamentService.updateTeam(team);\n tournamentService.flush();\n }",
"public void selectBet(String pTeamName){\n driver.findElement(By.xpath(String.format(BettingFootballPageConstants.BET, pTeamName))).click();\n TestHelper.waitForAjax();\n }",
"public int getTeam() {\n return team_;\n }",
"void update(Team team);",
"public static void proposeTrade(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Propose Trade---\");\r\n\t\tfor (int x = 0; x < theLeague.getNumTeams(); x++) {\r\n\t\t\tif (!theLeague.getTeam(x).equals(theTeam)) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\"Team number: \" + (x + 1));\r\n\t\t\t\ttheLeague.getTeam(x).teamManNameToString();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Select a team to view:\");\r\n\t\t\r\n\t\tint otherTeamChoice;\r\n\t\tdo {\r\n\t\t\totherTeamChoice = Input.validInt(1, theLeague.getNumTeams(), keyboard) - 1;\r\n\t\t} while (otherTeamChoice == theLeague.getTeamList().indexOf(theTeam));\r\n\t\tTeam otherTeam = theLeague.getTeam(otherTeamChoice);\r\n\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Propose Trade---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\totherTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Would you like to propose a trade to this team?\");\r\n\t\tSystem.out.println(\"1 - Yes\");\r\n\t\tSystem.out.println(\"2 - No, Return to Team Menu\");\r\n\t\t\r\n\t\tif (Input.validInt(1, 2, keyboard) == 1) {\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"Enter your trade offer (max 64 characters):\");\r\n\t\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\t\tString proposal = Input.validString(32, keyboard);\r\n\t\t\tif (proposal.equals(\"0\")) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\totherTeam.setProposedTrade(theTeam.getManagerName() + \": \" + proposal);\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***You have proposed a trade:***\");\r\n\t\t\tSystem.out.println(\"To \" + otherTeam.getManagerName() + \": \" + proposal);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}",
"private void setPlayer(BoardSquaresState player){\n\t\tif(player == BoardSquaresState.CROSS){\n\t\t\tselectedPlayer = BoardSquaresState.CROSS;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Cross\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"You go first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.cross_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\t\telse{\n\t\t\tselectedPlayer = BoardSquaresState.NOUGHT;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Nought\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"Computer goes first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.nought_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\n\t}",
"public String getTeam() {\n\t\treturn team;\n\t}",
"public String getTeam() {\r\n\t\treturn Team;\r\n\t}",
"public void setGamePoints(TeamId team, int points) {\n if(team == TeamId.TEAM_1)\n gamePoints1.set(points);\n else\n gamePoints2.set(points);\n }",
"public void setCurrentUser(int userNum) {\n\t\tuserTurn = userNum;\n\t}",
"public void setUpNewRound(){\n int newRound = getRoundNum() + 1;\n getRound().getPlayer(0).clearPiles();\n getRound().getPlayer(1).clearPiles();\n mRound = new Round(players);\n setRoundNum(newRound);\n mRound.beginRound();\n }",
"public Team getTeam() {\n return team;\n }",
"private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }",
"public void setTurnPoints(TeamId team, int points) {\n if(team == TeamId.TEAM_1)\n turnPoints1.set(points);\n else\n turnPoints2.set(points);\n }",
"public void setCurrentGameRound(int round){\n\t\tcurrentGameRound = round;\n\t\trepaint();\n\t}",
"protected abstract void gatherTeam();",
"private void save() {\n Saver.saveTeam(team);\n }",
"public Team getTeam() {\r\n\t\treturn team;\r\n\t}",
"public void setName(String name){\n\t\tthis.tournamentName = name;\n\t}",
"public void setToolteam(String toolteam) {\r\n this.toolteam = toolteam;\r\n }",
"public static void changePlayerTeam(Player old, Player addNew, Team team, int place) {\r\n\t\t// TODO Auto-generated block\r\n\t}",
"public void setParty(Pokemon[] team)\n\t{\n\t\tm_pokemon = team;\n\t}",
"public TeamObject(String name) {\n\t\tthis();\t\t//call the first constructor to build the lock buttons\n\t\tteamName = name;\n\t}",
"public void setNextTurn() {\n\t\t// COMPLETE THIS METHOD\n\t\tif (turn == 1) {\n\t\t\t\n\t\t\tturn = 2;\n\t\t\tcurrentDisc = getPlayer2Disc();\n\t\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tturn = 1;\n\t\t\tcurrentDisc = getPlayer1Disc();\n\t\t\t\n\t\t}\n\t}",
"public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Add Player---\");\r\n\t\ttheTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"--Top 20 Free Agents--\");\r\n\t\ttheLeague.getFreeAgents(20);\r\n\r\n\t\tint playerChoice;\r\n\t\tdo {\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\" 0 - Filter Free Agents by Position\");\r\n\t\t\t\tSystem.out.println(\" -1 - View All Free Agents\");\r\n\t\t\t\tSystem.out.println(\"1-\" + theLeague.playerList().size() + \" - Select a Player\");\r\n\t\t\t\tplayerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard);\r\n\t\t\t\t\r\n\t\t\t\tif (playerChoice == -1) {\r\n\t\t\t\t\ttheLeague.getFreeAgents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (playerChoice == 0) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Which position would you like to view?\");\r\n\t\t\t\t\tSystem.out.println(\"1 - QB\");\r\n\t\t\t\t\tSystem.out.println(\"2 - WR\");\r\n\t\t\t\t\tSystem.out.println(\"3 - RB\");\r\n\t\t\t\t\tSystem.out.println(\"4 - TE\");\r\n\t\t\t\t\tswitch (Input.validInt(1, 4, keyboard)) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent QBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"QB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent WRs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"WR\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent RBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"RB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent TEs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"TE\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} while (playerChoice < 1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (theLeague.playerList().get(playerChoice - 1).getIsOwned()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + \" is not available\");\r\n\t\t\t}\r\n\t\t} while (theLeague.playerList().get(playerChoice - 1).getIsOwned());\r\n\r\n\t\tPlayer thePlayer = theLeague.playerList().get(playerChoice - 1);\r\n\t\tthePlayer.setIsOwned();\r\n\t\ttheTeam.getRoster().add(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***\" + theTeam.getManagerName() + \" has added \" + thePlayer.playerToString() + \"***\");\r\n\t}",
"@Override\n public String getTeam(){\n return this.team;\n }",
"public void setTmpTeam(UserTeam tmpTeam) {\n\t\tthis.tmpTeam = tmpTeam;\n\t}",
"@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}",
"public void createTeam(final Map<String, String> dataTable) {\n team.processInformation(dataTable);\n WebDriverHelper.waitUntil(inputTeamName);\n WebDriverHelper.setElement(inputTeamName, team.getName());\n WebDriverHelper.clickElement(dropDownTeamType);\n selectDropDownOptionByName(team.getType());\n WebDriverHelper.setElement(inputTeamDescription, team.getDescription());\n WebDriverHelper.clickElement(btnContinue);\n WebDriverHelper.waitUntil(btnThisLater);\n WebDriverHelper.clickElement(btnThisLater);\n }",
"private void SetCurrentPlayer() throws IOException\n {\n if( mTeamsComboBox.getSelectedItem() != null )\n {\n String team = mTeamsComboBox.getSelectedItem().toString();\n String position = mPositionComboBox.getSelectedItem().toString();\n String playerData = GetPlayerString(team, position);\n if( playerData != null )\n SetPlayerData(playerData);\n }\n }",
"public void setCurrentTurn(Player player) {\r\n\t\tthis.currentTurn = player;\r\n\t}",
"public void nodeTeam(String id, String team)\n\t{\n\t\tgetNode(id).team = team;\n\t}",
"public synchronized boolean voteTeam() {\n //tally the votes\n int yes = 0, no = 0;\n for (boolean vote : playerVotes.values()) {\n if (vote) {\n yes++;\n } else {\n no++;\n }\n }\n\n if (yes > no) {\n doMissionState = voteTeamState.acceptTeam();\n state = State.DO_MISSION;\n successiveRejections = 0;\n teamMemberChoices = new HashMap<>();\n return true;\n } else {\n pickTeamState = voteTeamState.rejectTeam();\n state = State.PICK_TEAM;\n successiveRejections++;\n teamSelection = new HashSet<>();\n return false;\n }\n }",
"@Override\n\tpublic int getTeam() {\n\t\treturn 0;\n\t}",
"public void setTeamName(String teamName) {\n\t\tthis.teamName = teamName;\n\t}",
"public void addTeam(Team team) {\n int maxTotalTeamsCurrentlyAllowed = getTotalPlayersInLeague();\n\n // If a team has been created\n if(getTeams().size() != 0) {\n\n float greatestPlayerCount;\n // if the number of players on the largest team is not equal to zero\n if((greatestPlayerCount = (float) getTeamWithMostPlayers().getPlayerCount()) != 0) {\n\n // Get the sum of all the players in the league\n float totalLeaguePlayers = (float) getTotalPlayersInLeague();\n\n // divide the total players in league by number of players in largest team, rounded down\n float totalTeamsAllowedFloat = totalLeaguePlayers / greatestPlayerCount;\n\n // cast into double for Math.floor method\n double totalTeamsAllowedDouble = (double) totalTeamsAllowedFloat;\n\n // cast into integer for comparison\n maxTotalTeamsCurrentlyAllowed = (int) Math.floor(totalTeamsAllowedDouble);\n }\n\n }\n\n // If we're requesting to make more teams than the current max allowed, throw exception\n if (getTeams().size() < maxTotalTeamsCurrentlyAllowed) {\n teams.add(team);\n } else {\n throw new IndexOutOfBoundsException(\"Not enough players for a new team\");\n }\n\n }",
"public void nextTurn() {\r\n activePlayer = nextPlayer;\r\n advanceNextPlayer();\r\n }",
"Team createTeam();",
"public static void editLineup(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Edit Lineup---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\ttheTeam.teamToStringNum();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Select a player to move from the bench to starting or vice versa:\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\tSystem.out.println(\"1-\" + theTeam.getRoster().size() + \" - Select a player to be dropped\");\r\n\t\t\r\n\t\tint lineupChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard);\r\n\t\tif (lineupChoice == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tPlayer thePlayer = theTeam.getTeamPlayer(lineupChoice - 1);\r\n\t\t\r\n\t\tif (thePlayer.getIsStarting()) {\r\n\t\t\tthePlayer.setBench();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tString position = thePlayer.getPosition();\r\n\t\tif (theTeam.starterCount(position) < theLeague.getPositionMax(position)) {\r\n\t\t\tthePlayer.setStarting();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***You have the maximum number of starters at the \" + position + \" position***\");\r\n\t\t}\r\n\t}",
"public Builder clearTeam() {\n bitField0_ = (bitField0_ & ~0x00000004);\n team_ = 0;\n onChanged();\n return this;\n }",
"public SoccerTeam getTeamOne() {\n return teamOne;\n }",
"public static void setup(){\n\t\tfor(int i=0;i<9;i++){\r\n\t\t\tTicTac.place[i]='_';\r\n\t\t}\r\n\t\tdrawBoard();\r\n\t\twhile((TicTac.team != 'X') && (TicTac.team != 'O')){\r\n\t\t\tSystem.out.println(\"\\n\\nselect your team enter X or O below\");\r\n\t\t\tSystem.out.print(\"Enter your selection:\");\r\n\t\t\tScanner input=new Scanner(System.in);\r\n\t\t\tTicTac.usrStr=input.next();\r\n\t\t\tif(TicTac.usrStr.toUpperCase().equals(\"X\")){\r\n\t\t\t\tTicTac.team='X';\r\n\t\t\t\tTicTac.opp='O';\r\n\t\t\t}\r\n\t\t\telse if(TicTac.usrStr.toUpperCase().equals(\"O\")){\r\n\t\t\t\tTicTac.team='O';\r\n\t\t\t\tTicTac.opp='X';\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"You entered :\"+usrStr);{\r\n\t\t\t\t\tSystem.out.println(\"this is not a valid optiuon plase enter either X or O to continue\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"you are team\"+TicTac.team);\r\n\t\tgame();\r\n\t}",
"private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tIntent intent=new Intent();\n\t\tif(!newSeason){\n\t\t\tintent.setClass(League.this,TeamList.class);\n\t\t\tintent.putExtra(\"goal1\", t1);\n\t\t\tintent.putExtra(\"goal2\", t2);\n\t\t\tintent.putExtra(\"id1\", id1);\n\t\t\tintent.putExtra(\"id2\", id2);\n\t\t\tintent.putExtra(\"team1\", team1);\n\t\t\tintent.putExtra(\"team2\", team2);\n\t\t\tstartActivity(intent);\n\t\t}\n\t\telse{\n\t\t\t//intent.setClass(League.this, ChoosePlayers.class);\n\t\t\t//intent.putExtra(\"season\", \"end\");\n\t\t\t//intent.putExtra(\"balance\", balance);\n\t\t\tintent.setClass(League.this, Knockout.class);\n\t\t\tintent.putExtra(\"team1\", t[0].name);\n\t\t\tintent.putExtra(\"team2\", t[1].name);\n\t\t\tintent.putExtra(\"id1\", t[0].ImageId);\n\t\t\tintent.putExtra(\"id2\", t[1].ImageId);\n\t\t\tstartActivity(intent);\n\t\t\tfinish();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public TeamObject() {\n\t\t//build the firstRaceLockButton variable\n\t\tfirstRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//get the mouse cursor out of the time input field so that it works properly\n\t\t\t\tif(firstRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeFirstRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfirstRaceTime = Integer.parseInt((String)timeFirstRaceInputField.getValue());\t//set the firstRaceTime variable\n\t\t\t\t\ttimeFirstRaceInputField.setEditable(false);\n\t\t\t\t\tfirstRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//if the time changes set the flag\n\t\t\t\t\tif(firstRaceTimeTracker != firstRaceTime) {\n\t\t\t\t\t\tflagFirstRaceTime.setText(\"*\");\t\t//set the time change flag\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfirstRaceTimeTracker = Integer.parseInt((String)timeFirstRaceInputField.getValue());\t//set the varible to keep track if the time changed\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(firstLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagFirstRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tfirstLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their first race and second race times are not -1 to open the semi final race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\t//check the teams first race time\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getFirstRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//check the teams second race time\n\t\t\t\t\t\telse if(FestivalObject.teamsArray.get(i).getSecondRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the semi finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getSecondRaceTime() != -1) {\n\t\t\t\t\t\t\tSchedule.semiFinalsRadioButton.setEnabled(true);\n\t\t\t\t\t\t\tSemiFinalRaceGeneration.generateSemiFinalRaces(Schedule.panel2);\t//auto generate the semi finals when all is locked\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(firstRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeFirstRaceInputField.setEditable(true);\n\t\t\t\t\tfirstRaceLockButton.setText(\"Lock\");\n\t\t\t\t\t\n//\t\t\t\t\tfirstLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//loop through the teams that raced in the race and set the place\n\t\t\t\t//TODO - this changing the label stuff - or just add a text box that is set instead?\n//\t\t\t\tfor(int i = 0; i < FestivalObject.racesArray.size(); i++) {\n//\t\t\t\t\tfor(int j = 0; j < FestivalObject.racesArray.get(i).getTeamsRacing().size(); j++) {\n//\t\t\t\t\t\tFestivalObject.racesArray.get(i).getTeamsRacing().get(j).setPlaceLabel(1, 9);\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfirstRaceLockButton.setFont(FestivalObject.getFont());\n\t\tfirstRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfirstRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tfirstRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the secondRaceLockButton variable\n\t\tsecondRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//for the second race lock button click\n\t\t\t\tif(secondRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeSecondRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsecondRaceTime = Integer.parseInt((String)timeSecondRaceInputField.getValue());\t//set the secondRaceTime variable\n\t\t\t\t\ttimeSecondRaceInputField.setEditable(false);\n\t\t\t\t\tsecondRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(secondLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagSecondRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tsecondLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their first race and second race times are not -1 to open the semi final race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\t//check the teams first race time\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getFirstRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//check the teams second race time\n\t\t\t\t\t\telse if(FestivalObject.teamsArray.get(i).getSecondRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the semi finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getSecondRaceTime() != -1) {\n\t\t\t\t\t\t\tSchedule.semiFinalsRadioButton.setEnabled(true);\n\t\t\t\t\t\t\tSemiFinalRaceGeneration.generateSemiFinalRaces(Schedule.panel2);\t//auto generate the semi finals when all is locked\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(secondRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeSecondRaceInputField.setEditable(true);\n\t\t\t\t\tsecondRaceLockButton.setText(\"Lock\");\n\t\t\t\t\t\n//\t\t\t\t\tsecondLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsecondRaceLockButton.setFont(FestivalObject.getFont());\n\t\tsecondRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsecondRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tsecondRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the semiFinalRaceLockButton variable\n\t\tsemiFinalRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//for the semi final race button click\n\t\t\t\tif(semiFinalRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeSemiFinalRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tsemiFinalRaceTime = Integer.parseInt((String)timeSemiFinalRaceInputField.getValue());\t//set the semiFinalRaceTime variable\n\t\t\t\t\ttimeSemiFinalRaceInputField.setEditable(false);\n\t\t\t\t\tsemiFinalRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(semiFinalLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagSemiFinalRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tsemiFinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their semi final race times are not -1 to open the finals race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getSemiFinalRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getSemiFinalRaceTime() != -1) {\n\t\t\t\t\t\t\tSchedule.finalsRadioButton.setEnabled(true);\n\t\t\t\t\t\t\tFinalRaceGeneration.generateFinalRaces(Schedule.panel3);\t//generate the final races when all the semi finals are locked\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(semiFinalRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeSemiFinalRaceInputField.setEditable(true);\n\t\t\t\t\tsemiFinalRaceLockButton.setText(\"Lock\");\n\t\t\t\t\tflagSemiFinalRaceTime.setText(\"*\");\n\t\t\t\t\t\n//\t\t\t\t\tsemiFinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsemiFinalRaceLockButton.setFont(FestivalObject.getFont());\n\t\tsemiFinalRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsemiFinalRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tsemiFinalRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the finalRaceLockButton variable\n\t\tfinalRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//for the final race button click\n\t\t\t\tif(finalRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeFinalRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfinalRaceTime = Integer.parseInt((String)timeFinalRaceInputField.getValue());\t//set the finalRaceTime variable\n\t\t\t\t\ttimeFinalRaceInputField.setEditable(false);\n\t\t\t\t\tfinalRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(finalLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagFinalRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tfinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their semi final race times are not -1 to open the finals race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getFinalRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getFinalRaceTime() != -1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<TeamObject> tm = new ArrayList<TeamObject>(FestivalObject.teamsArray);\t\t//duplicate teamsArray\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//calculate the place each team is in\n\t\t\t\t\t\t\t//sort the duplicated tm ArrayList based on the averagedRaceTime in ascending order before separating by category\n\t\t\t\t\t\t\t//this makes them stay sorted before separation\n\t\t\t\t\t\t\tCollections.sort(tm, new Comparator<TeamObject>() {\n\t\t\t\t\t\t\t\tpublic int compare(TeamObject o1, TeamObject o2) {\n\t\t\t\t\t\t\t\t\treturn String.format(\"%06d\", o1.getAveragedRaceTime()).compareTo(String.format(\"%06d\", o2.getAveragedRaceTime()));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//loop to set the place that the team is in\n\t\t\t\t\t\t\t//teams are sorted in order by best time right above this already\n\t\t\t\t\t\t\tfor(int j = 0; i< FestivalObject.teamsArray.size(); j++) {\n\t\t\t\t\t\t\t\tFestivalObject.teamsArray.get(j).setPlace(j + 1);\t\t//set the teams place\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(finalRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeFinalRaceInputField.setEditable(true);\n\t\t\t\t\tfinalRaceLockButton.setText(\"Lock\");\n\t\t\t\t\t\n//\t\t\t\t\tfinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfinalRaceLockButton.setFont(FestivalObject.getFont());\n\t\tfinalRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfinalRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tfinalRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the time change flag labels\n\t\tflagFirstRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagFirstRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\tflagSecondRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagSecondRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\tflagSemiFinalRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagSemiFinalRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\tflagFinalRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagFinalRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\t//set up the place labels\n\t\tfirstRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfirstRacePlaceLabel.setFont(FestivalObject.getFont());\n\t\t\n\t\tsecondRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsecondRacePlaceLabel.setFont(FestivalObject.getFont());\n\t\t\n\t\tsemiFinalRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsemiFinalRacePlaceLabel.setFont(FestivalObject.getFont());\n\t\t\n\t\tfinalRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfinalRacePlaceLabel.setFont(FestivalObject.getFont());\n\t}",
"public NetworkGame(String team){\n super();\n this.team = team;\n }",
"public static void saveTeamNames() {\r\n\t\tMain.team1 = Main.teamOne.name;\r\n\t\tMain.team2 = Main.teamTwo.name;\r\n\t}",
"public void assignPointsToTeams(){\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRuns() < two.getTotalRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRuns(setvalue);\n }\n \n //SORTS FOR TOTALHOMERUNS THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalHomeRuns() < two.getTotalHomeRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsHomeRuns(setvalue);\n }\n \n //SORTS FOR RunsBattedIn THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRunsBattedIn() < two.getTotalRunsBattedIn()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRunsBattedIn(setvalue);\n }\n \n //SORTS FOR STOLENBASES THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalStolenBases() < two.getTotalStolenBases()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStolenBases(setvalue);\n }\n \n //SORTS FOR BATTINGAVERAGE THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getBattingAverage() < two.getBattingAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsBattingAverage(setvalue);\n }\n \n //SORTS FOR Wins THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWins() < two.getWins()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWins(setvalue);\n }\n \n //SORTS FOR Strikeouts THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getStrikeouts() < two.getStrikeouts()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStrikeouts(setvalue);\n }\n \n //SORTS FOR Saves THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getSaves() < two.getSaves()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsSaves(setvalue);\n }\n \n //SORTS FOR ERA THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getEarnedRunAverage() < two.getEarnedRunAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsERA(setvalue);\n }\n \n //SORTS FOR WHIP THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWhip() < two.getWhip()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWHIP(setvalue);\n } \n }",
"public void setTeamId(int teamId) {\n\t\tthis.teamId = teamId;\n\t}",
"public Team(String name) {\n this.name = name;\n }",
"public void updateTeamFromResults(Match m){\r\n \r\n //Update team1\r\n m.getTeam1().setGoalsFor(m.getTeam1().getGoalsFor() + m.getScore1());\r\n m.getTeam1().setGoalsAgainst(m.getTeam1().getGoalsAgainst() + m.getScore2());\r\n \r\n //Update team2\r\n m.getTeam2().setGoalsFor(m.getTeam2().getGoalsFor() + m.getScore2());\r\n m.getTeam2().setGoalsAgainst(m.getTeam2().getGoalsAgainst() + m.getScore1());\r\n \r\n //Add points\r\n if (m.getScore1() < m.getScore2()){\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 3);\r\n m.getTeam1().setMatchLost(m.getTeam1().getMatchLost() + 1);\r\n m.getTeam2().setMatchWon(m.getTeam2().getMatchWon() + 1);\r\n }\r\n else if (m.getScore1() > m.getScore2()){\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 3);\r\n m.getTeam2().setMatchLost(m.getTeam2().getMatchLost() + 1);\r\n m.getTeam1().setMatchWon(m.getTeam1().getMatchWon() + 1);\r\n }\r\n else {\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 1);\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 1);\r\n m.getTeam1().setMatchDrawn(m.getTeam1().getMatchDrawn() + 1);\r\n m.getTeam2().setMatchDrawn(m.getTeam2().getMatchDrawn() + 1);\r\n }\r\n \r\n //Update the rankings\r\n this.updateTeamRank();\r\n }",
"public int getTeamId() {\n return teamId;\n }",
"public void changeTurn(int newTurn) {\r\n turnChoice = newTurn;\r\n }",
"private void setTeamInfo_Blue3() {\n blueTeamNumber3.setText(fixNumTeam(blueTeamNumber3.getText(), \"Blue 3\"));\n\n blueTeamNumber3.setBackground(Color.WHITE);\n\n FieldAndRobots.getInstance().setTeamNumber(FieldAndRobots.BLUE, FieldAndRobots.THREE,\n Integer.parseInt(blueTeamNumber3.getText()));\n FieldAndRobots.getInstance().actOnRobot(FieldAndRobots.BLUE,\n FieldAndRobots.THREE, FieldAndRobots.SpecialState.ZERO_BATTERY);\n\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_TeamNum(true);\n }\n }",
"private void gameStart(){\n\t\tRandom randomGenerator = new Random();\n\t\tint ranNum = randomGenerator.nextInt(teamNum);\n\t\tSystem.out.println(\"The team to go first will be \" + teams[ranNum].getName());\n\t\tgameHelper(ranNum); //process all 25 questions until it's over\n\t\tfinalRound();\n\t\tprintFinalWinner();\n\t\t\n\t\t\n\t}",
"int getTeam();",
"public void setGamesCompleted(int num)\r\n {\r\n //Check if the new average time is less than 0 before setting the new average time \r\n if(num < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative number of games completed\");\r\n }\r\n else \r\n {\r\n this.gamesCompleted = num; \r\n }//end if\r\n }",
"private void setTeamInfo_Blue1() {\n blueTeamNumber1.setText(fixNumTeam(blueTeamNumber1.getText(), \"Blue 1\"));\n\n blueTeamNumber1.setBackground(Color.WHITE);\n\n FieldAndRobots.getInstance().setTeamNumber(FieldAndRobots.BLUE, FieldAndRobots.ONE,\n Integer.parseInt(blueTeamNumber1.getText()));\n FieldAndRobots.getInstance().actOnRobot(FieldAndRobots.BLUE,\n FieldAndRobots.ONE, FieldAndRobots.SpecialState.ZERO_BATTERY);\n\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_TeamNum(true);\n }\n }",
"public void setWinner(Player winner) {\n this.winner = winner;\n }"
] |
[
"0.7002916",
"0.69282687",
"0.68993866",
"0.6873398",
"0.67233396",
"0.6705573",
"0.6650908",
"0.6554106",
"0.6549989",
"0.6511462",
"0.6433773",
"0.6278744",
"0.62118804",
"0.61826426",
"0.6171059",
"0.6094209",
"0.606101",
"0.60143745",
"0.6009239",
"0.60063857",
"0.59991455",
"0.5969395",
"0.58970404",
"0.5863424",
"0.58531535",
"0.5850512",
"0.5840488",
"0.58396137",
"0.58319366",
"0.5811452",
"0.5799764",
"0.5776249",
"0.5746516",
"0.5735016",
"0.569956",
"0.5688882",
"0.5671183",
"0.56554013",
"0.5647631",
"0.56364626",
"0.5628494",
"0.56268436",
"0.5615605",
"0.56138086",
"0.55964184",
"0.5567153",
"0.5565774",
"0.55619395",
"0.555252",
"0.55293036",
"0.5525267",
"0.5525183",
"0.55227786",
"0.55105823",
"0.550183",
"0.5500692",
"0.54939103",
"0.54844505",
"0.5483755",
"0.5482816",
"0.5482697",
"0.5469791",
"0.54665935",
"0.5453233",
"0.54413265",
"0.5438972",
"0.54345596",
"0.54341435",
"0.54329383",
"0.5427019",
"0.5399163",
"0.53920066",
"0.53882676",
"0.5379224",
"0.53745705",
"0.5373685",
"0.5369822",
"0.5365294",
"0.5359657",
"0.5359105",
"0.5354135",
"0.5350727",
"0.5346984",
"0.53465396",
"0.53420657",
"0.53382885",
"0.53376365",
"0.5333615",
"0.53329873",
"0.53302574",
"0.5330131",
"0.53270715",
"0.53231704",
"0.5321712",
"0.53211707",
"0.53142184",
"0.5312834",
"0.5309707",
"0.53060395",
"0.5305423"
] |
0.6179109
|
14
|
Adds a new player to the team the user is selecting for the next round
|
public int addPlayer(String name) {
User user = users.get(userTurn);
FootballPlayer player = market.findPlayer(name);
double marketValue = player.getMarketValue();
System.out.println("budget before buy" + user.getBudget());
if(tmpTeam.containsPlayer(name)) {
return 1;
}
else if(user.hasEnoughBudget(marketValue)) {
tmpTeam.addPlayer(name, player);
user.updateBudget(marketValue, "-");
System.out.println("budget " + user.getBudget());
System.out.println("marketvalue " +marketValue);
System.out.println("budget after buy" + user.getBudget());
return 0;
}
return -1;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void addPlayer(Player newPlayer);",
"public void addPlayer(String name) {\n if (nrOfPlayers() < 4) {\n players.add(new Player(name, nrOfPlayers() + 1));\n this.status = \"Initiated\";\n } else {\n throw new NoRoomForMorePlayersException();\n }\n }",
"public void addPlayer(Player player){\n players.add(player);\n }",
"public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }",
"public void addPlayer(Player player) {\n playerList.add(player);\n }",
"public void addPlayer(String name) {\n\t\tcreateGameLobbyController.addPlayerToList(name);\n\t}",
"public void nextTurn(){\n players.add(currentPlayer);//Added to the back\n currentPlayer = players.pop();//Pull out the first player in line to go next\n }",
"public void nextPlayerInTurn() {\n currentPlayerTurn= playersTurns.poll();\n if (currentPlayerTurn != null) {\n eventListener.addEventObject(new PlayerEvent(currentPlayerTurn.getPlayerName(),EventNamesConstants.PlayerTurnArrived));\n currentPlayerName = currentPlayerTurn.getPlayerName();\n }\n else {\n currentPlayerName = \"None\";\n }\n }",
"public void addPlayer(String name) {\n players.add(new Player(name));\n }",
"public void nextPlayer() {\r\n if (currentPlayer == totalPlayer) {\r\n currentPlayer = 1;\r\n } else {\r\n currentPlayer++;\r\n }\r\n }",
"public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString playerName = \"\";\n\t\t\tint playerNr = 1;\n\t\t\t\n\t\t\tfor(Player p : player){\n\t\t\t\tplayerName += playerNr+\": \"+p.getName()+\"<br>\"; \n\t\t\t\tplayerNr++;\n\t\t\t}\n\t\t\t\n\t\t\ttotPlayers++;\n\t\t\tlblPlayerList.setText(\"<html><h2>PLAYER LIST</h2>\"+playerName+\"</html>\");\n\t\t\ttxtFieldPlayerName.setText(\"\");\n\t\t}\n\t\t\n\t\tif(totPlayers >= minimumPlayersAllowed){\n\t\t\tbtnPlay.setEnabled(true);\n\t\t}\n\t\t\n\t\tif(totPlayers >= maximumPlayersAllowed){\n\t\t\tbtnAddPlayer.setEnabled(false);\n\t\t\ttxtFieldPlayerName.setEnabled(false);\n\t\t}\n }",
"private void addPlayerToGroup(Scoreboard board, Player player) {\n String playername = player.getName();\n board.registerNewTeam(playername);\n board.getTeam(playername).addPlayer(player);\n }",
"public void addPlayer(Player inPlayer) {\n\t\tgetPlayersInRoom().add(inPlayer);\n\t}",
"public void startNewTurn(){\n currentPlayer = players.peek();\n players.add(players.remove());\n view.changeCurrentPlayer(currentPlayer.getName(), currentPlayer.getPlayerDiePath(), numDays);\n currentPlayer.setHasPlayed(false);\n }",
"public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Add Player---\");\r\n\t\ttheTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"--Top 20 Free Agents--\");\r\n\t\ttheLeague.getFreeAgents(20);\r\n\r\n\t\tint playerChoice;\r\n\t\tdo {\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\" 0 - Filter Free Agents by Position\");\r\n\t\t\t\tSystem.out.println(\" -1 - View All Free Agents\");\r\n\t\t\t\tSystem.out.println(\"1-\" + theLeague.playerList().size() + \" - Select a Player\");\r\n\t\t\t\tplayerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard);\r\n\t\t\t\t\r\n\t\t\t\tif (playerChoice == -1) {\r\n\t\t\t\t\ttheLeague.getFreeAgents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (playerChoice == 0) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Which position would you like to view?\");\r\n\t\t\t\t\tSystem.out.println(\"1 - QB\");\r\n\t\t\t\t\tSystem.out.println(\"2 - WR\");\r\n\t\t\t\t\tSystem.out.println(\"3 - RB\");\r\n\t\t\t\t\tSystem.out.println(\"4 - TE\");\r\n\t\t\t\t\tswitch (Input.validInt(1, 4, keyboard)) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent QBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"QB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent WRs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"WR\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent RBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"RB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent TEs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"TE\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} while (playerChoice < 1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (theLeague.playerList().get(playerChoice - 1).getIsOwned()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + \" is not available\");\r\n\t\t\t}\r\n\t\t} while (theLeague.playerList().get(playerChoice - 1).getIsOwned());\r\n\r\n\t\tPlayer thePlayer = theLeague.playerList().get(playerChoice - 1);\r\n\t\tthePlayer.setIsOwned();\r\n\t\ttheTeam.getRoster().add(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***\" + theTeam.getManagerName() + \" has added \" + thePlayer.playerToString() + \"***\");\r\n\t}",
"void addEventPlayers(Player player, boolean team);",
"public void addPlayerDuringGame(String playerName) {\n System.out.println(\"I want to add player \" + playerName + \" to the game!\");\n addPlayer(playerName);\n Collections.shuffle(players);\n }",
"boolean addPlayer(String player);",
"public void addPlayer(Player player) {\n\t\tif(players.isEmpty()) {\n\t\t\tcurrent=player;\n\t\t\tplayers.add(current);\n\t\t}\n\t\telse {\n\t\t\tplayers.add(player);\n\t\t}\n\t}",
"public void addPlayer(String p) {\n this.playersNames.add(p);\n }",
"@Override\n public void addPlayer(Player player) {\n\n if(steadyPlayers.size()>0){\n PlayersMeetNotification.firePropertyChange(new PropertyChangeEvent(this, \"More than one Player in this Panel\",steadyPlayers,player));\n }\n steadyPlayers.add(player);\n\n }",
"public void addPlayer(FootballPlayer aPlayer) {\n\t\tplayers.add(aPlayer);\n\t}",
"public void cmdAddPlayer(User teller, String playerHandle) {\n Player player = tournamentService.findPlayer(playerHandle);\n try {\n player = tournamentService.createPlayer(playerHandle);\n } catch (InvalidPlayerException e) {\n replyError(teller, e);\n return;\n } catch (InvalidTeamException e) {\n replyError(teller, e);\n command.tell(teller, \"To create a new team, use the \\\"add-team\\\" command. Usage: add-team XXX\");\n return;\n }\n tournamentService.flush();\n command.tell(teller, \"Done. Player {0} has joined the \\\"{1}\\\".\", player, player.getTeam());\n command.tell(teller, \"To set the player''s real name, use: \\\"set-player {0} name 2200\\\"\", player);\n cmdShowPlayer(teller, player);\n }",
"public void addPlayerToTable(Player player){\n\t\tgamePlayers.add(player);\n\t}",
"public void addPlayer(Player player) {\n this.add(player);\n this.players.add(player);\n }",
"public void next_player() {\n\t\tthis.nb_turn++;\n\t\tthis.player_turn++;\n\t\tthis.same_dice_in_a_row = 0;\n\t\tif (player_turn == this.players.size()) {\n\t\t\tthis.player_turn = 0;\n\t\t}\n\n\t\tif (get_player_from_turn().get_surrend()) {\n\t\t\tthis.nb_turn--;\n\t\t\tif (get_player_in_game() > 0) {\n\t\t\t\tthis.next_player();\n\t\t\t}\n\t\t}\n\t}",
"public void generatePlayer()\n {\n board.getTile(8,0).insertPlayer(this.player);\n }",
"public static void addingNewPlayer(){\r\n\t\t//hard code each score includng a total.\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Enter the name of the Player?\");\r\n\t\t\t\t\tString name = scan.next();\r\n\t\t\t\t\t\r\n\t\t\t//establishing the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//inserting the quries assign to the String variables\r\n\t\t\tString query=\"insert into \" + tableName + \" values ('\" + name +\"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\";\t\t\r\n\t\t\t\r\n\t\t\t//inserting the hard coded data into the table of the datbase\r\n\t\t\tstatement.execute(query);\r\n\t\t\t\r\n\t\t\t//closing the statement\r\n\t\t\tstatement.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t System.out.println(\"SQL Exception occurs\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"private Player addNewPlayer(String username) {\n if (!playerExists(username)) {\n Player p = new Player(username);\n System.out.println(\"Agregado jugador \" + username);\n players.add(p);\n return p;\n }\n return null;\n }",
"public void nextTurn(){\n\t\tplayers[currentPlayer].setNotCurrentPlayer();\n\t\t\n\t\t//increment current player to advance to next player\n\t\tcurrentPlayer = (currentPlayer + 1) % players.length;\n\t\t\n\t\t//update the new current player\n\t\tupdateCurrentPlayerView();\n\t}",
"public static void ChooseNextPlayer () {\n do {\r\n\r\n // MOVE TO THE NEXT PLAYER\r\n next_player++;\r\n\r\n // IF WE MOVED TOO FAR, WRAP AROUND TO ZERO\r\n if (next_player >= player_count)\r\n next_player = 0;\r\n\r\n } while (player[next_player].lost);\r\n\r\n }",
"@Override\r\n public void addPlayers(int numberOfPlayers) {\r\n for (int i = 0; i < numberOfPlayers; i++) {\r\n this.addPlayer();\r\n }\r\n }",
"void addPlayer(IPlayer player);",
"public void addPlayer(int place, Player p) {\r\n\t\tif (!players.containsKey(place))\r\n\t\t\tplayers.put(place, p);\r\n\t}",
"public void addPlayer(Player player) {\r\n players.add(player);\r\n ((DefaultListModel<Player>) playerListGui.getModel()).addElement(player);\r\n }",
"public void nextTurn() {\r\n activePlayer = nextPlayer;\r\n advanceNextPlayer();\r\n }",
"public static void addPlayer(MovingUnit player) {\r\n\t\t_players.add(player);\r\n\t}",
"public void addPlayer(Player p) {\n if (gameState != GameState.AWAITING_PLAYERS) {\n throw new GameStateInvalidException(\"Cannot add players once game is underway...\");\n }\n\n // ok, just add...\n if (!players.contains(p)) {\n players.add(p);\n }\n }",
"void addPerson(Player player);",
"public void addPlayer(String playerID) {\r\n\t\tplayerCount++;\r\n\t\tString name = guild.getMemberById(playerID).getEffectiveName();\r\n\t\t// Set up each player uniquely\r\n\t\tif (p2 == null) {\r\n\t\t\tp2 = new Player(1,playerID,GlobalVars.pieces.get(\"blue\"));\r\n\t\t\tp2.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[1][0]);\r\n\t\t\tp2.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[1][1]);\r\n\t\t\tplayers.add(p2);\r\n\t\t\tp1.setNextPlayer(p2);\r\n\t\t\tp2.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the BLUE adventurer\").queue();\r\n\t\t} else if (p3 == null) {\r\n\t\t\tp3 = new Player(2,playerID,GlobalVars.pieces.get(\"yellow\"));\r\n\t\t\tp3.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[2][0]);\r\n\t\t\tp3.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[2][1]);\r\n\t\t\tplayers.add(p3);\r\n\t\t\tp2.setNextPlayer(p3);\r\n\t\t\tp3.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the YELLOW adventurer\").queue();\r\n\t\t} else if (p4 == null) {\r\n\t\t\tp4 = new Player(3,playerID,GlobalVars.pieces.get(\"green\"));\r\n\t\t\tp4.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[3][0]);\r\n\t\t\tp4.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[3][1]);\r\n\t\t\tplayers.add(p4);\r\n\t\t\tp3.setNextPlayer(p4);\r\n\t\t\tp4.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the GREEN adventurer\").queue();\r\n\t\t}\r\n\t}",
"public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p.getName(), 0);\n\t\t\t}\n\t\t}\n\t\tthis.playerList.add(p); \n\t}",
"public boolean addPlayer(GamePlayer player) {\n\t\tif (players.size() >= info.getMaximumPlayers())\n\t\t\treturn false;\n\t\tplayer.setCurrentGame(this);\n\t\tplayer.setJoinLocation(player.getPlayer().get().getLocation());\n\t\tplayers.add(player);\n\t\treturn true;\n\t}",
"public void newPlayer() {\r\n\t\tthis.nbMonster ++;\r\n\t\tthis.nbPlayer ++;\r\n\t}",
"@RequestMapping(method = RequestMethod.POST, value = \"/players/{playerName}\")\n public void addPlayer(@PathVariable String playerName) {\n playerService.addPlayer(playerName);\n }",
"@Test\n public void testAddPlayer() {\n System.out.println(\"addPlayer\");\n Player player = new Player(\"New Player\");\n Team team = new Team();\n team.addPlayer(player);\n assertEquals(player, team.getPlayers().get(0));\n }",
"public void registerPlayer(BlackjackPlayer player) {\r\n getPlayers().add(player);\r\n }",
"@Override\n \tpublic void createAndAddNewPlayer( int playerID )\n \t{\n \t\t//add player with default name\n \t\tPlayer newPlayer = new Player( playerID, \"Player_\"+playerID );\n \t\tgetPlayerMap().put( playerID, newPlayer );\n \t}",
"public void addPlayer(Player player, String teamName, String prefix, String suffix) {\n // Give the player the current scoreboard.\n player.setScoreboard(scoreboard);\n\n // Lets add the team to the scoreboard.\n addTeam(teamName, prefix, suffix);\n\n // Add the player to the team.\n getTeam(teamName).addEntry(player.getName());\n }",
"public void determineNextPlayer() {\r\n\t\t// Calculate next player\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Current player number before getting next: \"+currentPlayer.getNumber());\r\n//\t\tif (currentPlayer.getNumber() == 0) {\r\n//\t\t\tif (p2 == null) {currentPlayer = p1;} else {currentPlayer = p2;}\r\n//\t\t} else if (currentPlayer.getNumber() == 1) {\r\n//\t\t\tif (p3 == null) {currentPlayer = p1;} else {currentPlayer = p3;}\r\n//\t\t} else if (currentPlayer.getNumber() == 2) {\r\n//\t\t\tif (p4 == null) {currentPlayer = p1;} else {currentPlayer = p4;}\r\n//\t\t} else {\r\n//\t\t\tcurrentPlayer = p1;\r\n//\t\t}\r\n\t\tcurrentPlayer = currentPlayer.getNextPlayer(); // Method already deals with quit\r\n\t\t\r\n\t\t// Player is alive and not free\r\n\t\tif (!currentPlayer.isFree() && !currentPlayer.isDead()) { \r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Next player is not dead and not free: \"+currentPlayer.getNumber());\r\n\t\t\tturnIsEnding = false;\r\n\t\t\tnewTurn();\r\n\t\t// Player is dead\r\n\t\t} else if (currentPlayer.isDead()) {\r\n\t\t\tif (!checkIfGameIsOver()) {\r\n\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player is dead, game is not over so skipping\");\r\n\t\t\t\tendTurn(); // DEATH CONDITION 1.5 & 2 & 2.5\r\n\t\t\t}\r\n\t\t// Player is free\r\n\t\t} else {\r\n\t\t\t// Check if game is over\r\n\t\t\tif (!checkIfGameIsOver()) {\r\n\t\t\t\t// End Game Dragon\r\n\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player is free, game is not over\");\r\n\t\t\t\t// Check if this is the first escaped player\r\n\t\t\t\tif (currentPlayer.getPlayerID().contentEquals(firstEscapee.getPlayerID())) {\r\n\t\t\t\t\t// Advance the room and draw next sprite\r\n\t\t\t\t\tcurrentPlayer.setCurrentRoom(currentPlayer.getCurrentRoom()+1);\r\n\t\t\t\t\tint room = currentPlayer.getCurrentRoom();\r\n\t\t\t\t\tcurrentPlayer.getPiece().setX(GlobalVars.playerCoordsPerRoom[room][0]+GlobalVars.playersOffset[currentPlayer.getNumber()][0]);\r\n\t\t\t\t\tcurrentPlayer.getPiece().setY(GlobalVars.playerCoordsPerRoom[room][1]+GlobalVars.playersOffset[currentPlayer.getNumber()][1]);\r\n\t\t\t\t\t// If last room, kill the rest of the players\r\n\t\t\t\t\tif (room == 43) {\r\n\t\t\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] First escapee has reached last room. Killing all other players\");\r\n\t\t\t\t\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\t\t\t\t\tif (!players.get(i).isDead() && !players.get(i).isFree()) {\r\n\t\t\t\t\t\t\t\tdeath(players.get(i)); // DEATH CONDITION 3.5\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Not run through death because turnIsEnding = true\r\n\t\t\t\t\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\t\t\t\t\tgameOver();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Not last stage so keep going\r\n\t\t\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Advanced room in end sequence\");\r\n\t\t\t\t\t\tgameChannel.sendMessage(\":skull: Only **\"+(43-room)+\"** turn(s) left!\").queueAfter(2000,TimeUnit.MILLISECONDS);\r\n\t\t\t\t\t\t// Increased cube dragon attack\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]+room-39);\r\n\t\t\t\t\t\t// Even if the last player died, should pass and then end game\r\n\t\t\t\t\t\tendTurn();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Not first escapee but also free\r\n\t\t\t\t\tendTurn();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void addPausedPlayer(List<Round> previousRounds, Round round) {\r\n\t\tint pausedPlayerId = playerLogic.calculatePausedPlayerId(round, previousRounds);\r\n\t\tPlayer pausedPlayer = ListUtil.find(round.getPlayers(), pausedPlayerId);\r\n\t\tround.getPausedPlayers().add(pausedPlayer);\r\n\t\tround.getPlayers().remove(pausedPlayer);\r\n\t}",
"public void addPlayer(final Player aPlayer)\r\n\t{\r\n\t\tmPlayer.setX(mStartX * Block.SIZE);\r\n\t\tmPlayer.setY(mStartY * Block.SIZE);\r\n\t\taddEntity(mPlayer);\r\n\t}",
"private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }",
"public void nextPlayer() {\n\t\tif (currentPlayer.equals(vServerThread.get(0))){\n\t\t\tcurrentPlayer=vServerThread.get(1);\n\t\t} else if (currentPlayer.equals(vServerThread.get(1))){\n\t\t\tcurrentPlayer=vServerThread.get(0);\n\t\t}\n\t}",
"void playerAdded();",
"public void addPlayer(Player player, UserGroup userGroup) {\n addPlayer(player, userGroup.getTeamName(), userGroup.getUserGroupPrefix(), null);\n }",
"private void buyPlayer(FootballPlayer player, String playerName, int num) {\n\t\tint valid = game.addPlayer(playerName);\n\t\tif(valid==0) {\n\t\t\tplayerNameArray[num].setText(playerName);\n\t\t\timageArray[num].setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[num].setText(\"X\");\n\t\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \" RGG\");\n\t\t\t\n\t\t} else if (valid==1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You have already selected this player for your team\");\n\t\t} else if (valid==-1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You don´t have enough budget too buy \" + playerName);\n\t\t}\n\t}",
"public void addPlayer(int id, String name) {\n Color[] colors = new Color[]{Color.RED, Color.CYAN, Color.LIME, Color.YELLOW, Color.MAGENTA};\n Player player = new Player(id, colors[playerTracking.size()], name);\n playerTracking.add(player);\n\n onAddPlayer(player);\n }",
"public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }",
"public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }",
"void createNewGame(Player player);",
"public void createPlayers() {\r\n\t\tPlayerList playerlist = new PlayerList();\r\n\t\tPlayer p = new Player();\r\n\t\tfor (int x = 0; x <= players; x++) {\r\n\t\t\tplayerlist.createPlayer(p);\r\n\t\t}\r\n\r\n\t\tScanner nameScanner = new Scanner(System.in);\r\n\r\n\t\tfor (int createdPlayers = 1; createdPlayers < players; createdPlayers++) {\r\n\t\t\tSystem.out.println(\"Enter next player's name:\");\r\n\t\t\tplayerlist.namePlayer(createdPlayers, nameScanner.nextLine());\r\n\t\t}\r\n\t\tnameScanner.close();\r\n\t}",
"public boolean addPlayer(Player player) {\n\t\tif (playerOne == null) {\n\t\t\tplayerOne = player;\n\t\t\tplayerOne.init(gameBoard);\n\t\t\tcurrentPlayer = playerOne;\n\t\t\treturn true;\n\t\t}\n\t\tif (playerOne != null) {\n\t\t\tplayerTwo = player;\n\t\t\tplayerTwo.init(gameBoard);\n\t\t\tnextPlayer = playerTwo;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean addPlayer(Player p) {\n\t\tif(p != null && !squareOccuped()) {\n\t\t\tthis.player = p;\n\t\t\treturn true;\n\t\t} else return false;\n\t}",
"public boolean addPlayer(Player player)\n\t{\n\t\treturn playerList.add(player);\n\t}",
"public static void addPlayer(){\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the player\");\n int player = scanner.nextInt();\n if(player >=2) {\n System.out.println(\"Enter the 2 more than player\");\n cardsPlayer(player);\n }\n\n }",
"public void addPlayerToRandomRoom(Player player) {\n\n randomRoomPlayers.add(player);\n synchronized (this) {\n notify();\n }\n }",
"public int addPlayer(PlayerListener player) {\n\t\tfinal int playerID = this.players.size();\n\n\t\tthis.players.add(new Player(\"Player \" + playerID,\n\t\t\t\tgenerateRandomStartLocation(), player));\n\n\t\tif (this.players.size() == 1) {\n\t\t\tstartNewGame();\n\t\t}\n\n\t\treturn playerID;\n\t}",
"public Player switchPlayer(){\n Player player = getGame().getCurrentPlayer();\n\n List<Card> cards = new ArrayList<>();\n\n for(Card card: getGame().getCards()){\n if(card.rule.isValid(getGame().getDices())){\n cards.add(card);\n }\n }\n\n //get the best card\n if(!cards.isEmpty()){\n Card card = takeTheBestCard(cards);\n\n //add it to the player\n player.getCardsWon().add(card);\n getGame().getCards().remove(card);\n\n System.out.println(player.getName() + \" won \" + card.getExplaination());\n getGame().addAction(new Action(player.getName() + \" won \" + card.getExplaination()));\n }\n\n if(getGame().getCards().isEmpty()){\n game.setStatus(Game.GameStatus.COMPLETED);\n getGame().addAction(new Action(bestPlayer().getName() + \" WON THE GAME!!!\"));\n }\n //turn\n getGame().setCountOfTrialForPlayer(0);\n\n game.setIndexOfCurrentPlayer(game.getIndexOfCurrentPlayer()+1);\n\n if(game.getIndexOfCurrentPlayer() == getGame().getPlayers().size()){\n game.setIndexOfCurrentPlayer(0);\n }\n\n game.setCountOfTrialForPlayer(0);\n game.setDices(new ArrayList<>());\n\n return getGame().getCurrentPlayer();\n }",
"public final void addPlayer(Player player) {\n\n\t\tif (player instanceof CulturePlayer) {\t\t\t\t\t\t\t\t// not too pretty but simple\n\t\t\tif (((CulturePlayer)player).isDissect()) { // instead of the culture player\n\t\t\t\tplayers.addAll(((CulturePlayer)player).getCulture()); // add all masters of the culture\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tplayers.add(player);\n\t}",
"@Override\n public void setWinner(Player winner)\n {\n for(int i = 0; i < gc.getF().size(); i++)\n {\n if(gc.getF().get(i).readyStart() == 0 || gc.getF().get(i).readyStart() == 1)\n {\n gc.getF().get(gc.getF().size() -1).addPlayer(this.winner);\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n return;\n }\n }\n //If there are no available spots, make a new game\n Final f = new Final();\n System.out.println(\"created a new Final!\");\n f.addPlayer(winner);\n //Save winner details\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n \n gc.getF().add(f);\n //Move game to history \n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n \n }",
"private void playNextPlayer() {\n \n PlayerId nextPlayer = state.nextPlayer();\n players.get(nextPlayer).setHelp(state, handsOfCards.get(nextPlayer), nextPlayer);\n Card c = players.get(nextPlayer).cardToPlay(state, handsOfCards.get(nextPlayer));\n state = state.withNewCardPlayed(c);\n \n handsOfCards.put(nextPlayer, handsOfCards.get(nextPlayer).remove(c));\n players.get(nextPlayer).updateHand(handsOfCards.get(nextPlayer));\n \n for (Map.Entry<PlayerId, Player> pId: players.entrySet()) {\n pId.getValue().updateTrick(state.trick());\n }\n players.get(nextPlayer).resetHelp();\n }",
"@Override\r\n\tpublic void addPlayer(String playerName, int balance, int playerNumber) {\r\n\t\tColor[] colors = {Color.BLUE, Color.WHITE, Color.MAGENTA, Color.YELLOW, Color.BLACK, Color.GREEN};\r\n\t\tCar car = new Car.Builder()\r\n\t\t\t\t.primaryColor(colors[playerNumber])\r\n\t\t\t\t.secondaryColor(colors[5-playerNumber]).build();\r\n\t\tGUI.addPlayer(playerName, balance, car);\r\n\t\tGUI.setCar(1, playerName);\r\n\t}",
"public World addPlayer(Player p){\r\n players.add(p);\r\n return this;\r\n }",
"private static void addNewlyArrivedUsersAsPlayers(Match match, boolean hasTheGameStarted) {\n LinkedList<Player> playersInGame = match.getGame().listOfAllPlayersAndDealer_LastPosition();\n LinkedList<User> allUsers = match.getUsers();\n List<User> newUsers = getUsersWhoAreNotRegisteredAsPlayers(playersInGame, allUsers);\n\n for (User newUser : newUsers) {\n Player newPlayer = new Player(newUser);\n match.getGame().preparePlayerForNextRound(newPlayer, hasTheGameStarted);\n match.getGame().addPlayer(newPlayer);\n }\n }",
"public boolean addPlayerItem(PlayerItem playerItem);",
"public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif (gameObj[1].size() == 0)\n\t\t{\n\t\t\tgameObj[1].add(new PlayerShip());\n\t\t\tSystem.out.println(\"PlayerShip added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t}\n\t\t\n\t}",
"public void playerAddedToTeam(ArenaPlayer p, Team t) {\n \t\tif (!t.hasSetName() && t.getPlayers().size() > Defaults.MAX_TEAM_NAME_APPEND){\n \t\t\tt.setDisplayName(TeamUtil.createTeamName(indexOf(t)));\n \t\t}\n \t\tstartTracking(p);\n \t\tarenaInterface.onJoin(p,t);\n \n \t\tPerformTransition.transition(this, MatchState.ONJOIN, p,t, true);\n \t}",
"void newPlayer(String name, String institution){\n Player newPlayer = new Player(name, institution,0);\n boolean x = players.add(newPlayer);\n }",
"public synchronized void addPlayer(PlayerHandler player) {\n\n if (activePlayers < numMaxPlayers) {\n\n players[activePlayers] = player;\n System.out.println(player.getName() + \" added to game as player \" + (activePlayers + 1));\n activePlayers++;\n return;\n }\n\n System.out.println(\"This room (\" + this.toString() + \") is full\");\n }",
"void createPlayer(Player player);",
"public void insertPlayer(Player player, int idTeam) {\n\t\ttry {\n\t\t\tStatement statement = null;\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tjava.sql.Date pDate = new java.sql.Date(player.getDateOfBirth().getTime());\n\t\t\tString insertPlayer_sql = \"INSERT INTO \" + player_table\n\t\t\t\t\t+ \" (id, idTeam, name, lastname, dateOfBirth, height)\" + \"VALUES (NULL, \" + idTeam + \", '\"\n\t\t\t\t\t+ player.getName() + \"' , '\" + player.getLastname() + \"' , '\" + pDate + \"' , '\" + player.getHeight()\n\t\t\t\t\t+ \"')\";\n\t\t\tstatement.executeUpdate(insertPlayer_sql);\n\t\t} catch (SQLException e) {\n\t\t\tif (e.getErrorCode() == MYSQL_DUPLICATE_PK) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\t\t\t\talert.setHeaderText(\"Duplicity Error\");\n\t\t\t\talert.setContentText(\"This player is already in our database\");\n\t\t\t\talert.showAndWait();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void writeNewPlayer(Player player){\n if (gameCodeRef == null){\n throw new IllegalStateException(\"GameRoom is not set\");\n }\n DatabaseReference currentRef = database.getReference(gameCodeRef);\n currentRef.child(\"Players\").child(player.getUsername()).setValue(player.getUsername());\n updateNrPlayerValues(\"NumberOfPlayers\");\n }",
"public void addWinners(int playerIndex) {\n this.winners.add(playerIndex);\n }",
"public void nextTurn()\n\t{\n\t\tthis.actionListToExecute.clear();\n\t\tthis.board.discardLastPlayedCard();\n\t\tthis.getCurrentPlayer().getDataInput().printMessage(this.getCurrentPlayerGameStatus());\n\t\tthis.getCurrentPlayer().execEndOfTurn();\n\t\t\n\t\tint nbPlayerCardPickup = this.getAmountOfPlayerCardToFillYourHand() - this.getCurrentPlayer().getPlayerCardDeck().size();\n\t\tfor(int i = 0; i < nbPlayerCardPickup; i++)\n\t\t{\n\t\t\tthis.getCurrentPlayer().getPlayerCardDeck().addCard(this.getNextPlayerCard());\n\t\t}\n\t\t\n\t\tcurrentPlayerID = (currentPlayerID + 1) % this.getPlayerList().size();\n\t\tif(currentPlayerID == 0)\n\t\t{\n\t\t\tcurrentPlayerID = this.getPlayerList().size();\n\t\t}\n\t\tthis.getCurrentPlayer().execBeginOfTurn();\n\t\tinitBeginOfTurn();\n\t}",
"public void addPlayers(ArrayList<Player> players) {\r\n\t\tthis.players = players;\r\n\t}",
"public void createPlayer() {\n ColorPicker colorPicker = new ColorPicker();\n\n for (Player player : players) {\n if (player.getColor() == color(0, 0, 0) || (player.hasName() == false)) {\n pickColor(player, colorPicker);\n return;\n }\n }\n\n // if (ENABLE_SOUND) {\n // sfx.moveToGame();\n // }\n\n state = GameState.PLAY_GAME;\n\n // Spawn players\n int index = 0;\n for (int i=players.size()-1; i>=0; i--) {\n String dir = directions.get(index); // Need to add players in reverse so that when they respawn, they move in the right direction\n players.get(i).setSpawn(spawns.get(dir)).setDirection(dir);\n index++;\n }\n\n // Update game state only if all players have name and color\n}",
"public boolean addPlayer(int pno){\n\t\t\n\t\t// Gets the coordinates of a non-wall and non-occupied space\n\t\tint[] pos = initiatePlayer(pno);\n\t\t\n\t\t// If a free space could not be found, return false and the client will be force quit\n\t\tif (pos == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Put the player into the HashMaps\n\t\tplayerPosition.put(pno, pos);\n\t\tcollectedGold.put(pno, 0);\n\t\t\n\t\treturn true;\n\t}",
"public void startNewMatch() {\n // Limpia el score de cada jugador y los pone en no listo\n for (Player p : players) {\n p.resetScore();\n p.setReady(false);\n }\n }",
"private void add(String name) {\n try {\n PokemonToEdit pkm = Reader.readPokemon(name);\n team.add(pkm);\n System.out.println(name + \" has been add to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException e) {\n System.out.println(\"Pokemon not found natively\");\n System.out.println(\"Try looking for the pokemon online\");\n try {\n PokemonToEdit pkm = Crawler.loadPokemon(name);\n Saver.savePokemon(pkm);\n team.add(pkm);\n System.out.println(name + \" has been added to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException ex) {\n System.out.println(\"Pokemon not found\");\n } catch (TeamFullException ex) {\n System.out.println(\"Team is full\");\n }\n } catch (TeamFullException e) {\n System.out.println(\"Team is full\");\n\n }\n }",
"public void autoAdd()\n {\n switch (this.getGameType())\n {\n case 1:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(swimmers.get(i).getId(),swimmers.get(i).compete(),swimmers.get(i).getPoints());\n }\n break;\n case 2:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(runners.get(i).getId(),runners.get(i).compete(),runners.get(i).getPoints());\n }\n break;\n case 3:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(cyclists.get(i).getId(),cyclists.get(i).compete(),cyclists.get(i).getPoints());\n }\n break;\n }\n\n }",
"public void addTeam(Team team) {\n int maxTotalTeamsCurrentlyAllowed = getTotalPlayersInLeague();\n\n // If a team has been created\n if(getTeams().size() != 0) {\n\n float greatestPlayerCount;\n // if the number of players on the largest team is not equal to zero\n if((greatestPlayerCount = (float) getTeamWithMostPlayers().getPlayerCount()) != 0) {\n\n // Get the sum of all the players in the league\n float totalLeaguePlayers = (float) getTotalPlayersInLeague();\n\n // divide the total players in league by number of players in largest team, rounded down\n float totalTeamsAllowedFloat = totalLeaguePlayers / greatestPlayerCount;\n\n // cast into double for Math.floor method\n double totalTeamsAllowedDouble = (double) totalTeamsAllowedFloat;\n\n // cast into integer for comparison\n maxTotalTeamsCurrentlyAllowed = (int) Math.floor(totalTeamsAllowedDouble);\n }\n\n }\n\n // If we're requesting to make more teams than the current max allowed, throw exception\n if (getTeams().size() < maxTotalTeamsCurrentlyAllowed) {\n teams.add(team);\n } else {\n throw new IndexOutOfBoundsException(\"Not enough players for a new team\");\n }\n\n }",
"public synchronized void AddPlayerToGame(String playerName, String IPAddress, Integer portAddress) {\n inGamePlayers.add(playerName);\n inGamePlayersIP.add(IPAddress);\n inGamePlayersPort.add(portAddress);\n }",
"private void switchPlayer() {\n Player player;\n playerManager.switchPlayer();\n\n if(playerManager.getCurrentPlayer() == 1)\n player = playerManager.getPlayer(1);\n else if(playerManager.getCurrentPlayer() == 2)\n player = playerManager.getPlayer(2);\n else\n player = new Player(\"No Player exists\");\n\n updateLiveComment(\"Turn : \" + player.getName());\n }",
"void addMyTeam(Team team) throws HasTeamAlreadyException;",
"private Player nextPlayer() {\n Player next = players.get(nextPlayerIdx++);\n nextPlayerIdx %= players.size(); \n \n return next;\n }",
"public void GameStart()\n\t\t{\n\t\t\tplayers_in_game++;\n\t\t}",
"@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}",
"void addMove(Move userChoice) {\n moves.add(userChoice);\n }",
"public void addPlayer(String name, double attackStat, double blockStat){\n players.add(new Player(name, attackStat, blockStat));\n }",
"public boolean addPlayer(final Player player)\n {\n if (player == null || !player.isOnline()) {\n return false;\n }\n\n String playerName = player.getName().toLowerCase();\n\n if (!listeners.containsKey(playerName)) {\n listeners.put(playerName, player);\n\n player.setScoreboard(board);\n\n return true;\n }\n\n return false;\n }"
] |
[
"0.7390876",
"0.722771",
"0.7161743",
"0.7093475",
"0.6935754",
"0.6910038",
"0.69004446",
"0.6897781",
"0.68941325",
"0.68729013",
"0.68640214",
"0.68612033",
"0.68597937",
"0.68578154",
"0.6809944",
"0.6793767",
"0.67816865",
"0.6778458",
"0.6765812",
"0.6748616",
"0.6737366",
"0.6717545",
"0.67122024",
"0.6699551",
"0.6698539",
"0.66176224",
"0.66037625",
"0.6602947",
"0.6591064",
"0.6571451",
"0.6556181",
"0.65509415",
"0.65292996",
"0.6482149",
"0.6466186",
"0.6465665",
"0.64637685",
"0.6455475",
"0.6438328",
"0.6434093",
"0.64334303",
"0.63836175",
"0.6373953",
"0.6371152",
"0.63540936",
"0.6345388",
"0.6339292",
"0.6336427",
"0.6329839",
"0.63062876",
"0.62972796",
"0.6290889",
"0.6284934",
"0.6277946",
"0.6236872",
"0.6234514",
"0.62277514",
"0.6217451",
"0.6215204",
"0.6206622",
"0.6204037",
"0.61979276",
"0.6184304",
"0.61659765",
"0.61659205",
"0.6159558",
"0.6155877",
"0.61517924",
"0.614709",
"0.61419284",
"0.6141025",
"0.6137223",
"0.61316836",
"0.61309236",
"0.613041",
"0.6109766",
"0.6103606",
"0.6098152",
"0.6096402",
"0.60940003",
"0.6083246",
"0.6069155",
"0.6060943",
"0.6047405",
"0.6046493",
"0.6035911",
"0.60299635",
"0.60245675",
"0.60181814",
"0.60167336",
"0.6015606",
"0.6009597",
"0.6009044",
"0.6006554",
"0.6005261",
"0.5995918",
"0.5995697",
"0.5984725",
"0.5982195",
"0.59800607"
] |
0.6122476
|
75
|
Removes a player from the team the user is selecting for the next round
|
public void removePlayer(String name) {
User user = users.get(userTurn);
FootballPlayer player = market.findPlayer(name);
double marketValue = player.getMarketValue();
if (tmpTeam.size() > 0) {
user.updateBudget(marketValue, "+");
tmpTeam.removePlayer(name);
}
System.out.println("budget after sell" + user.getBudget());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void removePlayer(Player player) {\n String entry = player.getName();\n Team currentTeam = null;\n\n // Find player team.\n for (Team team : scoreboard.getTeams()) if (team.hasEntry(entry)) currentTeam = team;\n\n // If no team is found, do not continue.\n if (currentTeam == null) return;\n\n // Remove player from the team.\n currentTeam.removeEntry(entry);\n\n ////////////////////////////////////////////////\n // Begin checking to see if we can remove this\n // team from the scoreboard.\n ////////////////////////////////////////////////\n\n // Check if the team has players.\n if (currentTeam.getSize() >= 1) return;\n\n // Check if the team is a default preset.\n for (UserGroup userGroup : UserGroup.values()) {\n if (userGroup.getTeamName().equals(currentTeam.getName())) return;\n }\n\n // If the team has no players and is not a default\n // preset, then lets remove the team from the\n // scoreboard.\n removeTeam(currentTeam.getName());\n }",
"@Override\n public void removePlayer(Player player){\n this.steadyPlayers.remove(player);\n }",
"private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }",
"private void removePlayerFromTheGame(){\n ServerConnection toRemove = currClient;\n\n currClient.send(\"You have been removed from the match!\");\n updateCurrClient();\n server.removePlayerFromMatch(gameID, toRemove);\n\n if ( toRemove == client1 ){\n this.client1 = null;\n }\n else if ( toRemove == client2 ){\n this.client2 = null;\n }\n else {\n client3 = null;\n }\n gameMessage.notify(gameMessage);\n\n if ( (client1 == null && client2 == null) || (client2 == null && client3 == null) || (client1 == null && client3 == null) ){\n gameMessage.notify(gameMessage);\n }\n if ( liteGame.isWinner() ) endOfTheGame = true;\n playerRemoved = true;\n }",
"void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}",
"public void removePlayer(Player player){\n playerList.remove(player);\n }",
"boolean removePlayer(String player);",
"public void removePlayer(Player player){\n for(int x = 0; x < players.size(); x++){\n if(players.get(x) == player){\n players.remove(x);\n }\n }\n }",
"public void removePlayer(int place) {\r\n\t\tplayers.remove(place);\r\n\t}",
"void remove(Team team);",
"private void eliminatePlayer(Player loser){\n players.remove(loser);\n }",
"public void removePlayer(Player outPlayer) {\n\t\tgetPlayersInRoom().remove(outPlayer);\n\n\t}",
"public void removePlayer(String p) {\n this.playersNames.remove(p);\n }",
"public void cmdRemovePlayer(User teller, Player player) {\n boolean removed = tournamentService.removePlayer(player);\n tournamentService.flush();\n if (!removed) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", player);\n } else {\n command.tell(teller, \"Done. Player {0} is no longer in the tournament.\", player);\n }\n }",
"private void eliminatePlayers() {\n \n Iterator<Player> iter = players.iterator();\n\n while (iter.hasNext()) {\n Player player = iter.next();\n\n if (player.getList().isEmpty()) {\n iter.remove();\n if (player.getIsHuman()) {\n setGameState(GameState.HUMAN_OUT);\n }\n // need to remember that due to successive draws, the active player could run\n // out of cards\n // select a new random player if player gets eliminated\n if (!players.contains(activePlayer)) {\n selectRandomPlayer();\n }\n }\n }\n }",
"public void remove(Player player) {\n\t\tgetPlayers().remove(player);\n\t\tif (getPlayers().size() < 2) {\n\n\t\t}\n\t}",
"public void removeFromGame(){\n this.isInGame = false;\n }",
"public void removePlayer(String name) {\n for (Player player : players) {\n if (player.getName() != null && player.getName().equals(name)) {\n player.setState(false);\n for (Piece piece : player.getPieces()) {\n piece.setPosition(0);\n }\n\n // PLAYERLISTENER : Trigger playerEvent for player that LEFTGAME\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, player.getColour(), PlayerEvent.LEFTGAME);\n listener.playerStateChanged(event);\n }\n\n if (player.getName().equals(players.get(activePlayer).getName())) {\n this.setNextActivePlayer();\n }\n }\n }\n }",
"public void removePlayer(String name) {\n\t\tcreateGameLobbyController.removePlayerFromList(name);\n\t}",
"public synchronized void delPlayer(@NotNull PlayerInterface player) {\n\n for(BoardCell boardCell[] : board.getGrid()) {\n for(BoardCell b : boardCell) {\n if(b.getWorker() != null) {\n if(b.getWorker().getPlayerWorker().getNickname().equals(player.getNickname())) {\n b.setWorker(null);\n }\n }\n }\n }\n player.getWorkerRef().clear();\n for (int i = 0; i < onlinePlayers.size(); i++) {\n if(onlinePlayers.get(i).getNickname().equals(player.getNickname())) {\n if(started) {\n stateList.remove(i);\n onlinePlayers.remove(i);\n nickNames.remove(player.getNickname());\n }\n break;\n }\n }\n }",
"public void removePlayer(String name) {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getName().equals(name)) {\n\t\t\t\toccupiedPositions.remove(p.getPosition());\n\t\t\t\tif(p.getType() == Player.PlayerType.Agent) {\n\t\t\t\t\treAssignRobots(p);\n\t\t\t\t\tthis.agents -= 1;\n\t\t\t\t}\n\t\t\t\tplayerList.remove(p);\n\t\t\t}\n\t\t}\n\t\tserver.broadcastToClient(name, SendSetting.RemovePlayer, null, null);\n\t\tserver.updateGameplane();\n\t}",
"public void removePlayerFromTable(Player player){\n\t\tgamePlayers.remove(player);\n\t}",
"private void deleteFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 1); // Set remove mode\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"public void removePlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.managedPosX >> 4;\r\n int var3 = (int)player.managedPosZ >> 4;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n PlayerManager.PlayerInstance var6 = this.getPlayerInstance(var4, var5, false);\r\n\r\n if (var6 != null)\r\n {\r\n var6.removePlayer(player);\r\n }\r\n }\r\n }\r\n\r\n this.players.remove(player);\r\n }",
"public void removePlayer(Player player) {\r\n players.remove(player);\r\n player.damage(Double.MAX_VALUE);\r\n }",
"public String removePlayer(int pno){\n\t\tplayerPosition.remove(pno);\n\t\tcollectedGold.remove(pno);\n\t\treturn \"You have left the game!\";\n\t}",
"public void endsGameAndSetsWinner(Player player) {\n this.winner = player.getId(); \n this.gameStarted = false; \n \n }",
"public void removePlayer(Player player) {\n\n\t\tplayers.remove(player);\n\t}",
"public void cmdRemoveTeam(User teller, Team team) {\n int playerCount = tournamentService.removeTeam(team);\n tournamentService.flush();\n if (playerCount < 0) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", team);\n } else {\n command.tell(teller, \"Done. Team {0} is no longer in the tournament.\", team.getTeamCode());\n command.tell(teller, \"{0} players were also removed.\", playerCount);\n }\n }",
"public void removePlayer(int index) {\n trickPoints.remove(index);\n gamePoints.remove(index);\n lives.remove(index);\n }",
"@Test\n public void testremovePlayer() {\n session.removePlayer(playerRemco);\n // There already was 1 player, so now there should be 0\n assertEquals(0, session.getPlayers().size());\n }",
"public Player removePlayer() {\n\t\tPlayer toReturn = this.player;\n\t\tthis.player = null;\n\t\treturn toReturn;\n\t}",
"public void removeTeam(Team t) {\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n while (itr.hasNext()) {\r\n //Match to be removed\r\n if (itr.next().containsTeam(t)) {\r\n itr.remove();\r\n }\r\n }\r\n \r\n //Decremente the number of teams left\r\n Team.nbTeam--;\r\n }",
"public void removePlayerFromCurrentLobby(LobbyPlayer player) {\n DocumentReference doc = Firebase.docRefFromPath(\"lobbies/\" + player.getLobbyCode());\n doc.update(FieldPath.of(\"players\", player.getUsername()), FieldValue.delete());\n removeListener();\n GameService.removeListener();\n cache = null;\n }",
"public void removePlayerDuringGame(String playerName) {\n for (Player player : players) {\n if (player.getName().equals(playerName)) {\n players.remove(player);\n }\n }\n }",
"public void eliminatePlayer(Character player){\r\n\t\tplayer.setAsPlayer(false);\r\n\t\tSystem.err.println(player.getName() + \" was eliminated\");\r\n\t}",
"public static void dropPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Drop Player---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\ttheTeam.teamToStringNum();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\" 0 - Return to Team Menu\");\r\n\t\tSystem.out.println(\"1-\" + theTeam.getRoster().size() + \" - Select a player to be dropped\");\r\n\t\tint dropChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard);\r\n\t\tif (dropChoice == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tPlayer thePlayer = theTeam.getTeamPlayer(dropChoice - 1);\r\n\r\n\t\tthePlayer.setFreeAgent();\r\n\t\ttheLeague.playerList().set(thePlayer.getId(), thePlayer);\r\n\t\ttheTeam.getRoster().remove(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***You have dropped \" + thePlayer.playerToString() + \"***\");\r\n\t}",
"@Test\n\tpublic void validRemovePlayer_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tgameState.addPlayer(0, \"Ben\", Color.RED);\n\t\tgameState.removePlayer(0);\n\t\tassertNull(gameState.getPlayer(0));\n\t}",
"public void removeFromQueue(Player player) {\n }",
"public void removePlayer(int a_playerNum)\n {\n //get the player to be removed\n Player playerRemoved = m_currentPlayers.get(a_playerNum - 1);\n //increment the number bankrupt players and set the removed player bankrupt\n m_numOfBankruptPlayers++;\n playerRemoved.setBankrupt();\n //mark the player removed and add it to the finished players list\n m_currentPlayers.set(a_playerNum - 1, playerRemoved);\n m_finishedPlayers.add(playerRemoved);\n }",
"public void RemovePlayer(int game_number, String user)\n\t{\n\t\tgametype[game_number].PlayerLeavesGame(user);\n\t}",
"private void endTurn() {\n currentTurn = getNextPlayer();\n }",
"public void removePlayer(Player plr){\r\n\t\t\r\n\t\tlobby.removePlayerFromLobby(plr);\r\n\t\tlobby.updateNames();\r\n\t\tsendNameInfoToAll();\r\n\t\tremoveConnection(plr);\r\n\t}",
"public void removePlayer(String color){\n this.getPlayer(color).setActive(false);\n removeXPlayers(this.getPlayer(color).getPIndex());\n turn = this.xPlayers.indexOf(currentPlayer);\n }",
"public void remove(Player p) {\r\n\t\tAsyncCatcher.enabled = false;\r\n\t\tsboard.remove(p.getUniqueId());\r\n\t\tp.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard());\r\n\t\tAsyncCatcher.enabled = true;\r\n\t}",
"private void discardPlayer(Player p)\n {\n locations.remove(p);\n plugin.getAM().arenaMap.remove(p);\n clearPlayer(p);\n }",
"public static void kickPlayer(){\n\t\t// remove player\n\t\tplayers.get(curr).kick();\n\t\t// decrement number of players\n\t\tnumPlayers--;\n\t\t// update players on the board\n\t\tboard.updatePlayers(players);\n\t\tSystem.out.println(\"Kicked \"+players.get(curr).getColorName()+\" player.\");\n\t}",
"CratePrize removeEditingUser(Player player);",
"public void removePlayer(Player player)\n {\n if (player == null) {\n return;\n }\n\n removePlayer(player.getName());\n }",
"public void deleteOrLeaveTeam(MouseEvent mouseEvent) {\n if(getUsernameOfOrganizer().compareTo(teamViewController.getUsernameOfCurrentUser())==0){\n\n try {\n boolean outcome = Update.removeTeam(team.getId());\n if (outcome == true)\n teamViewController.deleteTeamUI(this);\n }catch (DiscoveryException | ServiceUnavailableException s){\n teamViewController.destroy();\n teamViewController.showPopUpOfExplorationMode();\n\n }catch (Exception n) {\n teamViewController.showPopUp(\"There was a problem. Impossible to remove team\");\n }\n\n }else { //if i'm not the organizer just leave team\n\n MemberController me = null;\n for(int i=0; i<membersController.size(); i++) {\n if (membersController.get(i).getUsername().compareTo(getUsernameOfCurrentUser()) == 0) {\n me = membersController.get(i);\n }\n\n }\n //remove from database (blocking UI)\n try {\n boolean outcome = Update.removeMemberFromTeam(getUsernameOfCurrentUser(), getIdTeam());\n\n //since the username is unique we can scroll all the boxMembers until we find a child whose username is the same of this\n if (outcome == true) {\n removeMemberController(me);\n removeMemberFromTeam(getUsernameOfCurrentUser());\n //update UI\n teamViewController.deleteTeamUI(this);\n }\n }catch (DiscoveryException | ServiceUnavailableException s){\n teamViewController.destroy();\n teamViewController.showPopUpOfExplorationMode();\n\n }catch (Exception n) {\n teamViewController.showPopUp(\"There was a problem. Impossible to leave team.\");\n }\n\n }\n }",
"public void removePlayer(UUID id) {\r\n for (Iterator<Player> plIterator = players.iterator(); plIterator.hasNext(); ) {\r\n Player player = plIterator.next();\r\n if (player.getId().equals(id)) {\r\n plIterator.remove();\r\n ((DefaultListModel) playerListGui.getModel()).removeElement(player);\r\n }\r\n }\r\n }",
"public void removePlayer(int playerID) {\n\t\tthis.players.get(playerID).setLocation(null);//removes the player from the map\n\t\tthis.players.get(playerID).kill();\n\t\t\t\n\t\t\n\n\t\tif (this.currentPlayer == playerID) {\n\t\t\t// Advance turn to handle death on player's turn\n\t\t\tadvanceTurn(playerID);\n\t\t}\n\t}",
"public void delPlayer(final Integer user_id) {\n if (Objects.equals(user_id, current_id)) {\n playersOnGame.clear();\n\n }\n else {\n // Search and remove a player from list\n for ( Player p : playersOnGame) {\n if (p.getUserId() == user_id) {\n playersOnGame.remove(p);\n break;\n }\n }\n }\n\n // Check if the current client is deleted\n if (Objects.equals(user_id, current_id)) {\n playerListLay.removeAllViews();\n playerCards.clear();\n Log.v(\"Del\", String.valueOf(user_id));\n }\n else {\n // Search and remove a player from list\n for (LinearLayout lay : playerCards) {\n if (lay.getTag() == user_id) {\n playerListLay.removeView(lay);\n playerCards.remove(lay);\n break;\n }\n }\n }\n\n // Update number of players\n playerNum.setText(String.valueOf(playersOnGame.size()));\n }",
"void killPlayerByPlayerMove()\n {\n movePlayerToCell(getMonsterCell());\n }",
"public void killPlayer() {\n \tdungeon.removeentity(getX(), getY(), name);\n \t\tdungeon.deleteentity(getX(),getY(),name);\n \t\t//System.out.println(\"YOU LOSE MAMA\");\n \t\t//System.exit(0);\n \t\t\n }",
"public void kickOut(){\n Iterator<Player> iter = players.iterator();\n while (iter.hasNext()){\n Player player = iter.next();\n if(player.isBankrupt(minBet)){\n iter.remove();\n System.out.println(player + \" runs out of cash!\");\n }\n }\n }",
"private void remove(String name) {\n if (team.getPokemon(name) != null) {\n System.out.println(\"You are going to remove \" + name);\n System.out.println(\"This process is inrevertable, are you sure? [y/n]\");\n String command = input.next();\n if (command.equals(\"y\") || command.equals(\"yes\")) {\n team.remove(name);\n System.out.println(name + \" has been removed form your team\");\n System.out.println(\"You currently have \" + team.count() + \" pokemons in your team\");\n }\n } else {\n System.out.println(name + \" is not found within your team\");\n }\n }",
"public abstract BossBar removePlayer(UUID uuid);",
"public void removePlayer(int id) {\n\n Jogador j = this.listaJogadores.get(id);\n\n if(bankruptcy && j.temPropriedades() && j.isBankruptcy()){\n //System.out.println(\"vez: \" + vez + \"id: \" + id );\n jogoInterrompidoEm = vez = voltaVez(vez);\n j.addComandoGiveUp();\n j.removeComandoRoll();\n j.setBankruptcy(true);\n vez = voltaVez(id);\n if(build)\n j.removerComandoBuild();\n }else{\n falirJogador(id);\n }\n\n }",
"void skipNextPlayer() {\n endTurn();\n }",
"@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\n public void onPlayerQuit(PlayerQuitEvent event)\n {\n Player player = event.getPlayer();\n EMIPlayer playerToRemove = new EMIPlayer();\n for (EMIPlayer ep : RP.getOnlinePlayers())\n {\n if(ep.getUniqueId().equals(player.getUniqueId().toString()))\n playerToRemove = ep;\n }\n RP.getOnlinePlayers().remove(playerToRemove);\n }",
"private void sellPlayer(int num) {\n\t\tString playerName = playerNameArray[num].getText();\n\t\tgame.removePlayer(playerName);\n\t\tplayerNameArray[num].setText(\"\");\n\t\timageArray[num].setIcon(MainGui.getShirt(\"noTeam\"));\n\t\tbuttonArray[num].setText(\"+\");\n\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \"kr\");\n\t}",
"void clean(Player p);",
"public void removePlayer(GamePlayer player) {\n\t\tplayer.setCurrentGame(null);\n\t\tplayer.setJoinLocation(null);\n\t\tif (monster != null && monster.equals(player))\n\t\t\tmonster = null;\n\t\tplayers.remove(player);\n\t}",
"@Override\n public void removePlayer(String nickname) throws IOException {\n try {\n String sql = \"DELETE FROM sep2database.player WHERE nickname =?;\";\n db.update(sql, nickname);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void removePlayer(int playerObjId)\n\t{\n\t\t_floodClient.remove(playerObjId);\n\t}",
"void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }",
"public void removePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].removeOccupant(user);\r\n\t}",
"void resetMyTeam(Team team);",
"@Override\n\tpublic void deletePlayer(Joueur joueur) {\n\t\t\n\t}",
"public void erasePlayer(Player player) {\n if(player.equals(occupant)) {\n // System.out.println(\"killedToo\");\n revertBlock(player);\n getAdjacent(GameEngine.UP).erasePlayer(player);\n getAdjacent(GameEngine.DOWN).erasePlayer(player);\n getAdjacent(GameEngine.LEFT).erasePlayer(player);\n getAdjacent(GameEngine.RIGHT).erasePlayer(player);\n }\n }",
"private void deletePlayer(Player p) \r\n\t{\n\t\tlogger.info(\"Deleting player ; '\" + p.getName() +\"'\");\r\n\t\tplayerDao.remove(p);\r\n\t}",
"private void removeGuess() {\n\t\tguessList[this.getLastPlayIndex()] = null;\n\t\tif (this.getLastPlayIndex() > 0)\n\t\t\tlastMoveID--;\n\t}",
"public void unregisterPlayer(final Player p) {\n\t\ttry {\n\t\n\t\n\t\tserver.getLoginConnector().getActionSender().playerLogout(p.getUsernameHash());\n\n\t\t\n\t\tp.setLoggedIn(false);\n\t\tp.resetAll();\n\t\tp.save();\n\t\tMob opponent = p.getOpponent();\n\t\tif (opponent != null) {\n\t\t\tp.resetCombat(CombatState.ERROR);\n\t\t\topponent.resetCombat(CombatState.ERROR);\n\t\t}\n\t\t\n\t\tdelayedEventHandler.removePlayersEvents(p);\n\t\tplayers.remove(p);\n\t\tsetLocation(p, p.getLocation(), null);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"void resetMyTeam();",
"@Override\n public void unsuspendPlayer(String username) {\n if (match != null && username != null) {\n match.unsuspendPlayer(username);\n }\n }",
"List<Player> quit(Player player);",
"default boolean removePlayer(Player player) {\n return removePlayer(Objects.requireNonNull(player, \"player\").getName());\n }",
"@Test\n\tpublic void invalidRemovePlayer_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tassertFalse(gameState.removePlayer(-1));\n\t}",
"public void removePlayer(Nimsys nimSys,ArrayList<Player> list,Scanner keyboard) {\r\n\t\tboolean flag = false;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\t\r\n\t\tif(nimSys.commands.length==1){\r\n\t\t\tSystem.out.println(\"Are you sure you want to remove all players? (y/n)\");\r\n\t\t\tString next = keyboard.next();\r\n\t\t\tkeyboard.nextLine();\r\n\t\t\tif(next.equals(\"y\"))\r\n\t\t\t\tlist.clear();\t\r\n\t\t}\r\n\t\t\t\r\n\t\telse{\r\n\t\t\twhile (aa.hasNext()) {\r\n\t\t\t\tPlayer in = aa.next();\r\n\t\t\t\tif(in.getUserName().equals(nimSys.commands[1])){\r\n\t\t\t\t\tlist.remove(in);\r\n\t\t\t\t\tflag = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(flag == false)\r\n\t\t\t\tSystem.out.println(\"The player does not exist.\");\r\n\t\t}\r\n\t\t\r\n\t}",
"@EventHandler\n public void onPlayerQuitEvent(PlayerQuitEvent e)\n {\n String playerName = e.getPlayer().getName();\n \n this.afkPlayers.remove(playerName);\n this.afkPlayersAuto.remove(playerName);\n this.afkLastSeen.remove(playerName);\n }",
"public synchronized void RemovePlayerToGame(String playerName, String IPAddress, Integer portAddress) {\n inGamePlayers.remove(playerName);\n inGamePlayersIP.remove(IPAddress);\n inGamePlayersPort.remove(portAddress);\n }",
"private void removeTeam(String teamName) {\n getTeam(teamName).unregister();\n }",
"public void removePlayer(String player)\n {\n if (listeners.containsKey(player.toLowerCase())) {\n listeners.remove(player.toLowerCase());\n }\n }",
"private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }",
"public void killPlayer(){\n setInPlay(false);\n setDx(0.0f);\n setDy(0.04f);\n }",
"public void playerLogout(Player player)\n {\n PlayerAFKModel playerAFKModel = players.get(player.getUniqueId());\n\n // Check if player is AFK\n if( playerAFKModel.isAFK() )\n {\n // Is AFK. Update AFK timer before removal\n playerAFKModel.updateAFKTimer();\n playerAFKModel.markAsNotAFK();\n }\n players.remove(player.getUniqueId());\n }",
"public void removePlayerFromPlayerListForPlayerName(String playerName) {\n\n for (Player P : fliegeScore.getPlayers()) {\n if (P.getPlayerName().compareTo(playerName) == 0) {\n fliegeScore.getPlayers().remove(P);\n }\n }\n\n }",
"public void RmPlayer(int j){\n\t\tint i;\n\t\tfor(i=j;i<player_num-1;i++){\n\t\t\tplayers[i][0] = i;\n\t\t\tplayers[i][1] = players[i+1][1];\n\t\t\tplayers[i][2] = players[i+1][2];\n\t\t\tarrow_num[i] = arrow_num[i+1];\n\t\t}\n\t\tplayer_num --;\n\t\t\n\t}",
"public void removePlayerPkmnInfoBox()\r\n {\r\n removeObject(playerPkmnInfoBox);\r\n }",
"public void removeUnit(){\r\n tacUnit = null;\r\n }",
"@Override\r\n\tpublic void delete(Player t) {\n\r\n\t}",
"@EventHandler(priority = EventPriority.MONITOR)\n public void PlayerQuit(PlayerQuitEvent e){\n plugin.playerIslands.remove(e.getPlayer().getName());\n }",
"public void remove(String playerId) {\n\t Player player = this.getPlayer(playerId);\n\t LOG.info(\"Removing player\" + player);\n\t\t// Step 2 delete it.\n\t\t// Remove it from players in DB\n\t this.playersInDB.remove(player);\n\t}",
"public void stopShowing(Player player){\n\t\tFeatherBoardAPI.removeScoreboardOverride(player,\"build-battle-game\");\n\t}",
"public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 30, 1));\n\t\tplayer.stopSound(Sound.MUSIC_DISC_CHIRP);\n\t\tcleanTasks();\n\t\tactiveScenarios.remove(player.getUniqueId());\n\t}",
"public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }",
"public void removeMember(Player player) {\n this.members.remove(player.getUniqueId().toString());\n }",
"public Character pickPlayer()\n {\n System.out.println(\"\\tChoose your fighter!\\n\");\n for(int i = 0; i < characterList.size(); i++)\n {\n Character chara = characterList.get(i);\n System.out.println(\"\\t\" + (i + 1) + \") \" + chara.getFullName());\n }\n System.out.print(\"\\n>>> \");\n player = characterList.get(keyboard.nextInt() - 1);\n characterList.remove(player);\n return player;\n }",
"public void remove()\n {\n domain.removeParticipant(participant);\n }"
] |
[
"0.7613248",
"0.7557517",
"0.7515374",
"0.74278015",
"0.7349823",
"0.7323965",
"0.7294236",
"0.71741635",
"0.7143327",
"0.7135664",
"0.7103452",
"0.7040611",
"0.7029558",
"0.6992621",
"0.69763035",
"0.6944548",
"0.69368064",
"0.69334394",
"0.6895826",
"0.6879446",
"0.6852491",
"0.6787088",
"0.6771597",
"0.67541224",
"0.67486453",
"0.67432976",
"0.6740311",
"0.67395324",
"0.6703392",
"0.66722345",
"0.6651589",
"0.66284305",
"0.66073513",
"0.6605075",
"0.65880543",
"0.65873665",
"0.6581387",
"0.65641755",
"0.65599424",
"0.6510633",
"0.6509006",
"0.6502217",
"0.6494939",
"0.64799917",
"0.64699054",
"0.6461894",
"0.6454051",
"0.6445575",
"0.6443116",
"0.6434035",
"0.6409623",
"0.6408264",
"0.6402937",
"0.6396655",
"0.6390775",
"0.63905597",
"0.63817865",
"0.6379737",
"0.63765985",
"0.63352644",
"0.6332102",
"0.6330193",
"0.631019",
"0.6309683",
"0.6305072",
"0.6300549",
"0.6272734",
"0.6262655",
"0.62566763",
"0.6242781",
"0.62356454",
"0.6224511",
"0.62232596",
"0.6211148",
"0.62019056",
"0.61953056",
"0.61915165",
"0.6183919",
"0.6170234",
"0.6165794",
"0.6161237",
"0.6130828",
"0.612131",
"0.6115668",
"0.6110736",
"0.61070824",
"0.6106592",
"0.6106092",
"0.610571",
"0.6100717",
"0.6090008",
"0.60835874",
"0.6072808",
"0.6055654",
"0.6045281",
"0.60441804",
"0.60408807",
"0.6039373",
"0.6036791",
"0.60322815"
] |
0.7064491
|
11
|
Returns all the users
|
public List<User> getUsers() {
return users;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List getAllUsers();",
"public List<User> getAllUsers();",
"public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }",
"public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }",
"public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}",
"@Override\n\tpublic List<User> getAllUsers() {\n\t\tlog.info(\"get all users!\");\n\t\treturn userRepository.findAll();\n\t}",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}",
"@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}",
"public void getAllUsers() {\n\t\t\n\t}",
"public List<User> getAll() {\n\t\treturn service.getAll();\n\t}",
"public List<User> getAllUsers() {\n return users;\n }",
"@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}",
"public static List<User> getAllUsers(){\n\t\t// getting all users\n\t\treturn dao.getAllUsers();\n\t}",
"@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}",
"@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}",
"Iterable<User> getAllUsers();",
"public List<User> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}",
"@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<User> getAllUsers() {\n\t\t// This returns a JSON or XML with the users\n\t\treturn userRepository.findAll();\n\t}",
"@GetMapping(\"/users\")\n\tpublic List<User> retrieveAllUsers() {\n\t\treturn userService.findAll();\n\t}",
"public List<User> getAllUsers(){\n return userRepository.findAll();\n }",
"public ArrayList<User> getAllUsers() {\n return profile.getAllUsers();\n }",
"@Override\r\n\tpublic List<User> findAllUsers() {\n\t\treturn userDAO.findAllUsers();\r\n\t}",
"@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}",
"@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}",
"@Override\n\tpublic ArrayList<User> getAll() {\n\t\treturn this.users;\n\t}",
"@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}",
"@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}",
"public List<User> getAll() {\n\t\treturn null;\n\t}",
"@GetMapping\n public List<User> getAllUsers() {\n return userService.getAllUsers();\n }",
"@Override\n\tpublic ArrayList<User> findAll() {\n\t\t\n\t\treturn userDao.querydAll();\n\t}",
"public static List<User> all() \n {\n return find.all();\n }",
"public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}",
"public ArrayList<User> getAllUsers() {\n return allUsers;\n }",
"@Override\n public List<User> getAllUsers() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n List<User> hiberusers =\n session.createQuery(\"From User\").list();\n tx.commit();\n session.close();\n return hiberusers;\n }",
"@GetMapping(path = \"/all\")\n public @ResponseBody\n Iterable<User> getAllUsers() {\n LOG.info(\"Displays all the users from the database\");\n return userRepository.findAll();\n }",
"public List<User> retrieveAllUsers() {\n\t\treturn (List<User>) userRepository.findAll();\n\t}",
"public List<User> getAllUsers() {\n\t\tLog.i(TAG, \"return all users list.\");\n\t\tList<User> result = new ArrayList<User>();\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getUsers = \"select * from \" + TABLE_USER;\n\t\tCursor cursor = db.rawQuery(getUsers, null);\n\t\tfor (cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()) {\n\t\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\t\tresult.add(user);\n\t\t}\n\t\treturn result;\n\t}",
"public List<User> getAllUsers() {\n\t\tTypedQuery<User> query = em.createNamedQuery(\"User.findAll\", User.class);\n\n\t\tList<User> result = query.getResultList();\n\t\tlog(\"got all users, result size: \" + result.size());\n\t\treturn result;\n\t}",
"public List<User> getAllUsers() {\n List<User> users = null;\n Session session = null;\n try {\n session = openSession();\n users = session.createCriteria(User.class).list();\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return users;\n }",
"public List<User> getAllUsers() {\n\t\treturn userDao.getAllUsers();\n\t}",
"public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}",
"public List<User> selectAllUser() {\n\t\treturn userMapper.selectAllUser();\n\t}",
"@Override\n\tpublic List<User> findAll() {\n\t\treturn this.userMapper.findAll();\n\t}",
"@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }",
"@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}",
"public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}",
"@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }",
"public Collection<User> getAllUser() {\n\t\treturn this.userDao.getUsers();\r\n\t}",
"List<User> getUsers();",
"List<User> getUsers();",
"@Override\n\tpublic List<ERS_USERS> getAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<User> findAllUser() {\n\t\treturn mapper.findAllUser();\n\t}",
"public List<User> getAllUser() {\n\t\treturn null;\r\n\t}",
"public ArrayList<IndividualUser> listAllUsers() {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName FROM Users \");\n s.execute();\n ResultSet results = s.getResultSet();\n ArrayList<IndividualUser> users = new ArrayList<>();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return users;\n }\n\n while (!results.isLast()) {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4));\n\n users.add(u);\n\n }\n\n results.close();\n s.close();\n\n return users;\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }",
"@Override\r\n\tpublic List<Map<String, Object>> findAllUser() {\n\t\treturn userMapper.findAllUser();\r\n\t}",
"public List<User> getAllUsers() {\n\t\tfactory = new Configuration().configure().buildSessionFactory();\n\t\tsession = factory.getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from User\");\n\t\tList<User> list = query.getResultList();\n\t\tsession.close();\n\t\treturn list;\n\n\t\t\n\t}",
"@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<User> getAllUser() {\n\t\treturn userMapper.getAllUser();\n\t}",
"@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}",
"@Override\n\tpublic List<UserEntity> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}",
"List<KingdomUser> getAllUsers();",
"public ArrayList<String> getAllUsers() {\n\t\tSystem.out.println(\"Looking up all users...\");\n\t\treturn new ArrayList<String>(users.keySet());\t\n\t}",
"@Override\n\tpublic Iterable<User> getAllUser() {\n\t\treturn userRepository.findAll();\n\t}",
"@Override\n public ObservableList<User> getAllUsers() {\n return controller.getAllUsers();\n }",
"@Override\n\tpublic List<User> getUsers() {\n\t\treturn mongoTemplate.findAll(User.class);\n\t}",
"@Override\n\tpublic List All() {\n\t\treturn new userDaoImpl().All();\n\t}",
"@GetMapping\n public List<User> getAll() {\n return userService.getAll();\n }",
"public List<User> getAllUsers() {\n\t\treturn null;\n\t}",
"public List<User> findAll() {\n return userRepository.findAll();\n }",
"public synchronized List<User> getAllUsers() {\r\n\t\treturn new ArrayList<User>(mapping.values());\r\n\t}",
"public List<User> findAll() \n\t{\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORE.USERS\";\n\t\t\n\t\t// Instantiate a new list of Users.\n\t\tList<User> userList = new ArrayList<User>();\n\t\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\tuserList.add(new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\")));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn userList;\n\t}",
"public List<User> queryAllUsers() {\n \tList<User> userList = new ArrayList<>();\n\tUser user;\n String sql = \"SELECT * FROM users\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuser = new User();\n user.setUserName(this.resultSet.getString(\"user_name\"));\n user.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuser.setEmail(this.resultSet.getString(\"email\"));\n user.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n user.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n user.setPublicKey(this.resultSet.getString(\"pubkey\"));\n\t\tuserList.add(user);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userList;\n }",
"@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}",
"@Override\n\tpublic List<User> getAllUser() {\n\t\treturn uDao.getAllUser();\n\t}",
"public List<User> findAll() {\n\t\treturn users;\n\t}",
"@GetMapping(path = \"\")\n\tpublic @ResponseBody Iterable<ApplicationUser> getAllUsers() {\n\t\treturn userService.getUsers();\n\t}",
"@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}",
"@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}",
"@GetMapping\n public ResponseEntity<List<UserEntity>> getAllUsers() {\n return ResponseEntity.ok(uService.getAllUsers());\n }",
"@Override\n\tpublic List<User> getAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<User> getAll() {\n\t\treturn null;\n\t}",
"@RequestMapping(method = RequestMethod.GET)\n\tpublic List<User> getAll() {\n\t\tList<User> users = dao.getAll();\n\t\treturn users;\n\t}",
"public List<User> listAll() throws Exception;",
"@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}",
"public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }",
"@Override\n\tpublic List<User> selectall() {\n\t\treturn userMapper.selectall();\n\t}",
"@RequestMapping(value = \"/users/list\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<UsersDTO> findAllUsers() {\n\t\tlogger.info(\"Return All Users.\");\t\n\t\treturn (List<UsersDTO>) usersService.findAllUsers();\n\t}",
"public List<User> list() {\n\t\treturn userDao.list();\n\t}",
"@GetMapping(path=\"/all\",produces = MediaType.APPLICATION_JSON_VALUE)\r\n public @ResponseBody\r\n Iterable<UserEntity> getAllUsers() {\n return userService.getAllUsers();\r\n }",
"public List<User> getUsers();",
"@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}",
"public List<User> findAll() {\n return store.findAll();\n }",
"@Override\n\tpublic List<User> findAll() {\n\t\treturn userRepository.findAll();\n\t}",
"List<User> fetchAllUSers();",
"@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}",
"public List<UserModel> getAllUsers()\n {\n List<UserModel> userModels =new ArrayList<>();\n //user.findAll().forEach(topics::add);\n for(UserModel userModel : userRepository.findAll())\n {\n userModels.add(userModel);\n }\n return userModels;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> findAllUsers() {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.addOrder(Order.asc(\"firstname\")).setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);\r\n\t\tList<User> users = (List<User>)crit.list();\r\n\t\treturn users;\r\n\t}",
"@Override\n\tpublic List<User> findAllUsers() {\n\t\treturn userRepo.findAll();\n\t}",
"public List<User> getAllUsers() {\n\t\tEntityManager entityManager = HandleConnectionToDB.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<User> users = entityManager.createQuery(\"from User\").getResultList();\n\t\tif (users.size() > 0) {\n\t\t\tusers.get(0).getFriendList().size();\n\t\t\tusers.get(0).getUserLobby().size();\n\t\t\tusers.get(0).getFriendList().size();\n\t\t}\n\t\tentityManager.getTransaction().commit();\n\n\t\tHandleConnectionToDB.closeEntityManager();\n\t\treturn users;\n\n\t}"
] |
[
"0.8718843",
"0.8595796",
"0.8475508",
"0.8465708",
"0.84419453",
"0.84382284",
"0.84275913",
"0.84275913",
"0.8423913",
"0.8420947",
"0.84201133",
"0.84108937",
"0.8392223",
"0.8380085",
"0.8379692",
"0.8366463",
"0.8334727",
"0.8332088",
"0.83029294",
"0.830154",
"0.8293521",
"0.8268521",
"0.8258436",
"0.8242756",
"0.82354146",
"0.823154",
"0.82203424",
"0.8213831",
"0.82067883",
"0.819725",
"0.8193999",
"0.8192723",
"0.8192607",
"0.81875604",
"0.8169738",
"0.8169602",
"0.81523997",
"0.81392086",
"0.81366706",
"0.812833",
"0.8128322",
"0.8127203",
"0.81260777",
"0.81221545",
"0.8108426",
"0.81049895",
"0.8102737",
"0.81025034",
"0.80913603",
"0.8089038",
"0.8085874",
"0.8085874",
"0.8076035",
"0.80704975",
"0.80671",
"0.8066491",
"0.8065282",
"0.80607927",
"0.8060081",
"0.8056605",
"0.8055654",
"0.80479217",
"0.80429655",
"0.8036884",
"0.80326545",
"0.8030544",
"0.80278826",
"0.80261016",
"0.8023268",
"0.8020796",
"0.80164844",
"0.80148053",
"0.8013466",
"0.8002959",
"0.800156",
"0.79961306",
"0.798497",
"0.79778904",
"0.79710096",
"0.79686004",
"0.7967252",
"0.7966296",
"0.7966296",
"0.79658055",
"0.7956889",
"0.7954832",
"0.79535097",
"0.79424787",
"0.7941162",
"0.79401284",
"0.793594",
"0.79319006",
"0.7930656",
"0.7921526",
"0.79198915",
"0.7912812",
"0.7906991",
"0.7901244",
"0.78979164",
"0.7896025",
"0.78853583"
] |
0.0
|
-1
|
Returns the current user
|
public User getCurrentUser() {
return users.get(userTurn);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}",
"public static User getCurrentUser() {\n\t\treturn ApplicationContext.getInstance().getCurrentUser();\n\t}",
"User getCurrentLoggedInUser();",
"public static User getCurrentUser() {\n return CURRENT_USER;\n }",
"public String getCurrentUser() {\n return currentUser;\n }",
"public User getCurrentUser() {\n return currentUser;\n }",
"private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }",
"public UserCredential getCurrentUser() {\n return this.currentUser;\n }",
"@Override\r\n\tpublic User getCurrentUser() {\r\n\t\tString currentUserName = this.getCurrentUserName();\r\n\t\tUser userdetails = this.getByUsername(currentUserName);\r\n\t\treturn userdetails;\r\n\t}",
"@Override\n\tpublic User getCurrentUser() {\n\t\treturn currentUser;\n\t}",
"public String getCurrentUser() {\r\n return SecurityContextHolder.getContext().getAuthentication().getName();\r\n }",
"private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}",
"public User getUser(){\n\t\treturn currentUser;\n\t}",
"@Override\n\tpublic User getCurrentUser() {\n\t\tint id = sessionService.getCurrentUserId();\n\t\treturn userDao.findById(id);\n\t}",
"public static String getUser() {\n return user;\n }",
"@Nullable\n User getCurrentUser() {return currentUser;}",
"public static String getUser() {\r\n return user;\r\n }",
"public String getUser() {\n\t\treturn user;\n\t}",
"public AVUser getCurrentUser() {\n return this.currentUser;\n }",
"User current_user(String name);",
"public String getUser() {\n\t\t\treturn user;\n\t\t}",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }",
"private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}",
"public String getLoggedInUser() {\n\t\treturn null;\r\n\t}",
"@GET\n @Path(\"Current\")\n public User getCurrentUser() {\n return userFacade.getCurrentUser();\n }",
"public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"protected AuthenticatedUser getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n return (AuthenticatedUser) auth.getPrincipal();\n }\n\n return null;\n }",
"public String getUser() {\r\n return user;\r\n }",
"ApplicationUser getUser();",
"public User findCurrentUser() {\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n return userRepository.findByUsername(username);\n }",
"@Override\r\n\tpublic User getAuthenticatedUser()\r\n\t{\n\t\treturn userWpJauRestClientImpl.getUser().getUser();\r\n\t}",
"public java.lang.String getUser() {\n return user;\n }",
"public User getLoggedUser();",
"public static User getCurrentUser() {\n return sInstance == null ? null : sInstance.mCurrentUser;\n }",
"public String getCurrentUserName() {\n\t\treturn currentUser.getName();\n\t}",
"public final User getUser() {\t\r\n\t\treturn this.user;\r\n\t}",
"private AuthenticatedUser getUser(AuthenticationContext context) {\n StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1);\n return stepConfig.getAuthenticatedUser();\n }",
"LoggedUser getLoggedUser();",
"UserDetails getCurrentUser();",
"public String getUser() {\r\n\t\treturn _userName;\r\n\t}",
"public String getUser() {\n return this.user;\n }",
"public UserModel getUser() {\n return localUser;\n }",
"public UserModel getUser() {\n return localUser;\n }",
"public UserModel getUser() {\n return localUser;\n }",
"public String getUser() {\n if(user == null)\n return \"\"; \n return user;\n }",
"@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }",
"public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}",
"private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}",
"public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"public static int getCurrentUserId() {\n return session.get().getUserId();\n }",
"private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}",
"public User getUser() {\n\t\treturn this.user;\n\t}",
"public User getUser() {\n\t\treturn this.user;\n\t}",
"public static String getCurrentUser() {\n\t\treturn System.getProperty(\"user.name\");\n\t}",
"public UserInfo getCurrentUser() {\n UserInfo currentUserLU;\n if (this.mInjector.checkCallingPermission(\"android.permission.INTERACT_ACROSS_USERS\") != 0 && this.mInjector.checkCallingPermission(\"android.permission.INTERACT_ACROSS_USERS_FULL\") != 0) {\n String msg = \"Permission Denial: getCurrentUser() from pid=\" + Binder.getCallingPid() + \", uid=\" + Binder.getCallingUid() + \" requires \" + \"android.permission.INTERACT_ACROSS_USERS\";\n Slog.w(\"ActivityManager\", msg);\n throw new SecurityException(msg);\n } else if (this.mTargetUserId == -10000) {\n return getUserInfo(this.mCurrentUserId);\n } else {\n synchronized (this.mLock) {\n currentUserLU = getCurrentUserLU();\n }\n return currentUserLU;\n }\n }",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public final String getUser() {\n return username;\n }",
"public IUser getCurrentUser() {\n return currentUser;\n }",
"public User getUser(){\n return this.getAccountController().getUser();\n }",
"@ApiModelProperty(value = \"Gets or sets Curren tUser.\")\n public UserInformation getCurrentUser() {\n return currentUser;\n }",
"public String getRemoteUser() {\r\n return context.getExternalContext().getRemoteUser();\r\n }",
"public String getCurrentUserUsername(){\n Subject subject = org.apache.shiro.SecurityUtils.getSubject();\n if(subject!=null){\n return subject.getPrincipal().toString();\n }else{\n return \"User\";\n }\n }",
"private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}",
"java.lang.String getUser();",
"public User getUser(){\n\t\treturn this.user;\n\t}",
"public BaseUser getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser(){\n \treturn user;\n }",
"public User getUser(){\r\n\t\treturn this.user;\r\n\t}",
"@Override\r\n\tpublic String currentUser() {\n\t\treturn temp.getCustomerName();\r\n\t}",
"public java.lang.String getUserId() {\r\n return localUserId;\r\n }",
"public java.lang.String getUserId() {\r\n return localUserId;\r\n }",
"@RequestMapping(\"/currentuser\")\n\tpublic User getCurrentlyLoggedInUser() throws NoLoginInfoFoundException, URISyntaxException {\n\t\tUser currentUser = null;\n\t\tString username = loginService.getCurrentUsername();\n\t\tif (username != null) {\n\t\t\tList<User> allUsers = myUserDetailsService.getAllUsers();\n\t\t\tfor (User user : allUsers) {\n\t\t\t\tif (user.getEmail().equals(username)) {\n\t\t\t\t\tcurrentUser = user;\n\t\t\t\t\tURI uri = new URI(Constants.orderBaseurl + Constants.orderGetUserUrl);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tResponseEntity<User> response = restTemplate.postForEntity(uri, currentUser, User.class);\n\t\t\t\t\t\tSystem.out.println(response.getBody());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new NoLoginInfoFoundException(\"Please login to continue\");\n\t\t}\n\n\t\treturn currentUser;\n\t}",
"public UserDetails getLoggedInUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null && auth.isAuthenticated()\n && !(SecurityContextHolder.getContext().getAuthentication() instanceof AnonymousAuthenticationToken)) {\n return (UserDetails) auth.getPrincipal();\n } else {\n LOGGER.debug(\"Tried getting a logged in user, but none was available.\");\n return null;\n }\n }",
"public User getUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n return userRepository.findByEmail(auth.getName()).get();\n }",
"String getUser();",
"String getUser();",
"public User getUser() {\n\treturn user;\n }",
"public java.lang.String getUserId() {\n return localUserId;\n }",
"public java.lang.String getUserId() {\n return localUserId;\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }"
] |
[
"0.8495159",
"0.83254373",
"0.8297517",
"0.82656145",
"0.8238582",
"0.8209197",
"0.8173451",
"0.81203777",
"0.8114984",
"0.8072755",
"0.80624276",
"0.80590045",
"0.80368376",
"0.7949122",
"0.79221016",
"0.7897237",
"0.78726757",
"0.78069717",
"0.78046733",
"0.78034455",
"0.7790503",
"0.7786342",
"0.7786342",
"0.7784527",
"0.77490896",
"0.7738629",
"0.77298105",
"0.77137774",
"0.7694519",
"0.7694519",
"0.7694519",
"0.76864195",
"0.7672805",
"0.7645313",
"0.76305187",
"0.76239425",
"0.7620496",
"0.7597774",
"0.7595788",
"0.7582116",
"0.7563987",
"0.75633466",
"0.75574267",
"0.7543101",
"0.75372154",
"0.75067836",
"0.7505008",
"0.7505008",
"0.7505008",
"0.7483562",
"0.7476844",
"0.7466278",
"0.74581355",
"0.7452645",
"0.7449576",
"0.7440225",
"0.74376005",
"0.74248713",
"0.74248713",
"0.74248713",
"0.7420516",
"0.74136543",
"0.74136543",
"0.7406141",
"0.7398665",
"0.73707914",
"0.73707914",
"0.73707914",
"0.73707914",
"0.73707914",
"0.73707914",
"0.7364088",
"0.7364088",
"0.7364088",
"0.7362002",
"0.7344737",
"0.732326",
"0.7314122",
"0.73072416",
"0.73024815",
"0.73015577",
"0.725097",
"0.7245827",
"0.72356385",
"0.7233623",
"0.7219336",
"0.7187997",
"0.7156478",
"0.7156478",
"0.7156225",
"0.7152493",
"0.71466035",
"0.71449196",
"0.71449196",
"0.714245",
"0.71362025",
"0.71362025",
"0.71329755",
"0.71329755",
"0.71329755"
] |
0.7736666
|
26
|
Sets the current user
|
public void setCurrentUser(int userNum) {
userTurn = userNum;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setCurrentUser(String username) {\n currentUser = username;\n }",
"void setCurrentUser(@Nullable User newCurrentUser) {\n currentUser = newCurrentUser;\n }",
"public void setCurrentUser(AVUser aVUser) {\n this.currentUser = aVUser;\n }",
"public void assignCurrentAdminUser(final String val) {\n currentAdminUser = val;\n }",
"public void setCurrentUser(Person person) {\n assert person != null;\n this.currentUser = person;\n indicateUserLoginStatusChanged();\n }",
"public void updateCurrentTrempitUser() {\n\n // create the trempituser object\n TrempitUser currentUser = new TrempitUser();\n currentUser.setFullName(Profile.getCurrentProfile().getName());\n currentUser.setId(Long.valueOf(Profile.getCurrentProfile().getId()));\n\n // update the global variable so all activities can access the user\n globalState.setCurrentUser(currentUser);\n\n // insert the user to the server\n insertTrempitUserToServer(currentUser);\n\n Toast.makeText(this, \"logged in to facebook:\" + globalState.getCurrentUser().getFullName(), Toast.LENGTH_LONG).show();\n }",
"public void setCurrentUserAccount(String currentUserAccount);",
"public void setUser(String user) \r\n\t{\n\t\tthis.user = user;\r\n\t}",
"public void setUser(String user) {\r\n this.user = user;\r\n }",
"public void setUser(User theUser) {\n\t\tmyUser = theUser;\n\t}",
"public void setUser(User user) {\n\tthis.user = user;\n }",
"public void setUser(User user) {\r\n this.user = user;\r\n }",
"public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }",
"public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }",
"public void setUser(String user)\n {\n _user = user;\n }",
"public void setUser(User user) {\r\n\t\tthis.user = user;\r\n\t}",
"public void setUser(User user) {\r\n\t\tthis.user = user;\r\n\t}",
"public void setUser(String user) {\n this.user = user;\n }",
"public void setUser(String user) {\n this.user = user;\n }",
"public void setUser(String user) {\n this.user = user;\n }",
"public void setUser(String user) {\n this.user = user;\n }",
"public static void setUser(String user) {\n Account.user = user;\n }",
"private void setAuthenticatedUser(HttpServletRequest req, HttpSession httpSess, String userName) {\n\t\t// Set the authentication\n\t\tauthComponent.setCurrentUser(userName);\n\n\t\t// Set up the user information\n\t\tUserTransaction tx = transactionService.getUserTransaction();\n\t\tNodeRef homeSpaceRef = null;\n\t\tUser user;\n\t\ttry {\n\t\t\ttx.begin();\n\t\t\tuser = new User(userName, authService.getCurrentTicket(), personService.getPerson(userName));\n\t\t\thomeSpaceRef = (NodeRef) nodeService.getProperty(personService.getPerson(userName), ContentModel.PROP_HOMEFOLDER);\n\t\t\tif(homeSpaceRef == null) {\n\t\t\t\tlogger.warn(\"Home Folder is null for user '\"+userName+\"', using company_home.\");\n\t\t\t\thomeSpaceRef = (NodeRef) nodeService.getRootNode(Repository.getStoreRef());\n\t\t\t}\n\t\t\tuser.setHomeSpaceId(homeSpaceRef.getId());\n\t\t\ttx.commit();\n\t\t} catch (Throwable ex) {\n\t\t\tlogger.error(ex);\n\n\t\t\ttry {\n\t\t\t\ttx.rollback();\n\t\t\t} catch (Exception ex2) {\n\t\t\t\tlogger.error(\"Failed to rollback transaction\", ex2);\n\t\t\t}\n\n\t\t\tif (ex instanceof RuntimeException) {\n\t\t\t\tthrow (RuntimeException) ex;\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Failed to set authenticated user\", ex);\n\t\t\t}\n\t\t}\n\n\t\t// Store the user\n\t\thttpSess.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);\n\t\thttpSess.setAttribute(LoginBean.LOGIN_EXTERNAL_AUTH, Boolean.TRUE);\n\n\t\t// Set the current locale from the Accept-Lanaguage header if available\n\t\tLocale userLocale = parseAcceptLanguageHeader(req, m_languages);\n\n\t\tif (userLocale != null) {\n\t\t\thttpSess.setAttribute(LOCALE, userLocale);\n\t\t\thttpSess.removeAttribute(MESSAGE_BUNDLE);\n\t\t}\n\n\t\t// Set the locale using the session\n\t\tI18NUtil.setLocale(Application.getLanguage(httpSess));\n\n\t}",
"public void setUser(User user) { this.user = user; }",
"public void setUser(UserModel param) {\n localUserTracker = true;\n\n this.localUser = param;\n }",
"public void setUser(UserModel param) {\n localUserTracker = true;\n\n this.localUser = param;\n }",
"public void setUser(UserModel param) {\n localUserTracker = true;\n\n this.localUser = param;\n }",
"public void changeUser() {\n refreshState();\n SystemUserDTO user = null;\n SystemUserDTO systemUser = null;\n systemUser = ctrl.getSystemUser(this.inputTextUser);\n if (systemUser == null) {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.addSystemUser(user);\n } else {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.updateSystemUser(user);\n }\n refreshState();\n this.currentUser = user;\n }",
"public void setUser(User user) {\n this.user = user;\n }",
"public void setUser(User user) {\n this.user = user;\n }",
"public void setUser(User user) {\n this.user = user;\n }",
"public void setCurrUser(User currUser) {\n this.currUser = currUser;\n }",
"public void setUser(User user) {\n\t\tif (user == currentUser)\n\t\t\treturn;\n\t\tcurrentUser = user;\n\t}",
"public void setUser(String user) {\n\t\t\tthis.user = user;\n\t\t}",
"public void setUser(User user) {\n\t\tthis.user = user;\n\t}",
"public void setUser(User user) {\n\t\tthis.user = user;\n\t}",
"public void setUser(User user) {\n\t\tthis.user = user;\n\t}",
"public void setUser(User user) {\n\t\tthis.user = user;\n\t}",
"public void setUser(User user) {\n\t\tthis.user = user;\n\t}",
"public void setUser(User user) {\n\t\tthis.user = user;\n\t}",
"public void assignAuthorisedUser(final boolean val) {\n authorisedUser = val;\n }",
"public void setUser(User user) {\n this.savedBy = user;\n }",
"public void setUser(java.lang.String user) {\n this.user = user;\n }",
"public void setUser(final User user) {\n this.user = user;\n }",
"public void setCallingUser(entity.User value);",
"public static void setUserForCurrentThread(String user) {\r\n userPerThread.set(user);\r\n }",
"void setPassedUser(User passedUser);",
"public void setUser(final String user)\n {\n checkImmutable();\n this.user = user;\n }",
"@Override\n\tpublic User getCurrentUser() {\n\t\treturn currentUser;\n\t}",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"void setUser(final ApplicationUser user);",
"private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }",
"@FXML private void setToNewUser(){\n\t\tshowPassword();\n\t\tclearFields();\n\t\thideLackMessages();\n\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\tnewUser = true;\n\t}",
"public static void setActiveUser(Context context, String userId) {\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tEditor editor = prefs.edit();\r\n\t\t\tif (editor != null) {\r\n\t\t\t\teditor.putString(PreferenceKeys.ActiveUserId, userId);\r\n\t\t\t}\r\n\r\n\t\t\teditor.commit();\r\n\t\t}\r\n\t}",
"public void setUser(final SimpleUser user) {\n this.user = user;\n }",
"public void setSelectedUser(ch.ivyteam.ivy.security.IUser _selectedUser)\n {\n selectedUser = _selectedUser;\n }",
"public void setUser(Long user) {\n this.user = user;\n }",
"void setUser(OSecurityUser user);",
"public void setUser(UserData data) {\n user = data;\n }",
"private void setUser(HttpServletRequest req, Request sensorReq) {\n\t\tObject userObject = req.getAttribute(\"__user\");\n\t\tif ( null == userObject) \n\t\t{\n\t\t\tsensorReq.setUser(UserProfile.getAnonymous());\n\t\t} \n\t\telse \n\t\t{\n\t\t\tsensorReq.setUser((UserProfile) userObject);\n\t\t}\n\t}",
"public void setUser (User user) {\n userId = user.id != null ? user.id : User.getUserId(user.username);\n }",
"public void setUser(UserModel user) {\n this.sender = user;\n }",
"public void makeCurrentUser() {\n // Remove the Add Friend ImageView\n mFriendIv.setVisibility(View.GONE);\n\n // Show the \"You\" TextView\n mYouTv.setVisibility(View.VISIBLE);\n }",
"public synchronized static void setUserId(String userId){\n setUserId(context,userId);\n }",
"public static void setConnectedUser( HttpServletRequest request, User user )\r\n\t{\r\n\t\trequest.getSession().setAttribute( \"connectedUser\", user );\r\n\t}",
"private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }",
"public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}",
"public void setUser(Motile user) {\n\n this.user = user;\n }",
"public void setlogUserIn() {\n\t\tmenu1.setOnAction(event -> {\n\t\t\topenUserSettings();\n\t\t});\n\t\tmenu2.setOnAction(event -> {\n\t\t\tsetlogUserOut();\n\t\t});\n\t\tuserMenuButton.setText(controller.loggedIn());\n\t\tuserMenuButton.setStyle(\"-fx-font-size: 10pt; -fx-text-fill:black;\"); // MUOTOILU CSSSSSÄÄÄÄN\n\t\tuserMenuButton.getItems().addAll(menu1, menu2);\n\t\tloggedinuser.setVisible(true);\n\t\tloggedinuser.setText(bundle.getString(\"mVloggedin\"));\n\t\tloggedinuser.setGraphic(userMenuButton);\n\t\tloggedinuser.setContentDisplay(ContentDisplay.RIGHT);\n\t\tuserSettings.setVisible(true);\n\t\tloginoption.setVisible(false);\n\t}",
"@Override\n\tpublic void setUser(IUser user) {\n\t\tgetInnerObject().setUser(user);\n\t}",
"public void setLoggedUser(CustomEmployee user) {\n loggedUser = user;\n }",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"public void setCurrentAccessToken() {\n String userAccessToken = null;\n String moderatorAccessToken = null;\n // Get tokens of local user and logged in moderator if existing.\n localUser = getLocalUser();\n if (localUser != null) {\n userAccessToken = localUser.getServerAccessToken();\n }\n if (loggedInModerator != null) {\n moderatorAccessToken = loggedInModerator.getServerAccessToken();\n }\n // Use the access token of the local moderator if available (logged in).\n accessToken = moderatorAccessToken;\n if (accessToken == null) {\n // Otherwise, use the access token of the local user.\n accessToken = userAccessToken;\n }\n }",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId);\n\t}",
"public void setUser(String paramUser) {\n\tstrUser = paramUser;\n }",
"@ApiModelProperty(value = \"Gets or sets Curren tUser.\")\n public UserInformation getCurrentUser() {\n return currentUser;\n }",
"public void setLoggedUser(User loggedUser){\n\t\tthis.loggedUser = loggedUser;\n\t}",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"private boolean setLoggedInUser(String userId) {\n if (currentContext != null) {\n //Set the user Id when user is successfully logged_in\n if (mFireBaseAnalytics != null)\n mFireBaseAnalytics.setUserId(userId);\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(LOGIN_SHARED_PREF_NAME, 0);\n return sharedPrefs.edit().putString(USER_ID_SHARED_PREF_NAME, userId).commit() &&\n setLoggedInTime();\n }\n return false;\n }",
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",
"protected void setUsername(final String user) {\n this.user = user;\n }",
"public void initUser(ActiveSession user) {\n this.user = user;\n }",
"public void setUser(UserEntity user) {\n this.user = user;\n }",
"public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }",
"public void setUser(UserDTO user)\r\n {\r\n if (!edit)\r\n {\r\n this.user = user;\r\n\r\n if (user != null)\r\n {\r\n textUser.setText(user.getUsername());\r\n\r\n }\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(this, \"Cannot select another person while you are adding or edditing the tree.\");\r\n }\r\n }",
"public void setTxtUser(String txtUser) {\n this.txtUser.setText(txtUser);\n }",
"public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }",
"public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }",
"public User getCurrentUser() {\n return currentUser;\n }",
"public void setUser(@Nullable final User user) {\n mUser = user;\n }",
"public void setUser(String businessName) {\n editSharedPrefs().putString(USER_NAME, businessName).apply();\n editSharedPrefs().putBoolean(SHARED_PREFS_SETUP, true);\n }",
"@Nullable\n User getCurrentUser() {return currentUser;}",
"private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }",
"void setUser(User user, int id) {\n this.user = user;\n this.id = id;\n }",
"public void setUserId(java.lang.String param) {\r\n localUserIdTracker = param != null;\r\n\r\n this.localUserId = param;\r\n }",
"public void setUserId(java.lang.String param) {\r\n localUserIdTracker = param != null;\r\n\r\n this.localUserId = param;\r\n }",
"@Override\n public Completable setAccessToken(DomainUserModel user) {\n return userService.setAccessToken(user);\n }"
] |
[
"0.76262474",
"0.745369",
"0.7310187",
"0.705917",
"0.7008701",
"0.6999122",
"0.6998756",
"0.6898501",
"0.6842941",
"0.6831713",
"0.6826018",
"0.68130034",
"0.6798217",
"0.6798217",
"0.6798147",
"0.67802685",
"0.67802685",
"0.67470217",
"0.67470217",
"0.67470217",
"0.67470217",
"0.6740583",
"0.6730173",
"0.671774",
"0.6716824",
"0.6716824",
"0.6716824",
"0.67002755",
"0.66862446",
"0.66862446",
"0.66862446",
"0.665154",
"0.6650135",
"0.6643082",
"0.6633519",
"0.6633519",
"0.6633519",
"0.6633519",
"0.6633519",
"0.6633519",
"0.65200657",
"0.6512417",
"0.6495545",
"0.64938235",
"0.64933527",
"0.6492149",
"0.6488285",
"0.64814055",
"0.646788",
"0.6458703",
"0.6458703",
"0.6458703",
"0.6427689",
"0.6427366",
"0.64238316",
"0.63520396",
"0.63435537",
"0.6331779",
"0.63114953",
"0.6308673",
"0.6308204",
"0.6307089",
"0.6271104",
"0.62647265",
"0.6225604",
"0.62147415",
"0.6210714",
"0.61965835",
"0.6190504",
"0.6173756",
"0.61646456",
"0.6115688",
"0.61070466",
"0.61033386",
"0.6097401",
"0.6096625",
"0.6090781",
"0.6090258",
"0.6086472",
"0.6082719",
"0.60676306",
"0.6061907",
"0.60605735",
"0.60551673",
"0.6048061",
"0.6047474",
"0.60285896",
"0.60226905",
"0.6013407",
"0.60116386",
"0.60116386",
"0.6002142",
"0.6000892",
"0.5997494",
"0.5995033",
"0.5984688",
"0.5984252",
"0.5963357",
"0.5963357",
"0.59623086"
] |
0.66742504
|
31
|
Ends the current round and starts a new one
|
public void endRound() {
if (roundNumber>maxRounds) {
System.out.println("hae �etta er MAX ROUNDS! LEIKUR �TTI A� VERA B�INN");
endGame();
} else {
System.out.println("�ETTA er r�tt leikur er ekki b�inn round: "+ getCurrentRound());
matchResults = core.simulateNextRound();
System.out.println("B�INN A� SIMULATA ROUND ");
FootballPlayer[] players = core.getAllFootballPlayers();
for (int i = 0; i<players.length; i++) {
Statistics[] stats = players[i].getStats();
System.out.println(players[i].getName() + " " + stats[1].getGoals());
}
calculatePoints();
roundNumber++;
}
users.get(0).setTransferFinished(false);
users.get(1).setTransferFinished(false);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void beginRound() {\r\n\t\tnewRound();\r\n\t}",
"public void newRound(){\r\n clearRandomDirections();\r\n this.currentAmountToPutIn++;\r\n initializeNewRound();\r\n //reset timer;\r\n }",
"abstract void startRound();",
"public void beginNextRound() {\n\t\tsetBeginNextRound(true);\n\t}",
"private void newRound() {\r\n\t\tballoonsThisRound = currentRoundNumber * balloonsPerRound * 5;\r\n\t\tcurrentRound = new Round(balloonTypes, 0.3f, balloonsThisRound);\r\n\t\tcurrentRoundNumber++;\r\n\r\n\t\tSystem.out.println(\"Begining Round: \" + currentRoundNumber);\r\n\t}",
"public void handleNextRound() {\n\t\t\r\n\t}",
"void newRound() {\n // Increase the round number on every round.\n round++;\n\n // Write to the log file\n\t logger.log(divider);\n logger.log(\"\\nRound \" + round + \" starting.\");\n logger.log(\"Active player: \" + activePlayer.getName());\n\n // Log player name and topmost card for all players.\n for (Player player : players) {\n logger.log(player.getName() + \"'s card: \" + player.getTopMostCard()\n .toString());\n }\n\n setGameState(GameState.NEW_ROUND_INITIALISED);\n }",
"public static void StartNewRound () {\n System.out.println(\"The game \" + (rounds == 0 ? \"begins!\" : \"continues...\"));\r\n System.out.println(\"===============================================\");\r\n\r\n // GENERATE A NEW NUMBER\r\n SetNewNumber();\r\n\r\n // RESET PICKED ARRAY\r\n ResetPickedNumbers();\r\n }",
"public void tick() {\r\n\t\tif (currentRound != null) {\r\n\r\n\t\t}\r\n\r\n\t\t// if (!currentRound.isRoundCompleted()) {\r\n\t\tif (currentRound != null) {\r\n\t\t\tif (currentRound.isRoundCompleted() && timeBetweenRounds <= 0) {\r\n\t\t\t\tnewRound();\r\n\t\t\t} else {\r\n\t\t\t\tcurrentRound.tick();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// else {\r\n\t\t// newRound(); // Right when the last wave ends the new wave is created\r\n\t\t// }\r\n\r\n\t}",
"public static String nextRound() {\n return \"Starting next round.\";\n }",
"public void roundEnded() {\n\t\t\n\t\t// Deduct a life from the currently active player.\n\t\t// Increment the current round number by 1.\n\t\tdeductLife();\n\t\tincrementCurrentRoundNumber();\n\t\t\n\t\t// Switch which player is now active. \n\t\tswitchPlayer();\n\t}",
"private void newRound(){\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\t\tSystem.out.println(\"PREPPING ROUND \" + round + \" SETUP. Game Logic round (should be aligned) : \" + gameLogic.getRound());\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\t\t\n\t\tSystem.out.println(\"PRINTING LEADSUIT OF NEW ROUND \" + gameLogic.getLeadSuitCard());\n\t\tgameLogic.initialiseDeck();\n\t\tgameLogic.setDealer(round);\n\t\t\n\t\tSystem.out.println(\"Players Hand (Should be empty): \" + gameLogic.getArrayOfPlayers().getArrayOfPlayers().get(0).getHand());\n\t\t\n\t\tgameLogic.setPlayersHand(round);\n\t\tgameLogic.setTrumpCard();\n\t\tgameLogic.setPlayerOrder(round);\n\t\tgameLogic.getTableHand().clearTableHand();\n\n\t\twaitingUser = false;\n\t\tif (waitingUser()){\n\t\t\twaitingUser = true;\n\t\t}\n\n\t\tcurrentPlayer = gameLogic.getArrayOfPlayers().getArrayOfPlayers().get(0).getPlayerId();\n\n\t\tdisplayRoundUI();\n\t\tdisplayTrumpUI();\n\t\tdisplayCardUI();\n\t\tdisplayAvailableBidsUI();\n\t\tdisplayTableHandUI();\n\n\t\tSystem.out.println(\"BEGIN ROUND \" + round);\n\t\ttodoThread();\n\t}",
"public void stopGame()\r\n\t{\r\n\t\tthis.inProgress = false;\r\n\t\tif(this.round == 0)\r\n\t\t{\r\n\t\t\t++this.round;\r\n\t\t}\r\n\t}",
"private void nextRound()\n {\n Player currentPlayer = roundManager.next();\n\n if(!currentPlayer.getClientConnection().isConnected() || !currentPlayer.getClientConnection().isLogged())\n {\n if(currentPlayer.equals(lastFinalFrenzyPlayer))return;\n nextRound();\n return;\n }\n\n if(gameMode == GameMode.FINAL_FRENZY_BEFORE_FP && roundManager.isFirstPlayer(currentPlayer))gameMode = GameMode.FINAL_FRENZY_AFTER_FP;\n\n try\n {\n currentPlayer.getView().roundStart();\n notifyOtherClients(currentPlayer, virtualView -> virtualView.showNotification(\"È il turno di \"+currentPlayer.getUsername()));\n\n if(roundManager.isFirstRound() || !currentPlayer.isFirstRoundPlayed()) firstRound(currentPlayer);\n\n for(int i = 0; i < gameMode.getPlayableAction(); i++)\n {\n currentPlayer.resetExecutedAction();\n boolean continueRound = executeAction(currentPlayer);\n if(!continueRound)break;\n }\n\n if(gameMode == GameMode.NORMAL)new ReloadAction(this, currentPlayer, ReloadAction.RELOAD_ALL).execute();\n }\n catch (ConnectionErrorException e)\n {\n Logger.error(\"Connection error during \"+currentPlayer.getUsername()+\"'s round!\");\n notifyOtherClients(currentPlayer, virtualView -> virtualView.showNotification(currentPlayer.getUsername()+\" si è disconnesso!\"));\n }\n catch (TimeOutException e)\n {\n Logger.info(\"Player \"+currentPlayer.getUsername()+\" has finished his time\");\n }\n\n currentPlayer.getView().roundEnd();\n currentPlayer.resetExecutedAction();\n refillMap();\n sendBroadcastUpdate();\n if(isFinalFrenzy())currentPlayer.setLastRoundPlayed(true);\n handleDeadPlayers(currentPlayer);\n if(isFinalFrenzy() && currentPlayer.equals(lastFinalFrenzyPlayer))return;\n checkForFinalFrenzy(currentPlayer);\n if(match.connectedPlayerSize() <= 0 || match.connectedPlayerSize() < MatchSettings.getInstance().getMinPlayers())return;\n nextRound();\n\n }",
"public void newRound()\n\t{\n\t\tif(player1.getDeck().isEmpty())\n\t\t{\n\t\t\treshufflePlayer1();\n\t\t}\n\t\tif(player2.getDeck().isEmpty())\n\t\t{\n\t\t\treshufflePlayer2();\n\t\t}\n\t\t\n\t\tactivePlayerOneCard = player1.draw();\n\t\tactivePlayerTwoCard = player2.draw();\n\t}",
"public static void roundEnd()\n\t{\n\t\tdealerVal.setText(String.valueOf(calculateHand(dealersCards)));\n\t\tdealersMove();\n\t\tfor(int i=1;i<dealersCards.size();i++)\n\t\t{\n\t\t\tdealerCardImg[i].setIcon(new ImageIcon(Gameplay.class.getResource(getCard(dealersCards.get(i)))));\n\t\t}\n\t\tint result=calculateHands(dealersCards, playersCards);\n\t\tswitch(result)\n\t\t{\n\t\tcase 0:\n\t\t\twin();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tlose();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tpush();\n\t\t\tbreak;\n\t\t}\n\t\tclearHands();\n\t\tHome.writetoFile();\n\t\tif(!Game.isComplete())\n\t\t{\n\t\t\tbetting();\n\t\t}\n\t}",
"private void nextRound() {\n\t\n\t\t\n\t\tcfight++;\n\t\tif(cfight>=maxround)\n\t\t{\n\t\tcfight=0;\n\t\t\n\t\tround++;\n\t\t\tmaxround/=2;\n\t\t}\n\t\t\n\tif(round<4)\n\t{\n\tcontrollPCRound();\n\t}\n\telse\n\t{\n\t\tint sp=0;\n\t\tint round=0;\n\t\tfor(int i=0; i<fighter.length; i++)\n\t\t{\n\t\t\tif(spieler[i]>0)\n\t\t\t{\n\t\t\t\tsp++;\n\t\t\t\tif(fround[i]>round)\n\t\t\t\t{\n\t\t\t\tround=fround[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif(geld==false)\n\t{\n\t\tgeld=true;\n\t\tif(sp==1)\n\t\t{\n\t\tZeniScreen.addZenis(round*3500);\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint w=round*4000-500*sp;\n\t\t\tif(w<1)\n\t\t\t{\n\t\t\t\tw=100;\n\t\t\t}\n\t\t\tZeniScreen.addZenis(w);\t\n\t\t}\n\t}\n\t}\n\t\n\t\n\t}",
"private void nextRound() {\r\n action = 0;\r\n if (round == GameConstants.ROUNDS) {\r\n round = 0;\r\n if (phase == 0) {\r\n vc = null;\r\n missioncontrollpieces = GameConstants.PIECES_SET;\r\n }\r\n phase++;\r\n } else {\r\n round++;\r\n }\r\n }",
"public void increaseRound() {\n\t\tif(this.activePlayer==this.player1) {\n\t\t\tthis.setScorePlayer1(this.getScorePlayer1()+1);\n\t\t}else {\n\t\t\tthis.setScorePlayer2(this.getScorePlayer2()+1);\n\t\t}\n\t\t//On check si c'est le dernier round\n\t\tif (round != ROUNDMAX) {\n\t\tthis.round++;\n\t\t//On change un round sur deux le premier joueur de la manche\n\t\t\n\t\tif (0==round%2) {\n\t\t\t\n\t\t\tthis.setActivePlayer(player2);\n\t\t}else {\n\t\t\n\t\t\tthis.setActivePlayer(player1);\n\t\t}\n\t\t}else {\n\t\t\t//Sinon la partie est gagne\n\t\t\tdraw.win = true;\n\t\t}\n\t\t}",
"public void startNewRound() {\n if (this.state == GameState.PLACEBETS) {\n checkDeck();\n\n if (!isBetsSetted()) {\n return;\n }\n for (Seat seat : this.seats) {\n if (seat.hasPlayer()) {\n Human human = (Human) seat.getPlayer();\n if (human.getBet() > 0) {\n this.seatPlaying = seat.getSeatNumber();\n break;\n }\n }\n }\n this.state = GameState.ROUNDACTIVE;\n dealCards();\n repaintAll();\n }\n }",
"public void endOfRoundUpdates() {\n roundsHistory.push(new RoundHistory(gameDescriptor,++roundNumber));\n loadPlayersIntoQueueOfTurns();\n //activateEventsHandler();\n }",
"private void nextRound(){\n round++;\n if(round == 6){\n endGame();\n }else{\n out.println(\"###ROUND \" + round + \"###\");\n// ArrayList<Player> playerList = game.getPlayerList();\n for (Player e : playerList) {\n e.resetActions();\n }\n game.applyCards();\n }\n }",
"public void setUpNewRound(){\n int newRound = getRoundNum() + 1;\n getRound().getPlayer(0).clearPiles();\n getRound().getPlayer(1).clearPiles();\n mRound = new Round(players);\n setRoundNum(newRound);\n mRound.beginRound();\n }",
"public void playRound() {\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tif (theModel.setActivePlayer(winningPlayer) == true) {\r\n\t\t\t\t// theModel.selectCategory();\r\n\t\t\t\t// so at this point we have returned strings?\r\n\t\t\t\ttheModel.displayTopCard();\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.selectCategory()));\r\n\t\t\t\t\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\t\t\t\t\r\n\t\t\t\tRoundID++;\r\n\t\t\t\t\r\n\t\t\t\tSystem.err.println(\"\\nThe current Round : \" + RoundID);\r\n\t\t\t\t\r\n\t\t\t\tlog.writeFile(\"\\nThe current Round : \" + RoundID);\r\n\t\t\t\t\r\n\t\t\t\tsql.setRoundDataToSQL(GameID, RoundID, winningPlayer.getName(), theModel.getIsDraw(), theModel.humanIsActivePlayer);\r\n\t\t\t\r\n\t\t\t\t//System.out.println(\"this should be the human having won round\");\r\n\r\n\t\t\t} else {\r\n\t\t\t\tcheckIfHumanPlayerInGame();\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.autoCategory()));\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\t\t\t\t\r\n\t\t\t\tRoundID++;\r\n\t\t\t\t\r\n\t\t\t\tSystem.err.println(\"\\nThe current Round: \" + RoundID);\r\n\t\t\t\tlog.writeFile(\"\\nThe current Round : \" + RoundID);\r\n\t\t\t\tsql.setRoundDataToSQL(GameID, RoundID, winningPlayer.getName(), theModel.getIsDraw(), theModel.humanIsActivePlayer);\r\n\r\n\t\t\t\t//System.out.println(\"this should be the ai \" + winningPlayer.getName() + \"who has won the last round\");\r\n\t\t\t\t// return true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void play(){\n\n gameRounds++;\n mRound = new Round(players);\n mRound.beginRound();\n\n }",
"public Round() {\n\t\tthis.niceMoves = null;\n\t\tthis.roundNo = 1;\n\t}",
"public void endRound() {\n if (!myTurn()) {\n return;\n }\n if (this.board.getWinners().size() > 0 && this.playerId == board.getPlayers().get(board.getPlayers().size() - 1).playerId) {\n this.board.setRunning(false);\n }\n // currentPlayerNumber = (currentPlayerNumber + 1) % players.size();\n // current = players.get(currentPlayerNumber);\n this.removableBlockades = new ArrayList<>();\n coins = (float) 0;\n bought = false;\n specialAction.setDraw(0);\n specialAction.setRemove(0);\n specialAction.setSteal(0);\n history = new ArrayList<>();\n //for (int i = tmpDiscardPile.size(); i > 0; i--){\n // discardPile.add(tmpDiscardPile.remove(0));\n //}\n discardPile.addAll(tmpDiscardPile);\n tmpDiscardPile = new ArrayList<Card>();\n draw();\n board.endRound();\n }",
"public void incrementCurrentRoundNumber() {\n\t\t\n\t\tcurrentRoundnumber = currentRoundnumber +1;\n\t}",
"abstract GameRound setupRound();",
"private void playGame() {\n do {\n new Round(this);\n } while (!winner.isPresent());\n }",
"protected void end() {\n \tnew GearCommand().start();\n \t/*if(!didZach){\n \t\tcurrentTime = time.get();\n \t\twhile(time.get() < currentTime + .5){\n \t\t\tDrive.setLeft(0);\n \t\t\tDrive.setRight(0);\n \t\t}\n \t\tcurrentTime = time.get();\n \t\twhile(time.get() < currentTime + 1.5){\n \t\t\tDrive.setLeft(-.5);\n \t\t\tDrive.setRight(-.5);\n \t\t}\n \t\tcurrentTime = time.get();\n \t\twhile(time.get() < (currentTime + .6)){\n\t\t\t\tDrive.setLeft(.5);\n\t\t\t\tDrive.setRight(-.5);\n\t\t\t}\n \t\tcurrentTime = time.get();\n \t\twhile(time.get() < currentTime + 1.5){\n \t\t\tDrive.setLeft(.5);\n \t\t\tDrive.setRight(.5);\n \t\t}\n \t\tcurrentTime = time.get();\n \t\twhile(time.get() < (currentTime + .6)){\n\t\t\t\tDrive.setLeft(-.5);\n\t\t\t\tDrive.setRight(.5);\n\t\t\t}\n \t\twhile(time.get() < currentTime + 1.5){\n \t\t\tDrive.setLeft(.5);\n \t\t\tDrive.setRight(.5);\n \t\t}\n \t}*/\n }",
"@Override\n\tpublic void onRoundEnded(RoundEndedEvent event) {\n\t\tsuper.onRoundEnded(event);\n\t}",
"private void handleRoundStart() {\n\t\t// Increment attackerDelay\n\t\tmAttackerDelay++;\n\t\tmRoundText = \"Starting Round \" + mRoundNumber + \"...\";\n\n\t\t// If it is over the threshold of 15 frames, start the standard round\n\t\tif(mAttackerDelay > 15) {\n\t\t\tmGameState = STATE_ROUND_PLAY;\n\t\t\tmRoundText = \"Round: \" + mRoundNumber;\n\t\t\thideAllButtons();\n\t\t}\n\t}",
"public void endOfTurn() {\n if (playerInTurn.equals(Player.RED)) {\n playerInTurn = Player.BLUE;\n observers.turnEnds(playerInTurn, age);\n controlStrategy.playRound(this);\n return;\n }\n\n // If blue is in turn, change player in turn to red and do end-of-round processing.\n playerInTurn = Player.RED;\n\n // Calculate the age of the game in the next round.\n age = ageStrategy.calculateAge(age);\n\n // Restore the move count of all the units.\n for (Position p : world.getUnitPositions()) {\n world.getUnitAt(p).restoreMoveCount();\n }\n\n // For each city, add 6 to the current amount of production, and produce as many units as it can afford.\n for (Position p : world.getCityPositions()) {\n ModifiableCity city = world.getCityAt(p);\n\n workForceStrategy.gatherFoodAndProduction(world, p);\n\n populationStrategy.populationGrowth(world, p);\n\n // produce units!\n city.produceUnits(world, p, observers);\n }\n // Add to the counter of rounds played in the game.\n roundsPlayed++;\n\n observers.turnEnds(playerInTurn, age);\n\n controlStrategy.playRound(this);\n\n }",
"public void startRound(int round) {\n\t\tif (round != 1) {\n\t\t\tSystem.out.println(\" Vous avez effectuez votre : \" + round + \" ème attaques\\n\");\n\t\t} else {\n\t\t\tSystem.out.println(\" Vous avez effectuez votre : \" + round + \" ère attaque\\n\");\n\t\t}\n\n\t}",
"private GameResponse playNextRound() {\n if(gameResponse.getPoint() == 0) {\n gameResponse.setMessage(null);\n roll();\n gameResponse.setPoint(currentRoll);\n if (WINS.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (LOSES.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n } else {\n roll();\n if (currentRoll == gameResponse.getPoint()) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (currentRoll == 7) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n }\n return gameResponse;\n }",
"void endOfRound(int roundsPlayed, int playerAScore, int playerBScore) throws IOException;",
"public void newRound() {\n //Reset the score\n dealerScore = 0;\n playerScore = 0;\n\n //Take the player's losses\n playerBet = 0;\n\n //Clear the decks\n dealerStack.clear();\n playerStack.clear();\n\n //Clear the talon\n cards = null;\n\n //reset the talon counter\n talonStack = 0;\n\n //Create a new deck and shuffle for next game\n cards = new Card[52 * numDecks];\n cards = initialize(cards, numDecks);\n cards = shuffleDeck(cards, numDecks);\n }",
"public boolean nextRound() {\n if (numberOfRounds > playedRounds) {\n return true;\n }\n return false;\n }",
"private void startNewTimer(){\n timer.cancel();\n timer = null;\n timesUp();\n timer = new MainGameTimer(this);\n timer.startNewRoundCountDown();\n }",
"public abstract void startRound(Deck d);",
"public void playRound(){\n\t\tsetHumanThrow(humanType); \n\t\tsetCompThrow();\n\t\tSystem.out.println(\"Your Throw: \" + humanThrow.getThrowType());\n\t\tSystem.out.println(\"The Computer's Throw: \" + compThrow.getThrowType());\n\t\tRound current = new Round(humanThrow, compThrow);\n\t\tthisGame.updateScores(current);\n\t\tSystem.out.println(current.getRoundSummary());\n\t\tif(thisGame.getRoundNumber() < totalRounds){\n\t\t\tplayRound();\n\t\t}\n\t\telse{\n\t\t\tendGame();\n\t\t}\n\t}",
"public void endRound(String message) {\n sendMessage(Prefix.ENDROUND, message);\n }",
"public int getCurrentRound()\n\t{\n \treturn currentRound;\n\t}",
"private void playGame() {\n drawBricks();\n for (int i = 1; i <= NTURNS; i++) {\n setBallSpeed();\n GOval ball = drawBall();\n paddle = drawPaddle();\n showLabel(\"ROUND \" + i, Color.ORANGE);\n waitForClick();\n playRound(ball);\n }\n showLabel(\"GAME OVER\", Color.BLACK);\n }",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}",
"public Boolean completeSubRound() {\n\t\tif (subRound != 1) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tSystem.out.println(\"#################################SUBROUND COMPLETED#################################\");\n\t\t\tsubRound = 0;\n\t\t\treturn true;\n\t\t}\n\t}",
"@Override\n\tpublic void onRoundStarted(RoundStartedEvent event) {\n\t\tsuper.onRoundStarted(event);\n\t}",
"private void setRound(ChesspairingRound round) {\n\t\tint rNumber = round.getRoundNumber();\n\t\tif (rNumber < 1) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tList<ChesspairingRound> rounds = mTournament.getRounds();\n\t\tif (rounds.size() >= rNumber) {\n\t\t\trounds.remove(rNumber - 1);\n\t\t}\n\t\trounds.add(rNumber - 1, round);\n\t}",
"public boolean runRound() {\n gameMove();\n // return/check if gameover condiation is meet\n return isGameOver();\n }",
"public void setCurrentGameRound(int round){\n\t\tcurrentGameRound = round;\n\t\trepaint();\n\t}",
"public void makePlayerSkipNextRound() {\n\t\tcurrent.setSkipNextRound(true);\n\t}",
"private void startFinalRound() {\r\n if(!m_state.isMidGame()) {\r\n throw new RuntimeException(\"startFinalRound() called, but not midgame\");\r\n }\r\n\r\n m_state.setState(State.STARTING_FINAL);\r\n\r\n if(m_survivorCount == 0) {\r\n m_botAction.sendArenaMessage(\"No survivors?! \\\\(o_O)/\", 24);\r\n endGame();\r\n return;\r\n } else if(m_survivorCount == 1) {\r\n for(KimTeam team : m_survivingTeams) {\r\n if(team != null) {\r\n m_botAction.sendArenaMessage(\"Winner by default: \" + team.toString());\r\n break;\r\n }\r\n }\r\n\r\n endGame();\r\n return;\r\n }\r\n\r\n //display survivors\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n printFormattedTeams(m_survivingTeams, 4);\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n m_botAction.sendArenaMessage(\"Welcome to the Final Round!\", 2);\r\n\r\n //pm leavers\r\n for(String name : m_startingLagouts) {\r\n if(name != null) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Final round is starting. You have 15 seconds to return.\");\r\n }\r\n }\r\n\r\n //warp to final safes and ?set spawns\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n for(int i = 0; i < 4; i++) {\r\n KimTeam team = m_survivingTeams[i];\r\n\r\n if(team != null) {\r\n for(KimPlayer kp : team) {\r\n kp.resetTime();\r\n\r\n if(m_startingReturns.remove(kp)) {\r\n int retID = m_botAction.getPlayerID(kp.m_name);\r\n\r\n if(retID < 0) {\r\n m_startingLagouts.add(kp.m_lcname);\r\n continue;\r\n } else {\r\n putPlayerInGame(retID, kp, true);\r\n }\r\n }\r\n\r\n m_botAction.warpTo(kp.m_name, m_finalSafeCoords[i << 1], m_finalSafeCoords[(i << 1) + 1]);\r\n }\r\n }\r\n }\r\n\r\n setFinalSpawns();\r\n }\r\n }, DELAY_FINAL_SETUP);\r\n\r\n //countdown lvz object\r\n m_botAction.scheduleTask(new CountdownImage(), DELAY_FINAL_COUNTDOWN);\r\n\r\n //go go go\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n synchronized(m_state) {\r\n m_state.setState(State.MIDGAME_FINAL);\r\n m_botAction.sendArenaMessage(\"GO! GO! GO!\", 104);\r\n\r\n for(int i = 0; i < 4; i++) {\r\n KimTeam team = m_survivingTeams[i];\r\n\r\n for(KimPlayer kp : team) {\r\n if(kp != null) {\r\n if(m_startingLagouts.remove(kp.m_lcname)) {\r\n registerLagout(kp);\r\n continue;\r\n }\r\n\r\n if(m_startingReturns.remove(kp)) {\r\n int retID = m_botAction.getPlayerID(kp.m_name);\r\n\r\n if(retID < 0) {\r\n registerLagout(kp);\r\n continue;\r\n } else {\r\n putPlayerInGame(retID, kp, true);\r\n }\r\n } else {\r\n kp.resetTime();\r\n }\r\n\r\n m_botAction.warpTo(kp.m_name, m_finalGoCoords[i << 1], m_finalGoCoords[(i << 1) + 1]);\r\n }\r\n }\r\n }\r\n\r\n m_botAction.shipResetAll();\r\n m_poll = new Poll(m_survivingTeams, m_botAction);\r\n }\r\n }\r\n }, DELAY_FINAL_GOGOGO);\r\n }",
"protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }",
"public GoLBoard nextRound()\n\t{ \n\t\t//tempBoard = the new upcoming GoLBoard that will be returned\n \tGoLBoard tempBoard = this.copyBoard(); \n \t\n \t//set the births and deaths to the beginning\n \tcurrentDeath = 0;\n \tcurrentBirths = 0;\n \t \n \t//currRow = current row\n \t//currCol = current column\n \t//Accumulate number of cells that birthed and died\n \t//Update the tempBoard using the updateCell method\n \tfor (int currRow = 1; currRow <= setSize; currRow++)\n \t{\n \tfor (int currCol = 1;currCol <= setSize; currCol++)\n \t{\n \t boolean wasAlive = myGoLCell[currRow][currCol].isAlive();\n \t boolean nowAlive =\n \t \ttempBoard.getCell(currRow,currCol).updateCell(getNeighborhood(currRow,currCol));\n \t currentDeath += (wasAlive && !nowAlive)?1:0;\n \t currentBirths += (!wasAlive && nowAlive)?1:0;\n \t}\n \t}\n \t\n \t//Replace the current myGoLCell with the updated\n \tthis.myGoLCell = tempBoard.myGoLCell;\n \t\n \t//Add number of rounds\n \tcurrentRound++;\n \t\n \t//return the current board\n \treturn this;\n\t}",
"public boolean isLastRound(){\n return gameDescriptor.getTotalCycles()==roundNumber;\n }",
"public void cancel()\n {\n Enumeration en = m_rounds.keys();\n while (en.hasMoreElements())\n {\n PaxosRound tmp = (PaxosRound) m_rounds.get(en.nextElement());\n tmp.abort();\n }\n }",
"protected void end() {\n \tRobot.gearIntake.setIsDown(false);\n \tRobot.gearIntake.setGearRollerSpeed(0);\n }",
"private void endTurn() {\n\t\t\n\t\tif (roundChanger == 1) {\n\t\t\tString currentPlayer = textFieldCurrentPlayer.getText();\n\t\t\tif (currentPlayer.equals(\"Player1\")) {\n\t\t\t\ttextAreaInstructions.setText(\"The current roll to beat is \" + player1.getDie1()\n\t\t\t\t+ \" \" + player1.getDie2() + \" \" + player1.getDie3());\n\t\t\t\trollToBeat = \"The current roll to beat is \" + player1.getDie1()\n\t\t\t\t+ \" \" + player1.getDie2() + \" \" + player1.getDie3();\n\t\t\t} else {\n\t\t\t\ttextAreaInstructions.setText(\"The current roll to beat is \" + player2.getDie1()\n\t\t\t\t+ \" \" + player2.getDie2() + \" \" + player2.getDie3());\n\t\t\t\trollToBeat = \"The current roll to beat is \" + player2.getDie1()\n\t\t\t\t+ \" \" + player2.getDie2() + \" \" + player2.getDie3();\n\t\t\t} \n\t\t\tchangeCurrentPlayerText();\n\t\t\tturn = 0;\n\t\t\troundChanger = 2;\n\t\t} else {\n\t\t\tString winningPlayer = calculateScore(player1, player2);\n\t\t\ttextFieldCurrentPlayer.setText(winningPlayer);\n\t\t\troundChanger = 1;\n\t\t\trollsTaken = 0;\n\t\t\tround = round + 1;\n\t\t\ttextFieldPlayerOneScore.setText(Integer.toString(player1.getPoints()));\n\t\t\ttextFieldPlayerTwoScore.setText(Integer.toString(player2.getPoints()));\n\t\t\ttextAreaInstructions.setText(\"Try to get the highest roll possible!\");\n\t\t\tcheckForGameOver();\n\t\t}\n\t\ttogglebtnD1.setSelected(false);\n\t\ttogglebtnD2.setSelected(false);\n\t\ttogglebtnD3.setSelected(false);\n\t\tdisableDice();\n\t\tturn = 0;\n\t}",
"@Override\n void individualUpdate() {\n timeToLive--;\n radius++;\n setColor();\n }",
"public boolean tick() {\n/* 55 */ this.affected = true;\n/* 56 */ if (this.round > 0)\n/* 57 */ this.round--; \n/* 58 */ return (this.round == 0);\n/* */ }",
"void concludeRound() {\n\n ArrayList<Card> currentTopCards = getCurrentTopCards();\n transferCards(roundWinner, currentTopCards);\n eliminatePlayers();\n\n logger.log(\"Communal Deck: \" + deck);\n logger.log(divider);\n for (Player player : players) {\n logger.log(\"Hand: \" + player);\n }\n\n logger.log(\"Round complete.\");\n\n setGameState(GameState.ROUND_COMPLETE);\n }",
"public int getCurrentRound() {\n\t\treturn roundNumber;\n\t}",
"@Override\n public void run() {\n drawBack(holder);\n drawClock();\n// drawCircle();\n }",
"protected void end() {\n \tRobotMap.gearIntakeRoller.set(0);\n }",
"public void runRound(StartRoundDto startRoundDto) {\n this.startRoundDto = startRoundDto;\n GameScreen.getUiHandler().hideDrawnCards();\n for (IPlayer player : players) {\n if (!mainPlayer().equals(player)) {\n OnlinePlayer onlinePlayer = (OnlinePlayer) player;\n for (PlayerDto playerDto : startRoundDto.players) {\n if (playerDto.id == onlinePlayer.getId()) {\n if (playerDto.isPoweredDown) {\n onlinePlayer.setPoweredDown(true);\n } else {\n onlinePlayer.setPoweredDown(false);\n onlinePlayer.setCards(playerDto.cards);\n }\n }\n }\n } else {\n for (PlayerDto playerDto : startRoundDto.players) {\n if (playerDto.id == mainPlayer().getId() && !mainPlayer().isPoweredDown() && playerDto.cards != null) {\n ((Player) mainPlayer()).getCards().setSelectedCards(playerDto.cards);\n }\n }\n }\n }\n GameGraphics.getRoboRally().round();\n\n }",
"public void setRound(int round) {\r\n this.round = round;\r\n }",
"@Override\n public void run() {\n drawingEndOfLevelUI = true;\n AI.endgameSFX.play(1.0f);\n\n }",
"@Override\n public void run() {\n drawingEndOfLevelUI = true;\n AI.endgameSFX.play(1.0f);\n\n }",
"public void endGame() {\n for (Player player : this.players.values()) {\n if (player.getBankroll() == this.playerAmount * DEFAULT_BANKROLL) {\n this.doPokerEnds = true;\n break;\n }\n }\n this.startingGamePlayer = ++this.startingGamePlayer % this.playerAmount;\n }",
"public void endDrawing();",
"public PaxosRound createRound()\n {\n return createRound(0);\n }",
"public Round createRoundComplete(Tournament tournament) {\r\n\t\tRound newRound = createRound(tournament);\r\n\t\tcalculatePausedPlayers(tournament, newRound);\r\n\t\tcreateAllRoundMatches(tournament, newRound);\r\n\t\treturn newRound;\r\n\t}",
"@Override\n public void endGameAsWin()\n {\n // UPDATE THE GAME STATE USING THE INHERITED FUNCTIONALITY\n super.endGameAsWin();\n \n // RECORD THE TIME IT TOOK TO COMPLETE THE GAME\n long gameTime = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n \n // RECORD IT AS A WIN\n ((MahjongSolitaireMiniGame)miniGame).getPlayerRecord().addWin(currentLevel, gameTime);\n ((MahjongSolitaireMiniGame)miniGame).savePlayerRecord();\n \n // DISPLAY THE WIN DIALOG\n miniGame.getGUIDialogs().get(WIN_DIALOG_TYPE).setState(VISIBLE_STATE); \n\n // AND PLAY THE WIN ANIMATION\n playWinAnimation();\n \n // AND PLAY THE WIN AUDIO\n miniGame.getAudio().stop(MahjongSolitairePropertyType.SPLASH_SCREEN_SONG_CUE.toString()); \n miniGame.getAudio().stop(MahjongSolitairePropertyType.GAMEPLAY_SONG_CUE.toString());\n miniGame.getAudio().play(MahjongSolitairePropertyType.WIN_AUDIO_CUE.toString(), false);\n }",
"private int end_round() {\n if(gameClock.displayTime() <= 0) {\n return 2;\n }\n \n for(target t : targets) {\n if(!t.is_hit()) return 0;\n }\n \n return 1;\n }",
"@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n sleep(3000);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n //sh.pivotStop.setPosition(.55);\n sh.hitRing();\n sleep(500);\n //sh.pivotDown();\n sh.hitRing();\n sleep(500);\n sh.withdraw();\n sh.lift.setPower(0);\n sh.lift.setPower(0);\n wobble.wobbleUp();\n sh.pivotStop.setPosition(1);\n loop.end();\n\n\n }",
"public Boolean completeRound(){\n\t\tint[] roundsTotal = {1,2,3,4,5,6,5,4,3,2,1};\n\n\t\tif (roundsTotal[round-1] == roundCounter) {\n\t\t\tSystem.out.println(\"ROUNDCOUNTER ####### \" + roundCounter);\n\t\t\tSystem.out.println(\"TOTAL SUBROUND ####### \" + cardsToDealPerRound[round-1]);\n\t\t\tSystem.out.println(\"ROUND ####### \" + round);\n\t\t\tgameLogic.getScoreboard().calculateRoundScore(round);\n\t\t\tgameLogic.getScoreboard().calculateTotalScore();\n\t\t\troundCounter = 0;\n\t\t\tround += 1;\n\t\t\tgameLogic.setRound(round);\n\n\t\t\tSystem.out.println(\"#################################ROUND COMPLETED#################################\");\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@RequestMapping(\"/startGame\")\n\tpublic @ResponseBody\n\tRound startGame() {\n\n\t\tblackJackService.startRound(round);\n\t\treturn round;\n\t}",
"@Override\n public void run() {\n if (this.initialCounter % 20 == 0) {\n System.out.println(\"------------------ Start leaving ------------------\");\n this._getRandomSlotInRange(0, 2).forEach(this.PARKING_APP::leaving);\n System.out.println(\"------------------ End leaving --------------------\");\n }\n if (this.initialCounter % 10 == 0) {\n System.out.println(\"------------------ Start parking ------------------\");\n this._startParking();\n System.out.println(\"------------------ End parking --------------------\");\n }\n if (this.initialCounter % 15 == 0) {\n System.out.println(\"------------------ Start counting ------------------\");\n this.PARKING_APP.calculateAvailableSlotAmount();\n System.out.println(\"------------------ End counting --------------------\");\n }\n this.initialCounter++;\n if (this.initialCounter > 60) {\n this.initialCounter = 1;\n }\n }",
"public void finishSubRound(){\n\n\t\t/* sorts the cards on in the table pool in a decsending order */\n List<PlayerCardArray> sortedTableHand =\n\t\t\t\tgameLogic.getTableHand().sortedTableHand(gameLogic.getTrumpCard().getSuit(),\n gameLogic.getLeadSuitCard().getSuit());\n\n System.out.println(sortedTableHand);\n\n PlayerCardArray winner = sortedTableHand.get(0);\n\n\t\t/* Display winner of the round */\n System.out.println(\"The winner of this round is player ID: \" + winner.getPlayerId());\n gameLogic.getScoreboard().addTricksWon(round, winner.getPlayerId());\n\n\t\t/* Get the winner name */\n\t\tif (winner.getPlayerId() == 0){\n\t\t\twinnerName = lblNameA.getText();\n\t\t} else if (winner.getPlayerId() == 1){\n\t\t\twinnerName = lblNameB.getText();\n\t\t}else if (winner.getPlayerId() == 2){\n\t\t\twinnerName = lblNameC.getText();\n\t\t}else if (winner.getPlayerId() == 3){\n\t\t\twinnerName = lblNameD.getText();\n\t\t}\n\n\t\t/* displays the message dialog box informing winner of the round */\n JOptionPane.showMessageDialog(null, \"Round: \" + round + \"\\nSubround: \" + (roundCounter+1) + \"\\nWinner is: \" + winnerName);\n\n\t\t/* set Winner for player */\n for (Player p : gameLogic.getArrayOfPlayers().getArrayOfPlayers()) {\n if ( p.getPlayerId() == winner.getPlayerId() ) {\n p.setTrickWinner(true);\n } else {\n p.setTrickWinner(false);\n }\n }\n\n\t\t/* updates the UI informing play how many tricks won so far */\n\t\tfor (Player p : gameLogic.getArrayOfPlayers().getArrayOfPlayers()) {\n\t\t\tif (winner.getPlayerId() == 0){\n\t\t\t\troundBidsWon += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 1){\n\t\t\t\troundBidsWon1 += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 2){\n\t\t\t\troundBidsWon2 += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 3){\n\t\t\t\troundBidsWon3 += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* Set position for players */\n System.out.println(\"OLD PLAYER ORDER: \" + gameLogic.getArrayOfPlayers().getArrayOfPlayers());\n if (round != 11) {\n gameLogic.setPlayerOrder(round);\n currentPlayer = gameLogic.getArrayOfPlayers().getArrayOfPlayers().get(0).getPlayerId();\n if (currentPlayer == 0){\n \tSystem.out.println(\"YOU ARE NOW THE FIRST PERSON TO PLAY\");\n \twaitingUser = true;\n } else {\n \twaitingUser = false;\n }\n System.out.println(\"NEW PLAYER ORDER: \" + gameLogic.getArrayOfPlayers().getArrayOfPlayers());\n }\n\n\t\t/* Clear tableHand at end of subround */\n gameLogic.getTableHand().clearTableHand();\n\t}",
"@Override\n\tpublic void newGame() {\n\t\tround = 0;\n\t\tnewRound();\n\t\t\n\t\tgameOverSoundPlayed = false;\n\t\t\n\t\t// Reset player scores\n\t\tfor (Player player : players) {\n\t\t\tsetPlayerScore(player, 0);\n\t\t}\n\t\t\n\t\t// Reset all button press counters\n\t\tfor (IButton button : buttons) {\n\t\t\tbutton.resetPressCounter();\n\t\t}\n\t\t\n\t\t// Start the game timer\n\t\tdeltaTimeAlive = getPhysicsTickMillis();\n\t\tdeltaTimeDead = deltaTimeAlive / 4;\n\t}",
"@Override\r\n\tpublic void setRound(int round) {\n\t\tthis.round = \"Round: \"+round;\r\n\t\tupdate();\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tif (!((LightningBoard) game.getCurrentLevel().getBoard()).decrementTime()){\n\t\t\tLightningTimer t = LightningTimer.getInstance();\n\t\t\tt.cancel();\n\t\t\t\n\t\t\tif (game.getCurrentLevel().isLevelPassed()){\n\t\t\t\tgame.setLevelPlayable(game.getCurrentLevel().getLevel() + 1);\n\t\t\t}\n\t\t\t\n\t\t\tgame.addAcc();\t\n\t\t\tappPanel.getPlayView().getComboView().stopTimer();\n\t\t\tappPanel.getResultView().update();\n\t\t\tappPanel.showResultView();\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tappPanel.getPlayView().update();\n\t}",
"public void playRound(){\n this.gameState = GameController.createGameState(this.game);\n \n // Verifica se o \n if(this.gameState.isEnded()){\n var winner = this.gameState.getPlayerQttCards() == 0 ? this.game.getComputer() : this.game.getPlayer();\n\n this.gameState.setWinner(winner);\n }\n else{\n \n // Mostrando o vira, as manilhas, a quantidade de cartas dos jogadores e as cartas do jogador\n this.view.displayGame(this.gameState);\n\n var playerCardChose = this.getPlayerCardChose();\n var computerCardChose = Utils.generateRandomNumber(getGameState().getComputerQttCards());\n\n try{\n var playerCard = this.game.getPlayer().playCard(playerCardChose);\n var computerCard = this.game.getComputer().playCard(computerCardChose);\n\n var winnerCard = this.verifyBiggerCard(playerCard, computerCard);\n\n // Verificando qual `Player` ganhou e se um ganhou\n\n var hasPlayerWon = winnerCard.equals(playerCard);\n var hasComputerWon = winnerCard.equals(computerCard);\n\n var turnedCard = this.getGameState().getTurnedCard();\n\n // Aqui caso o player tenha ganhado ele recebe a carta do computador e senão ele perde a carta para o computador\n if(hasPlayerWon){\n this.game.getPlayer().earnCard(computerCard);\n this.game.getComputer().loseCard(computerCard);\n }\n else if(hasComputerWon){\n this.game.getComputer().earnCard(playerCard);\n this.game.getPlayer().loseCard(playerCard);\n }\n \n // Na hora de mostrar o vencedor eu verifico se um player venceu, se sim eu mostro vitória ou derrota para o Player\n // Se não eu mostro empate\n \n if(hasComputerWon || hasPlayerWon){\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard, hasPlayerWon);\n }\n else {\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard);\n }\n\n }\n catch(Exception excp){\n this.view.displayMessageError(excp.getMessage());\n\n this.playRound();\n }\n }\n \n }",
"public void endOfTurn();",
"public void tick()\n {\n //We have to respawn the circles if they reach the bottom of the screen\n if (hasPassed())\n {\n //Randomly reset the x coordinates.\n this.x = minRandom + new Random().nextFloat()*(maxRandom-minRandom);\n //Fixed Y spawn\n this.y = spawnY;\n //Randomly reset the width,height, and radius of the new asteroid\n int newHeight, newWidth;\n newHeight = 32 + (int) (new Random().nextFloat()*(64.0f-32.0f));\n newWidth = newHeight;\n setWidth(newWidth);\n setHeight(newHeight);\n this.radius = width*0.5f;\n //Create a new Random color\n Random gen = new Random();\n int red, green, blue = 50;\n do\n {\n red = 40 + (int) (gen.nextFloat()*(255.0f-40.0f));\n green = 40 + (int) (gen.nextFloat()*(255.0f-40.0f));\n blue = 40 + (int) (gen.nextFloat()*(255.0f-40.0f));\n } while (red != green && red != blue);\n \n this.color = new Color(red,green,blue);\n }\n else\n {\n fall();\n move();\n }\n }",
"@Override\n protected void end() {\n // Robot.colorSensor.spinWheel(0.0);\n }",
"public void playGame(){\n int roundNumber = 0;\n gameDeck.shuffle();\n while (!isGameOver()) {\n roundNumber++;\n System.out.println(\"\\n---Round \" + roundNumber + \"---\");\n playRound();\n }\n }",
"void go() {\n while (!gameOver) {\n try {\n Thread.sleep(showDelay);\n } catch (Exception e) {\n e.printStackTrace();\n }\n canvas.repaint();\n checkFilling();\n if (figure.isTouchGround()) {\n figure.leaveOnTheGround();\n figure = new Shapes(this);\n gameOver = figure.isCrossGround(); // Is there space for a new figure?\n } else\n figure.stepDown();\n }\n }",
"public void play() {\n\t\t\n\t\tThread\tgameThread = new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\twhile(!isGameOver()) {\n\t\t\t\t\t\t\n\t\t\t\t\tif (pause) {\n\t\t\t\t\t\tsynchronized (brick) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbrick.wait();\n\t\t\t\t\t\t\t\t// pause = true;\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (collision()) {\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboolean isDown = brick.goDown(brickgc, gameBoard);\n\t\t\t\t\t\tif(!isDown) {\n\t\t\t\t\t\t\tSystem.out.println(\"******* the brick got bottom now start new round\");\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t});\n\t\tgameThread.start();\n\t}",
"protected void end() {\n\t\tPickup.setRollers(0);\n\t}",
"public void playGame() {\n\t\t\r\n\t\t\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tplayRoundOne();\r\n\t\t}\r\n\t\t\r\n\t}",
"protected void end() {\n Robot.arm.moveArm(0, 1);\n }",
"public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}",
"public void step(){\n if (this.ht < maxHeight){\n this.ht = this.ht + STEP_SIZE;\n }\n else if (! this.isFinished()){\n this.radius = this.radius + GROW_SIZE;\n }\n }",
"public void endGame(){\n updateHighscore();\n reset();\n }",
"@Override\n public void onClick(View v) {\n saveRoundSetting();\n Intent NextScreen = new Intent(RoundSetting.this, Scoring.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }",
"public PaxosRound createRound(int a_round)\n {\n PaxosRound result = new PaxosRound(this, a_round, getNextRoundLeader(a_round));\n m_rounds.put(new Integer(a_round), result);\n return result;\n }",
"public static void endGame(){\n System.out.println(\"\" +\n \"######## ## ## ### ## ## ## ## ###### ######## ####### ######## \\n\" +\n \" ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## \\n\" +\n \" ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## \\n\" +\n \" ## ######### ## ## ## ## ## ##### ###### ###### ## ## ######## \\n\" +\n \" ## ## ## ######### ## #### ## ## ## ## ## ## ## ## \\n\" +\n \" ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## \\n\" +\n \" ## ## ## ## ## ## ## ## ## ###### ## ####### ## ## \\n\\n\" +\n \"######## ## ### ## ## #### ## ## ###### #### \\n\" +\n \"## ## ## ## ## ## ## ## ### ## ## ## #### \\n\" +\n \"## ## ## ## ## #### ## #### ## ## #### \\n\" +\n \"######## ## ## ## ## ## ## ## ## ## #### ## \\n\" +\n \"## ## ######### ## ## ## #### ## ## \\n\" +\n \"## ## ## ## ## ## ## ### ## ## #### \\n\" +\n \"## ######## ## ## ## #### ## ## ###### #### \");\n\n\n }"
] |
[
"0.766683",
"0.7286056",
"0.707066",
"0.7055518",
"0.69990283",
"0.6784767",
"0.67418647",
"0.67053723",
"0.66488004",
"0.662915",
"0.6424875",
"0.64173913",
"0.63992316",
"0.6383974",
"0.6334077",
"0.6322687",
"0.630725",
"0.63051677",
"0.62445307",
"0.6219133",
"0.6201134",
"0.6144986",
"0.61234224",
"0.6112211",
"0.6107323",
"0.60696197",
"0.6055885",
"0.6024075",
"0.6022975",
"0.6008936",
"0.59597164",
"0.58643377",
"0.5852761",
"0.58302253",
"0.5794387",
"0.5781017",
"0.5779482",
"0.57135665",
"0.57077366",
"0.5699313",
"0.56847245",
"0.56811744",
"0.56755096",
"0.5665904",
"0.5657553",
"0.564128",
"0.56403905",
"0.56195825",
"0.5609617",
"0.5598664",
"0.5592142",
"0.55905396",
"0.5575237",
"0.55636454",
"0.5559131",
"0.553043",
"0.5526955",
"0.5516514",
"0.5501527",
"0.54602325",
"0.5447736",
"0.54387885",
"0.54328",
"0.54295546",
"0.5426422",
"0.54078406",
"0.5402937",
"0.5387562",
"0.538538",
"0.538538",
"0.5378708",
"0.5376023",
"0.537579",
"0.5363807",
"0.5356135",
"0.5352934",
"0.5335035",
"0.53329766",
"0.53290975",
"0.5326236",
"0.5312298",
"0.5298326",
"0.52919066",
"0.5281327",
"0.5276305",
"0.52528644",
"0.525153",
"0.524156",
"0.5236465",
"0.5223348",
"0.5204362",
"0.5202689",
"0.5173335",
"0.51668435",
"0.51548153",
"0.51421493",
"0.5140487",
"0.513892",
"0.51362103",
"0.513551"
] |
0.6573578
|
10
|
Ends game, checks who won and displays dialog
|
private void endGame() {
PlayRound.endGame();
int score1 = users.get(0).getPoints();
int score2 = users.get(1).getPoints();
String winnerString;
if(score1 > score2){
winnerString = users.get(0).getName() + " " + "won!";
}
else if (score2 > score1) {
winnerString = users.get(1).getName() + " " + "won!";;
}
else {
winnerString = "there was a tie!";
}
JFrame frame = new JFrame();
ImageIcon icon = new ImageIcon(Game.class.getResource("/resources/cup.png"));
JOptionPane.showMessageDialog(null, winnerString, "Congratulations", JOptionPane.OK_OPTION, icon);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void endGame() {\n Player player = playerManager.getWinner();\n MainActivity mainActivity = (MainActivity) this.getContext();\n updateLiveComment(\"Winner : \" + player.getName());\n mainActivity.setAlertDialog(player.getName()+\" Wins !\", \"Congratulations\", true);\n }",
"private void endGame() {\n\t\tPlatform.runLater(() -> {\n\t\t\t// sets up gameOverDialog\n\t\t\tAlert gameOverDialog = new Alert(AlertType.CONFIRMATION);\n\t\t\tgameOverDialog.setTitle(\"Game Over\");\n\n\t\t\tgameOverDialog.setHeaderText(\"Score: \" + score + \"\\n\"\n\t\t\t\t\t+ \"Mastery : \" + (int)MASTER_SCORES[difficulty] + \" points\\n\"\n\t\t\t\t\t+ \"Try Again?\");\n\n\t\t\tOptional<ButtonType> result = gameOverDialog.showAndWait();\n\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\t\t// updates the file with current date, score, and difficulty\n\t\t\ttry {\n\t\t\t\tsc.getCurrentUser().updateFile(GAME_CODE, dateFormat.format(new Date()), score, difficulty);\n\t\t\t}\n\t\t\t// catches IOException and informs the user\n\t\t\tcatch (IOException ex) {\n\t\t\t\tAlert errorDialog = new Alert(AlertType.ERROR);\n\t\t\t\terrorDialog.setTitle(\"Error\");\n\t\t\t\terrorDialog.setHeaderText(\"Error\");\n\t\t\t\terrorDialog.setContentText(\"File could not be saved\");\n\t\t\t\terrorDialog.showAndWait();\n\t\t\t}\n\n\t\t\t// resets if OK button is selected\n\t\t\tif (result.get() == ButtonType.OK) {\n\t\t\t\treset();\n\t\t\t}\n\n\t\t\t// quits in CANCEL button is selected\n\t\t\tif(result.get() == ButtonType.CANCEL) {\n\t\t\t\tquitBtn.fire();\n\t\t\t}\n\t\t});\n\t}",
"private void checkForGameEnd() {\n\t\tint checkWin = controller.checkForWinner();\n\t\tif(playerType == null && checkWin == 1 || (playerType != null && playerType == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"VICTORY\");\n\t\t\talert.setHeaderText(\"VICTORY\");\n\t\t\talert.setContentText(\"CONGRATULATIONS! YOU WIN!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (playerType == null && checkWin == 2 || (playerType != null && playerType%2 + 1 == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"DEFEAT\");\n\t\t\talert.setHeaderText(\"DEFEAT\");\n\t\t\talert.setContentText(\"SHAME! YOU LOSE!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (controller.checkForTie()) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"STALEMATE\");\n\t\t\talert.setHeaderText(\"STALEMATE\");\n\t\t\talert.setContentText(\"ALAS! TIE GAME!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t}\n\t\t\n\t\tif(playerType != null && gameFinished) {\n\t\t\tSystem.out.println(\"closing connection\");\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"ERROR CLOSING\");\n\t\t\t}\n\t\t}\n\t}",
"private void endGame() {\n pauseTimer();\n if (!myGameOver && !myWelcome) {\n final int result = JOptionPane.showOptionDialog(null, \n \"Are you sure you want to end this game?\",\n \"End Current Game\", JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE, null, null,\n JOptionPane.NO_OPTION);\n if (result == JOptionPane.YES_OPTION) {\n myGameOver = true;\n repaint();\n } else {\n startTimer();\n }\n }\n }",
"private void endGame(){\n if (winner){\n Toast.makeText(this, \"Fin del Juego: Tu ganas\", Toast.LENGTH_SHORT).show();\n finish();\n } else {\n Toast.makeText(this, \"Fin del Juego: Tu pierdes\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }",
"public static void endGame(Boolean hasWon){\n\t\tif(hasWon){\n\t\t\trun.winPopup();\n\t\t}\n\t\telse{\n\t\t\trun.losePopup();\n\t\t}\n\t}",
"public void endGame() {\n dispose();\n System.out.println(\"Thank you for playing\");\n System.exit(0);\n }",
"@Override\n public void endGameAsWin()\n {\n // UPDATE THE GAME STATE USING THE INHERITED FUNCTIONALITY\n super.endGameAsWin();\n \n // RECORD THE TIME IT TOOK TO COMPLETE THE GAME\n long gameTime = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n \n // RECORD IT AS A WIN\n ((MahjongSolitaireMiniGame)miniGame).getPlayerRecord().addWin(currentLevel, gameTime);\n ((MahjongSolitaireMiniGame)miniGame).savePlayerRecord();\n \n // DISPLAY THE WIN DIALOG\n miniGame.getGUIDialogs().get(WIN_DIALOG_TYPE).setState(VISIBLE_STATE); \n\n // AND PLAY THE WIN ANIMATION\n playWinAnimation();\n \n // AND PLAY THE WIN AUDIO\n miniGame.getAudio().stop(MahjongSolitairePropertyType.SPLASH_SCREEN_SONG_CUE.toString()); \n miniGame.getAudio().stop(MahjongSolitairePropertyType.GAMEPLAY_SONG_CUE.toString());\n miniGame.getAudio().play(MahjongSolitairePropertyType.WIN_AUDIO_CUE.toString(), false);\n }",
"public void triggerEndGame()\n\t{\n\t\tif(livesRemaining <= 0)\n\t\t{\n\t\t\tmP[0].stop();\n\t\t\tmP[1].stop();\n\t\t\tmP[2].stop();\n\t\t\tendGame = new Alert(AlertType.CONFIRMATION);\n\t\t\tendGame.setTitle(\"1942\");\n\t\t\tendGame.setHeaderText(null);\n\t\t\tendGame.getButtonTypes().clear();\n\t\t\tendGame.setContentText(\"You're dead! \\nYou finished with \" + p1Score + \" points. \\nWould you like to play again?\");\n\t\t\tendGame.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\t\tendGame.setGraphic(new ImageView(new Image(\"file:images/gameOver.png\")));\n\t\t\tspawnTimerTL.stop();\n\t\t\tmainTimer.stop();\n\t\t\tp1.getNode().setImage(null); //Removes player from screen\n\t\t\tOptional<ButtonType> result = endGame.showAndWait();\n\n\t\t\tif(result.get() == ButtonType.YES)\n\t\t\t{\n\t\t\t\tlivesRemaining = 3;\n\t\t\t\thealthRemaining = 10;\n\t\t\t\tivHealthBar.setImage(imgHealth[healthRemaining]);\n\t\t\t\tivLives.setImage(imgLives[livesRemaining]);\t\n\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\t\n\t\t\t\tlblHighScore.setText(Integer.toString(highScore));\n\t\t\t\tp1Score = 0;\n\t\t\t\tlblp1score.setText(Integer.toString(p1Score));\n\n\t\t\t\tp1.setDead(false);\n\t\t\t\tmainTimer.start();\n\t\t\t\tspawnTimerTL.play();\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < enemyPlanes.length; k++)\n\t\t\t\t{\n\t\t\t\t\tenemyPlanes[k].toggleIsDead(true);\n\t\t\t\t\tenemyPlanes[k].setY(2000);\n\t\t\t\t\tenemyPlanes[k].getNode().setLayoutY(enemyPlanes[k].getY());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\tthankYou = new Alert(AlertType.INFORMATION);\n\t\t\t\tthankYou.setTitle(\"1942\");\n\t\t\t\tthankYou.setHeaderText(null);\n\t\t\t\tthankYou.setGraphic(new ImageView(new Image(\"file:images/plane.png\")));\n\t\t\t\tthankYou.setContentText(\"Thank you for playing.\\nGoodbye!\");\n\t\t\t\tthankYou.show();\n\t\t\t\tPlatform.exit();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}\n\t}",
"private void endGame() {\r\n\r\n m_state.setState(State.ENDING_GAME);\r\n\r\n /* find winner */\r\n for(KimTeam team : m_survivingTeams) {\r\n if(team != null) {\r\n if(!team.isOut()) {\r\n m_winner = team;\r\n }\r\n\r\n //remove survivors from m_teams so not to duplicate stats\r\n m_teams[team.m_freq] = null;\r\n }\r\n }\r\n\r\n /* end poll */\r\n if(m_poll != null) {\r\n m_poll.endPoll(m_winner, m_connectionName);\r\n m_poll = null;\r\n }\r\n\r\n /* display scoresheet */\r\n m_botAction.sendArenaMessage(\"--------Base1--------W--L --------Base2--------W--L --------Base3--------W--L --------Base4--------W--L\");\r\n\r\n if(!m_skipFirstRound) {\r\n printFormattedTeams(m_teams, m_numTeams);\r\n m_botAction.sendArenaMessage(\"------------------------- ------------------------- ------------------------- -------------------------\");\r\n }\r\n\r\n printFormattedTeams(m_survivingTeams, 4);\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n\r\n if(m_winner != null) {\r\n m_botAction.sendArenaMessage(\"Winner: \" + m_winner.toString(), 5);\r\n\r\n for(KimPlayer kp : m_winner) {\r\n Player p = m_botAction.getPlayer(kp.m_name);\r\n\r\n if(p != null && p.isPlaying()) {\r\n m_botAction.warpTo(p.getPlayerID(), 512, 277);\r\n }\r\n }\r\n } else {\r\n m_botAction.sendArenaMessage(\"No winner.\");\r\n }\r\n\r\n updateDB();\r\n\r\n /* announce mvp and clean up */\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n m_botAction.sendArenaMessage(\"MVP: \" + m_mvp.m_name, 7);\r\n //refreshScoreboard();\r\n cleanUp();\r\n resetArena();\r\n m_state.setState(State.STOPPED);\r\n }\r\n }, 4000);\r\n }",
"void endGame(String message, int player) {\n //changes the colour of the buttons back to the winner's colour (red or blue)\n if (player == 0) {\n changeColourButton(new Color(255, 0, 0));\n } else {\n changeColourButton(new Color(0, 0, 255));\n }\n //stops the game from continuing\n disableButtons();\n //saves the winner to the leaderboards\n saveGame(message, player);\n //Determmines if the message is \"It's a Tie!\". If it is the pop up has the \n //message \"It's a Tie!\". Otherwise the pop up has the message \"The winner is: \" \n //plus the winner.\n if (message.equals(\"It's a Tie!\")) {\n EndPopUp.showMessageDialog(this, message);\n } else {\n EndPopUp.showMessageDialog(this, \"The winner is: \" + message);\n }\n\n //updates leaderboard (garbage String argument)\n changeTopScores.setName(\"asdf\");\n }",
"public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }",
"public void endGame() {\n \t\tisOver = true;\n \t\ttimeGameEnded = System.nanoTime();\n \t\tremoveAll();\n \t\trequestFocusInWindow();\n \t}",
"private void gameEnd(boolean win) {\n timer.stop();\n playing = false;\n if (win) {\n status.setText(\"You win!\");\n int score = (int) (Math.pow(boardWidth, 2) * Math.pow(boardHeight, 2) \n + Math.pow(mines, 3)) / timeElapsed;\n String nickname = JOptionPane\n .showInputDialog(\"Score: \" + Integer.toString(score) \n + \" Please input your nickname: \");\n try {\n BufferedWriter bw = new BufferedWriter(\n new FileWriter(\"files/highscores.txt\", true));\n bw.append(nickname + \",\" + Integer.toString(score) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n System.out.println(\"An error has occurred\");\n }\n } else {\n status.setText(\"You lost.\");\n }\n }",
"public static void endGame(){\n\t\tmainPanel.grid1.enabledGrid(false);\n\t\tif(speler.heleVlootKapot){\n\t\t\tmainPanel.melding2.setText(\"Helaas, de computer heeft gewonnen.\");\n\t\t}else{\n\t\t\tmainPanel.melding2.setText(\"Gefeliciteerd, u heeft gewonnen.\");\n\t\t}\n\t}",
"public void endGame() {\n\t\t// If Avengers lose and Loki wins\n\t\tif (!avengersAlive()) {\n\t\t\tca_attack.setEnabled(false);\n\t\t\the_attack.setEnabled(false);\n\t\t\tbw_attack.setEnabled(false);\n\t\t\thulk_attack.setEnabled(false);\n\t\t\tthor_attack.setEnabled(false);\n\t\t\tloki_attack.setEnabled(false);\n\t\t\ttextArea.append(\"\\n G A M E O V E R \\n\");\n\t\t\ttextArea.append(\"Oh no! Avengers lost... Loki conquered earth...\");\n\t\t}\n\t\t\n\t\t// If Loki loses and Avengers win\n\t\telse if (!lokiAlive()) {\n\t\t\tca_attack.setEnabled(false);\n\t\t\the_attack.setEnabled(false);\n\t\t\tbw_attack.setEnabled(false);\n\t\t\thulk_attack.setEnabled(false);\n\t\t\tthor_attack.setEnabled(false);\n\t\t\tloki_attack.setEnabled(false);\n\t\t\ttextArea.append(\"\\n Y O U W O N \\n\");\n\t\t\ttextArea.append(\"Yay! Avengers saved the world from Loki! Nice work!\");\n\t\t}\n\t}",
"void endGame () {\n gameOver = true;\n System.out.println(\"Game over\");\n timer.cancel();\n }",
"public void completedGame()\n\t{\n\t\tJOptionPane.showMessageDialog(this,\"Congratulations, you beat the game!\" + ship.getTotalScore(), \"Beat the Game\", JOptionPane.INFORMATION_MESSAGE);\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tsendScore();\n\t}",
"public void endGame() {\n\t\twaitingPlayers.addAll(players);\n\t\tplayers.clear();\n\t\tfor(ClientThread player: waitingPlayers) {\n\t\t\tplayer.points = 0;\n\t\t\tplayer.clientCards.clear();\n\t\t}\n\t\twinners = 0;\n\t\tlosers = 0;\n\t\tpassCounter = 0;\n\t\tdeck.init();\n\t\tview.changeInAndWait(players.size(), waitingPlayers.size());\n\t\tview.writeLog(\"-------------GAME END--------------\");\n\t\tstatus = \"waiting\";\n\t\tstatusCheck();\n\t}",
"public void endGame(){\n\n WinnerDialog dialog = new WinnerDialog();\n dialog.show(getSupportFragmentManager(), \"winner\");\n\n\n\n\n }",
"public void endGame(String winnerId){\n endGameController.updateWinner(winnerId);\n endGamePane.setVisible(true);\n }",
"public void endGame()\n\t{\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tstopThreads();\n\t\tsendScore();\n\t}",
"public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}",
"public void endGame(int winner){\n this.gameOver = true;\n JLabel statusScreen;\n \n if(winner == 1){\n this.remove(gameGrid);\n statusScreen = new JLabel(new ImageIcon(getClass().getResource(\"/win.jpg\")));\n this.add(statusScreen, BorderLayout.CENTER);\n statusBar.setText(\"You Win !!!\");\n }\n \n else if (winner == 2){\n this.remove(gameGrid);\n statusScreen = new JLabel(new ImageIcon(getClass().getResource(\"/loose.gif\")));\n this.add(statusScreen, BorderLayout.CENTER);\n statusBar.setText(\"You Loose ...\");\n }\n \n else if (winner == 3){\n statusBar.setText(\"Tie\");\n }\n \n else{ \n statusBar.setText(\"Your partner has forfeit!\");\n gameGrid.setEnabled(false);\n }\n }",
"public void gameEnd(String winner, String reason) {\r\n if (game != null) {\r\n Transpositions.resetTrans();\r\n game.gameEnd();\r\n Logging.log(winner + \" has won!\");\r\n board = null;\r\n game = null;\r\n connection.requestLeaderboard();\r\n }\r\n }",
"public void endGame(){\t\t\r\n\t\tString inits = \r\n\t\t\t\tJOptionPane.showInputDialog(\r\n\t\t\t\t\t\t\"High Scores:\\n\"\r\n\t\t\t\t\t\t+scores[9].toString()\r\n\t\t\t\t\t\t+scores[8].toString()\r\n\t\t\t\t\t\t+scores[7].toString()\r\n\t\t\t\t\t\t+scores[6].toString()\r\n\t\t\t\t\t\t+scores[5].toString()\r\n\t\t\t\t\t\t+scores[4].toString()\r\n\t\t\t\t\t\t+scores[3].toString()\r\n\t\t\t\t\t\t+scores[2].toString()\r\n\t\t\t\t\t\t+scores[1].toString()\r\n\t\t\t\t\t\t+scores[0].toString()\r\n\t\t\t\t\t\t, \"\");\r\n\t\t\r\n\t\tcheckIfHighScore(inits);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tthis.writeScoresToFile(file);\r\n\t\t} catch (Exception e){\r\n\t\t\t\r\n\t\t}\r\n\t}",
"protected void quitGame() {\n gameOver = true;\n }",
"public void end() {\n\t\tSystem.out.print(\"Game ends - \");\n\t\tif (player1.getPoints() > player2.getPoints()) {\n\t\t\tSystem.out.printf(\"%s wins by %d points\\n\", player1.getName(), player1.getPoints()-player2.getPoints());\n\t\t} else if (player1.getPoints() < player2.getPoints()) {\n\t\t\tSystem.out.printf(\"%s wins by %d points\\n\", player2.getName(), player2.getPoints()-player1.getPoints());\n\t\t} else {\n\t\t\tSystem.out.println(\"Game tied\");\n\t\t}\n\t}",
"public void endGame(){\n updateHighscore();\n reset();\n }",
"public void endGameMessage() {\n gameArena.addText(endGameMsg);\n }",
"void askEndTurn();",
"public void game_over() {\n JOptionPane.showMessageDialog(null,\"GAME OVER\",\"Titolo finestra mettici quello che vuoi\",1);\n\n System.exit(0);\n}",
"public EndingDialog(Game game, Occupant result) {\r\n this.game = game;\r\n this.result = result;\r\n initializeUI();\r\n }",
"public void endGame(boolean victory)\n {\n timerDisplay.stop();\n if (victory)\n {\n gameWon = true;\n }\n else\n {\n gameLost = true;\n }\n resetButton.repaint();\n for (GameSquare[] row : grid)\n {\n for (GameSquare square : row)\n {\n square.repaint();\n }\n }\n }",
"public void resign(){\n\t\tif(Main.getInstance().getScreen() instanceof GEngine){\r\n\t\t\tPlayer user = getUserPlayer();\r\n\t\t\tPlayer winner = state.players[user.playerId == 0 ? 1 : 0];\r\n\t\t\t\r\n\t\t\tnew Popup(\"Game over\", true,\r\n\t\t\t\tnew Label(String.format(\"Player %s has won the game!\", winner.getDisplayName()), Assets.SKIN), \r\n\t\t\t\tComponentFactory.createButton(\"OK\", new ClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\t\t\tMain.getInstance().setScreen(MainMenu.getInstance());\r\n\t\t\t\t\t\tPopup.getCurrentPopup().close();\r\n\t\t\t\t\t}\r\n\t\t\t\t})).show();\r\n\t\t}\r\n\t\t\r\n\t\tMain.getInstance().games.endGame(this);\r\n\t}",
"public void exitGame(View view) {\n final Dialog alertDialog = new Dialog(MythFactGame.this,android.R.style.Theme_DeviceDefault_Dialog_NoActionBar);\n alertDialog.setContentView(R.layout.exit_game_dialog);\n alertDialog.setCancelable(false);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"Game Over!!\");\n Button ok=(Button)alertDialog.findViewById(R.id.exitGameDialogButtonOK);\n Button cancel=(Button)alertDialog.findViewById(R.id.exitGameDialogButtonCancel);\n ok.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addGameScoreToMainScore();\n MythFactGame.this.finish();\n }\n });\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n alertDialog.dismiss();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }",
"public void endGame() {\r\n if (state[0]) {\r\n if (state[1]) {\r\n frame.remove(pause);\r\n state[1] = false;\r\n }\r\n records.newRecord(game.map, game.end());\r\n frame.remove(game);\r\n records.saveRecords();\r\n state[0] = false;\r\n menu.setVisible(true);\r\n }\r\n }",
"private void endTurn(){\r\n String currentPlayer = cantStop.getGameBoard().getCurrentPlayer().getName();\r\n\t\tgameOver = cantStop.getGameBoard().endTurn(didBust);\r\n\t\t\r\n\t\tif(gameOver){\r\n\t\t\tstatusLabel.setText(currentPlayer + \r\n\t\t\t\t\t\" wins! Go again?\");\r\n\t\t\tupdate();\r\n\t\t} else {\r\n\t\t\tcantStop.getGameBoard().startNewTurn();\r\n\t\t\tallowNewRoll();\r\n\t\t}\r\n\t}",
"boolean endGame() throws Exception;",
"public void finishedWindow() {\n\t\tgameManager.closePiratesEventScreen(this, route);\n\t}",
"private void finishGame() {\n for (GameObject gameObject : gameObjects) gameObject.finishGame(game);\n gameAlertDialog.show(\"FINISH\");\n }",
"@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}",
"private void endGame(){\n synchronized (lock){\n out.println(\"\\r\\n###GAME OVER###\\r\\n\");\n out.println(\"The winner(s) are:\");\n updatePlayersWorth();\n Collections.sort(playerList);\n out.println(playerList.get(0).getName() + \": £\" + playerList.get(0).getPlayerWorth());\n for (int i = 1; i < playerList.size(); i++) {\n if(playerList.get(0).getPlayerWorth() == playerList.get(i).getPlayerWorth()){\n out.println(playerList.get(i).getName() + \": £\" + playerList.get(i).getPlayerWorth());\n }\n }\n }\n }",
"public void endTurn(){\n game.setNextActivePlayer();\n myTurn = false;\n\n stb.updateData(\"playerManager\", game.getPlayerManager());\n stb.updateData(\"aktivePlayer\", game.getPlayerManager().getAktivePlayer());\n stb.updateData(\"roomList\", game.getRoomManager().getRoomList());\n\n getIntent().putExtra(\"GAME\",game);\n getIntent().putExtra(\"myTurn\", false);\n finish();\n if(!game.getPlayerManager().getPlayerList().get(whoAmI).isDead())\n startActivity(getIntent());\n else\n fcm.unbindListeners();\n }",
"private void finishGame(boolean again){\r\n\t\tdispose();\r\n\t\tif(again) Util.showNewGameDialog(\"Choose player names:\", cantStop.getGameBoard().getPlayers());\r\n\t}",
"public void winDialog() {\n\n\t\tif (JOptionPane.showOptionDialog(null,\n\t\t\t\t\"Player \" + playerTurn\n\t\t\t\t\t\t+ \" created a SAP and wins the game! Congratulations!\\nWould you like to play again?\",\n\t\t\t\t\"Game Over\", 0, JOptionPane.PLAIN_MESSAGE, null, options, options[0]) == JOptionPane.YES_OPTION) {\n\t\t\trestartGame();\n\t\t} else {\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}",
"private void endGame(){\n AlertDialog.Builder builder= new AlertDialog.Builder(this);\n String howGoodItWent;\n int howManyQuestions = questions.size();\n //with the percentage calculations, the app is able to display a different finishing message based on the percentage of the allquestions/correct answers\n float percentage = 0;\n //test if there are any questions. this will prevent dividing with 0\n if (howManyQuestions != 0){\n percentage = (100*score)/howManyQuestions;\n }\n //different title message on 0 correct answers, between 1-50, and 51-100\n if (score == 0) {\n howGoodItWent = \"Well, you tried\";\n } else if (percentage > 0 && percentage <= 50) {\n howGoodItWent = \"Thanks for participating\" ;\n }else if (percentage > 50 && percentage <= 99) {\n howGoodItWent = \"Congratulations\";\n }else if (percentage ==100) {\n howGoodItWent = \"Perfect Score!\";\n }else{\n howGoodItWent = \"Error\";\n }\n\n builder.setTitle(howGoodItWent);//displaying the message set earlier based on score\n final EditText input = new EditText(this);\n builder.setView(input);\n builder.setMessage(\"You scored \" + score + \" point(s) this round.\\nPlease enter your name:\");\n builder.setCancelable(false); //if this is not set, the user may click outside the alert, cancelling it. no cheating this way\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n playerName = input.getText().toString();\n //remove empty spaces\n playerName = playerName.trim();\n if (playerName.length() == 0){ //when the player doesn't enter anything for name, he will be called anonymous\n playerName = \"Anonymous\";\n }\n HighScoreObject highScore = new HighScoreObject(playerName, score, new Date().getTime());\n //get user prefs\n List<HighScoreObject> highScores = Paper.book().read(\"high scores\", new ArrayList<HighScoreObject>());\n\n //add item\n highScores.add(highScore);\n\n //save into paper\n Paper.book().write(\"high scores\", highScores);\n\n //return to the intro screen\n finish();\n }\n })\n .create();\n builder.show();\n }",
"@Override\n public void endGame(){\n gameOver = true;\n }",
"public void endGame(){\n\t\tString gameSummary = thisGame.getGameSummary(humanType);\n\t\tSystem.out.println(gameSummary);\n\t}",
"public void endGame()\n\t{\n\t\tthis.opponent = null;\n\t\tthis.haveGame = false;\n\t\tthis.isTurn = false;\n\t\tfor(int i = 0; i < 3; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t{\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"private void showEndGameResults() {\n EndGameDialog endGameDialog = new EndGameDialog(this, stats, playerOne, playerTwo, (e) -> {\n dispose();\n\n this.start();\n });\n\n\n }",
"public void endsGameAndSetsWinner(Player player) {\n this.winner = player.getId(); \n this.gameStarted = false; \n \n }",
"public void endTurn()\n {\n revealedCardsScreen.setVisible(false);\n accusationScreen.setVisible(false);\n\n this.played = false;\n\n //call client controller's end turn method\n clientController.endTurn();\n }",
"public void endGameFrame() {\r\n\t\tcreateWarning(3000, \"Time Out!\"); //show warning message\r\n\t\t\r\n\t\ttry {\t\t\t\t\t\t\t //creates a file when the game is over\r\n\t\t\tString ExitFilename = \"EXIT.txt\";\r\n\t\t\tFileWriter ExitFile = new FileWriter(\"src/Signals./\"+ExitFilename);\r\n\t\t\tExitFile.write(\"EXIT\");\r\n\t\t\tExitFile.close();\r\n\t\t} \r\n\t\t catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t//close all interface\r\n\t\tframe.setVisible(false);\r\n\t\tframe.dispose();\r\n\t\tSystem.exit(0);\r\n\t\t\r\n\t\t\r\n\t}",
"public void endTurn() {\r\n\t\tPlayer endingPlayer = getCurrentPlayer();\r\n\t\t\r\n\t\t// Show plays and buys during turn change screen\r\n\t\tArrayList<Card> plays = new ArrayList<>();\r\n\t\tArrayList<Card> gains = new ArrayList<>();\r\n\t\tplays.addAll(endingPlayer.deck.duration);\r\n\t\tplays.addAll(endingPlayer.deck.play);\r\n\t\tgains.addAll(endingPlayer.deck.gained);\r\n\t\tif(showGraphics) getGUI().showPlayerBuys(plays, gains);\r\n\t\t\r\n\t\t//Check the card ownership in decks is correct\r\n\t\tfor(Player p : players) {\r\n\t\t\tfor(Card c : p.deck.getDeck()) {\r\n\t\t\t\tif(c.getPlayer() == null) {\r\n\t\t\t\t\tthrow new RuntimeException(c.getName() + \" has no owner, in deck of \"\r\n\t\t\t\t\t\t\t+ p.getPlayerName());\r\n\t\t\t\t}\r\n\t\t\t\tif(!c.getPlayer().equals(p)) {\r\n\t\t\t\t\tthrow new RuntimeException(c.getName() + \" owned by \"\r\n\t\t\t\t\t\t\t+ c.getPlayer().getPlayerName() + \", in deck of \" + p.getPlayerName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check for duplicated cards\r\n\t\tfor(Player p : players) {\r\n\t\t\tList<Card> deck = p.deck.getDeck();\r\n\t\t\tfor(int i = 0; i < deck.size(); i++) {\r\n\t\t\t\tfor(int j = i + 1; j < deck.size(); j++) {\r\n\t\t\t\t\tif(deck.get(i) == deck.get(j)) {\r\n\t\t\t\t\t\tthrow new RuntimeException(deck.get(i) + \r\n\t\t\t\t\t\t\t\t\" in 2 places in deck of \" + p.getPlayerName());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Run player-specific turn ending things\r\n\t\tgetCurrentPlayer().endTurn();\r\n\r\n\t\t//Change whose turn it is\r\n\t\tif(!extraTurn) {\r\n\t\t\tnextTurn();\r\n\t\t}\r\n\t\textraTurn = false;\r\n\r\n\t\t//Check if the game is over\r\n\t\tif(board.isGameOver()) {\r\n\t\t\tgetClient().stopThreads();\r\n\t\t\tmodels.close();\r\n\t\t\tif(showGraphics) getGUI().showScores();\r\n\t\t\tfor(Player p : players) {\r\n\t\t\t\tif(p.isComputerPlayer()) {\r\n\t\t\t\t\tp.getComputerPlayer().close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//Change Turn \r\n\t\tif(showGraphics && !getCurrentPlayer().isComputerPlayer()) {\r\n\t\t\tgetGUI().turnNotify();\r\n\t\t}\r\n\r\n\t\t//Resets game phase\r\n\t\tgamePhase = 0;\t\r\n\r\n\t\t//Starts the next person's turn\r\n\t\tgetCurrentPlayer().startTurn();\r\n\t\t\r\n\t\t\r\n\t\t//Save changes to server\r\n\t\tif(showGraphics && getGUI().getMyPlayer().equals(endingPlayer)) {\r\n\t\t\tgetClient().backupGame(this);\r\n\t\t}\r\n\r\n\t\t//Check the decks are correct between computers\r\n\t\tif(showGraphics && getGUI().getMyPlayer().equals(endingPlayer)) {\r\n\t\t\tfor(Player p : players) {\r\n\t\t\t\tgetClient().sendString(\"CHECK \" + p.getPlayerNum() + \" \" + p.deck.toString());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}",
"private void finaliseGame() {\r\n gameOn = false;\r\n if(bestAnswer==null) {\r\n target.reply(\"Nobody got an answer. The best answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n return;\r\n }\r\n if( bestAnswer.getAnswer() == bestPossibleAnswer ) {\r\n String reply = Constants.BOLD + bestAnswer.getUsername() + Constants.BOLD\r\n + \" has won with \" + bestAnswer.getAnswer() + \"!\";\r\n if( bestPossibleAnswer!=targetNumber)\r\n reply+=\" This was the best possible answer.\";\r\n target.reply(reply);\r\n } else {\r\n target.reply( \"The best answer was \" + bestAnswer.getAnswer() + \" by \" + bestAnswer.getUsername() + \".\"\r\n + \" But the best possible answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n }\r\n bestAnswer=null;\r\n runner.stop();\r\n }",
"public void winner(){\n System.out.println();\n System.out.println(\"You are the winner.!!!CONGRATULATIONS!!!.\");\n System.exit(1); // Close the game\n }",
"@Override\n public void RageQuit() {\n //They won't have a score\n timer.stopTimer();\n\n if (view.confirmRageQuit()){\n // Punish them!\n DesktopAudio.getInstance().playPunish();\n grid = game.getSolved();\n for (int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n view.setGiven(i, j, grid.getNumber(i, j));\n }\n }\n if (view.confirmNewGame()){\n setNextGame();\n }\n }else{\n timer.startTimer();\n }\n }",
"public void EndGame(){\r\n\t\t//check witch player won\r\n\t\tint result = P1Hand.compareTo(P2Hand);\r\n\t\t\r\n\t\tGameEnd = new JFrame(\"Game over\");\r\n\r\n\t\tif(result < 0 )\r\n\t\t{\r\n\t\t\tWinner = new JLabel(\"Player 1 wins!\");\r\n\t\t\tSystem.out.println(\"Player 1 wins!\");\r\n\t\t}\r\n\t\tif(result == 0 )\r\n\t\t{\r\n\t\t\tWinner = new JLabel(\"It's a tie!\");\r\n\t\t\tSystem.out.println(\"It's a tie!\");\t\t\t\r\n\t\t}\r\n\t\tif(result > 0)\r\n\t\t{\r\n\t\t\tWinner = new JLabel(\"Player 2 wins!\");\r\n\t\t\tSystem.out.println(\"Player 2 wins!\");\t\t\t\r\n\t\t}\r\n\r\n\t\t//System.out.println(\"this is P1 hand \" + P1Hand.toString());\r\n\t\t//System.out.println(\"this is P2 hand \" + P2Hand.toString());\r\n\r\n\t\tJPanel NP = new JPanel();\r\n\t\tNP.add(Winner);\r\n\t\tGameEnd.add(NP);\r\n\t\tGameEnd.setSize(250,150);\r\n\t\tGameEnd.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tGameEnd.setVisible(true);\r\n\t}",
"public void endGame(Chess.Color winner) {\n\t\tclearGame();\n\t\tif(eventListener != null) {\n\t\t\teventListener.onGameEnded(winner);\n\t\t}\n\t}",
"public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}",
"private void onConfirmButtonPressed() {\r\n disposeDialogAndCreateNewGame();\r\n }",
"public void finish(){\n \t\tString congrats=\"Congratulations, you won in \" + model.getNumberOfSteps()+\" steps! \";\n \t\tJFrame frame = new JFrame();\n\t\tString[] options = new String[2];\n\t\toptions[0] = new String(\"Play again\");\n\t\toptions[1] = new String(\"Quit\");\n\t\tint result= JOptionPane.showOptionDialog(frame.getContentPane(),congrats,\"Won! \", 0,JOptionPane.INFORMATION_MESSAGE,null,options,null);\n\t\tif (result == JOptionPane.NO_OPTION) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tif (result == JOptionPane.YES_OPTION) {\n\t\t\t\t\tcontroller.reset(); }\n \t}",
"public void endGame(){\n\t\tgameRunning = false;\t// set gameRunning to false\n\t\tfinal SnakeGame thisGame = this;\t// store reference to the current game\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \t// remove our board and scoreboard\n \tgetContentPane().remove(board);\n \tgetContentPane().remove(scoreboard);\n \t// create a game over page\n \tgameOverPage = new GameOver(thisGame, scoreboard.getScore());\n \t// set our board and scoreboard to null\n \tboard = null;\n \tscoreboard = null;\n \t// add the game over page\n \tadd(gameOverPage);\n \t// validate and repaint\n \tvalidate();\n \trepaint();\n }\n\t\t});\t\n\t}",
"public void winMessage() {\r\n\t\tSystem.out.print(\"\\n\\nCongratulations! You've won the game! :D\");\r\n\t\tSystem.exit(0);\r\n\t}",
"public void lose() {\n status.setText(\"You're finished\");\n gamegoing = false;\n }",
"private void showEndMessage()\n {\n showText(\"Time is up - you win!\", 390, 150);\n showText(\"Your final score: \" + healthLevel + \" points\", 390, 170);\n }",
"public void quitGame() {\n\t\t\tdisplay(\"Goodbye!\");\n\t\t\tSystem.exit(0);\n\t\t}",
"public void exitGame() {\n System.out.println(\"Thank you and good bye!\");\n System.exit(0);\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\t\t\t\t\t\t\tPlayer winningPlayer = model\r\n\t\t\t\t\t\t\t\t\t\t\t.getWinningPlayer();\r\n\r\n\t\t\t\t\t\t\t\t\t// If a winning player was found, present\r\n\t\t\t\t\t\t\t\t\t// the players result to the user with a\r\n\t\t\t\t\t\t\t\t\t// message box\r\n\t\t\t\t\t\t\t\t\tif (winningPlayer != null)\r\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\t\t\t\t\t\t\twinningPlayer.getName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" won the game with \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ winningPlayer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getScore()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" points.\");\r\n\r\n\t\t\t\t\t\t\t\t\t// Change visible window to setup\r\n\t\t\t\t\t\t\t\t\tsetup.setVisible(true);\r\n\t\t\t\t\t\t\t\t\tview.setVisible(false);\r\n\t\t\t\t\t\t\t\t}",
"public void finishMainGame(MainWindow mainWindow) {\n mainWindow.closeWindow();\n \n if (crewState.getShipPartsFoundCount() >= getShipPartsNeededCount()) {\n addScore(crewState.getLivingCrewCount() * 500);\n addScore((maxDays - daysPassed) * 1000);\n \n displayWinScreen();\n } else {\n displayLoseScreen();\n }\n }",
"private void gameEnded() {\n\t\ttimer.stop();\n\t\tlevelStartTimer.stop();\n\n\t\tfinal String name = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Please enter you name: \", \"The game has ended.\", 1);\n\t\tif (name != null) {\n\t\t\tThread thread = new Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tHighScoreDAO highScoreDAO = HighScoreDAOImpl.getInstance();\n\t\t\t\t\tList<HighScore> highScores = highScoreDAO.getAllHighScore();\n\t\t\t\t\thighScore.setName(name);\n\t\t\t\t\thighScore.setDate(new Date());\n\t\t\t\t\thighScores.add(highScore);\n\t\t\t\t\tCollections.sort(highScores);\n\t\t\t\t\thighScoreDAO.deleteAllHighScore();\n\t\t\t\t\tif (highScores.size() > 10)\n\t\t\t\t\t\tfor (int i = 0; i < 10; ++i)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(highScores.get(i));\n\t\t\t\t\telse\n\t\t\t\t\t\tfor (HighScore hs : highScores)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(hs);\n\t\t\t\t}\n\t\t\t};\n\t\t\tthread.start();\n\t\t}\n\n\t\t// fires a new ActionEvent indicating that the game has ended\n\t\tlistener.actionPerformed(new ActionEvent(this,\n\t\t\t\tActionEvent.RESERVED_ID_MAX + 1, \"endgame\"));\n\t}",
"public void quitGame() {\r\n System.out.println(\"Thanks for playing!\");\r\n }",
"public void finishGame() {\r\n gameFinished = true;\r\n }",
"private void gameOver() {\r\n timer.stop();\r\n if (JOptionPane.showConfirmDialog(this, \r\n \"Game Over!\\nDo you want to play again?\",\r\n FORM_TITLE,JOptionPane.YES_NO_OPTION) == \r\n JOptionPane.YES_OPTION) {\r\n startGame();\r\n }\r\n else { \r\n close();\r\n }\r\n }",
"public void endGame(EndGameType type)\n\t{\n\t\tboolean personalityWin = true;\n\t\tthis.isEndGame = true;\n\t\tswitch (type)\n\t\t{\n\t\t\tcase winAtBeginTurn:\n\t\t\t\tthis.winnerList.add(this.getCurrentPlayer());\n\t\t\t\tbreak;\n\t\t\tcase noPlayerCard:\n\t\t\t\tfor(Player player : this.getPlayerList())\n\t\t\t\t{\n\t\t\t\t\tif (!player.getPersonalityCard().getActions(NoPlayerCard.class).isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.winnerList.add(player);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\tcase riotTroubleEvent:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (this.winnerList.isEmpty())\n\t\t{\n\t\t\tthis.winnerList.addAll(calculatePoints());\n\t\t\tpersonalityWin = false;\n\t\t}\n\t\t\n\t\tthis.getSystemDataInput().printMessage(\"We have \" + (this.winnerList.size() == 1 ? \"a winner!\" : \"winners!\") + \" Congratulations to:\");\n\t\tfor (Player winner : this.winnerList)\n\t\t{\n\t\t\tthis.getSystemDataInput().printMessage(winner.getFullName() + (personalityWin ? \" as \" + winner.getCardName() + \".\": \" with \" + winner.getPoints() + \" points.\"));\n\t\t}\n\t\t\n\t\tthis.getSystemDataInput().printMessage(\"\"); // spacer\n\t\t\n\t\tthis.getSystemDataInput().askTrueFalseQuestion(\"The end!\", \"Terminate!\", \"Terminate anyway ;p\");\n\t}",
"public void gameEnd(String reason) {\r\n if (game != null) {\r\n Transpositions.resetTrans();\r\n game.gameEnd();\r\n Logging.log(\"Game ended in a draw!\");\r\n board = null;\r\n game = null;\r\n connection.requestLeaderboard();\r\n }\r\n }",
"public boolean endGameCheck() {\r\n\r\n if (forceQuit) {\r\n // Silently quit.\r\n return true;\r\n\t\t}\r\n\r\n String[][] messages = new String[7][2];\r\n String[] theMessage = new String[2];\r\n Random randInt = new Random();\r\n boolean userSaidYes = false;\r\n\r\n // Just for comedy value :p\r\n messages[0][0] = \"Giving up already?\";\r\n messages[1][0] = \"Are you sure you want to quit?\";\r\n messages[2][0] = \"Don't you want to play some more?\";\r\n messages[2][1] = \"Confusing isn't it? :p\";\r\n messages[3][0] = \"Quit? Do you reeeeeeeealy want to do that?\";\r\n messages[4][0] = \"You want to quit? Fine be like that...\";\r\n messages[5][0] = \"Ugh, you didn't come here to quit did you?\";\r\n messages[6][0] = \"Pft, game not good enough for ya!?\";\r\n messages[6][1] = \"Oh! There goes another one ;)\";\r\n\r\n // Give the user a random message. This is an array\r\n // which has an element that tells us what polarity\r\n\t\t// the question is.\r\n theMessage = messages[randInt.nextInt(messages.length)];\r\n\r\n if (endGameSwitch) {\r\n\r\n // Just double check with the user.\r\n System.out.print(\"\\n \" + theMessage[0]);\r\n userSaidYes = saidYes(true);\r\n\r\n if ((userSaidYes == false) && (theMessage[1] == null)\r\n\t\t\t|| (userSaidYes == true) && (theMessage[1] != null)) {\r\n \r\n // Player has changed their mind! :D\r\n\t\t\t\tSystem.out.println(\" You made the right choice :)\");\r\n bluffedQuit = true;\r\n endGameSwitch = false;\r\n return false;\r\n\t\t\t}\r\n\r\n // Player is a big meanie.\r\n System.out.println(\"\\n Game Over!\");\r\n setForceQuit(true);\r\n return true;\r\n\t\t}\r\n\r\n // Don't bother the user.\r\n return false;\r\n\t}",
"private void endGame(boolean gameWon) {\n if (gameWon) {\n winloseLabel.setText(\"YOU WIN\");\n for (int i = 0;i < btArray.length;i++) {\n for (int j = 0; j < btArray[0].length; j++) {\n // if it's a mine\n if (mainField.getValue(i,j) == -1) {\n // turn the button green\n btArray[i][j].setStyle(\"-fx-background-color: #00FF00;\");\n }\n }\n }\n }\n else {\n winloseLabel.setText(\"YOU LOSE\");\n }\n // disables all of the buttons\n for (Button[] subArray : btArray) {\n for (Button button : subArray) {\n button.setDisable(true);\n }\n }\n }",
"private void onEndGame() {\n Intent intent1 = new Intent(this, MainActivity.class);\n startActivity(intent1);\n finish();\n }",
"public void quitGame() {\n quitGame = true;\n }",
"static void playerLost() {\n\n\t\tSystem.exit(0); // This code ends the program\n\t}",
"private void gameWonDialog() {\n // stack overflow\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle((game.isPlayer_turn()) ? R.string.player_win_title : R.string.bank_win_title);\n builder.setMessage((game.isPlayer_turn()) ? R.string.player_win_message : R.string.bank_win_message);\n\n // Set up the buttons\n builder.setPositiveButton(R.string.play_again, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n resetGame();\n }\n });\n builder.setNegativeButton(R.string.return_to_home, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n returnToMain();\n }\n });\n //builder.show();\n\n AlertDialog alert = builder.create();\n alert.show();\n Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE);\n nbutton.setBackgroundColor(getResources().getColor(R.color.bank_red));\n Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);\n pbutton.setBackgroundColor(getResources().getColor(R.color.yale_blue));\n }",
"public static void endGameSequence()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t\tlblUpdate.setText(\"Game over! You are out of money!\");\n\t}",
"private void gameEnd(String loser) {\n }",
"public void handleEndTurn(ActionEvent event){\n sender.sendInput(\"end turn\");\n }",
"public void endGame() {\n\r\n\t\tplaying = false;\r\n\t\tstopShip();\r\n\t\tstopUfo();\r\n\t\tstopMissle();\r\n\t}",
"public void win() {\n JOptionPane.showConfirmDialog(null, \"You won! You got out with \" + this.player.getGold() + \" gold!\", \"VICTORY!\", JOptionPane.OK_OPTION);\n this.saveScore();\n this.updateScores();\n this.showTitleScreen();\n }",
"public void gameWon()\n {\n ScoreBoard endGame = new ScoreBoard(\"You Win!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }",
"public void gameEnded() {}",
"public void lose()\r\n {\r\n Alert inputConfirmation = new Alert(Alert.AlertType.INFORMATION);\r\n inputConfirmation.setTitle(\"Game Over!\");\r\n inputConfirmation.setHeaderText(\"You Lose!\");\r\n inputConfirmation.setGraphic(null);\r\n scoreBoard.gameTimer.gameTime.cancel();\r\n\r\n inputConfirmation.showAndWait();\r\n }",
"public void endTurn() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Started endTurn() for player \"+currentPlayer.getNumber());\r\n\t\tturnIsEnding = true;\r\n\r\n\t\t// End turn restrictions\r\n\t\tif (!currentPlayer.isDead() && !currentPlayer.isFree() && !currentPlayer.hasQuit()) {\r\n\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all cards in play area are played\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustChoose.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all choices are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustTrash.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all trashes are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// Don't need to discard\r\n\t\t}\r\n\t\t\r\n\t\t// Mass deletes\r\n\t\tclearMessages();\r\n\t\t\r\n\t\t// If just escaped, send message after clearing\r\n\t\tif (currentPlayer.getCurrentRoom() == 0 && currentPlayer.getPiece().getX() == GlobalVars.playerCoordsPerRoom[39][0]) {\r\n\t\t\t// Update room\r\n\t\t\tcurrentPlayer.setCurrentRoom(39);\r\n\t\t\tif (firstEscapee == currentPlayer) {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** was the first to escape! They received a **20** :star: **Mastery Token**\\n:skull: Only **4** turn(s) left!\").queue();\r\n\t\t\t} else {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** escaped in time! They received a **20** :star: **Mastery Token**\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Set cards in PlayArea to not played for next time, Undos the Discarded tag\r\n\t\tfor (int i = 0; i < currentPlayer.getPlayArea().getSize(); i++) {\r\n\t\t\tcurrentPlayer.getPlayArea().getCard(i).setPlayed(false);\r\n\t\t\tif (currentPlayer.getPlayArea().getCard(i).toStringHand().contentEquals(\"*[Discarded]*\")) currentPlayer.getPlayArea().getCard(i).setStringInHand();\r\n\t\t}\r\n\t\t\r\n\t\t// Clear swords, skill, boots, etc\r\n\t\tcurrentPlayer.endOfTurnReset();\r\n\t\tmustDiscard.clear();\r\n\t\t\r\n\t\t// Replaces cards in dungeon row. Only one attack per turn\r\n\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\tboolean hasAttackedThisTurn = false;\r\n\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t// Checks to see if it should replace card\r\n\t\t\t\tif (dungeonRow[i].isBought()) {\r\n\t\t\t\t\tdungeonRow[i] = mainDeck.getNext();\r\n\t\t\t\t\tif (dungeonRow[i].isDragonAttack() && !hasAttackedThisTurn) {\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t\t\thasAttackedThisTurn = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dungeonRow[i].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Instantly go on to next player if no dragon attack\r\n\t\t\tif (!hasAttackedThisTurn) {\r\n\t\t\t\tdetermineNextPlayer();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"void endSinglePlayerGame(String message);",
"public void endGame() {\n for (Player player : this.players.values()) {\n if (player.getBankroll() == this.playerAmount * DEFAULT_BANKROLL) {\n this.doPokerEnds = true;\n break;\n }\n }\n this.startingGamePlayer = ++this.startingGamePlayer % this.playerAmount;\n }",
"public void buttonEndTurn() {\n\t\tendTurn();\n\t\t}",
"private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }",
"public void endGame() {\r\n\t\tthis.gameStarted = false;\r\n\t\tthis.sendMessages = false;\r\n\t\tthis.centralServer.removeServer(this);\r\n\t}",
"void gameFinished();",
"public boolean verifyEndGame(Player gamer);"
] |
[
"0.8393305",
"0.7970627",
"0.79364395",
"0.7871003",
"0.7787364",
"0.7771699",
"0.774277",
"0.76358354",
"0.750903",
"0.74881756",
"0.7476795",
"0.74556243",
"0.7438571",
"0.7432171",
"0.73759943",
"0.73437554",
"0.7300802",
"0.7283641",
"0.72380644",
"0.7212832",
"0.72120935",
"0.7200537",
"0.7159644",
"0.71466964",
"0.7137029",
"0.7093178",
"0.7083526",
"0.7075514",
"0.7073261",
"0.7072179",
"0.7065648",
"0.70633864",
"0.7057603",
"0.70485693",
"0.70228827",
"0.7018526",
"0.70158875",
"0.69965315",
"0.69951",
"0.69897425",
"0.6983759",
"0.6966548",
"0.6964894",
"0.69628924",
"0.6945337",
"0.69443226",
"0.69330317",
"0.69294935",
"0.69236505",
"0.6916884",
"0.6904671",
"0.69045985",
"0.6902251",
"0.68892807",
"0.68693656",
"0.6855282",
"0.68506163",
"0.6842283",
"0.68351215",
"0.683209",
"0.6820112",
"0.6816673",
"0.6813643",
"0.6812517",
"0.68078464",
"0.68041956",
"0.6799535",
"0.6792391",
"0.6788957",
"0.67782277",
"0.6777367",
"0.67655325",
"0.6764003",
"0.6762644",
"0.6752954",
"0.67516136",
"0.67408997",
"0.6737885",
"0.67298853",
"0.6717929",
"0.671734",
"0.67154413",
"0.67135876",
"0.67130667",
"0.67074895",
"0.6700123",
"0.6698426",
"0.6697838",
"0.66958207",
"0.6690621",
"0.66837674",
"0.66804105",
"0.667847",
"0.66656876",
"0.6662427",
"0.665007",
"0.66338664",
"0.6625119",
"0.6624244",
"0.66132873"
] |
0.7520839
|
8
|
Returns the number of the current user
|
public int getUserTurn() {
return userTurn;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }",
"public static int getNumberLoggedUser() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.GET_LOGGED_USER_NUMBER;\n\t\t\trp.parameters = new Object[] {};\n\t\t\tReceiveContent rpp = sendReceive(rp);\n\t\t\tint logged = (int) rpp.parameters[0];\n\t\t\treturn logged;\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\treturn 0;\n\t}",
"public int getCurrentUserId() {\n int i;\n synchronized (this.mLock) {\n i = this.mCurrentUserId;\n }\n return i;\n }",
"public static int getCurrentUserId() {\n return session.get().getUserId();\n }",
"public String getNumUserid() {\n return numUserid;\n }",
"public static Number getCurrentUserID() {\n User currentUser = getCurrentUser();\n if (currentUser != null)\n return currentUser.id;\n return null;\n }",
"public int getUserCount() {\n return instance.getUserCount();\n }",
"public int getUserCount() {\n\t\t\treturn 7;\n\t\t}",
"private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}",
"public long getUserID() {\n //userID++;\n return userID++;\n }",
"public int getUserCount()\n\t{\n\t\tint ret = -1;\n\t\ttry {\n\t\t\tret = Integer.parseInt(userCount.getTextContent());\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlogger.warn(\"Could not parse user-count field\");\n\t\t}\n\t\treturn ret;\n\t}",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"int getUserCount();",
"int getUserCount();",
"protected int getCurrentUserId() {\n return mCarUserManagerHelper.getCurrentProcessUserId();\n }",
"public int getActiveUserCount() {\n return activeUserCount;\n }",
"public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}",
"public int getLastUserId();",
"public String getUsernumber() {\n return usernumber;\n }",
"public int getCurrentUserIdLU() {\n return this.mCurrentUserId;\n }",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"long getUserId();",
"long getUserId();",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"Integer getUserId();",
"public int getcurrentUserIndex() {\n\t\tint index = 0;\n\t\tfor(User u : users) {\n\t\t\tif(u.getUsername().equals(Photos.manager.getCurrentUser().getUsername())) {\n\t\t\t\treturn index;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\treturn -1;\n\t}",
"public Integer getUserid() {\n\t\treturn this.userid;\n\t}",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserId() {\n return instance.getUserId();\n }",
"public int getUserID()\n {\n return this.userID;\n }",
"public int getUserCount() {\n return user_.size();\n }",
"public int getCurrentOrTargetUserId() {\n int i;\n synchronized (this.mLock) {\n i = this.mTargetUserId != -10000 ? this.mTargetUserId : this.mCurrentUserId;\n }\n return i;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public Long getUser() {\n return user;\n }",
"public int getUserIndex() {\n\t\tint index = 0;\n\t\tfor(User user : users) {\n\t\t\tif(user.getUsername().equals(Main.driver.getCurrent().getUsername())) {\n\t\t\t\treturn index;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\treturn -1;\n\t}"
] |
[
"0.7717375",
"0.7665036",
"0.7523497",
"0.74241537",
"0.7347484",
"0.73081374",
"0.72894245",
"0.72278035",
"0.7224995",
"0.7205619",
"0.7205576",
"0.7201226",
"0.7201226",
"0.7201226",
"0.7201226",
"0.71830744",
"0.71830744",
"0.717915",
"0.7154091",
"0.7146403",
"0.7133078",
"0.7084991",
"0.7045499",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7044942",
"0.7037232",
"0.7037232",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.70365024",
"0.7020636",
"0.7018322",
"0.7018322",
"0.7018322",
"0.7009897",
"0.69794565",
"0.6977994",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.6972111",
"0.69719344",
"0.69719344",
"0.6969355",
"0.6960112",
"0.69496536",
"0.69465905",
"0.69187796",
"0.69187796",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69179916",
"0.69119376",
"0.68940115"
] |
0.0
|
-1
|
Returns the current round
|
public int getCurrentRound() {
return roundNumber;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getCurrentRound()\n\t{\n \treturn currentRound;\n\t}",
"public synchronized int getCurrentRoundNumber()\r\n {\r\n return currentRoundNumber;\r\n }",
"public int getRound()\r\n\t{\r\n\t\treturn this.round;\r\n\t}",
"public int getRound() {\n return round;\n }",
"public int getCurrentGameRound(){\n\t\treturn currentGameRound;\n\t}",
"public Integer getRound() {\n return round;\n }",
"public Round getActualRound() {\n\t\treturn actualRound;\n\t}",
"public Round getRound(){\n return mRound;\n }",
"public int getRoundNumber() {\n return roundNumber;\n }",
"public double getRoundingIncrement() {\n return roundingIncrement;\n }",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public static String nextRound() {\n return \"Starting next round.\";\n }",
"public void incrementCurrentRoundNumber() {\n\t\t\n\t\tcurrentRoundnumber = currentRoundnumber +1;\n\t}",
"public int getTriggerRound() {\n return triggerRound;\n }",
"public int getRoundNum(){\n return gameRounds;\n }",
"public PaxosRound createRound()\n {\n return createRound(0);\n }",
"public int getCurrentFloor();",
"public String getSleeveRound() {\r\n\t\treturn sleeveRound;\r\n\t}",
"public int getPointsGainedLastRound(){return pointsGainedLastRound;}",
"private static double getWinRate() {\n\t\treturn winRate ;\n\t}",
"public int getMaxRound() {\n return maxRound;\n }",
"public double getCurrentValue()\r\n\t{\r\n\t\tcurrentValue=(2*border+24)/2;\r\n\t\treturn currentValue;\r\n\t}",
"public PaxosRound getRound(int a_round)\n {\n PaxosRound result = (PaxosRound) m_rounds.get(new Integer(a_round));\n return result;\n }",
"public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}",
"public double getCurrent( )\n {\n // Implemented by student.\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public static Round currentRound(Group group)\n\t{\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tRound round = (Round)session.createSQLQuery(\"{call get_current_round(:group_id)}\").addEntity(Round.class).setParameter(\"group_id\", group.getId()).uniqueResult();\n\t\tround.setMatches(MatchDAO.listByRound(round));\n\t\treturn round;\n\t}",
"public int getRoundID() {\n return rounds.get(currentRound).getRoundID();\n }",
"public int getCurrentFloor() {\n\t\treturn currentFloor;\n\t}",
"public void setRound(int round) {\r\n this.round = round;\r\n }",
"public int currentFloor(){\n return currentFloor;\n }",
"public String roundUp(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia arriba \" + (int)Math.ceil(this._X);\n }",
"public float getTimeBetweenRounds() {\r\n\t\treturn timeBetweenRounds;\r\n\t}",
"public Round() {\n\t\tthis.niceMoves = null;\n\t\tthis.roundNo = 1;\n\t}",
"public int getRoundScore() {\n return score;\n }",
"public double getCurrent() {\n return elevatorSpark.getOutputCurrent();\n }",
"public float getCurrentRatio(){\n return mCurZoomRatio;\n }",
"public float getCurrentTime()\r\n\t{\r\n\t\tcurrenttime = Calendar.getInstance();\r\n\t\treturn currenttime.getTimeInMillis();\r\n\t}",
"public void handleNextRound() {\n\t\t\r\n\t}",
"public float getCurrentTime () {\n\t\treturn timer;\n\t}",
"public Number getCurrentQtr() {\r\n return (Number) getAttributeInternal(CURRENTQTR);\r\n }",
"private void nextRound() {\n\t\n\t\t\n\t\tcfight++;\n\t\tif(cfight>=maxround)\n\t\t{\n\t\tcfight=0;\n\t\t\n\t\tround++;\n\t\t\tmaxround/=2;\n\t\t}\n\t\t\n\tif(round<4)\n\t{\n\tcontrollPCRound();\n\t}\n\telse\n\t{\n\t\tint sp=0;\n\t\tint round=0;\n\t\tfor(int i=0; i<fighter.length; i++)\n\t\t{\n\t\t\tif(spieler[i]>0)\n\t\t\t{\n\t\t\t\tsp++;\n\t\t\t\tif(fround[i]>round)\n\t\t\t\t{\n\t\t\t\tround=fround[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif(geld==false)\n\t{\n\t\tgeld=true;\n\t\tif(sp==1)\n\t\t{\n\t\tZeniScreen.addZenis(round*3500);\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint w=round*4000-500*sp;\n\t\t\tif(w<1)\n\t\t\t{\n\t\t\t\tw=100;\n\t\t\t}\n\t\t\tZeniScreen.addZenis(w);\t\n\t\t}\n\t}\n\t}\n\t\n\t\n\t}",
"public static Currency round(Currency c) {\r\n return c.round();\r\n }",
"public int getDraws() {\n return drawRound;\n }",
"public java.math.BigDecimal getRoundOffValue () {\n\t\treturn roundOffValue;\n\t}",
"public String roundDown(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia abajo \" + (int)Math.floor(this._X);\n }",
"private void newRound() {\r\n\t\tballoonsThisRound = currentRoundNumber * balloonsPerRound * 5;\r\n\t\tcurrentRound = new Round(balloonTypes, 0.3f, balloonsThisRound);\r\n\t\tcurrentRoundNumber++;\r\n\r\n\t\tSystem.out.println(\"Begining Round: \" + currentRoundNumber);\r\n\t}",
"public void increaseRound() {\n\t\tif(this.activePlayer==this.player1) {\n\t\t\tthis.setScorePlayer1(this.getScorePlayer1()+1);\n\t\t}else {\n\t\t\tthis.setScorePlayer2(this.getScorePlayer2()+1);\n\t\t}\n\t\t//On check si c'est le dernier round\n\t\tif (round != ROUNDMAX) {\n\t\tthis.round++;\n\t\t//On change un round sur deux le premier joueur de la manche\n\t\t\n\t\tif (0==round%2) {\n\t\t\t\n\t\t\tthis.setActivePlayer(player2);\n\t\t}else {\n\t\t\n\t\t\tthis.setActivePlayer(player1);\n\t\t}\n\t\t}else {\n\t\t\t//Sinon la partie est gagne\n\t\t\tdraw.win = true;\n\t\t}\n\t\t}",
"public double getCurrentTime() {\n\t\treturn currentTime;\n\t}",
"public static float getCurrentTime(){\n return (float)(System.currentTimeMillis()-t0)/1000.0f;\r\n }",
"public void beginRound() {\r\n\t\tnewRound();\r\n\t}",
"@Override\r\n\tpublic void setRound(int round) {\n\t\tthis.round = \"Round: \"+round;\r\n\t\tupdate();\r\n\t}",
"public final float getCurrentCartSpeedCapOnRail() {\n return currentSpeedRail;\n }",
"public double getCurrentTime() {\n\t\tif (playing)\n\t\t\treturn (System.nanoTime() - startNanoTime) / 1e9 + startTime;\n\t\telse if (currentFile == null)\n\t\t\treturn -1;\n\t\tif (debug)\n\t\t\tSystem.err.println(\"getCurrentTime(): not playing\");\n\t\treturn currentPosition / currentFile.frameSize / currentFile.frameRate;\n\t}",
"public static Double getCurrentBalance() {\n\t\treturn BankAccount.currentBalance;\n\t}",
"public int getCurrentTimepoint()\n\t{\n\t\treturn current_timepoint;\n\t}",
"public double getCurrentBet(){\r\n\t\treturn currentBet;\r\n\t}",
"public double getR() {\r\n\t\tif(!polar)\r\n\t\t\tupdatePolar();\r\n\t\treturn r;\r\n\t}",
"int getCurMP();",
"int getCurMP();",
"int getCurMP();",
"int getCurMP();",
"int getCurMP();",
"int getCurMP();",
"public double getCurrentPay() {\n return currentPay;\n }",
"public int getRounds() {\n\n\t\treturn rounds;\n\t}",
"public String getCurrentPrice() {\n\t\treturn currPrice;\n\t}",
"public int getCurrRuptures();",
"public Time round() {\n return new Time(DateUtils.truncate(this.date(), Calendar.MINUTE));\n }",
"public double getCurrentBidToMatch() {\n\t\treturn currentBidToMatch;\n\t}",
"public static long kRounding(){\n\t\tScanner kbd = new Scanner(System.in); //see fairgame\n\t\tint input = kbd.nextInt();\n\t\tint Nput = input;\n\t\tint rounding = kbd.nextInt();\n\n\t\tint div2 = 0;\n\t\tint div5 = 0;\n\n\t\twhile (input % 2 == 0){\n\t\t\tdiv2++;\n\t\t\tinput = input/2;\n\t\t}\n\t\twhile (input % 5 == 0){\n\t\t\tdiv5++;\n\t\t\tinput = input/5;\n\t\t}\n\n\t\tint multiplierTwo = 1;\n\t\tint multiplierFive = 1;\n\t\tif(rounding - div2 > 0){\n\t\t\tmultiplierTwo = (int) Math.pow(2, rounding - div2);\n\t\t}\n\t\tif(rounding - div5 > 0){\n\t\t\tmultiplierFive = (int) Math.pow(5, rounding - div5)\n\t\t}\n\n\t\treturn multiplierTwo*(long)multiplierFive*(long)Nput;\n\t}",
"@Override\n\tpublic float getPrecio() {\n\t\treturn 60.2f;\n\t}",
"public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}",
"public int getCurBalance() {\n\t\treturn curBalance;\n\t}",
"public double getTime()\n {\n long l = System.currentTimeMillis()-base;\n return l/1000.0;\n }",
"public int getRoundsToWait() {\n\t\treturn this.roundsToWait;\n\t}",
"private int round1(double candidate) {\n\tif (candidate > 0.85) {\n\t return(1);\n\t} else if (candidate < 0.15) {\n\t return(0);\n\t}\n\t\n\treturn(-1);\n }",
"public int getCurrentAngle(){\n return flatbed.currentAngle;\n }",
"public String roundNear(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia numero mas cercano \" + (int)Math.floor(this._X + 0.5);\n }",
"public int calculateNextRound(Tournament tournament) {\r\n\t\treturn tournament.getRounds().size() + 1;\r\n\t}",
"@Override\n\tpublic double calRate() {\n\t\treturn 0.9f;\n\t}",
"public float getCurrentTime()\n\t{\n\t\treturn currentTime;\n\t}",
"private int getCurrentValue()\n {\n return\n // Overall wait time...\n _countdownValue -\n // ...minus the time we waited so far.\n (int)(_clock.currentTime() - _startWait);\n }",
"private static int newNumber()\n\t{\n\t\tdouble initial = Math.random();\n\t\tdouble rangeAdjusted = initial * (10000 - 1001) + 1000;\n\t\tint rounded = (int)Math.round(rangeAdjusted);\n\t\treturn rounded;\n\t}",
"public int rConst(int round) {\n\n int rci = 0;\n\n if(round == 1) rci = 1;\n else if(round > 1 && rConst(round-1) < 0x80) rci = ((2 * rConst(round-1)));\n else if(round > 1 && rConst(round-1) >= 0x80) rci = (byte)((2 * rConst(round-1)) ^ 0x1b);\n else rci = 0;\n\n return rci;\n }",
"public int getCount() {\n\t\treturn this.countRound;\n\t}",
"public double getReturnRate() {\n return returnRate;\n }",
"@Override\r\n\tpublic void setRound(int x) {\n\t\troundNum = x;\r\n\t\tupdate();\r\n\t}",
"public float getCurrentValue() {\n return currentValue;\n }",
"public float getIterationValue()\n\t{\n\t\tif (getDuration() <= 0) { return 1; }\n\t\treturn getCurrentTime() / getDuration();\n\t}",
"public Rate getDefaultStandardRate()\r\n {\r\n return (m_defaultStandardRate);\r\n }",
"public int getNowLineDotRadius() {\n return config.nowLineDotRadius;\n }",
"public void setActualRound(Round actualRound) {\n\t\tthis.actualRound = actualRound;\n\t}",
"float getGte();",
"public boolean nextRound() {\n if (numberOfRounds > playedRounds) {\n return true;\n }\n return false;\n }",
"public Double getReturnRate() {\r\n return returnRate;\r\n }",
"public long getCurrent() {\n return current;\n }",
"public int currentMoney() {\r\n\t\treturn money;\r\n\t}",
"@Override\r\n\tpublic long getCurrent() {\n\t\treturn 0;\r\n\t}"
] |
[
"0.86578494",
"0.8045076",
"0.79072213",
"0.78805435",
"0.77939385",
"0.7767904",
"0.72405005",
"0.7167907",
"0.7139172",
"0.70011634",
"0.679961",
"0.67665327",
"0.6737876",
"0.66820824",
"0.6567385",
"0.6433896",
"0.63765407",
"0.6367948",
"0.6363406",
"0.63504237",
"0.6333276",
"0.630489",
"0.6241491",
"0.6191004",
"0.61438334",
"0.61335415",
"0.61335415",
"0.61302215",
"0.6079427",
"0.6072735",
"0.60462254",
"0.60370994",
"0.60088",
"0.5896873",
"0.58884495",
"0.58653516",
"0.58597004",
"0.5832073",
"0.58188176",
"0.57851666",
"0.5770351",
"0.57702917",
"0.57531166",
"0.5748427",
"0.57465225",
"0.5743064",
"0.57367486",
"0.5734023",
"0.571267",
"0.57058495",
"0.5699955",
"0.5699556",
"0.56971806",
"0.5691575",
"0.5676241",
"0.56752634",
"0.56589276",
"0.5649961",
"0.56313163",
"0.56200534",
"0.56200534",
"0.56200534",
"0.56200534",
"0.56200534",
"0.56200534",
"0.5613205",
"0.5602883",
"0.5599333",
"0.55904114",
"0.5588589",
"0.55881196",
"0.557598",
"0.5573387",
"0.5573031",
"0.5570261",
"0.5558106",
"0.55507094",
"0.55445355",
"0.5543874",
"0.5541759",
"0.5537086",
"0.55200124",
"0.55194545",
"0.5517307",
"0.5515195",
"0.550772",
"0.5489445",
"0.54860485",
"0.54856163",
"0.54844266",
"0.5483023",
"0.5480759",
"0.547822",
"0.5475203",
"0.547247",
"0.5471613",
"0.54665625",
"0.5456546",
"0.5447297",
"0.54456025"
] |
0.849958
|
1
|
Returns the game player market
|
public Market getMarket(){
return market;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getMarket() {\r\n return market;\r\n }",
"public WebMarket getMarket() {\r\n return market;\r\n }",
"public Market getMarket() {\n return market;\n }",
"public String getMarketName() {\r\n return marketName;\r\n }",
"public JButton getMarketButton() {\n\t\treturn market;\n\t}",
"public Map<String, MarketData> getMarketData() {return marketData;}",
"public Marble getExtraMarket(){\n return market.getExtra();\n }",
"public String getMarketNo() {\r\n return marketNo;\r\n }",
"public SettlementPlayer getOwner();",
"public BigDecimal getMarketPrice() {\n return marketPrice;\n }",
"public String getMarketId() {\n return marketId;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getMarket() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(MARKET_PROP.get());\n }",
"private String marketPrices() {\r\n\t\tdouble[] prices=market.getPrices();\r\n\t\tString out = \"Prices Are: \";\r\n\t\tfor(int i=0; i<prices.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+String.format(\"%.2f\", prices[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public MarketState getMarketState() {\n return marketState;\n }",
"public int calcMarketPrice() {\r\n player = Context.getInstance().getPlayer();\r\n //Random r = new Random();\r\n int techLevel = player.getCurrentPlanet().getTechLevel();\r\n Event event = player.getCurrentPlanet().getEvent();\r\n Resource resource = player.getCurrentPlanet().getResource();\r\n double price = basePrice;\r\n price += (ipl * (techLevel - mtlb)) + variance;\r\n if (player.getCurrentPlanet().getTechLevel() == this.ttp) {\r\n price *= Context.TECH_PRICE_MULT;\r\n }\r\n if (event.equals(this.ie)) {\r\n price *= event.getUpMult();\r\n } else if (event.equals(this.de)) {\r\n price *= event.getDownMult();\r\n }\r\n if (resource.equals(this.cr)) {\r\n price *= resource.getDownMult();\r\n } else if (resource.equals(this.er)) {\r\n price *= resource.getUpMult();\r\n }\r\n price *= (((double) player.getTrader() / DFIFTY) + 1.0);\r\n int finalPrice = (int) price;\r\n if (player.getTrader() > 0) {\r\n double discountedPrice = price;\r\n double trader = (double) player.getTrader();\r\n discountedPrice -= (price) * (4.0 * trader / PERCENT);\r\n return (int) discountedPrice;\r\n } else {\r\n return finalPrice;\r\n }\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getMarket() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(MARKET_PROP.get());\n }",
"public double getMarketValue()\n {\n return this.totalShares * super.getCurrentPrice();\n }",
"private String marketSellAmounts() {\r\n\t\tint[] amounts= market.getSellAmounts();\r\n\t\tString out = \"Sell Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public synchronized MarketDataDTO getMarketData() {\n\t\tPrice bestBuyPrice = getBuySide().topOfBookPrice();\n\t\tPrice bestSellPrice = getSellSide().topOfBookPrice();\n\t\tif (bestBuyPrice == null) bestBuyPrice = PriceFactory.makeLimitPrice(0);\n\t\tif (bestSellPrice == null) bestSellPrice = PriceFactory.makeLimitPrice(0);\n\t\tint bestBuyVolume = getBuySide().topOfBookVolume();\n\t\tint bestSellVolume = getSellSide().topOfBookVolume();\n\t\tMarketDataDTO marketData = new MarketDataDTO(getStock(), bestBuyPrice, bestBuyVolume, bestSellPrice, bestSellVolume);\n\t\treturn marketData;\n\t}",
"Map<String, String> getAvailableGames();",
"public BankAccount getMoneyMarketAccount() {\n return this.moneyMarket;\n }",
"String getTradeCurrency();",
"void getMarketOrders();",
"public PlayerWallet getGameWallet() {\n return gameWallet;\n\n }",
"public String getMarkets() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getmarkets\");\n\t}",
"public double getStockMarketPrice() {\n\t\treturn stockMarketPrice;\n\t}",
"public String getMarketId() {\n\t\treturn marketId;\n\t}",
"int getBuyCurrent();",
"public String getTicker(String market) {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getticker\", returnCorrectMap(\"market\", market));\n\t}",
"public String marketplaceOffer() {\n return this.marketplaceOffer;\n }",
"@Override\n\tpublic List<Games> getMinPriceView() {\n\t\treturn gameDAO.getMinPrice();\n\t}",
"public static String requestSell(Player player, Team playersTeam, double askingPrice, Library library) {\n\t\tif (!player.isCanBeSold()) {\n\t\t\treturn \"You can't try to sell this player until after \" + player.getDaysNotForSale() + \" more rounds\";\n\t\t}\n\t\t\n\t\tArrayList<Team> teamswithbudget = new ArrayList<Team>();\n\t\tfor (int i=0;i<library.getLibrary().size();i++) {\n\t\t\tTeam t = library.getLibrary().get(i);\n\t\t\tif (t!=playersTeam) {\n\t\t\t\tif (t.getBudget()>=askingPrice) {\n\t\t\t\t\tteamswithbudget.add(t);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif (teamswithbudget.size()==0) {\n\t\t\tplayer.triedToSell();\n\t\t\treturn \"Your player was not bought by any team, due to the fact that none of the teams has got enough money to fulfill your asking price\";\n\t\t}\n\t\t\n\t\tdouble percentage = askingPrice/player.getPrice().doubleValue()*100-100;\n\t\tboolean sell = false;\n\t\tint random = GameLogic.randomGenerator(1, 100);\n\t\tif (percentage<-10) {\n\t\t\tsell=true;\n\t\t} if (percentage >=-10 && percentage<0) {\n\t\t\tif (random<=95) {\n\t\t\t\tsell=true;\n\t\t\t}\n\t\t} if (percentage>=0 && percentage <5) {\n\t\t\tif (random<=75) {\n\t\t\t\tsell=true;\n\t\t\t}\n\t\t} if (percentage>=5 && percentage <10) {\n\t\t\tif (random<=50) {\n\t\t\t\tsell=true;\n\t\t\t}\n\t\t} if (percentage>=10 && percentage <15) {\n\t\t\tif (random<=30) {\n\t\t\t\tsell=true;\n\t\t\t}\n\t\t} if (percentage>=15 && percentage <20) {\n\t\t\tif (random<=20) {\n\t\t\t\tsell=true;\n\t\t\t}\n\t\t} if (percentage>=20 && percentage<25) {\n\t\t\tif (random<=10) {\n\t\t\t\tsell=true;\n\t\t\t}\n\t\t} if (percentage>=25 && percentage<30) {\n\t\t\tif (random==1) {\n\t\t\t\tsell=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sell) {\n\t\t\tif (playersTeam.isMax()) {\n\t\t\t\tplayersTeam.setMax(false);\n\t\t\t}\n\t\t\tTeam buyingTeam = teamswithbudget.get(GameLogic.randomGenerator(0, teamswithbudget.size()-1));\n\t\t\tplayersTeam.setBudget(playersTeam.getBudget()+askingPrice);\n\t\t\t//System.out.println(playersTeam.getBudget());\n\t\t\tbuyingTeam.setBudget(buyingTeam.getBudget()-askingPrice);\n\t\t\tbuyingTeam.add(player);\n\t\t\tplayer.setTeam(buyingTeam.getTeamName());\n\t\t\tplayersTeam.getTeam().remove(player);\n\t\t\tplayer.setNumber(buyingTeam.getTeam().size());\n\t\t\tif (playersTeam.getPositions().contains(player)) {\n\t\t\t\tplayersTeam.getPositions().remove(player);\n\t\t\t}\n\t\t\tBigDecimal baskingPrice = new BigDecimal(askingPrice);\n\t\t\t//price string\n\t\t\t\n\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\tbaskingPrice = baskingPrice.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\tString priceString = formatter.format(baskingPrice.longValue());\n\t\t\t\n\t\t\treturn \"Congratulations! \" + player.getName() + \" got bought by \" + buyingTeam.getTeamName() + \" for the price of \" + priceString;\n\t\t} else {\n\t\t\tplayer.triedToSell();\n\t\t\treturn \"Unfortunately your player didn't get bought. Lowering the asking price might increase the chances for a team buying your player.\";\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public String getPlayerGear() {\r\n String res = \"You have the following gear equipped:\" + System.getProperty(\"line.separator\");\r\n if (player.getGearSlot1() == null) {\r\n res += \"You have nothing equipped in slot 1.\" + System.getProperty(\"line.separator\");\r\n } else {\r\n res += player.getGearSlot1().toString() + System.getProperty(\"line.separator\");\r\n }\r\n if (player.getGearSlot2() == null) {\r\n res += \"You have nothing equipped in slot 2.\" + System.getProperty(\"line.separator\");\r\n } else {\r\n res += player.getGearSlot2().toString() + System.getProperty(\"line.separator\");\r\n }\r\n return res;\r\n }",
"public Symbol getCurrentPlayerSymbol();",
"public Player getWinner();",
"public int getPlayerWallet() {\n\t\t\treturn playerWallet;\n\t\t}",
"public int getCurrentPlayerFunds(){return currentPlayerTurn.getFunds();}",
"public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private String getLatestMarketData() {\n\t\treturn latestMarketData;\n\t}",
"@Override\n\tpublic List<Games> getMaxPriceView() {\n\t\treturn gameDAO.getMaxPrice();\n\t}",
"public int addPlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\tSystem.out.println(\"budget before buy\" + user.getBudget());\n\t\t\n\t\tif(tmpTeam.containsPlayer(name)) {\n\t\t\treturn 1;\n\t\t} \n\t\telse if(user.hasEnoughBudget(marketValue)) {\n\t\t\ttmpTeam.addPlayer(name, player);\n\t\t\tuser.updateBudget(marketValue, \"-\");\n\t\t\tSystem.out.println(\"budget \" + user.getBudget());\n\t\t\tSystem.out.println(\"marketvalue \" +marketValue);\n\t\t\tSystem.out.println(\"budget after buy\" + user.getBudget());\n\t\t\treturn 0;\n\t\t}\n\t\treturn -1;\n\t}",
"private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.println(\"Cisco - Share Price: \" + game.cisco.getSharePrice() + \" [\" + game.cisco.top() + \"]\");\n out.println(\"Dell - Share Price: \" + game.dell.getSharePrice() + \" [\" + game.dell.top() + \"]\");\n out.println(\"Ericsson - Share Price: \" + game.ericsson.getSharePrice() + \" [\" + game.ericsson.top() + \"]\");\n\n out.println(\"\\n-PLAYERS-\");\n// System.out.println(playerList.toString());\n for (Player e : playerList) {\n if (e.equals(player)) {\n out.println(e.toString() + \" (you)\");\n } else {\n out.println(e.toString());\n }\n }\n }",
"public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}",
"public void returnGame () throws ParseException { //ParseE: must be here for the parse method to run\n long days = daysBetween();\n ModelGame game = findGameById();\n game.setAvailable(true);\n printTotalRentFee(days, game.getDailyRentFee());\n totalRent = totalRent + (days * game.getDailyRentFee());\n }",
"public JingtumCurrency getPay() {\n\t\tif (this.taker_gets == null && order != null){\n\t\t\treturn order.getTaker_gets();\n\t\t}\n\t\treturn taker_gets;\n\t}",
"public String getBestSeller ()\n {\n return (bestSeller);\n }",
"public Product[] get(String player) throws NullPointerException {\n\t\tif (playerMap.containsKey(player)) {\n\t\t\treturn playerMap.get(player);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}",
"public double getCurrentBet(){\r\n\t\treturn currentBet;\r\n\t}",
"private void setMarket() {\n\t\tObject [][] data = new Object[players.length][5];\n\t\t\n\t\tfor(int i = 0; i<players.length; i++) {\n\t\t\tdata[i][0] = game.getLastName(players[i].getName());\n\t\t\tdata[i][1] = players[i].getPosition();\n\t\t\tdata[i][2] = players[i].getTeamName();\n\t\t\tdata[i][3] = players[i].getScore();\n\t\t\tdata[i][4] = players[i].getMarketValue();\n\t\t}\n\t\tString [] columnNames = {\"Name\", \"Position\", \"Team\", \"Points\", \"Cost\"};\n\t\tDefaultTableModel tableModel = new DefaultTableModel(data,columnNames);\n\t\ttableMarket.setModel(tableModel);\n\t}",
"public double marketState()\n\t{\n\t\treturn _dblMarketState;\n\t}",
"String getPlayer();",
"int getSellCurrent();",
"private void botVoting(){\n int stockPos;\n int myStockPos = getMostShares(playerList.lastIndexOf(player));\n Collections.sort(playerList);\n if(playerList.get(0) == player){ //if i am the leader\n stockPos = getMostShares(1); //get the second players info\n }else{\n stockPos = getMostShares(0); //else get the first players info\n }\n\n //if my most shares are the same as other players most shares, don't vote.\n if(game.getStockByIndex(stockPos) != game.getStockByIndex(myStockPos)){\n //offensive play against leader\n if(game.isCardPositive(game.getStockByIndex(stockPos))){\n game.getStockByIndex(stockPos).vote(0);\n player.getVotedStocks().append(game.getStockByIndex(stockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted NO for \" + game.getStockByIndex(stockPos).getName() );\n }else{\n game.getStockByIndex(stockPos).vote(1);\n player.getVotedStocks().append(game.getStockByIndex(stockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted YES for \" + game.getStockByIndex(stockPos).getName());\n }\n //defensive play, votes that will benefit me\n if(game.isCardPositive(game.getStockByIndex(myStockPos))){\n game.getStockByIndex(myStockPos).vote(1);\n player.getVotedStocks().append(game.getStockByIndex(myStockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted YES for \" + game.getStockByIndex(myStockPos).getName());\n }else{\n game.getStockByIndex(myStockPos).vote(0);\n player.getVotedStocks().append(game.getStockByIndex(myStockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted NO for \" + game.getStockByIndex(myStockPos).getName());\n }\n }\n }",
"public BigDecimal getHistoryMarketPrice() {\n return historyMarketPrice;\n }",
"public void setMarket(WebMarket market) {\r\n this.market = market;\r\n }",
"public List<marketStatus> getMarketStatus() {\n\t\treturn marketStatus;\n\t}",
"public int findGift(Player aPlayer){\r\n \tint giftSum = 0;\r\n \tfor (Expense anExpense : expenses) {\r\n\t\tif (anExpense.isTransaction()){\r\n\t\t\tif (aPlayer.isPlayer(anExpense.getPlayerName())){\r\n\t\t\t\tgiftSum = anExpense.getSum();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n \treturn giftSum;\r\n }",
"public Integer getTradePaying() {\n return tradePaying;\n }",
"int getBuyCurrentRaw();",
"public void matchBets(MarketRunners marketRunners);",
"public Player getPlayerToOfferTo() {\n return playerToOfferTo;\n }",
"public String getBet() {\n\t\treturn bet;\n\t}",
"Price getTradePrice();",
"public static Markets getMarketById(int index) {\n\t\treturn markets[index]; \n\t}",
"public Integer getMarketGroupId() {\n return marketGroupId;\n }",
"public BasketballPlayer getPlayer(String whichTeam, int player){\n\t\tif(whichTeam.equals(_homeTeam.getTeamName())){\n\t\t\treturn _homeTeam.getPlayer(player);\n\t\t}\n\t\telse{\n\t\t\treturn _awayTeam.getPlayer(player);\n\t\t}\n\t}",
"String getMarketId();",
"public Identifier getTradeProviderKey() {\n return _tradeProviderKey;\n }",
"public String getMarketSummaries() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getmarketsummaries\");\n\t}",
"@Override\n public Player getWinningPlayer() {\n return wonGame ? currentPlayer : null;\n }",
"boolean placeBet(Player player, int bet);",
"public String getBuyStrategy() {\r\n return buyStrategy;\r\n }",
"private void communityChest(Player currentPlayer){\n Random rand = new Random();\n int randomNum = rand.nextInt((3 - 1) + 1) + 1;\n int nextPlayer;\n if(m_currentTurn >= m_numPlayers){\n nextPlayer = 0;\n } else {\n nextPlayer = m_currentTurn+1;\n }\n\n if(randomNum == 1){\n convertTextToSpeech(\"Your new business takes off, collect 200\");\n if(m_manageFunds) {\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(200);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n if(randomNum == 2){\n convertTextToSpeech(\"Your friend hires your villa for a week, \" +\n \"collect 100 off the next player\");\n if(m_manageFunds) {\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(100);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n players.get(nextPlayer).subtractMoney(100);\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n }\n }\n if(randomNum == 3){\n convertTextToSpeech(\"You receive a tax rebate, collect 300\");\n if(m_manageFunds) {\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(300);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n }",
"public int getPlayermoney() {\n\t\treturn playermoney;\n\t}",
"public int getGoldGivenBy(Player player) {\n for (TradeItem ti : items) {\n if (ti instanceof GoldTradeItem && player == ti.getSource()) {\n return ((GoldTradeItem)ti).getGold();\n }\n }\n return -1;\n }",
"TickerPrice getPrice(String symbol);",
"public Symbol getWinner();",
"@Override\n\tpublic void getScoreCardByPlayer(Player player) {\n\t\tSystem.out.printf(\"%12s: \", player.getName());\n\t\tChance[] chances = player.getScoreCard().getChances();\n\t\tfor (int i = 0; i < chances.length; i++) {\n\t\t\tif (i == chances.length - 1) {\n\t\t\t\tSystem.out.printf(\"|~ %02d|%02d ~|\", chances[i].getThrow1(), chances[i].getThrow2());\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"| %02d|%02d |\", chances[i].getThrow1(), chances[i].getThrow2());\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\" => %03d \", player.getScoreCard().getTotalScore());\n\t\tSystem.out.printf(\"Total Spare: %02d \", player.getScoreCard().getTotalSpare());\n\t\tSystem.out.printf(\"Total Strike: %02d%n\", player.getScoreCard().getTotalStrike());\n\t}",
"public QKPlayer getKing() {\n return new QKPlayer(this.king);\n }",
"public static Player.PlayerTeam getWinningTeam(List<Player> players) {\n int sumForPaper = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.PAPER)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n int sumForRock = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.ROCK)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n int sumForScissors = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.SCISSORS)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n Map<Player.PlayerTeam, Integer> finalList = new HashMap<>();\n finalList.put(Player.PlayerTeam.PAPER, sumForPaper);\n finalList.put(Player.PlayerTeam.ROCK, sumForRock);\n finalList.put(Player.PlayerTeam.SCISSORS, sumForScissors);\n\n int max = Collections.max(finalList.values());\n\n List<Player.PlayerTeam> collect = finalList.entrySet().stream()\n .filter(entry -> entry.getValue() == max)\n .map(entry -> entry.getKey())\n .collect(Collectors.toList());\n\n Player.PlayerTeam winningTeam = collect.get(0);\n\n return winningTeam;\n\n }",
"public double getBuyPrice() {\n return buyPrice;\n }",
"public abstract Player getWinner();",
"public double getPlayerFullHP();",
"public Product get(String player, int slot) throws NullPointerException {\n\t\tif (playerMap.containsKey(player)) {\n\t\t\treturn playerMap.get(player)[slot];\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}",
"private int getTotalShareValue(Player player){\n return player.getShares().get(0) * game.apple.getSharePrice() + player.getShares().get(1) * game.bp.getSharePrice() +\n player.getShares().get(2) * game.cisco.getSharePrice() + player.getShares().get(3) * game.dell.getSharePrice() +\n player.getShares().get(4) * game.ericsson.getSharePrice();\n }",
"public static int getPrice() {\n return PRICE_TO_BUY;\n }",
"Pokemon.Currency getCurrency();",
"public Player roundWinner() {\n\t\tfor(Player player : gamePlayers){\n\t\t\tEvaluator eval = new Evaluator(player, communityCards);\n\t\t\t\n\t\t\tplayer.setHandRank(eval.evaluate());\n\t\t\tplayersByHandRank.add(player);\n\t\t}\n\t\t\n\t\t//lambdas are magic. Sorts players from lowest to highest rank starting with the lowest at the first\n\t\t//index, and the highest at the last.\n\t\tCollections.sort(playersByHandRank, (p1, p2) -> p1.getHandRank().compareTo(p2.getHandRank()));\n\t\t\n\t\t//TODO: Needs to evaluate high card in case of two or more players have the same high hand rank.\n\t\t//the evaluate method in Evaluator sets high card == to the highest card in a pairSet, flush, or straight,\n\t\t//but needs to be able to add it in the event HIGH_CARD is the highest hand a player has.\n\n\t\treturn playersByHandRank.get(playersByHandRank.size() -1);\n\t}",
"public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(getPlayerPoints(player) > highest){\r\n highest = getPlayerPoints(player);\r\n winner = player.getID();\r\n }\r\n \r\n }\r\n \r\n return winner;\r\n }",
"public Set<Colour> getWinningPlayers();",
"@Override\n public float getPriceCard() {\n return database.getPriceCard();\n }",
"@Override\n\tpublic java.lang.String getAskingPrice() {\n\t\treturn _buySellProducts.getAskingPrice();\n\t}",
"private void computePresentPleyers() {\n\t\tthis.presentPlayerKeys = new ArrayList<>();\n\t\tList<ChesspairingPlayer> players = mTournament.getPlayers();\n\t\tfor (ChesspairingPlayer player : players) {\n\t\t\tif (player.isPresent()) {\n\t\t\t\tthis.presentPlayerKeys.add(player.getPlayerKey());\n\t\t\t}\n\t\t}\n\t}",
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"public Dalek getPlayer() {\n return dalek;\n }",
"public LinkedHashMap<String, Integer> getPlayerHandSizeOrdered() {\r\n LinkedHashMap<String, Integer> result = new LinkedHashMap<>();\r\n for (PlayerContainer container : players) {\r\n result.put(container.name, container.getNumCardsInHand());\r\n }\r\n return result;\r\n }",
"public Game getGame() {\n\t\treturn gbuilder.getGameProduct();\n\t}",
"public Player getPlayer();",
"public Player getPlayer();"
] |
[
"0.7080597",
"0.6862638",
"0.6825719",
"0.6453449",
"0.6101331",
"0.6049927",
"0.60499",
"0.60111624",
"0.5949668",
"0.5931969",
"0.5921619",
"0.59201276",
"0.5903134",
"0.58890253",
"0.5884032",
"0.58712816",
"0.58574903",
"0.58483493",
"0.5839083",
"0.58056337",
"0.57786363",
"0.5728973",
"0.572386",
"0.5711017",
"0.5692096",
"0.5687536",
"0.56820434",
"0.56577784",
"0.5645979",
"0.56324935",
"0.5607132",
"0.5604281",
"0.560227",
"0.5594456",
"0.55913115",
"0.55907744",
"0.55455506",
"0.55447906",
"0.5521538",
"0.5511718",
"0.5499932",
"0.54816335",
"0.54669726",
"0.54349697",
"0.5430347",
"0.54282963",
"0.54232717",
"0.5422985",
"0.5421911",
"0.54129636",
"0.5408624",
"0.54085314",
"0.5405954",
"0.53994924",
"0.538311",
"0.5363739",
"0.53561103",
"0.5355115",
"0.53481346",
"0.5346044",
"0.5337395",
"0.5332071",
"0.532705",
"0.531744",
"0.5308569",
"0.53002214",
"0.52818316",
"0.52781904",
"0.5275448",
"0.5265849",
"0.5259886",
"0.52592117",
"0.52584666",
"0.52451843",
"0.5235306",
"0.5234153",
"0.5229853",
"0.5228813",
"0.5228772",
"0.5227376",
"0.5227266",
"0.5224234",
"0.52239096",
"0.52229685",
"0.5216386",
"0.52109647",
"0.5197575",
"0.51955444",
"0.5194564",
"0.5189263",
"0.51890683",
"0.51853305",
"0.518533",
"0.5183912",
"0.51837164",
"0.5183429",
"0.51795894",
"0.51766163",
"0.51757157",
"0.51757157"
] |
0.68145144
|
3
|
Sets the team the current user has selected for the next round
|
public void setTmpTeam(UserTeam tmpTeam) {
this.tmpTeam = tmpTeam;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public synchronized void pickTeam() {\n voteTeamState = pickTeamState.pickTeam(teamSelection);\n state = State.VOTE_TEAM;\n playerVotes = new HashMap<>();\n }",
"void setWinningTeam(TeamId winner) {\n winningTeam.set(winner);\n }",
"public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}",
"public Builder setTeam(int value) {\n bitField0_ |= 0x00000004;\n team_ = value;\n onChanged();\n return this;\n }",
"public static void setTeam(UserTeam team) {\n\t\tgame.setTmpTeam(team);\n\t\tint i=0;\n\t\tfor (Iterator<FootballPlayer> iterator = team.getPlayers().values().iterator(); iterator\n\t\t\t\t.hasNext();) {\n\t\t\tFootballPlayer player = iterator.next();\n\t\t\tnamesLabels.get(i).setText(game.getLastName(player.getName()));\n\t\t\tshirtLabels.get(i).setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[i].setText(\"X\");\n\t\t\ti++;\n\t\t}\n\t}",
"public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}",
"public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}",
"private static void switchTeam(BrowserWindow bw, String team) {\n\t\tRepeat rpt = Repeat.findRepeatByIdEndsWith(bw, \"repeat\");\n\t\trpt.clickRow(team);\n\t}",
"public void setTeam(String team) {\n\t\tthis.team = team;\n\t}",
"@Override\n\tpublic void setTeam(int i) {\n\t\t\n\t}",
"public void setTeamId(int value) {\n this.teamId = value;\n }",
"public void updateUserTeam() {\n\t\tUser user = users.get(userTurn);\n\t\tSystem.out.println(user.getName());\n\t\tSystem.out.println(tmpTeam.size());\n\t\tUserTeam roundTeam = new UserTeam();\n\t\troundTeam.putAll(tmpTeam.getPlayers());\n\t\tSystem.out.println(roundNumber);\n\t\tSystem.out.println(roundTeam.size());\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\tuser.setUserTeam(roundTeam, roundNumber);\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\ttmpTeam = new UserTeam();\n\t}",
"@Override\n\tpublic void setHomeTeam() {\n\t\t\n\t}",
"public void teamChange() {\n if (teamCombobox.getValue().getTeamLogo() != null) {\n teamPhoto.setImage(teamCombobox.getValue().getTeamLogo().getImage());\n }\n teamCode.setText(\"Team code : \" + teamCombobox.getValue().getTeamCode());\n }",
"protected abstract void assignTeam(boolean playerR, boolean playerB);",
"public void updateTeam(int team, GameData gameData) {\n currentTeam = gameData.getTeamDataList().get(team);\n passButton.setVisible(false);\n answerField.setText(\"\");\n //if the current team is this client\n if (team == teamIndex) {\n AppearanceSettings.setEnabled(true, submitAnswerButton, answerField);\n announcementsLabel.setText(\"It's your turn to try to answer the question!\");\n }\n //if the current team is an opponent\n else {\n AppearanceSettings.setEnabled(false, submitAnswerButton, answerField);\n announcementsLabel.setText(\"It's \" + currentTeam.getTeamName() + \"'s turn to try to answer the question.\");\n }\n //mark down that this team has had a chance to answer\n teamHasAnswered.replace(team, true);\n hadSecondChance = false;\n teamLabel.setText(currentTeam.getTeamName());\n }",
"void resetMyTeam(Team team);",
"public void setCurrentUser(int userNum) {\n\t\tuserTurn = userNum;\n\t}",
"private static void displayUserTeam() {\n\t\tif (game.getCurrentRound()==1) {\n\t\t\tfor (int i = 0; i<11; i++) {\n\t\t\t\tplayerNameArray[i].setText(\"Name\");\n\t\t\t\timageArray[i].setIcon(MainGui.getShirt(\"noTeam\"));\n\t\t\t\tbuttonArray[i].setText(\"+\");\n\t\t\t}\n\t\t}\n\t}",
"public void newTeam(Team team);",
"@Override\n\tpublic void setIsTeamMatch(boolean isTeamMatch) {\n\t\t_esfTournament.setIsTeamMatch(isTeamMatch);\n\t}",
"public synchronized void startGame() {\n PreGameState preGameState = new PreGameState();\n pickTeamState = preGameState.startGame(players);\n state = State.PICK_TEAM;\n teamSelection = new HashSet<>();\n }",
"void resetMyTeam();",
"public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }",
"private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }",
"private void setNextGame() {\n Persistence db = Persistence.getInstance();\n game = db.getNextGame();\n\n // set the initial grid in the model\n grid = game.getInitial();\n\n // get rid of everything on the view grid\n view.clearGrid(true);\n\n // put givens for new game into view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n } // if given\n } // for j\n } // for i\n\n }",
"public static void set2v2Teams(int gameModeSelected, int numPlayers){\n\t\tint randomPlayer1;\n\t\tint randomPlayer2;\n\t\t\n\t\tif(gameModeSelected==2) {\n\t\t\tRandom playerGen =new Random();\n\t\t\trandomPlayer1=playerGen.nextInt(numPlayers)+1;\n\t\t\tRandom playerGen2 =new Random();\n\t\t\trandomPlayer2=playerGen2.nextInt(numPlayers)+1;\n\t\t\tif(randomPlayer1!=randomPlayer2) {\n\t\t\t\tif(randomPlayer1==1) {\n\t\t\t\t\tteam1[0]=\"Player 1\";\n\t\t\t\t\tif(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==3) {\n\t\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\tteam2[1]=\"Player 3\";\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==2){\n\t\t\t\t\tteam1[0]=\"Player 2\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==3) {\n\t\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 3\";\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==3){\n\t\t\t\t\tteam1[0]=\"Player 3\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 2\";\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tteam1[0]=\"Player 4\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 3\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 3\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 2\";\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}//end of if generated nums aren't equal\n\t\t\t\n\t\t\telse{ \n\t\t\t\tif(randomPlayer1==1) {\n\t\t\t\tteam1[0]=\"Player 1\";\n\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==2) {\n\t\t\t\t\tteam1[0]=\"Player 2\";\n\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==3) {\n\t\t\t\t\tteam1[0]=\"Player 3\";\n\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tteam1[0]=\"Player 4\";\n\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Team 1 is \" + team1[0] + \" and \" + team1[1]);\n\t\t\tSystem.out.println(\"Team 2 is \" + team2[0] + \" and \" + team2[1]);\n\t\t}//end of if right gameMode\n\t}",
"@Override\n\tpublic void setVisitTeam() {\n\t\t\n\t}",
"public void setTeamName(String name) {\n\t\tteamName = name;\n\t}",
"@Override\n public void setWinner(Player winner)\n {\n for(int i = 0; i < gc.getF().size(); i++)\n {\n if(gc.getF().get(i).readyStart() == 0 || gc.getF().get(i).readyStart() == 1)\n {\n gc.getF().get(gc.getF().size() -1).addPlayer(this.winner);\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n return;\n }\n }\n //If there are no available spots, make a new game\n Final f = new Final();\n System.out.println(\"created a new Final!\");\n f.addPlayer(winner);\n //Save winner details\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n \n gc.getF().add(f);\n //Move game to history \n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n \n }",
"public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }",
"private void SetCurrentPlayer() throws IOException\n {\n if( mTeamsComboBox.getSelectedItem() != null )\n {\n String team = mTeamsComboBox.getSelectedItem().toString();\n String position = mPositionComboBox.getSelectedItem().toString();\n String playerData = GetPlayerString(team, position);\n if( playerData != null )\n SetPlayerData(playerData);\n }\n }",
"public void setCurrentTurn(Player player) {\r\n\t\tthis.currentTurn = player;\r\n\t}",
"public void setWinner(int num){\r\n \twinner = num;\r\n }",
"public String getTeam() {\n return team;\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(TeamActivity.this, TeamActivity.class); //If the team number is pressed start a new TeamActivity with information about the selected team\n intent.putExtra(\"Team#\", TeamNumber); //Send the team number into the new activity in order to know which team the new activity should be about\n TeamActivity.this.startActivity(intent); //Start the new activity\n }",
"@When(\"^I select \\\"Home team to win\\\"$\")\n public void iSelectHomeTeamToWin() {\n\n eventsPage.selectBetButtonByOrder(0);\n }",
"public int getTeam() {\n return team_;\n }",
"public int getTeam() {\n return team;\n }",
"@Given(\"^I navigate to team page \\\"([^\\\"]*)\\\"$\")\n public void navigate_to_teamPage(String nameTeam){\n addNewTeam = mainPage.clickNewTeam();\n teamPage = addNewTeam.createTeam(nameTeam);\n }",
"public void setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}",
"static public void set_team_data(String league){\n\n\t\tEdit_row_window.attrs = new String[]{\"team name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_\"+league+\"_players p, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_\"+league+\"_player_team pt \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where pt.player_id=p.id and pt.team_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by links_to_player desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\" from curr_\"+league+\"_players p \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"player name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"PLAYERS\";\n\t}",
"public int getTeam() {\n return team_;\n }",
"public void setSelectedTerritoryForTurn(Territory selectedTerritory) {\n selectedTerritoryByPlayer = selectedTerritory;\n }",
"@Override\r\n\tpublic ResultMessage updateTeam(TeamPO oneTeam) {\n\t\treturn teams.updateTeam(oneTeam);\r\n\t}",
"public String getTeam() {\n\t\treturn team;\n\t}",
"@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}",
"public void nextTurn() {\r\n activePlayer = nextPlayer;\r\n advanceNextPlayer();\r\n }",
"public String getTeam() {\r\n\t\treturn Team;\r\n\t}",
"private void setPlayer(BoardSquaresState player){\n\t\tif(player == BoardSquaresState.CROSS){\n\t\t\tselectedPlayer = BoardSquaresState.CROSS;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Cross\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"You go first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.cross_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\t\telse{\n\t\t\tselectedPlayer = BoardSquaresState.NOUGHT;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Nought\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"Computer goes first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.nought_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\n\t}",
"public Team getTeam() {\n return team;\n }",
"public void setCurrentClub() {\n Object id = BridgeUI.user.getCurrentClubId();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n }\n }",
"public Team getTeam() {\r\n\t\treturn team;\r\n\t}",
"public void setGamePoints(TeamId team, int points) {\n if(team == TeamId.TEAM_1)\n gamePoints1.set(points);\n else\n gamePoints2.set(points);\n }",
"public static void proposeTrade(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Propose Trade---\");\r\n\t\tfor (int x = 0; x < theLeague.getNumTeams(); x++) {\r\n\t\t\tif (!theLeague.getTeam(x).equals(theTeam)) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\"Team number: \" + (x + 1));\r\n\t\t\t\ttheLeague.getTeam(x).teamManNameToString();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Select a team to view:\");\r\n\t\t\r\n\t\tint otherTeamChoice;\r\n\t\tdo {\r\n\t\t\totherTeamChoice = Input.validInt(1, theLeague.getNumTeams(), keyboard) - 1;\r\n\t\t} while (otherTeamChoice == theLeague.getTeamList().indexOf(theTeam));\r\n\t\tTeam otherTeam = theLeague.getTeam(otherTeamChoice);\r\n\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Propose Trade---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\totherTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Would you like to propose a trade to this team?\");\r\n\t\tSystem.out.println(\"1 - Yes\");\r\n\t\tSystem.out.println(\"2 - No, Return to Team Menu\");\r\n\t\t\r\n\t\tif (Input.validInt(1, 2, keyboard) == 1) {\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"Enter your trade offer (max 64 characters):\");\r\n\t\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\t\tString proposal = Input.validString(32, keyboard);\r\n\t\t\tif (proposal.equals(\"0\")) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\totherTeam.setProposedTrade(theTeam.getManagerName() + \": \" + proposal);\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***You have proposed a trade:***\");\r\n\t\t\tSystem.out.println(\"To \" + otherTeam.getManagerName() + \": \" + proposal);\r\n\t\t}\r\n\t}",
"private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}",
"public void setCurrentGameRound(int round){\n\t\tcurrentGameRound = round;\n\t\trepaint();\n\t}",
"public void setTurnPoints(TeamId team, int points) {\n if(team == TeamId.TEAM_1)\n turnPoints1.set(points);\n else\n turnPoints2.set(points);\n }",
"void update(Team team);",
"public void setNextTurn() {\n\t\t// COMPLETE THIS METHOD\n\t\tif (turn == 1) {\n\t\t\t\n\t\t\tturn = 2;\n\t\t\tcurrentDisc = getPlayer2Disc();\n\t\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tturn = 1;\n\t\t\tcurrentDisc = getPlayer1Disc();\n\t\t\t\n\t\t}\n\t}",
"public void cmdSetTeam(User teller, Team team, String var, StringBuffer setting) throws MalformedURLException, InvalidNameException {\n String value = setting.toString();\n var = var.toLowerCase();\n if (\"name\".equals(var)) {\n team.setRealName(value);\n } else if (ComparisionHelper.anyEquals(var, \"loc\", \"loc.\", \"location\")) {\n team.setLocation(value);\n } else if (ComparisionHelper.anyEquals(var, \"web\", \"webpage\", \"website\")) {\n team.setWebsite(value);\n } else if (ComparisionHelper.anyEquals(var, \"div\", \"division\")) {\n team.setDivision(value);\n } else {\n command.tell(teller, \"Unknown variable: \" + var);\n return;\n }\n cmdShowTeam(teller, team);\n tournamentService.updateTeam(team);\n tournamentService.flush();\n }",
"@Test\n public void setCurrent() throws SQLException {\n DataStorer.insertProfile(profile1);\n DataStorer.insertGoal(goal1, profile1);\n // Current for goal1 is currently true so change it to false\n boolean current = false;\n goal1.setCurrent(current);\n // Load profile1 from the database\n loadedProfile = DataLoader.loadProfile(profile1.getFirstName(), profile1.getLastName());\n\n //goal1.setCurrent(true);\n\n // Check that current was updated correctly in the database - will get index out of bounds exception if it was not\n assertEquals(current, loadedProfile.getPastGoals().get(0).isCurrent());\n\n // Reset current to true so other tests can use goal1\n goal1.setCurrent(true);\n }",
"public void setName(String name){\n\t\tthis.tournamentName = name;\n\t}",
"public void setUpNewRound(){\n int newRound = getRoundNum() + 1;\n getRound().getPlayer(0).clearPiles();\n getRound().getPlayer(1).clearPiles();\n mRound = new Round(players);\n setRoundNum(newRound);\n mRound.beginRound();\n }",
"public SoccerTeam getTeamOne() {\n return teamOne;\n }",
"public static void changePlayer() {\n\t\tvariableReset();\n\t\tif (curPlayer == 1)\n\t\t\tcurPlayer = player2;\n\t\telse\n\t\t\tcurPlayer = player1;\n\t}",
"private void save() {\n Saver.saveTeam(team);\n }",
"public void selectBet(String pTeamName){\n driver.findElement(By.xpath(String.format(BettingFootballPageConstants.BET, pTeamName))).click();\n TestHelper.waitForAjax();\n }",
"@Override\n public String getTeam(){\n return this.team;\n }",
"public void setWinner(Player winner) {\n this.winner = winner;\n }",
"public static void changePlayerTeam(Player old, Player addNew, Team team, int place) {\r\n\t\t// TODO Auto-generated block\r\n\t}",
"protected abstract void gatherTeam();",
"public synchronized boolean voteTeam() {\n //tally the votes\n int yes = 0, no = 0;\n for (boolean vote : playerVotes.values()) {\n if (vote) {\n yes++;\n } else {\n no++;\n }\n }\n\n if (yes > no) {\n doMissionState = voteTeamState.acceptTeam();\n state = State.DO_MISSION;\n successiveRejections = 0;\n teamMemberChoices = new HashMap<>();\n return true;\n } else {\n pickTeamState = voteTeamState.rejectTeam();\n state = State.PICK_TEAM;\n successiveRejections++;\n teamSelection = new HashSet<>();\n return false;\n }\n }",
"public TeamObject(String name) {\n\t\tthis();\t\t//call the first constructor to build the lock buttons\n\t\tteamName = name;\n\t}",
"public void setActiveOpponent(long opponent) {\n\t\tm_Opponent = opponent;\n\t}",
"@Override\n\tpublic int getTeam() {\n\t\treturn 0;\n\t}",
"public void setToolteam(String toolteam) {\r\n this.toolteam = toolteam;\r\n }",
"private void addUsertoTeams(List<Team> teams) {\n \tfor(Team team: teams) {\n \t\tteam.setUser(getUserFromTeam(team));\n \t}\n }",
"@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}",
"public int getTeamId() {\n return teamId;\n }",
"public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Add Player---\");\r\n\t\ttheTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"--Top 20 Free Agents--\");\r\n\t\ttheLeague.getFreeAgents(20);\r\n\r\n\t\tint playerChoice;\r\n\t\tdo {\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\" 0 - Filter Free Agents by Position\");\r\n\t\t\t\tSystem.out.println(\" -1 - View All Free Agents\");\r\n\t\t\t\tSystem.out.println(\"1-\" + theLeague.playerList().size() + \" - Select a Player\");\r\n\t\t\t\tplayerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard);\r\n\t\t\t\t\r\n\t\t\t\tif (playerChoice == -1) {\r\n\t\t\t\t\ttheLeague.getFreeAgents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (playerChoice == 0) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Which position would you like to view?\");\r\n\t\t\t\t\tSystem.out.println(\"1 - QB\");\r\n\t\t\t\t\tSystem.out.println(\"2 - WR\");\r\n\t\t\t\t\tSystem.out.println(\"3 - RB\");\r\n\t\t\t\t\tSystem.out.println(\"4 - TE\");\r\n\t\t\t\t\tswitch (Input.validInt(1, 4, keyboard)) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent QBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"QB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent WRs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"WR\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent RBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"RB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent TEs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"TE\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} while (playerChoice < 1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (theLeague.playerList().get(playerChoice - 1).getIsOwned()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + \" is not available\");\r\n\t\t\t}\r\n\t\t} while (theLeague.playerList().get(playerChoice - 1).getIsOwned());\r\n\r\n\t\tPlayer thePlayer = theLeague.playerList().get(playerChoice - 1);\r\n\t\tthePlayer.setIsOwned();\r\n\t\ttheTeam.getRoster().add(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***\" + theTeam.getManagerName() + \" has added \" + thePlayer.playerToString() + \"***\");\r\n\t}",
"public static void editLineup(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Edit Lineup---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\ttheTeam.teamToStringNum();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Select a player to move from the bench to starting or vice versa:\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\tSystem.out.println(\"1-\" + theTeam.getRoster().size() + \" - Select a player to be dropped\");\r\n\t\t\r\n\t\tint lineupChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard);\r\n\t\tif (lineupChoice == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tPlayer thePlayer = theTeam.getTeamPlayer(lineupChoice - 1);\r\n\t\t\r\n\t\tif (thePlayer.getIsStarting()) {\r\n\t\t\tthePlayer.setBench();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tString position = thePlayer.getPosition();\r\n\t\tif (theTeam.starterCount(position) < theLeague.getPositionMax(position)) {\r\n\t\t\tthePlayer.setStarting();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***You have the maximum number of starters at the \" + position + \" position***\");\r\n\t\t}\r\n\t}",
"public void nodeTeam(String id, String team)\n\t{\n\t\tgetNode(id).team = team;\n\t}",
"public void setTeamName(String teamName) {\n\t\tthis.teamName = teamName;\n\t}",
"private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }",
"public void setCurrentPlayer(Player P){\n this.currentPlayer = P;\n }",
"public int getTeamId() {\n\t\treturn teamId;\n\t}",
"public Builder clearTeam() {\n bitField0_ = (bitField0_ & ~0x00000004);\n team_ = 0;\n onChanged();\n return this;\n }",
"public void addTeam(Team team) {\n int maxTotalTeamsCurrentlyAllowed = getTotalPlayersInLeague();\n\n // If a team has been created\n if(getTeams().size() != 0) {\n\n float greatestPlayerCount;\n // if the number of players on the largest team is not equal to zero\n if((greatestPlayerCount = (float) getTeamWithMostPlayers().getPlayerCount()) != 0) {\n\n // Get the sum of all the players in the league\n float totalLeaguePlayers = (float) getTotalPlayersInLeague();\n\n // divide the total players in league by number of players in largest team, rounded down\n float totalTeamsAllowedFloat = totalLeaguePlayers / greatestPlayerCount;\n\n // cast into double for Math.floor method\n double totalTeamsAllowedDouble = (double) totalTeamsAllowedFloat;\n\n // cast into integer for comparison\n maxTotalTeamsCurrentlyAllowed = (int) Math.floor(totalTeamsAllowedDouble);\n }\n\n }\n\n // If we're requesting to make more teams than the current max allowed, throw exception\n if (getTeams().size() < maxTotalTeamsCurrentlyAllowed) {\n teams.add(team);\n } else {\n throw new IndexOutOfBoundsException(\"Not enough players for a new team\");\n }\n\n }",
"public void setNextActivePlayer() {\n this.activePlayer = getNextActivePlayer();\n // PLAYERLISTENER : Trigger playerEvent for player that is WAITING\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, this.activePlayer, PlayerEvent.PLAYING);\n listener.playerStateChanged(event);\n }\n }",
"public void nextTurn(){\n\t\tplayers[currentPlayer].setNotCurrentPlayer();\n\t\t\n\t\t//increment current player to advance to next player\n\t\tcurrentPlayer = (currentPlayer + 1) % players.length;\n\t\t\n\t\t//update the new current player\n\t\tupdateCurrentPlayerView();\n\t}",
"public void changeTurn(int newTurn) {\r\n turnChoice = newTurn;\r\n }",
"public void setParty(Pokemon[] team)\n\t{\n\t\tm_pokemon = team;\n\t}",
"@Override\n\tpublic void updateTeam(String name, SuperHuman superHuman) {\n\n\t}",
"public Team(String name) {\n this.name = name;\n }",
"public static void saveTeamNames() {\r\n\t\tMain.team1 = Main.teamOne.name;\r\n\t\tMain.team2 = Main.teamTwo.name;\r\n\t}",
"int getTeam();",
"private void setCurrentTurnpike(Point t){\n\t\t\n\t\t_currentTurnpikeStart = t;\n\t\n\t}",
"public void setTeamId(int teamId) {\n\t\tthis.teamId = teamId;\n\t}",
"public static void setup(){\n\t\tfor(int i=0;i<9;i++){\r\n\t\t\tTicTac.place[i]='_';\r\n\t\t}\r\n\t\tdrawBoard();\r\n\t\twhile((TicTac.team != 'X') && (TicTac.team != 'O')){\r\n\t\t\tSystem.out.println(\"\\n\\nselect your team enter X or O below\");\r\n\t\t\tSystem.out.print(\"Enter your selection:\");\r\n\t\t\tScanner input=new Scanner(System.in);\r\n\t\t\tTicTac.usrStr=input.next();\r\n\t\t\tif(TicTac.usrStr.toUpperCase().equals(\"X\")){\r\n\t\t\t\tTicTac.team='X';\r\n\t\t\t\tTicTac.opp='O';\r\n\t\t\t}\r\n\t\t\telse if(TicTac.usrStr.toUpperCase().equals(\"O\")){\r\n\t\t\t\tTicTac.team='O';\r\n\t\t\t\tTicTac.opp='X';\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"You entered :\"+usrStr);{\r\n\t\t\t\t\tSystem.out.println(\"this is not a valid optiuon plase enter either X or O to continue\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"you are team\"+TicTac.team);\r\n\t\tgame();\r\n\t}"
] |
[
"0.6890938",
"0.68576485",
"0.67768264",
"0.6721345",
"0.6668847",
"0.65593016",
"0.64370656",
"0.64187366",
"0.63323385",
"0.630567",
"0.62741184",
"0.62728834",
"0.6188851",
"0.6108028",
"0.6024357",
"0.5983627",
"0.5972023",
"0.59596145",
"0.5952305",
"0.5882419",
"0.5863937",
"0.58571386",
"0.58569884",
"0.583845",
"0.5787581",
"0.5782827",
"0.575645",
"0.5736067",
"0.57256603",
"0.5714017",
"0.56980485",
"0.569215",
"0.56768215",
"0.56546897",
"0.5634739",
"0.56058854",
"0.56018114",
"0.55985326",
"0.5594851",
"0.55916435",
"0.5590749",
"0.5585613",
"0.5580741",
"0.55681676",
"0.5552643",
"0.5526203",
"0.5524636",
"0.55231005",
"0.55189365",
"0.55081666",
"0.5495972",
"0.5489496",
"0.5467226",
"0.54644215",
"0.5455368",
"0.54473644",
"0.5444503",
"0.54404855",
"0.5433056",
"0.54286486",
"0.54230577",
"0.54186547",
"0.5418559",
"0.5413987",
"0.53975034",
"0.53940773",
"0.53865904",
"0.5368862",
"0.53598744",
"0.53557277",
"0.5352868",
"0.5347352",
"0.53390527",
"0.5336098",
"0.5321236",
"0.5317968",
"0.5310802",
"0.53024596",
"0.5295284",
"0.5293503",
"0.52897227",
"0.52858394",
"0.5279614",
"0.5270657",
"0.52676076",
"0.5266739",
"0.52572125",
"0.524364",
"0.5238381",
"0.5230873",
"0.5217106",
"0.52127224",
"0.5205133",
"0.5197099",
"0.51906264",
"0.5182886",
"0.5180546",
"0.5179008",
"0.51775765",
"0.51693565"
] |
0.5624167
|
35
|
Returns the number of players the current user has selected for the next round
|
public int getNumberOfSelectedPlayers() {
return tmpTeam.size();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void getNumPlayers() {\n\t\tSystem.out.println(\"How many people are playing? (must be between \"+MIN_PLAYERS+\" and \"+MAX_PLAYERS+\")\");\n\t\tnumPlayers = GetInput.getInstance().anInteger(MIN_PLAYERS, MAX_PLAYERS);\n\t}",
"public static int getNumPlayers(){\n\t\treturn numPlayers;\n\t}",
"public int playersCount(){\r\n\t\treturn players.size();\r\n\t}",
"public int getNumPlayers(){\n return m_numPlayers;\n }",
"public int getNumPlayers() {\n return numPlayers;\n }",
"public int countPlayers(){\n return players.size();\n }",
"public int numPlayers(){\n return this.members.size();\n }",
"public int numPlayers() {\n return playerList.size();\n }",
"public int getNumPlayers(){\n\t\treturn this.players.size();\n\t}",
"public int getCurentPlayerNumber() {\n return players.size();\n }",
"@Override\npublic int getNumPlayers() {\n\treturn numPlayer;\n}",
"public int activePlayers() {\n int playerCount = 0;\n for (Player player : players) {\n if (player.getName() != null && player.getState()) {\n playerCount++;\n }\n }\n\n return playerCount;\n }",
"public int getNumberOfPlayers() {\n return listaJogadores.size() - listaJogadoresFalidos.size();\n }",
"public int getNumOfPlayers() {\n\t\treturn numOfPlayers;\n\t}",
"public int playerCount()\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\t++count;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"int getNumOfPlayers() {\n return this.numOfPlayers;\n }",
"@Override\n public int getTotalHumanPlayers() {\n return totalHumanPlayers;\n }",
"public int getPlayerCount() {\n \n \treturn playerCount;\n \t\n }",
"public int getNumPlayers() {\n\n\t\treturn this.playerCount;\n\t}",
"public static int GetPlayersLeft () {\n int players_left = 0;\r\n\r\n // LOOK AT EACH PLAYER AND CHECK IF THEY HAVEN'T LOST\r\n for (int i = 0; i < player_count; i++) {\r\n if (!player[i].lost)\r\n players_left++;\r\n }\r\n\r\n // RETURN THE RESULTS\r\n return players_left;\r\n }",
"public int getPlayerCount() {\n return 0;\n }",
"public int playerCount() {\n\t\treturn playerList.size();\n\t}",
"public int getMinimumPlayers() {\n return getOption(ArenaOption.MINIMUM_PLAYERS);\n }",
"public int getPlayerCount() {\n\t\treturn playerCount;\n\t}",
"public int nrOfPlayers() {\n int playerCount = 0;\n for (Player player : players) {\n if (player.getName() != null) {\n playerCount++;\n }\n }\n\n return playerCount;\n }",
"private static int getNumberOfPlayers() {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Enter the number of kids: \");\n return scanner.nextInt();\n }",
"private int getOnlinePlayers()\n {\n return (int) Bukkit.getOnlinePlayers().stream().filter( p -> p != null && p.isOnline() ).count();\n }",
"int getNumberOfPlayers(){\n return players.size();\n }",
"public int getNumOfPlayers() {\n\t\treturn playerList.size();\n\t}",
"private int promptNumPlayers() {\r\n Object[] options = {1, 2, 3, 4};\r\n int numPlr = (int) JOptionPane.showInputDialog(\r\n null,\r\n \"How many people are playing?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n options,\r\n 1);\r\n\r\n players = new Player[numPlr];\r\n\r\n for (int i = 0; i < numPlr; i++) {\r\n players[i] = new Player();\r\n }\r\n\r\n return numPlr;\r\n }",
"@Override\n\tpublic int getOnlinePlayerSum() {\n\t\treturn PlayerManager.getInstance().getOnlinePlayers().size();\n\t}",
"public int getNoOfPlayers()\r\n\t{\r\n\t\tString noOfPlayers = JOptionPane.showInputDialog(null, \"Please enter the number of players from 1-6\", \"Number of Players\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t//Check to see if the entry was invalid\r\n\t\twhile(!isNumber(noOfPlayers) || Integer.parseInt(noOfPlayers) < 1 || Integer.parseInt(noOfPlayers) > 6)\r\n\t\t{\r\n\t\t\tif(!isNumber(noOfPlayers))\r\n\t\t\t\tnoOfPlayers = JOptionPane.showInputDialog(null, \"You must enter a NUMBER. Please re-enter the number of players from 1-6\", \"NUMBER of Players\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\telse\r\n\t\t\t\tnoOfPlayers = JOptionPane.showInputDialog(null, \"Please re-enter the number of players from 1-6\", \"Players must be between 1 and 6\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\treturn Integer.parseInt(noOfPlayers);\r\n\t}",
"public int calculateNextRound(Tournament tournament) {\r\n\t\treturn tournament.getRounds().size() + 1;\r\n\t}",
"public static int getNumberOfPlayers() {\n //Create a variable to track the number of players and start it at 0.\n int numberOfPlayers = 0;\n //Use try/catch to gracefully handle a user entering a non integer.\n try {\n //Create a new instance of the Scanner class called reader to take input from the user.\n Scanner reader = new Scanner(System.in);\n //Set the numberOfPlayers variable to the users input. The input must be an integer.\n numberOfPlayers = reader.nextInt();\n\n //Since we only want to allow between 2 and 6 players, we need to give feedback to the user if they\n //enter a number less than 2 or greater than 6 and allow them to try again.\n if (numberOfPlayers < 2) {\n System.out.println(\"You can not have less than two players. Please enter the number of players. (2-6)\");\n numberOfPlayers = reader.nextInt();\n } else if (numberOfPlayers > 6) {\n System.out.println(\"You can not have more than 6 players. Please enter the number of players. (2-6)\");\n numberOfPlayers = reader.nextInt();\n }\n //If the input is a non integer, we want to tell the user to restart the program.\n } catch (InputMismatchException e) {\n System.out.println(\"You did not enter a number. Now everything is broken. Please restart.\");\n }\n //The getNumberOfPlayers method will return numberOfPlayers.\n return numberOfPlayers;\n }",
"int getCount(Side player) {\n return player == BLACK ? _countBlack : _countWhite;\n }",
"public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}",
"public int getMinPlayers() {\n return minPlayers;\n }",
"public int getUserWonNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT count(id) FROM tp.gamerecord WHERE winner = (SELECT id FROM tp.player WHERE isAI = false)\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tresult = rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public int getMaximumPlayers() {\n return maximumPlayers;\n }",
"private int getNextPlayer() {\n int nextPlayerID = ((currentTurn + turnOrder) % numPlayers);\n nextPlayerID = (((nextPlayerID + numPlayers) % numPlayers)); // handles negative numbers\n return nextPlayerID;\n }",
"public void NumberOfPlayers()\r\n {\r\n Input=JOptionPane.showInputDialog(\"Type the number of players\", JOptionPane.YES_NO_OPTION);\r\n \r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n \r\n while(Converter(SecondInput) >= Converter(Input))\r\n {\r\n if(Converter(SecondInput) >= Converter(Input))\r\n {\r\n JOptionPane.showMessageDialog(this,\"AI players can't be equal or more than the original number of players!\",\r\n \"ERROR\",\r\n JOptionPane.ERROR_MESSAGE);\r\n\r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n }\r\n \r\n }\r\n \r\n if(Input!=null)\r\n {\r\n int j = Converter(Input); \r\n \r\n Start();\r\n }\r\n \r\n }",
"private static void pickNumOfPlayers()\n\t{\n\t\tprintBorder();\n\t\tSystem.out.print(\"Enter 1 for one player or 2 for two player: \");\n\t\tnumOfPlayers = input.nextInt(); // Throws error if input is not an int\n\t\tif (numOfPlayers == 2) isMultiplayer = true;\n\t\tSystem.out.println();\n\t}",
"public int getCurrentPlayerFunds(){return currentPlayerTurn.getFunds();}",
"public int getCurrentGameRound(){\n\t\treturn currentGameRound;\n\t}",
"public int nextPlayer() {\n// int count = 0;\n// for (int i = 0; i < playersArray.length; i++)\n// if (playersArray[i]<0)\n// count++;\n//\n// if (\n do {\n player = (player + 1) % numberPlayers;\n } while (playersArray[player] < 0);\n return player;\n }",
"private int determineWinning(GamePlayerInterface player, GamePlayerInterface dealer)\n {\n \n int playerValue = player.getTotalCardsValue();\n int dealerValue = dealer.getTotalCardsValue();\n int result = 0;\n \n if(dealerValue > playerValue)\n {\n \t view.print(\"Dealer Wins\");\n \t view.printLine();\n \t result = 1;\n }\n \n else if(dealerValue < playerValue)\n {\n \t view.print(\"Player Wins\");\n \t view.printLine();\n \t result = 2;\n }\n \n else{\n \t view.print(\"Match Draw!\");\n \t view.printLine();\n }\n \n return result;\n }",
"public int getMaxPlayers() {\n return maxPlayers;\n }",
"public int getMaximumPlayers() {\n return getOption(ArenaOption.MAXIMUM_PLAYERS);\n }",
"public int loadedPlayers(){\n return playerMap.size();\n }",
"public int returnAndUsePlayerNumber() {\r\n\t\tfor (int no = 1; no < this.playerNumbers.length; no++) {\r\n\t\t\tif (!this.playerNumbers[no]) {\r\n\t\t\t\tthis.playerNumbers[no] = true;\r\n\t\t\t\treturn no;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public void calculatePausedPlayers(Tournament tournament, Round round) {\r\n\t\t// this is the number of players in one match\r\n\t\tint numberOfMatchPlayers = tournament.getTeamSize() * 2; // home and away team\r\n\t\t// this is the maximum number of players in one round\r\n\t\tint maxNumberOfActivePlayers = tournament.getCourts() * numberOfMatchPlayers;\r\n\r\n\t\twhile (round.getPlayers().size() > maxNumberOfActivePlayers) {\r\n\t\t\taddPausedPlayer(tournament.getRounds(), round);\r\n\t\t}\r\n\r\n\t\twhile ((round.getPlayers().size() % numberOfMatchPlayers) != 0) {\r\n\t\t\taddPausedPlayer(tournament.getRounds(), round);\r\n\t\t}\r\n\t}",
"public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}",
"private int get2(String name) {\n int t = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n if (curr.getTeamname().equals(name))\n t = t + curr.getWinninggoals(); // sum of all GWGs\n curr = playerlist.next();\n }\n return t;\n }",
"public static int GetNumberOfPlayers () {\n int result;\r\n\r\n // LOOP UNTIL A VALID NUMBER IS ENTERED\r\n do {\r\n // PROMPT THE USER\r\n System.out.print(\"Enter the number of players: \");\r\n\r\n // GET THE RESULT & MAKE SOME SPACE\r\n result = input.nextInt();\r\n input.nextLine();\r\n System.out.println();\r\n\r\n // MUST HAVE AT LEAST TWO PLAYERS\r\n if (result < 2) {\r\n System.out.println(\"You need at least two players!\\n\");\r\n }\r\n\r\n } while (result < 2);\r\n\r\n // RETURN THE RESULT\r\n return result;\r\n }",
"public int askHowManyUsers() {\r\n\t\tint userAmount = 0;\r\n\t\tboolean correctInput = false;\r\n\r\n\t\twhile (correctInput == false) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"How many players would like to participate in the game?\\nPlease type 1,2,3 or 4. If you type 1 a virtual user will automatically be created. Otherwise have fun playing with your human friends!\");\r\n\t\t\ttry {\r\n\t\t\t\tuserAmount = input.nextInt();\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tif (userAmount == 1 || userAmount == 2 || userAmount == 3 || userAmount == 4 || userAmount == 5) {\r\n\t\t\t\t\tcorrectInput = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (userAmount > 5) {\r\n\t\t\t\t\t\tSystem.out.println(\"Five players is the maximum!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (userAmount == 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"At least one person should play!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException e) {\r\n\t\t\t\tSystem.out.println(\"Please type a number\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn userAmount;\r\n\t}",
"@Override\n public int getWinner()\n {\n return currentPlayer;\n }",
"@Override\n public int getNextPlayer() {\n //TODO Implement this method\n if(isPlayerOne){\n return 0;\n }else {\n return 1;\n }\n }",
"private int getAttemptsPerTurn() {\n return attemptsPerTurn;\n }",
"public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(getPlayerPoints(player) > highest){\r\n highest = getPlayerPoints(player);\r\n winner = player.getID();\r\n }\r\n \r\n }\r\n \r\n return winner;\r\n }",
"public void nextPlayer() {\r\n if (currentPlayer == totalPlayer) {\r\n currentPlayer = 1;\r\n } else {\r\n currentPlayer++;\r\n }\r\n }",
"private int inputNumPlayers() {\n\t\t\t// set up dialog box\n\t\t\tString[] options = {\"OK\"};\n\t\t\tJPanel panel = new JPanel(new GridLayout(0, 1));\n\t\t\tJLabel lbl = new JLabel(\"How many players? (2-6)\");\n\t\t\tJTextField txt = new JTextField(10);\n\t\t\tpanel.add(lbl);\n\t\t\tpanel.add(txt);\n\t\t\t\n\t\t\t// show dialog box\n\t\t\tJOptionPane.showOptionDialog(frame, panel, \"# Players\",\n\t\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options , options[0]);\n\t\t\tString numPlayersResponse = txt.getText();\n\t\t\t\n\t\t\t// determine input validity\n\t\t\tint numPlayers = 0;\n\t\t\ttry{\n\t\t\t\tnumPlayers = Integer.parseInt(numPlayersResponse);\n\t\t\t\t// check for out of bounds number\n\t\t\t\twhile(numPlayers < 2 || numPlayers > 6){\n\t\t\t\t\tpanel.remove(lbl);\n\t\t\t\t\ttxt.setText(\"\");\n\t\t\t\t\tlbl = new JLabel(\"Invalid number. Must be 2-6 players.\");\n\t\t\t\t\tpanel.add(lbl);\n\t\t\t\t\tJOptionPane.showOptionDialog(frame, panel, \"# Players\",\n\t\t\t\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options , options[0]);\n\t\t\t\t\tnumPlayersResponse = txt.getText();\n\t\t\t\t\tnumPlayers = Integer.parseInt(numPlayersResponse);\n\t\t\t\t}\n\t\t\t} catch(NumberFormatException e){\n\t\t\t\t// player entered nothing or a non-numeric string\n\t\t\t\treturn inputNumPlayers();\n\t\t\t}\n\t\t\treturn numPlayers;\n\t\t}",
"public int countPlayers(Long gameId){\n List<User_Game> user_games = userGameRepository.retrieveGamePlayers(gameId);\n return user_games.size();\n }",
"public int getNextActivePlayer() {\n //first check all players after current player\n for (int i = this.activePlayer + 1; i < nrOfPlayers(); i++) {\n if (players.get(i).getState()) {\n return i;\n }\n }\n\n //then check all players from the beginning\n for (int i = 0; i < nrOfPlayers(); i++) {\n if (players.get(i).getState()) {\n return i;\n }\n }\n\n return -1; //should never be returned\n }",
"public int calculateNumberOfMatches(Tournament tournament, Round round) {\r\n\t\tint playersPerMatch = tournament.getTeamSize() * 2; // home and away team\r\n\t\tint possibleMatches = round.getPlayers().size() / playersPerMatch;\r\n\t\treturn Math.min(possibleMatches, tournament.getCourts());\r\n\t}",
"public int getNbPawns(Player player) {\n Pawn aPawn;\n int Size, nbPawn;\n Size = getSize();\n nbPawn = 0;\n\n for (int numLine = 0; numLine < Size; numLine++) {\n for (int numCol = 0; numCol < Size; numCol++) {\n\n aPawn = field[numLine][numCol];\n if (aPawn != null) {\n if (aPawn.getPlayer() == player) nbPawn++; //if the pawn belong to player\n }\n\n }\n }\n\n return nbPawn;\n }",
"public int nextPlayer() {\n\t\tplayer = (player + 1) % playerCount;\n\t\treturn player;\n\t}",
"public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }",
"public int getWinner() {\n for (int i = 0; i < nrOfPlayers(); i++) {\n if (players.get(i).isFinished()) {\n\n // PLAYERLISTENER : Trigger playerEvent for player that WON\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, players.get(i).getColour(), PlayerEvent.WON);\n listener.playerStateChanged(event);\n }\n return i;\n }\n }\n return -1;\n }",
"public int getPoints ( Player player );",
"public int readyCount()\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\tif(player.isReady())\r\n\t\t\t\t{\r\n\t\t\t\t\t++count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public void next_player() {\n\t\tthis.nb_turn++;\n\t\tthis.player_turn++;\n\t\tthis.same_dice_in_a_row = 0;\n\t\tif (player_turn == this.players.size()) {\n\t\t\tthis.player_turn = 0;\n\t\t}\n\n\t\tif (get_player_from_turn().get_surrend()) {\n\t\t\tthis.nb_turn--;\n\t\t\tif (get_player_in_game() > 0) {\n\t\t\t\tthis.next_player();\n\t\t\t}\n\t\t}\n\t}",
"public int getMyPlayerNumber() {\n if (gameStatus == null || userId == null) return -1;\n if (userId.equals(gameStatus.getPlayerOne())) return 1;\n if (userId.equals(gameStatus.getPlayerTwo())) return 2;\n return -2;\n }",
"public int checkNoOfRapelPlayerHolds () { return noOfRapels; }",
"public int numTurnsUntilMove(GameState gm, Player p) {\n\t\tint count = 0;\n\t\t\n\t\tcount = gm.getPlayers().indexOf(p)-gm.getPlayers().indexOf(this);\n\t\tif (count < 0) {\n\t\t\treturn count + gm.getPlayers().size();\n\t\t}\n\t\telse {\n\t\t\treturn count;\n\t\t}\n\t}",
"public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }",
"public int getMinPlayers() {\n\t\treturn minPlayers;\n\t}",
"public int getPlayerTotal() {\n\t\t\treturn playerTotal;\n\t\t}",
"public int readyCount ()\n\t{\n\t\tint count =0;\n\t\tIterator<Player> it = iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tPlayer p = it.next();\n\t\t\tif(p.available())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}",
"public int getPlayerIdsCount() {\n return playerIds_.size();\n }",
"private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }",
"public int getPlayerIdsCount() {\n return playerIds_.size();\n }",
"public int getAIWonNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT count(id) FROM tp.gamerecord WHERE winner IN (SELECT id FROM tp.player WHERE isAI = true)\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tresult = rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public int getNumPlayed()\n\t{\n\t\treturn numPlayed;\n\t}",
"@Override\n // report number of players on a given team (or all players, if null)\n\tpublic int numPlayers(String teamName) {\n\n int numPlayers = 0;\n\n\n if (teamName == null) {\n\n for (int i = 0; i < (stats.keySet()).toArray().length; i++) {\n\n numPlayers++;\n\n }\n\n return numPlayers;\n\n }\n\n else {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n for (SoccerPlayer sp: soccerPlayers) {\n\n if (sp.getTeamName().equals(teamName)){\n\n numPlayers++;\n }\n }\n\n return numPlayers;\n\n }\n\n\n\t}",
"@Override\n\tpublic int selectCount() {\n\n\t\tint res = session.selectOne(\"play.play_count\");\n\n\t\treturn res;\n\t}",
"private int getOSRSPlayerCount() {\n try {\n Document document = Jsoup.connect(\"https://oldschool.runescape.com\").get();\n String playerCountText = document.getElementsByClass(\"player-count\").get(0).text();\n Matcher matcher = Pattern.compile(\"[\\\\d,?]+\").matcher(playerCountText);\n if(!matcher.find()) {\n throw new Exception();\n }\n playerCountText = playerCountText.substring(matcher.start(), matcher.end());\n return Integer.parseInt(playerCountText.replace(\",\", \"\"));\n }\n catch(Exception e) {\n return 0;\n }\n }",
"public int getPlayerOnePoints() {\n if (gameStatus == null) return -1;\n return gameStatus.getPlayerOnePoints();\n }",
"public int getCurrentPlayer(){\n return this.currentPlayer;\n }",
"@Override\n public int howManyActivated(){\n return (gameboardPanel.howManyActivated() + leaderCardsPanel.howManyActivated());\n }",
"int getActivePlayerIndex();",
"public int incrementPlayerTurn() {\r\n\t\tthis.playerTurn++;\r\n\t\tif ( playerTurn >= 3 ) {\r\n\t\t\tthis.playerTurn = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn this.playerTurn;\r\n\t}",
"int getPickupsCount();",
"public int getD_CurrentNumberOfTurns() {\n return d_CurrentNumberOfTurns;\n }",
"public int getMaxPlayers() {\n\t\treturn maxPlayers;\n\t}",
"public static void ChooseNextPlayer () {\n do {\r\n\r\n // MOVE TO THE NEXT PLAYER\r\n next_player++;\r\n\r\n // IF WE MOVED TOO FAR, WRAP AROUND TO ZERO\r\n if (next_player >= player_count)\r\n next_player = 0;\r\n\r\n } while (player[next_player].lost);\r\n\r\n }",
"public static int numberofplayers (String filename) throws IOException\n {\n int countplayer = 0;\n LineNumberReader L1= new LineNumberReader(new FileReader(filename));// reading the lines by using line reader\n while ((L1.readLine())!=null) {};\t// reading the line while its not null\n countplayer = L1.getLineNumber(); // number of lines equals the number of player\n L1.close();\n return countplayer;\n }",
"public int numberOfTeams() {\n return noTeams;\n }",
"public int totalGames() {\n return wins + losses + draws;\n }",
"protected int getTotalEnrolledMorning() {\n return getMorningRoster().size();\n }",
"public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }"
] |
[
"0.7235571",
"0.7112189",
"0.70413697",
"0.6984186",
"0.696559",
"0.6952575",
"0.68620473",
"0.684266",
"0.6832605",
"0.67944735",
"0.6783183",
"0.67773277",
"0.6755476",
"0.6738838",
"0.673151",
"0.67282873",
"0.6638498",
"0.66334516",
"0.6629711",
"0.66196895",
"0.6572545",
"0.6568256",
"0.65575105",
"0.6547362",
"0.6539978",
"0.653779",
"0.6535952",
"0.653499",
"0.65249527",
"0.651902",
"0.6511623",
"0.6501936",
"0.6493706",
"0.64733845",
"0.6462889",
"0.6446085",
"0.63975835",
"0.6388389",
"0.63613635",
"0.63609654",
"0.63194436",
"0.6286201",
"0.6264404",
"0.62630355",
"0.6260638",
"0.6236339",
"0.62307084",
"0.6226762",
"0.6193567",
"0.6180799",
"0.6180072",
"0.6179007",
"0.6177212",
"0.61591846",
"0.6156316",
"0.61430377",
"0.61403733",
"0.61370724",
"0.6119639",
"0.61184365",
"0.61149216",
"0.61119425",
"0.6096157",
"0.60947675",
"0.60872364",
"0.6086483",
"0.60792476",
"0.6064987",
"0.6056231",
"0.60553145",
"0.6049373",
"0.603872",
"0.60230535",
"0.6012298",
"0.60121316",
"0.6007436",
"0.60069937",
"0.6006172",
"0.5993411",
"0.59794915",
"0.5967369",
"0.59645283",
"0.59626406",
"0.5962616",
"0.5962119",
"0.5936704",
"0.59184086",
"0.59054846",
"0.5903729",
"0.59029764",
"0.5897184",
"0.5894056",
"0.5892386",
"0.5886804",
"0.5882852",
"0.58783305",
"0.58767724",
"0.5872151",
"0.5871591",
"0.5840359"
] |
0.7179389
|
1
|
Ends the currents users turn and sets his team for the next round
|
public void endUserTurn() {
updateUserTeam();
users.get(userTurn).setTransferFinished(true);
PlayRound.endUserTurn();
MainGui.showCardLayout("panelPlayRound");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void endTurn() {\n currentTurn = getNextPlayer();\n }",
"public void endTurn() {\n\t\tturnEnd = false;\n\t\tmadeMove = false;\n\t\tcurrentPlayer.resetUndos();\n\t\tif (currentPlayer == player1) {\n\t\t\tcurrentPlayer = player2;\n\t\t} else {\n\t\t\tcurrentPlayer = player1;\n\t\t}\n\t\t//printBoard();\n\t\tSystem.out.println(\"It is now \" + currentPlayer.getName() + \"'s turn\");\n\t}",
"public void endTurn(){\n game.setNextActivePlayer();\n myTurn = false;\n\n stb.updateData(\"playerManager\", game.getPlayerManager());\n stb.updateData(\"aktivePlayer\", game.getPlayerManager().getAktivePlayer());\n stb.updateData(\"roomList\", game.getRoomManager().getRoomList());\n\n getIntent().putExtra(\"GAME\",game);\n getIntent().putExtra(\"myTurn\", false);\n finish();\n if(!game.getPlayerManager().getPlayerList().get(whoAmI).isDead())\n startActivity(getIntent());\n else\n fcm.unbindListeners();\n }",
"public void endsGameAndSetsWinner(Player player) {\n this.winner = player.getId(); \n this.gameStarted = false; \n \n }",
"@Override\n public void endTurn() {\n battle.setState(new EnemyTurn(battle));\n battle.continueBattle();\n }",
"private void endGame() {\r\n\r\n m_state.setState(State.ENDING_GAME);\r\n\r\n /* find winner */\r\n for(KimTeam team : m_survivingTeams) {\r\n if(team != null) {\r\n if(!team.isOut()) {\r\n m_winner = team;\r\n }\r\n\r\n //remove survivors from m_teams so not to duplicate stats\r\n m_teams[team.m_freq] = null;\r\n }\r\n }\r\n\r\n /* end poll */\r\n if(m_poll != null) {\r\n m_poll.endPoll(m_winner, m_connectionName);\r\n m_poll = null;\r\n }\r\n\r\n /* display scoresheet */\r\n m_botAction.sendArenaMessage(\"--------Base1--------W--L --------Base2--------W--L --------Base3--------W--L --------Base4--------W--L\");\r\n\r\n if(!m_skipFirstRound) {\r\n printFormattedTeams(m_teams, m_numTeams);\r\n m_botAction.sendArenaMessage(\"------------------------- ------------------------- ------------------------- -------------------------\");\r\n }\r\n\r\n printFormattedTeams(m_survivingTeams, 4);\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n\r\n if(m_winner != null) {\r\n m_botAction.sendArenaMessage(\"Winner: \" + m_winner.toString(), 5);\r\n\r\n for(KimPlayer kp : m_winner) {\r\n Player p = m_botAction.getPlayer(kp.m_name);\r\n\r\n if(p != null && p.isPlaying()) {\r\n m_botAction.warpTo(p.getPlayerID(), 512, 277);\r\n }\r\n }\r\n } else {\r\n m_botAction.sendArenaMessage(\"No winner.\");\r\n }\r\n\r\n updateDB();\r\n\r\n /* announce mvp and clean up */\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n m_botAction.sendArenaMessage(\"MVP: \" + m_mvp.m_name, 7);\r\n //refreshScoreboard();\r\n cleanUp();\r\n resetArena();\r\n m_state.setState(State.STOPPED);\r\n }\r\n }, 4000);\r\n }",
"public void endTurn() {\n }",
"@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}",
"public void endTurnCurrent() {\n playerStatus.nActionsDone = 0;\n playerStatus.isActive = false;\n playerStatus.isFirstTurn = false;\n }",
"private void endTurn(){\r\n String currentPlayer = cantStop.getGameBoard().getCurrentPlayer().getName();\r\n\t\tgameOver = cantStop.getGameBoard().endTurn(didBust);\r\n\t\t\r\n\t\tif(gameOver){\r\n\t\t\tstatusLabel.setText(currentPlayer + \r\n\t\t\t\t\t\" wins! Go again?\");\r\n\t\t\tupdate();\r\n\t\t} else {\r\n\t\t\tcantStop.getGameBoard().startNewTurn();\r\n\t\t\tallowNewRoll();\r\n\t\t}\r\n\t}",
"public void endTurn(){\n for (int i = 0; i<9; i++){\n if(bSquares.get(i).checkhasFocus()){//finds out which square user is playing in. \"i\" is that square\n for (int j = 0; j<9; j++){\n if (!bSquares.get(i).getSmallSquare(j).isCommitted()&&bSquares.get(i).getSmallSquare(j).getOwnership()>0){\n bSquares.get(i).getSmallSquare(j).setCommitted(true);\n stepsCompleted++;//user just finished his turn!\n updateDatabase(i,j, true); //updates the database with the player's move B4 the focus is changed\n for (int t = 0; t<9; t++){//removes focus everywhere else.\n bSquares.get(t).sethasFocus(false);\n }\n \n bSquares.get(j).sethasFocus(true);//tells which square has focus\n }\n }\n }\n }\n \n }",
"public void updateUserTeam() {\n\t\tUser user = users.get(userTurn);\n\t\tSystem.out.println(user.getName());\n\t\tSystem.out.println(tmpTeam.size());\n\t\tUserTeam roundTeam = new UserTeam();\n\t\troundTeam.putAll(tmpTeam.getPlayers());\n\t\tSystem.out.println(roundNumber);\n\t\tSystem.out.println(roundTeam.size());\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\tuser.setUserTeam(roundTeam, roundNumber);\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\ttmpTeam = new UserTeam();\n\t}",
"private void endTurn() {\n\t\t\n\t\tif (roundChanger == 1) {\n\t\t\tString currentPlayer = textFieldCurrentPlayer.getText();\n\t\t\tif (currentPlayer.equals(\"Player1\")) {\n\t\t\t\ttextAreaInstructions.setText(\"The current roll to beat is \" + player1.getDie1()\n\t\t\t\t+ \" \" + player1.getDie2() + \" \" + player1.getDie3());\n\t\t\t\trollToBeat = \"The current roll to beat is \" + player1.getDie1()\n\t\t\t\t+ \" \" + player1.getDie2() + \" \" + player1.getDie3();\n\t\t\t} else {\n\t\t\t\ttextAreaInstructions.setText(\"The current roll to beat is \" + player2.getDie1()\n\t\t\t\t+ \" \" + player2.getDie2() + \" \" + player2.getDie3());\n\t\t\t\trollToBeat = \"The current roll to beat is \" + player2.getDie1()\n\t\t\t\t+ \" \" + player2.getDie2() + \" \" + player2.getDie3();\n\t\t\t} \n\t\t\tchangeCurrentPlayerText();\n\t\t\tturn = 0;\n\t\t\troundChanger = 2;\n\t\t} else {\n\t\t\tString winningPlayer = calculateScore(player1, player2);\n\t\t\ttextFieldCurrentPlayer.setText(winningPlayer);\n\t\t\troundChanger = 1;\n\t\t\trollsTaken = 0;\n\t\t\tround = round + 1;\n\t\t\ttextFieldPlayerOneScore.setText(Integer.toString(player1.getPoints()));\n\t\t\ttextFieldPlayerTwoScore.setText(Integer.toString(player2.getPoints()));\n\t\t\ttextAreaInstructions.setText(\"Try to get the highest roll possible!\");\n\t\t\tcheckForGameOver();\n\t\t}\n\t\ttogglebtnD1.setSelected(false);\n\t\ttogglebtnD2.setSelected(false);\n\t\ttogglebtnD3.setSelected(false);\n\t\tdisableDice();\n\t\tturn = 0;\n\t}",
"public void finishTurn() {\n\t\tthis.cancelTimer();\n\t\t// if any hero is dead\n\t\tif (!opponents[0].isAlive() || !opponents[1].isAlive()) {\n\t\t\t// end the game\n\t\t\tfinishGame();\n\t\t} else {\n\t\t\t// switch turns\n\n\t\t\topponents[activeHero].setIsTurn(false);\n\t\t\topponents[activeHero].deselectAll();\n\n\t\t\tswitch (activeHero) {\n\t\t\tcase 0:\n\t\t\t\tactiveHero = 1;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tactiveHero = 0;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstartTurn(opponents[activeHero]);\n\t\t}\n\t}",
"public void endRound() {\n\t\tif (roundNumber>maxRounds) {\n\t\t\tSystem.out.println(\"hae �etta er MAX ROUNDS! LEIKUR �TTI A� VERA B�INN\");\n\t\t\tendGame();\n\t\t} else {\n\t\t\tSystem.out.println(\"�ETTA er r�tt leikur er ekki b�inn round: \"+ getCurrentRound());\n\t\t\tmatchResults = core.simulateNextRound();\n\t\t\tSystem.out.println(\"B�INN A� SIMULATA ROUND \");\n\t\t\tFootballPlayer[] players = core.getAllFootballPlayers();\n\t\t\tfor (int i = 0; i<players.length; i++) {\n\t\t\t\tStatistics[] stats = players[i].getStats();\n\t\t\t\tSystem.out.println(players[i].getName() + \" \" + stats[1].getGoals());\n\t\t\t}\n\t\t\tcalculatePoints();\n\t\t\troundNumber++;\n\t\t}\n\t\tusers.get(0).setTransferFinished(false);\n\t\tusers.get(1).setTransferFinished(false);\n\t}",
"public void run() {\r\n for(int i = group; i < 64; i += 4) {\r\n if(!m_teams[i].isOut()) {\r\n setSurvivingTeam(m_teams[i]);\r\n return;\r\n }\r\n }\r\n\r\n m_botAction.sendArenaMessage(\"No one won for Base \" + (group + 1));\r\n }",
"public void endTurn() {\r\n\t\tPlayer endingPlayer = getCurrentPlayer();\r\n\t\t\r\n\t\t// Show plays and buys during turn change screen\r\n\t\tArrayList<Card> plays = new ArrayList<>();\r\n\t\tArrayList<Card> gains = new ArrayList<>();\r\n\t\tplays.addAll(endingPlayer.deck.duration);\r\n\t\tplays.addAll(endingPlayer.deck.play);\r\n\t\tgains.addAll(endingPlayer.deck.gained);\r\n\t\tif(showGraphics) getGUI().showPlayerBuys(plays, gains);\r\n\t\t\r\n\t\t//Check the card ownership in decks is correct\r\n\t\tfor(Player p : players) {\r\n\t\t\tfor(Card c : p.deck.getDeck()) {\r\n\t\t\t\tif(c.getPlayer() == null) {\r\n\t\t\t\t\tthrow new RuntimeException(c.getName() + \" has no owner, in deck of \"\r\n\t\t\t\t\t\t\t+ p.getPlayerName());\r\n\t\t\t\t}\r\n\t\t\t\tif(!c.getPlayer().equals(p)) {\r\n\t\t\t\t\tthrow new RuntimeException(c.getName() + \" owned by \"\r\n\t\t\t\t\t\t\t+ c.getPlayer().getPlayerName() + \", in deck of \" + p.getPlayerName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check for duplicated cards\r\n\t\tfor(Player p : players) {\r\n\t\t\tList<Card> deck = p.deck.getDeck();\r\n\t\t\tfor(int i = 0; i < deck.size(); i++) {\r\n\t\t\t\tfor(int j = i + 1; j < deck.size(); j++) {\r\n\t\t\t\t\tif(deck.get(i) == deck.get(j)) {\r\n\t\t\t\t\t\tthrow new RuntimeException(deck.get(i) + \r\n\t\t\t\t\t\t\t\t\" in 2 places in deck of \" + p.getPlayerName());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Run player-specific turn ending things\r\n\t\tgetCurrentPlayer().endTurn();\r\n\r\n\t\t//Change whose turn it is\r\n\t\tif(!extraTurn) {\r\n\t\t\tnextTurn();\r\n\t\t}\r\n\t\textraTurn = false;\r\n\r\n\t\t//Check if the game is over\r\n\t\tif(board.isGameOver()) {\r\n\t\t\tgetClient().stopThreads();\r\n\t\t\tmodels.close();\r\n\t\t\tif(showGraphics) getGUI().showScores();\r\n\t\t\tfor(Player p : players) {\r\n\t\t\t\tif(p.isComputerPlayer()) {\r\n\t\t\t\t\tp.getComputerPlayer().close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//Change Turn \r\n\t\tif(showGraphics && !getCurrentPlayer().isComputerPlayer()) {\r\n\t\t\tgetGUI().turnNotify();\r\n\t\t}\r\n\r\n\t\t//Resets game phase\r\n\t\tgamePhase = 0;\t\r\n\r\n\t\t//Starts the next person's turn\r\n\t\tgetCurrentPlayer().startTurn();\r\n\t\t\r\n\t\t\r\n\t\t//Save changes to server\r\n\t\tif(showGraphics && getGUI().getMyPlayer().equals(endingPlayer)) {\r\n\t\t\tgetClient().backupGame(this);\r\n\t\t}\r\n\r\n\t\t//Check the decks are correct between computers\r\n\t\tif(showGraphics && getGUI().getMyPlayer().equals(endingPlayer)) {\r\n\t\t\tfor(Player p : players) {\r\n\t\t\t\tgetClient().sendString(\"CHECK \" + p.getPlayerNum() + \" \" + p.deck.toString());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void end(boolean tie) {\n\t\tif (tie) {\n\t\t\tfor (Player p : CastleWars.game_participants) {\n\t\t\t\tif (p != null) {\n\t\t\t\t\tp.send(new SendMessage(\"The game was a tie! You have recieved 2 tickets!\"));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\n\t\t}\n\t\tCastleWarsConstants.GAME_ACTIVE = false;\n\n\t\tCastleWars.game_participants.clear();\n\t}",
"public void endOfTurn() {\n if (playerInTurn.equals(Player.RED)) {\n playerInTurn = Player.BLUE;\n observers.turnEnds(playerInTurn, age);\n controlStrategy.playRound(this);\n return;\n }\n\n // If blue is in turn, change player in turn to red and do end-of-round processing.\n playerInTurn = Player.RED;\n\n // Calculate the age of the game in the next round.\n age = ageStrategy.calculateAge(age);\n\n // Restore the move count of all the units.\n for (Position p : world.getUnitPositions()) {\n world.getUnitAt(p).restoreMoveCount();\n }\n\n // For each city, add 6 to the current amount of production, and produce as many units as it can afford.\n for (Position p : world.getCityPositions()) {\n ModifiableCity city = world.getCityAt(p);\n\n workForceStrategy.gatherFoodAndProduction(world, p);\n\n populationStrategy.populationGrowth(world, p);\n\n // produce units!\n city.produceUnits(world, p, observers);\n }\n // Add to the counter of rounds played in the game.\n roundsPlayed++;\n\n observers.turnEnds(playerInTurn, age);\n\n controlStrategy.playRound(this);\n\n }",
"public void endTurn() {\n controller.endTurn();\n }",
"public void endTurn() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Started endTurn() for player \"+currentPlayer.getNumber());\r\n\t\tturnIsEnding = true;\r\n\r\n\t\t// End turn restrictions\r\n\t\tif (!currentPlayer.isDead() && !currentPlayer.isFree() && !currentPlayer.hasQuit()) {\r\n\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all cards in play area are played\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustChoose.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all choices are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustTrash.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all trashes are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// Don't need to discard\r\n\t\t}\r\n\t\t\r\n\t\t// Mass deletes\r\n\t\tclearMessages();\r\n\t\t\r\n\t\t// If just escaped, send message after clearing\r\n\t\tif (currentPlayer.getCurrentRoom() == 0 && currentPlayer.getPiece().getX() == GlobalVars.playerCoordsPerRoom[39][0]) {\r\n\t\t\t// Update room\r\n\t\t\tcurrentPlayer.setCurrentRoom(39);\r\n\t\t\tif (firstEscapee == currentPlayer) {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** was the first to escape! They received a **20** :star: **Mastery Token**\\n:skull: Only **4** turn(s) left!\").queue();\r\n\t\t\t} else {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** escaped in time! They received a **20** :star: **Mastery Token**\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Set cards in PlayArea to not played for next time, Undos the Discarded tag\r\n\t\tfor (int i = 0; i < currentPlayer.getPlayArea().getSize(); i++) {\r\n\t\t\tcurrentPlayer.getPlayArea().getCard(i).setPlayed(false);\r\n\t\t\tif (currentPlayer.getPlayArea().getCard(i).toStringHand().contentEquals(\"*[Discarded]*\")) currentPlayer.getPlayArea().getCard(i).setStringInHand();\r\n\t\t}\r\n\t\t\r\n\t\t// Clear swords, skill, boots, etc\r\n\t\tcurrentPlayer.endOfTurnReset();\r\n\t\tmustDiscard.clear();\r\n\t\t\r\n\t\t// Replaces cards in dungeon row. Only one attack per turn\r\n\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\tboolean hasAttackedThisTurn = false;\r\n\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t// Checks to see if it should replace card\r\n\t\t\t\tif (dungeonRow[i].isBought()) {\r\n\t\t\t\t\tdungeonRow[i] = mainDeck.getNext();\r\n\t\t\t\t\tif (dungeonRow[i].isDragonAttack() && !hasAttackedThisTurn) {\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t\t\thasAttackedThisTurn = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dungeonRow[i].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Instantly go on to next player if no dragon attack\r\n\t\t\tif (!hasAttackedThisTurn) {\r\n\t\t\t\tdetermineNextPlayer();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"void askEndTurn();",
"public void endTurn() {\n if (getActiveColor() == Piece.COLOR.RED) {\n setActivePlayer(Piece.COLOR.WHITE);\n } else {\n setActivePlayer(Piece.COLOR.RED);\n }\n }",
"public void endGame() {\n Player player = playerManager.getWinner();\n MainActivity mainActivity = (MainActivity) this.getContext();\n updateLiveComment(\"Winner : \" + player.getName());\n mainActivity.setAlertDialog(player.getName()+\" Wins !\", \"Congratulations\", true);\n }",
"private void endTurn() {\n\t\t// Upon completion of move, change the color of the current turn.\n\t\tif (currentTurnColor == PlayerColor.RED) {\n\t\t\tcurrentTurnColor = PlayerColor.BLUE;\n\t\t} else {\n\t\t\tcurrentTurnColor = PlayerColor.RED;\n\t\t}\n\n\t\tturnsCounter++;\n\t}",
"void resetMyTeam();",
"void finishTurn();",
"public void toEndingTurn() {\n }",
"public void endOfTurn();",
"void setWinningTeam(TeamId winner) {\n winningTeam.set(winner);\n }",
"public void buttonEndTurn() {\n\t\tendTurn();\n\t\t}",
"public void endGame() {\n\t\twaitingPlayers.addAll(players);\n\t\tplayers.clear();\n\t\tfor(ClientThread player: waitingPlayers) {\n\t\t\tplayer.points = 0;\n\t\t\tplayer.clientCards.clear();\n\t\t}\n\t\twinners = 0;\n\t\tlosers = 0;\n\t\tpassCounter = 0;\n\t\tdeck.init();\n\t\tview.changeInAndWait(players.size(), waitingPlayers.size());\n\t\tview.writeLog(\"-------------GAME END--------------\");\n\t\tstatus = \"waiting\";\n\t\tstatusCheck();\n\t}",
"public void endGame()\n\t{\n\t\tthis.opponent = null;\n\t\tthis.haveGame = false;\n\t\tthis.isTurn = false;\n\t\tfor(int i = 0; i < 3; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t{\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void endGameAsWin()\n {\n // UPDATE THE GAME STATE USING THE INHERITED FUNCTIONALITY\n super.endGameAsWin();\n \n // RECORD THE TIME IT TOOK TO COMPLETE THE GAME\n long gameTime = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n \n // RECORD IT AS A WIN\n ((MahjongSolitaireMiniGame)miniGame).getPlayerRecord().addWin(currentLevel, gameTime);\n ((MahjongSolitaireMiniGame)miniGame).savePlayerRecord();\n \n // DISPLAY THE WIN DIALOG\n miniGame.getGUIDialogs().get(WIN_DIALOG_TYPE).setState(VISIBLE_STATE); \n\n // AND PLAY THE WIN ANIMATION\n playWinAnimation();\n \n // AND PLAY THE WIN AUDIO\n miniGame.getAudio().stop(MahjongSolitairePropertyType.SPLASH_SCREEN_SONG_CUE.toString()); \n miniGame.getAudio().stop(MahjongSolitairePropertyType.GAMEPLAY_SONG_CUE.toString());\n miniGame.getAudio().play(MahjongSolitairePropertyType.WIN_AUDIO_CUE.toString(), false);\n }",
"public abstract void userTurnEnds(long ms);",
"public void endTurn() {\n\t\tfireChanges();\n\t\t\n\t\tif(!isConfirmed())\n\t\t\tfirePropertyChange(Handler.END_TURN_PROPERTY, \"Do you want to confirm ending your turn?\");\n\t\telse{\n\t\t\tAbstractGameCommand endTurnCommand = new EndTurnCommand(getGame());\n\t\t\tendTurnCommand.execute();\n\t\t\t\n\t \tfirePropertyChange(Handler.CURRENT_PLAYER_PROPERTY, getGame().getCurrentPlayer().getName());\n\t\t\tresetConfirm();\n\t\t}\n\t\t\n\t\tfireChanges();\n\t}",
"public void endTurn() {\n \t\t// add new cards to the set of usable cards\n \t\tfor (int i = 0; i < newCards.size(); i++)\n \t\t\tcards[newCards.get(i).ordinal()] += 1;\n \n \t\tnewCards.clear();\n \t\tusedCard = false;\n \n \t\tappendAction(R.string.player_ended_turn);\n \t}",
"public void changeTurn()\r\n {\r\n isPlayersTurn = !isPlayersTurn;\r\n }",
"public synchronized void setEndGame() {\n this.endGame = true;\n }",
"public void endTurn(MapPanel caller) {\n\t\tlog.log(\"Ending turn for \" + toMove);\n\t\ts.unexamine(caller);\n\t\ttoMove = Alignment.opposing(toMove);\n\t\tif(toMove == Alignment.FRIENDLY)\n\t\t\tcaller.setGameStatus(GameState.PLAYER_MOVING);\n\t\telse\n\t\t\tcaller.setGameStatus(GameState.ENEMY_TURN);\n\t\tstartTurn(caller);\n\t}",
"void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }",
"private void doLastTurn()\n\t{\n\t\tInteger time = turn;\n\n\t\tstartEnterScore(time);\n\t\tdisposeFrameMap();\n\n\t\ttimer.cancel();\n\t}",
"private void endMyTurn() {\n // end my turn, then.\n Entity next = clientgui.getClient().getGame()\n .getNextEntity(clientgui.getClient().getGame().getTurnIndex());\n if ((IGame.Phase.PHASE_DEPLOYMENT == clientgui.getClient().getGame()\n .getPhase())\n && (null != next)\n && (null != ce())\n && (next.getOwnerId() != ce().getOwnerId())) {\n clientgui.setDisplayVisible(false);\n }\n cen = Entity.NONE;\n clientgui.getBoardView().select(null);\n clientgui.getBoardView().highlight(null);\n clientgui.getBoardView().cursor(null);\n clientgui.bv.markDeploymentHexesFor(null);\n disableButtons();\n }",
"void completeTurn() {\n\n\t\tremoveNotification();\n\n\t\tString matchId = match.getMatchId();// The Id for our match\n\t\tString pendingParticipant = GPGHelper.getOpponentId(\n\t\t\t\tgameHelper.getApiClient(), match);// We set who's turn it\n\t\t// is next since\n\t\t// we're done,\n\t\t// should always be\n\t\t// opponents turn\n\t\t// for us.\n\t\tbyte[] gameState = writeGameState(match);// We build the game state\n\t\t\t\t\t\t\t\t\t\t\t\t\t// bytes from the current\n\t\t\t\t\t\t\t\t\t\t\t\t\t// game state.\n\n\t\t// This actually tries to send our data to Google.\n\t\tGames.TurnBasedMultiplayer.takeTurn(gameHelper.getApiClient(), matchId,\n\t\t\t\tgameState, pendingParticipant).setResultCallback(\n\t\t\t\tnew ResultCallback<TurnBasedMultiplayer.UpdateMatchResult>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResult(UpdateMatchResult result) {\n\t\t\t\t\t\tturnUsed = true;\n\n\t\t\t\t\t\t// TODO:Handle this better\n\t\t\t\t\t\tif (!GooglePlayGameFragment.this.checkStatusCode(match,\n\t\t\t\t\t\t\t\tresult.getStatus().getStatusCode())) {\n\t\t\t\t\t\t\tLog.d(\"test\", result.getStatus().getStatusCode()\n\t\t\t\t\t\t\t\t\t+ \" Something went wrong\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t}",
"void resetMyTeam(Team team);",
"public void endTurn()\n {\n revealedCardsScreen.setVisible(false);\n accusationScreen.setVisible(false);\n\n this.played = false;\n\n //call client controller's end turn method\n clientController.endTurn();\n }",
"public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}",
"public void endTurn() {\n suggestionMade = false;\n locAtTurnStart = currentPlayersTurn.getPiece().getLocation();\n accusationChoices = new CardChoice();\n suggestionChoices = new CardChoice();\n turnIndicator = (turnIndicator + 1) % playerOrder.size();\n currentPlayersTurn = playerOrder.get(turnIndicator).getKey();\n currentPlayersSteps = 0;\n }",
"public void endTurn(int player)\r\n/* 282: */ {\r\n/* 283:320 */ for (AgentModel model : this.agentModels.values()) {\r\n/* 284:322 */ if (model.getPlayer() == player)\r\n/* 285: */ {\r\n/* 286:324 */ model.clearMovementStack();\r\n/* 287:325 */ model.setAp(0);\r\n/* 288: */ }\r\n/* 289: */ }\r\n/* 290: */ }",
"public void roundEnded() {\n\t\t\n\t\t// Deduct a life from the currently active player.\n\t\t// Increment the current round number by 1.\n\t\tdeductLife();\n\t\tincrementCurrentRoundNumber();\n\t\t\n\t\t// Switch which player is now active. \n\t\tswitchPlayer();\n\t}",
"private void endGame() {\n\t\tPlayRound.endGame();\n\t\tint score1 = users.get(0).getPoints();\n\t\tint score2 = users.get(1).getPoints();\n\t\tString winnerString;\n\t\tif(score1 > score2){\n\t\t\twinnerString = users.get(0).getName() + \" \" + \"won!\";\n\t\t}\n\t\telse if (score2 > score1) {\n\t\t\twinnerString = users.get(1).getName() + \" \" + \"won!\";;\n\t\t}\n\t\telse {\n\t\t\twinnerString = \"there was a tie!\";\n\t\t}\n\t\tJFrame frame = new JFrame();\n\t\tImageIcon icon = new ImageIcon(Game.class.getResource(\"/resources/cup.png\"));\n\t\tJOptionPane.showMessageDialog(null, winnerString, \"Congratulations\", JOptionPane.OK_OPTION, icon);\n\t}",
"public void checkSetPlayerTurn() // Check and if needed set the players turns so it is their turn.\n\t{\n\t\tswitch (totalPlayers) // Determine how many players there are...\n\t\t{\n\t\tcase 2: // For two players...\n\t\t\tswitch (gameState)\n\t\t\t{\n\t\t\tcase twoPlayersNowPlayerOnesTurn: // Make sure it's player one's turn.\n\t\t\t\tplayers.get(0).setIsPlayerTurn(true);\n\t\t\t\tbreak;\t\t\t\t\n\t\t\tcase twoPlayersNowPlayerTwosTurn: // Make sure it's player two's turn.\n\t\t\t\tplayers.get(1).setIsPlayerTurn(true);\n\t\t\t\tbreak;\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}",
"private void doGameTurn()\n\t{\n\t\tif (!lost && !won)\n\t\t{\n\t\t\trefreshMapAndFrame();\n\t\t\t\n\t\t\tcheckPlayerCondition();\n\t\t\tElementAccess.openExit();\n\t\t\tSystem.out.println(turn);\n\t\t}\n\t\telse if (lost)\n\t\t{\n\t\t\tSound.lost();\n\t\t\trefreshMapAndFrame();\n\n\t\t\tif (playerHasLost())\n\t\t\t{\n\t\t\t\tstop = true;\n\t\t\t}\n\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t\tlost = false;\n\t\t}\n\t\telse if (won)\n\t\t{\n\t\t\tSound.won();\n\t\t\trefreshMapAndFrame();\n\n\t\t\twon = false;\n\t\t\tif (playerNotInLevel())\n\t\t\t{\n\t\t\t\tstop = true;\n\t\t\t}\n\n\t\t\tnextLevel();\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t}",
"public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}",
"public void nextTurn() {\r\n activePlayer = nextPlayer;\r\n advanceNextPlayer();\r\n }",
"public void newTurn() {\n int[] playersAlive = GameEngine.playersAlive();\n if (playersAlive[0] > 0) {\n turnData.clear();\n Die dice = new Die();\n thrown = dice.main();\n turnOnePlayer();\n\n } else {\n GameEngine.theEnd(playersAlive[1]);\n }\n }",
"void finishMatch() {\n\t\tint playerResult = ParticipantResult.MATCH_RESULT_NONE;\n\t\tint opponentResult = ParticipantResult.MATCH_RESULT_NONE;\n\n\t\tif (!GameActivity.gameMachine.player.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, false);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t} else if (!GameActivity.gameMachine.opponent.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, true);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t}\n\n\t\tArrayList<ParticipantResult> results = new ArrayList<ParticipantResult>();\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getMyId(\n\t\t\t\tgameHelper.getApiClient(), match), playerResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getOpponentId(\n\t\t\t\tgameHelper.getApiClient(), match), opponentResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tif (match.getStatus() == TurnBasedMatch.MATCH_STATUS_ACTIVE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId(),\n\t\t\t\t\t\twriteGameState(match), results);\n\t\t\t\tturnUsed = true;\n\t\t\t\tremoveNotification();\n\t\t\t}\n\t\t} else if (match.getStatus() == TurnBasedMatch.MATCH_STATUS_COMPLETE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId());\n\t\t\t}\n\t\t}\n\t}",
"public void endGame() {\n for (Player player : this.players.values()) {\n if (player.getBankroll() == this.playerAmount * DEFAULT_BANKROLL) {\n this.doPokerEnds = true;\n break;\n }\n }\n this.startingGamePlayer = ++this.startingGamePlayer % this.playerAmount;\n }",
"void setPlayerTurn() throws RemoteException;",
"public void endTurn() {\n\t\tif (whoseTurn == 0) {\n\t\t\twhoseTurn = 1;\n\t\t} else {\n\t\t\twhoseTurn = 0;\n\t\t}\n\t\thasMoved = false;\n\t\thasSelected = false;\n\t\tif (prevSelected != null) {\n\t\t\tprevSelected.doneCapturing();\n\t\t}\n\t\tprevSelected = null;\n\t\tprevSelectedX = 0;\n\t\tprevSelectedY = 0;\n\t}",
"private void endGame(){\n if (winner){\n Toast.makeText(this, \"Fin del Juego: Tu ganas\", Toast.LENGTH_SHORT).show();\n finish();\n } else {\n Toast.makeText(this, \"Fin del Juego: Tu pierdes\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }",
"public void endTurn() {\n \tselectedX = -1;\n \tselectedY = -1;\n \tmoveToX = -1;\n \tmoveToY = -1;\n \toneMove = false;\n \thasMoved = false;\n\t\tplayer = 0 - player;\n\t\tfor (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n \tif (pieces[i][j]) {\n \t\tboardPieces[i][j].doneCapturing();\n \t}\n }\n\t\t}\n\t}",
"public void onTurnEnd() {\n\n\t}",
"public void nextTurn() {\n visionChanged = true;\n SoundPlayer.playEndTurn();\n // Check if any protection objectives have failed\n gameState.updateAllHeroProtectionGoals(getHeroManager());\n // hook the next turn\n if (!multiplayerGameManager.hookNextTurn()) {\n\n if (map.enemyPerformingMove()) {\n return;\n }\n // Enemy action was made\n if (playerTurn && map.hasEnemy()) {\n try {\n map.enemyTurn(this);\n } catch (InterruptedException e) {\n logger.error(\"ayylmao at the GameManager.nextTurn(..) Method\");\n Platform.exit();\n Thread.currentThread().interrupt();\n }\n } else {\n map.playerTurn(this);\n updateBuffIcons();\n updateTempVisiblePoints();\n map.turnTick();\n for(CurrentHeroChangeListener listener:heroChangeListeners){\n \tlistener.onHeroChange(getHeroManager().getCurrentHero());\n }\n }\n\n } else {\n moveViewTo(getHeroManager().getCurrentHero().getX(), getHeroManager().getCurrentHero().getY());\n updateBuffIcons();\n updateTempVisiblePoints();\n }\n\n map.updateVisibilityArray();\n dayNightClock.tick();\n turnTickLiveTiles();\n abilitySelected = AbilitySelected.MOVE;\n abilitySelectedChanged = true;\n backgroundChanged = true;\n gameChanged = true;\n minimapChanged = true;\n saveOriginator.writeMap(this.map, this.getObjectives(), this.gameState);\n // update(this.tracker,null);\n }",
"public void switchPlayer() {\n \tisWhitesTurn = !isWhitesTurn;\n }",
"public void endTurn(int op, String turnID) {\n\t\tTurn pturn = null;\n\t\tfor (int i=0; i<notAttendedTurns.size(); i++) {\n\t\t\tif (notAttendedTurns.get(i).getTurnID()==(turnID)) {\n\t\t\t\tnotAttendedTurns.get(i).setInUse(false);\n\t\t\t\tnotAttendedTurns.get(i).getUser().setHasTurn(false);\n\t\t\t\tnotAttendedTurns.get(i).getUser().assignTurn(\"\");\n\t\t\t\tpturn = notAttendedTurns.get(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (op==1) {\n\t\t\tnotAttendedTurns.remove(pturn);\n\t\t\tattendedTurns.add(pturn);\n\t\t}\n\t}",
"public void endGame(){\n updateHighscore();\n reset();\n }",
"private void endGame() {\r\n\t\t// Change state (if not already done)\r\n\t\tstate = GameState.STOPPED;\r\n\t\t\r\n\t\t// End simulator\r\n\t\tsimulator.endGame();\r\n\t}",
"public void turn(boolean yours) {\n\t\t_endTurn.setEnabled(yours);\n\t}",
"public void endTurn() throws JSONException {\n\t\tJSONObject json = new JSONObject();\n\t\tJSONObject json2 = new JSONObject();\n\t\tjson.put(\"Zug beenden\", json2);\n\t\tcontroller.getGame().setRoundCounter(controller.getGame().getRoundCounter()+1);\n\t\t// setze die entwicklungskarte zurück die in diesem zug gekauft wurde\n\t\tcontroller.setDevCard(-1);\n\t\tclient.send(json);\n\t}",
"public static void NextTurn() {\n if (num_of_players == turn)\n turn=0;\n turn++;\n }",
"void gameTurn(int move){\n int gameWon = -1;\n boolean gameTie = false;\n //set the board to a move and print it\n if (loggedInUser.myGame.currentLetter.equals(\"X\")){\n gameBoard [move] = 1;\n printMove(move,\"X\");\n }\n else{\n gameBoard[move] = 2;\n printMove(move,\"O\");\n }\n //Update the status of the buttons graying out the ones that were played\n updateButtons();\n\n //checks if the game has been won or not\n gameWon = checkGameWon();\n\n //check of the game has been tied\n gameTie = checkTie();\n\n Game game = new Game(loggedInUser.opponentId);\n game.currentMove = move;\n\n if (loggedInUser.myGame.currentLetter.equals(\"X\")){\n game.currentLetter = \"O\";\n }else {\n game.currentLetter = \"X\";\n }\n\n //if the game hasn't been won and the game hasnt been tied the other playesr turn is made\n if(gameWon != 0 && !gameTie){\n game.gameInProgress = true;\n }\n //if game won\n else if (gameWon != 0){\n //remove all of the buttons\n removeAllButtons();\n game.gameInProgress = false;\n }\n else{\n playerText.setText(\"The game is tie\");\n turn.setText(\"No one wins\");\n game.gameInProgress = false;\n }\n\n //set data\n mDatabaseRef.child(loggedInUser.myId).child(\"myGame\").setValue(game);\n mDatabaseRef.child(loggedInUser.opponentId).child(\"myGame\").setValue(game);\n }",
"public void playerFinishedGoNext() {\n\t\t// If game is over we don't want to switch turn.\n\t\tif (!isOver()) {\n\t\t\tswitchTurn();\n\t\t}\n\t}",
"public void inTurn() {\n\t\tthis.timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinishTurn();\n\t\t\t}\n\t\t}, turnMaxSeconds * 1000);\n\n\t}",
"public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}",
"public void gameSet(final String userid, final Boolean end, final Boolean survivorZero,final Boolean press) {\n findSurvivor(userid,end,survivorZero,press);\n\n if (!userid.equals(userId)){\n if (end|survivorZero) {\n questionCard.setVisibility(View.GONE);\n gamesetView.setVisibility(View.VISIBLE);\n //check if the current user is winner\n db.child(\"Games\").child(userid).child(\"Redblue\").child(\"Winner\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n\n if (dataSnapshot.hasChild(userId)) {\n winMsg.setText(\"Congrat! you win!\");\n } else {\n winMsg.setText(\"Game end\");\n\n }\n\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n db.child(\"Games\").child(userid).child(\"Redblue\").child(\"Loser\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(userId)) {\n winMsg.setText(\"Congrat!, you lose!\");\n } else {\n winMsg.setText(\"Game end\");\n\n }\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }else{\n db.child(\"Games\").child(userid).child(\"Redblue\").child(\"Loser\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(userId)) {\n winMsg.setText(\"Congrat!, you lose!\");\n questionCard.setVisibility(View.GONE);\n gamesetView.setVisibility(View.VISIBLE);\n } else {\n winMsg.setText(\"Game end\");\n\n }\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }\n\n }else{\n //couple case\n if(end||survivorZero){\n questionCard.setVisibility(View.GONE);\n gamesetView.setVisibility(View.VISIBLE);\n db.child(\"Games\").child(userid).child(\"Redblue\").child(\"Winner\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(userId)) {\n winMsg.setText(\"Congrat!, you win!\");\n } else {\n winMsg.setText(\"Game end\");\n\n }\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n db.child(\"Games\").child(userid).child(\"Redblue\").child(\"Loser\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(userId)) {\n winMsg.setText(\"Congrat!, you lose!\");\n } else {\n winMsg.setText(\"Game end\");\n\n }\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }\n }\n\n\n\n\n\n\n cddMsg = new CustomDialogClassMsgWin(GameRB.this,end);\n// if (!isFinishing()|!cddMsg.isShowing())\n// cddMsg.show();\n\n\n// db.child(\"Games\").child(userid).child(\"Redblue\").child(\"AnswerGuest\").addListenerForSingleValueEvent(new ValueEventListener() {\n//\n// @Override\n// public void onDataChange(DataSnapshot dataSnapshot) {\n// final String correct;\n// int correntNum = 0;\n// for (DataSnapshot child : dataSnapshot.getChildren()) {\n// for (DataSnapshot userAns : child.getChildren()) {\n// if (userAns.getKey().equals(userId) && userAns.getValue().equals(true)) {\n// correntNum++;\n// }\n// }\n// }\n// String correctNumber = String.valueOf(correntNum);\n// correct = correctNumber;\n// runOnUiThread(new Runnable() {\n// @Override\n// public void run() {\n// if (!GameRB.this.isFinishing()){\n//\n//// new SweetAlertDialog(GameRB.this)\n//// .setTitleText(\"Game Set!\")\n//// .setContentText(\"You have \" + correct + \" questions right!\")\n//// .setConfirmText(\"OK\")\n//// .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n//// @Override\n//// public void onClick(SweetAlertDialog sDialog) {\n//// Intent pIntent = new Intent(GameRB.this, MainActivity.class);\n//// pIntent.putExtra(\"Game\", \"Redblue\");\n//// startActivity(pIntent);\n//// sDialog.dismissWithAnimation();\n//// finish();\n//// }\n//// })\n//// .show();\n//\n//\n// }\n// }\n// });\n//\n// }\n//\n// @Override\n// public void onCancelled(DatabaseError databaseError) {\n//\n// }\n// });\n }",
"static void endgame() {\n System.out.println(\"MARK MY WORDS... THIS ISN'T THE END YET!\");\n System.out.println(\"Don't listen to her, she's just mad that she'll have to spend her eternal life in that black cell.\");\n enter = next.nextLine();\n System.out.println(\"The black portal gradually closes...lasting for only minutes until it exploded.\");\n System.out.println(\"The portal was gone and so was that evil witch...WAIT\");\n System.out.println(\"How about you Naga?\");\n enter = next.nextLine();\n System.out.println(\"My duty is done and I'm free from your grasp. Farewell...\");\n enter = next.nextLine();\n System.out.println(\"The black dragon creates a big black vortex that consumed Naga, his recent friend.\");\n enter = next.nextLine();\n System.out.println(\"The black dragon bids his farewell and the black portal too exploded out of sight.\");\n System.out.println(\"He was sent to accompany \" + username + \" to defeat his enemy, the witch.\");\n System.out.println(\"His job is done and he must return back to the dragon world...or whatever dimension he lived in\");\n enter = next.nextLine();\n System.out.println(\"I guess this is a lesson. Don't read wierd books...they don't end so well.\");\n System.out.println(\"/n\");\n System.out.println(\"/n\");\n System.out.println(\"Well, congratulations again \" + username + \" for defeating the boss.\");\n enter = next.nextLine();\n System.out.println(username + \" casts a purple portal and teleports to his hometown...everything looks fine\");\n enter = next.nextLine();\n System.out.println(\"OR IS IT? / 'I'm back. DID YOU MISS ME?'\");\n System.out.println(\"/n\");\n System.out.println(\"THANKS FOR PLAYING \" + username + \".\");\n gameplay = false;//end the main while loop\n }",
"public void surrender() {\n playerCash += playerBet / 2;\n\n //Play dealer's turn\n dealerTurn();\n\n //End the game and change the views\n restartGame();\n }",
"public void endGame(EndGameType type)\n\t{\n\t\tboolean personalityWin = true;\n\t\tthis.isEndGame = true;\n\t\tswitch (type)\n\t\t{\n\t\t\tcase winAtBeginTurn:\n\t\t\t\tthis.winnerList.add(this.getCurrentPlayer());\n\t\t\t\tbreak;\n\t\t\tcase noPlayerCard:\n\t\t\t\tfor(Player player : this.getPlayerList())\n\t\t\t\t{\n\t\t\t\t\tif (!player.getPersonalityCard().getActions(NoPlayerCard.class).isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.winnerList.add(player);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\tcase riotTroubleEvent:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (this.winnerList.isEmpty())\n\t\t{\n\t\t\tthis.winnerList.addAll(calculatePoints());\n\t\t\tpersonalityWin = false;\n\t\t}\n\t\t\n\t\tthis.getSystemDataInput().printMessage(\"We have \" + (this.winnerList.size() == 1 ? \"a winner!\" : \"winners!\") + \" Congratulations to:\");\n\t\tfor (Player winner : this.winnerList)\n\t\t{\n\t\t\tthis.getSystemDataInput().printMessage(winner.getFullName() + (personalityWin ? \" as \" + winner.getCardName() + \".\": \" with \" + winner.getPoints() + \" points.\"));\n\t\t}\n\t\t\n\t\tthis.getSystemDataInput().printMessage(\"\"); // spacer\n\t\t\n\t\tthis.getSystemDataInput().askTrueFalseQuestion(\"The end!\", \"Terminate!\", \"Terminate anyway ;p\");\n\t}",
"public void uturn() {\n\t\tthis.turnLeft(2);\n\t}",
"public void endRound() {\n if (!myTurn()) {\n return;\n }\n if (this.board.getWinners().size() > 0 && this.playerId == board.getPlayers().get(board.getPlayers().size() - 1).playerId) {\n this.board.setRunning(false);\n }\n // currentPlayerNumber = (currentPlayerNumber + 1) % players.size();\n // current = players.get(currentPlayerNumber);\n this.removableBlockades = new ArrayList<>();\n coins = (float) 0;\n bought = false;\n specialAction.setDraw(0);\n specialAction.setRemove(0);\n specialAction.setSteal(0);\n history = new ArrayList<>();\n //for (int i = tmpDiscardPile.size(); i > 0; i--){\n // discardPile.add(tmpDiscardPile.remove(0));\n //}\n discardPile.addAll(tmpDiscardPile);\n tmpDiscardPile = new ArrayList<Card>();\n draw();\n board.endRound();\n }",
"@Override\n public void setWinner(Player winner)\n {\n for(int i = 0; i < gc.getF().size(); i++)\n {\n if(gc.getF().get(i).readyStart() == 0 || gc.getF().get(i).readyStart() == 1)\n {\n gc.getF().get(gc.getF().size() -1).addPlayer(this.winner);\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n return;\n }\n }\n //If there are no available spots, make a new game\n Final f = new Final();\n System.out.println(\"created a new Final!\");\n f.addPlayer(winner);\n //Save winner details\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n \n gc.getF().add(f);\n //Move game to history \n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n \n }",
"public void endGame()\n\t{\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tstopThreads();\n\t\tsendScore();\n\t}",
"public void endGame()\r\n {\r\n mode = 2;\r\n }",
"private void nextRound()\n {\n Player currentPlayer = roundManager.next();\n\n if(!currentPlayer.getClientConnection().isConnected() || !currentPlayer.getClientConnection().isLogged())\n {\n if(currentPlayer.equals(lastFinalFrenzyPlayer))return;\n nextRound();\n return;\n }\n\n if(gameMode == GameMode.FINAL_FRENZY_BEFORE_FP && roundManager.isFirstPlayer(currentPlayer))gameMode = GameMode.FINAL_FRENZY_AFTER_FP;\n\n try\n {\n currentPlayer.getView().roundStart();\n notifyOtherClients(currentPlayer, virtualView -> virtualView.showNotification(\"È il turno di \"+currentPlayer.getUsername()));\n\n if(roundManager.isFirstRound() || !currentPlayer.isFirstRoundPlayed()) firstRound(currentPlayer);\n\n for(int i = 0; i < gameMode.getPlayableAction(); i++)\n {\n currentPlayer.resetExecutedAction();\n boolean continueRound = executeAction(currentPlayer);\n if(!continueRound)break;\n }\n\n if(gameMode == GameMode.NORMAL)new ReloadAction(this, currentPlayer, ReloadAction.RELOAD_ALL).execute();\n }\n catch (ConnectionErrorException e)\n {\n Logger.error(\"Connection error during \"+currentPlayer.getUsername()+\"'s round!\");\n notifyOtherClients(currentPlayer, virtualView -> virtualView.showNotification(currentPlayer.getUsername()+\" si è disconnesso!\"));\n }\n catch (TimeOutException e)\n {\n Logger.info(\"Player \"+currentPlayer.getUsername()+\" has finished his time\");\n }\n\n currentPlayer.getView().roundEnd();\n currentPlayer.resetExecutedAction();\n refillMap();\n sendBroadcastUpdate();\n if(isFinalFrenzy())currentPlayer.setLastRoundPlayed(true);\n handleDeadPlayers(currentPlayer);\n if(isFinalFrenzy() && currentPlayer.equals(lastFinalFrenzyPlayer))return;\n checkForFinalFrenzy(currentPlayer);\n if(match.connectedPlayerSize() <= 0 || match.connectedPlayerSize() < MatchSettings.getInstance().getMinPlayers())return;\n nextRound();\n\n }",
"protected void end() {\n drivebase.setArcade(0, 0);\n drivebase.disableTurnController();\n }",
"@Override\n\tpublic boolean nextPlayersTurn(int currentTurn, int startRow, int startCol, int endRow, int endCol) {\n\t\tif (currentTurn % player2.turn == 0) {\n\t\t\tSystem.out.println(\"****YEE-HAW! ITS PLAYER 2'S TURN*****\");\n\t\t\texecuteMove(player2, player1, state.gameBoard, currentTurn, startRow, startCol, endRow, endCol);\n\t\t} else {\n\t\t\tSystem.out.println(\"****YEE-HAW! ITS PLAYER 2'S TURN*****\");\n\t\t\texecuteMove(player1, player2, state.gameBoard, currentTurn, startRow, startCol, endRow, endCol);\n\t\t}\n\t\treturn continueGame;\n}",
"public void handleEndTurn(ActionEvent event){\n sender.sendInput(\"end turn\");\n }",
"private void logout(){\n player.setName(\"(bot) \" + player.getName());\n botMode = true;\n System.out.println(\"bot made\");\n login = false;\n }",
"private void gameEnd(boolean win) {\n timer.stop();\n playing = false;\n if (win) {\n status.setText(\"You win!\");\n int score = (int) (Math.pow(boardWidth, 2) * Math.pow(boardHeight, 2) \n + Math.pow(mines, 3)) / timeElapsed;\n String nickname = JOptionPane\n .showInputDialog(\"Score: \" + Integer.toString(score) \n + \" Please input your nickname: \");\n try {\n BufferedWriter bw = new BufferedWriter(\n new FileWriter(\"files/highscores.txt\", true));\n bw.append(nickname + \",\" + Integer.toString(score) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n System.out.println(\"An error has occurred\");\n }\n } else {\n status.setText(\"You lost.\");\n }\n }",
"public void gameEnd(String winner, String reason) {\r\n if (game != null) {\r\n Transpositions.resetTrans();\r\n game.gameEnd();\r\n Logging.log(winner + \" has won!\");\r\n board = null;\r\n game = null;\r\n connection.requestLeaderboard();\r\n }\r\n }",
"private void startFinalRound() {\r\n if(!m_state.isMidGame()) {\r\n throw new RuntimeException(\"startFinalRound() called, but not midgame\");\r\n }\r\n\r\n m_state.setState(State.STARTING_FINAL);\r\n\r\n if(m_survivorCount == 0) {\r\n m_botAction.sendArenaMessage(\"No survivors?! \\\\(o_O)/\", 24);\r\n endGame();\r\n return;\r\n } else if(m_survivorCount == 1) {\r\n for(KimTeam team : m_survivingTeams) {\r\n if(team != null) {\r\n m_botAction.sendArenaMessage(\"Winner by default: \" + team.toString());\r\n break;\r\n }\r\n }\r\n\r\n endGame();\r\n return;\r\n }\r\n\r\n //display survivors\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n printFormattedTeams(m_survivingTeams, 4);\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n m_botAction.sendArenaMessage(\"Welcome to the Final Round!\", 2);\r\n\r\n //pm leavers\r\n for(String name : m_startingLagouts) {\r\n if(name != null) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Final round is starting. You have 15 seconds to return.\");\r\n }\r\n }\r\n\r\n //warp to final safes and ?set spawns\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n for(int i = 0; i < 4; i++) {\r\n KimTeam team = m_survivingTeams[i];\r\n\r\n if(team != null) {\r\n for(KimPlayer kp : team) {\r\n kp.resetTime();\r\n\r\n if(m_startingReturns.remove(kp)) {\r\n int retID = m_botAction.getPlayerID(kp.m_name);\r\n\r\n if(retID < 0) {\r\n m_startingLagouts.add(kp.m_lcname);\r\n continue;\r\n } else {\r\n putPlayerInGame(retID, kp, true);\r\n }\r\n }\r\n\r\n m_botAction.warpTo(kp.m_name, m_finalSafeCoords[i << 1], m_finalSafeCoords[(i << 1) + 1]);\r\n }\r\n }\r\n }\r\n\r\n setFinalSpawns();\r\n }\r\n }, DELAY_FINAL_SETUP);\r\n\r\n //countdown lvz object\r\n m_botAction.scheduleTask(new CountdownImage(), DELAY_FINAL_COUNTDOWN);\r\n\r\n //go go go\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n synchronized(m_state) {\r\n m_state.setState(State.MIDGAME_FINAL);\r\n m_botAction.sendArenaMessage(\"GO! GO! GO!\", 104);\r\n\r\n for(int i = 0; i < 4; i++) {\r\n KimTeam team = m_survivingTeams[i];\r\n\r\n for(KimPlayer kp : team) {\r\n if(kp != null) {\r\n if(m_startingLagouts.remove(kp.m_lcname)) {\r\n registerLagout(kp);\r\n continue;\r\n }\r\n\r\n if(m_startingReturns.remove(kp)) {\r\n int retID = m_botAction.getPlayerID(kp.m_name);\r\n\r\n if(retID < 0) {\r\n registerLagout(kp);\r\n continue;\r\n } else {\r\n putPlayerInGame(retID, kp, true);\r\n }\r\n } else {\r\n kp.resetTime();\r\n }\r\n\r\n m_botAction.warpTo(kp.m_name, m_finalGoCoords[i << 1], m_finalGoCoords[(i << 1) + 1]);\r\n }\r\n }\r\n }\r\n\r\n m_botAction.shipResetAll();\r\n m_poll = new Poll(m_survivingTeams, m_botAction);\r\n }\r\n }\r\n }, DELAY_FINAL_GOGOGO);\r\n }",
"public void endTurn() {\r\n\t\tcontraband.clear();\r\n\t\tactions = 1;\r\n\t\tbuys = 1;\r\n\t\tif(treasure > 0) treasure = 0;\r\n\t\tpotion = 0;\r\n\t\tcoppersmith = 0;\r\n\t\tbridge = 0;\r\n\t\tquarry = 0;\r\n\t\tdeck.cleanUp();\r\n\t\taccess.log(getPlayerName() + \"'s Deck: \" + deck.toString());\r\n\t\taccess.log(getPlayerName() + \"'s turn ended\");\r\n\t\tnotifyObservers();\r\n\t}",
"public void finishGame() {\r\n gameFinished = true;\r\n }",
"public void newTurnCountdown() {\n newTurn = true;\n newTurnTimer = 77;\n }",
"public void endRace(){\n\t\tstartTime =-1;\n\t\tfor(Player p: playersFinished){\n\t\t\twhile(!setPlayerID(p.getID())){\n\t\t\t\ttempNumber++;\n\t\t\t\tsetPlayerID(tempNumber);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}",
"public static void switchPlayers(){\n\t\tif(turn.equals(\"white\")){\n\t\t\tturn = \"black\";\n\t\t}\n\t\telse{\n\t\t\tturn = \"white\";\n\t\t}\n\t}",
"public static void endGameSequence()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t\tlblUpdate.setText(\"Game over! You are out of money!\");\n\t}",
"public void endGame(int winner){\n this.gameOver = true;\n JLabel statusScreen;\n \n if(winner == 1){\n this.remove(gameGrid);\n statusScreen = new JLabel(new ImageIcon(getClass().getResource(\"/win.jpg\")));\n this.add(statusScreen, BorderLayout.CENTER);\n statusBar.setText(\"You Win !!!\");\n }\n \n else if (winner == 2){\n this.remove(gameGrid);\n statusScreen = new JLabel(new ImageIcon(getClass().getResource(\"/loose.gif\")));\n this.add(statusScreen, BorderLayout.CENTER);\n statusBar.setText(\"You Loose ...\");\n }\n \n else if (winner == 3){\n statusBar.setText(\"Tie\");\n }\n \n else{ \n statusBar.setText(\"Your partner has forfeit!\");\n gameGrid.setEnabled(false);\n }\n }"
] |
[
"0.74919784",
"0.73004824",
"0.70060515",
"0.69746786",
"0.69542426",
"0.68179023",
"0.67790604",
"0.6749589",
"0.67409354",
"0.6725093",
"0.6710199",
"0.66999316",
"0.6661225",
"0.6648724",
"0.66425455",
"0.66090244",
"0.66085905",
"0.65800774",
"0.6568142",
"0.652526",
"0.6484175",
"0.6468804",
"0.6468468",
"0.64535356",
"0.6450414",
"0.64079756",
"0.640514",
"0.64017886",
"0.63984066",
"0.63974977",
"0.6394227",
"0.63907367",
"0.63651174",
"0.63389784",
"0.62962806",
"0.62852615",
"0.6278864",
"0.6246924",
"0.6212301",
"0.62090886",
"0.6190467",
"0.6156075",
"0.6148677",
"0.6146183",
"0.6144606",
"0.61392915",
"0.6132673",
"0.6108911",
"0.61007875",
"0.60875493",
"0.60763633",
"0.6070466",
"0.6051332",
"0.6046933",
"0.6031951",
"0.6019118",
"0.6013962",
"0.6013771",
"0.60115916",
"0.59915006",
"0.5984981",
"0.59818274",
"0.5981122",
"0.5966567",
"0.59535813",
"0.59205645",
"0.5900892",
"0.5895041",
"0.58812475",
"0.5862654",
"0.5854902",
"0.584764",
"0.58416814",
"0.5828735",
"0.58130217",
"0.58106756",
"0.58080953",
"0.5797625",
"0.57962906",
"0.57948726",
"0.57944375",
"0.5786528",
"0.5780508",
"0.57748187",
"0.57682794",
"0.5762362",
"0.57598275",
"0.5757645",
"0.57524854",
"0.575232",
"0.5752199",
"0.5751891",
"0.57474166",
"0.5744698",
"0.57440877",
"0.57375234",
"0.5737154",
"0.57300204",
"0.5729735",
"0.57294655"
] |
0.7295813
|
2
|
Returns all the football players in the market
|
public List <FootballPlayer> getAllPlayers() {
return market.getAllPlayers();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"List<Player> getPlayers();",
"List<Player> findAllPlayers();",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }",
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}",
"public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }",
"public List <FootballPlayer> getAllPlayersByTeamName(String name) {\n\t\treturn market.getAllPlayersByTeamName(name);\n\t}",
"ArrayList<Player> getAllPlayer();",
"public List <FootballPlayer> getAllPlayersByPosition(String position) {\n\t\treturn market.getAllPlayersByPosition(position);\n\t}",
"List<Player> listPlayers();",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"public List<PlayerItem> getAll();",
"@Override\n public List<Player> getPlayers() {\n return players;\n }",
"public List<PlayerItem> getAllPlayerItemById(Player player);",
"public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}",
"Collection<User> players();",
"public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }",
"public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }",
"public Collection<Player> getPlayersChunk() {\n var chunk = new Chunk<Player>();\n var playersChunk = chunk.get(this.players, ALL_PLAYERS_CHUNK_SIZE, allPlayersChunkIndex);\n\n // up to ALL_PLAYERS_CHUNK_SIZE with empty players\n // to have an even view\n var startIndex = playersChunk.size();\n for (var i = startIndex; i < ALL_PLAYERS_CHUNK_SIZE; i++) {\n playersChunk.add(new Player(new Person()));\n }\n\n return playersChunk;\n }",
"public Set<Player> getPlayers() {\n return players;\n }",
"public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}",
"public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }",
"@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}",
"private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public Hashtable<Integer, Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"@RequestMapping(\"/players\")\n public List<Player> getAllPlayers() {\n return playerService.getPlayerList();\n }",
"public Player[] getPlayers() {\r\n return players;\r\n }",
"public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}",
"private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public Set<Player> getAllPlayers(Term term, PaginationFilter pagination);",
"public Player[] getPlayers() {\n return players;\n }",
"public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"Set<String> getPlayers();",
"public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}",
"public Player[] getPlayers() {\n return this.players;\n }",
"public Player[] getPlayers() {\n return this.players;\n }",
"public List<Player> getAllOrdered() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAllOrdered();\n }",
"public EntityList<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public List<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public List<Player> getPlayers() {\n\n\t\treturn players;\n\t}",
"public CompactPlayer[] getPlayers()\n {\n return players;\n }",
"java.util.List<com.orange.network.game.protocol.model.ZhaJinHuaProtos.PBPoker> \n getPokersList();",
"public abstract Collection<PlayerFish> getPlayers();",
"public static ArrayList<EntityPlayer> getAll() {\r\n\t\ttry {\r\n\t\t\tArrayList<EntityPlayer> players = new ArrayList<EntityPlayer>();\r\n\t\t\t\r\n\t\t\tfor (EntityPlayer player : mc.world.playerEntities) {\r\n\t\t\t\tif (!player.isEntityEqual(mc.player)) {\r\n\t\t\t\t\tplayers.add(player);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn players;\r\n\t\t} catch (NullPointerException ignored) {\r\n\t\t\treturn new ArrayList<EntityPlayer>();\r\n\t\t}\r\n\t}",
"public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }",
"public void printAllPlayerStats(List<Player> players);",
"@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}",
"public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }",
"public ResultSet getPlayers() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString playerRecords_sql = \"SELECT * FROM \" + player_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(playerRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}",
"@Override\n public ArrayList<Player> getPlayers() throws RemoteException {\n return players;\n }",
"public List<Player> getAllPlayersLimit(int limit) {\n\t\treturn repository.findAll(limit);\n\t}",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public void placeBets(){\n System.out.println();\n System.out.println(\"Let's place your bet!\");\n System.out.println();\n for(Player player: players){\n player.placeBet(minBet, maxBet);\n }\n System.out.println();\n }",
"@Override\n\tpublic List<Player> getPlayersByAge(int age) throws BusinessException {\n\t\treturn null;\n\t}",
"public List<Player> getPlayerList(){\n return this.players;\n }",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"ArrayList<Bet> selectPlayingBetsOfAccount(Account account) throws DAOException;",
"@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}",
"private void computePresentPleyers() {\n\t\tthis.presentPlayerKeys = new ArrayList<>();\n\t\tList<ChesspairingPlayer> players = mTournament.getPlayers();\n\t\tfor (ChesspairingPlayer player : players) {\n\t\t\tif (player.isPresent()) {\n\t\t\t\tthis.presentPlayerKeys.add(player.getPlayerKey());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic List<Player> getPlayersByPosition(String position) throws BusinessException {\n\t\tList<Player> playersByPosition = new ArrayList<>();\n\t\ttry {\n\t\t\tConnection connection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select playerid, playername, teamid, age, position, dob from \\\"Test\\\".player where position = ?\";\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setString(1, position);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tPlayer player = new Player();\n\t\t\t\tplayer.setPlayerid(resultSet.getInt(\"playerid\"));\n\t\t\t\tplayer.setPlayername(resultSet.getString(\"playername\"));\n\t\t\t\tplayer.setTeamid(resultSet.getInt(\"teamid\"));\n\t\t\t\tplayer.setAge(resultSet.getInt(\"age\"));\n\t\t\t\tplayer.setPosition(\"position\");\n\t\t\t\tplayer.setDob(resultSet.getDate(\"dob\"));\n\t\t\t\t\n\t\t\t\tplayersByPosition.add(player);\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Internal Error Ocurred\");\n\t\t}\n\t\t\n\t\treturn playersByPosition;\n\t}",
"public LinkedList<Player> getPlayers() {\n\t\treturn this.players;\n\t}",
"public Set<String> getPlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayers())\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}",
"public void printAllPlayerHands(){\n\t\tfor(int i = 0 ; i < this.players.length; i++){\n\t\t\tplayers[i].printPlayerHand();\t\t \n\t\t}\t\n\t}",
"public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}",
"public List<SkungeePlayer> getPlayers(String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public Set<Player> getParticipants() { //TODO: not sure the validation needs to happend here\n\t\t// Run through the results and make sure all players have been pushed into the participants set.\n\t\tfor ( Result result : results ) {\n\t\t\tparticipants.add(result.getWinner());\n\t\t\tparticipants.add(result.getLoser());\n\t\t}\n\n\t\treturn participants;\n\t}",
"public List<Player> getAttackedPlayers() {\r\n\t\tArrayList<Player> output = new ArrayList<Player>();\r\n\t\tfor(Player p : getOtherPlayers()) {\r\n\t\t\tif(!(p.deck.hand.contains(new Moat()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Lighthouse()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Champion()) \r\n\t\t\t\t\t|| p.getPlayerNum() == getWhoseTurn())) {\r\n\t\t\t\toutput.add(p);\r\n\t\t\t}\r\n\t\t\tArrayList<Card> reactions = new ArrayList<Card>();\r\n\t\t\tfor(Card c : p.deck.hand) {\r\n\t\t\t\tif(c.isReaction()) reactions.add(c);\r\n\t\t\t}\r\n\t\t\tfor(Card c : reactions) {\r\n\t\t\t\tc.reactAttack();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"public static List<String> getAllGoalkeepers() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/66\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\", \"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\", \"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Map<String, Object> stringObjectMap = objectMapper.readValue(response.getEntity().getContent(), new TypeReference<Map<String, Object>>() {\n });\n List<Map<String, Object>> squad = (List<Map<String, Object>>) stringObjectMap.get(\"squad\");\n List<String> goalKeeperName = new ArrayList<>();\n for (int i = 0; i < squad.size(); i++) {\n try {\n if (squad.get(i).get(\"position\").equals(\"Goalkeeper\")) {\n\n goalKeeperName.add((String) squad.get(i).get(\"name\"));\n }\n } catch (NullPointerException e) {\n continue;\n }\n }\n\n return goalKeeperName;\n }",
"public String[] getPlayers() {\r\n return playerIds;\r\n }",
"@Override\r\n\tpublic List<MarketDto> readMarketAll() {\n\t\treturn session.selectList(\"kdc.market.readMarketAll\");\r\n\t}",
"public List<ServerPlayerEntity> getPlayerList() {\n return this.players;\n }",
"public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public List<Player> loadAll() throws SQLException {\n\t\tfinal Connection connection = _database.getConnection();\n\t\tfinal String sql = \"SELECT * FROM \" + table_name + \" ORDER BY id ASC \";\n\t\tfinal List<Player> searchResults = listQuery(connection.prepareStatement(sql));\n\n\t\treturn searchResults;\n\t}",
"public List<Team> getAllOrdered() {\n TeamDB tdb = new TeamDB();\n return tdb.getAllOrdered();\n }",
"public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public List<Player> formatPlayers(ResultSet rs) {\n\t\tList<Player> pList = new ArrayList<Player>();\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlayer p = new Player(rs.getString(3), rs.getString(4), rs.getDate(5), rs.getInt(6));\n\t\t\t\tpList.add(p);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn pList;\n\t}",
"public List<Player> getNearbyPlayers(Point position, Entity ignore, float volume) {\n \t\tint range = this.getRange();\n \t\tif (volume > 1.0f) {\n \t\t\t// Multiply range for different volumes\n \t\t\trange *= volume;\n \t\t}\n \t\treturn position.getWorld().getNearbyPlayers(position, ignore, range);\n \t}",
"public List<SkungeePlayer> getPlayers(SkungeeServer server, String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\tpacket.setServers(server);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public Set<Character> players(){\r\n\t\tSet<Character> players = new HashSet<Character>();\r\n\t\tfor(Character character: characters()){\r\n\t\t\tif(character.isPlayer())\r\n\t\t\t\tplayers.add(character);\r\n\t\t}\r\n\t\treturn players;\r\n\t}",
"public Set<GamePiece> getPlayerPieces() \n\t{\n\t\tSet<GamePiece> pieces = new HashSet<GamePiece>();\n\t\tfor(GamePiece piece: playerPieces.values())\n\t\t{\n\t\t\tpieces.add(piece);\n\t\t}\n\t\treturn pieces;\n\t}",
"private Set<SteamUserNode> bindGames(Set<SteamUserNode> players) {\n\t\tString dest = \"http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?\" +\r\n\t\t\t\t\"key=%s&steamid=%d&include_appinfo=1&include_played_free_games=1&format=json\";\r\n\t\tString response = \"\";\r\n\t\tfor (SteamUserNode p : players) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.apiCalls += 1;\r\n\t\t\t\tString query = String.format(dest, key, p.getId());\r\n\t\t\t\tURL url = new URL(query);\r\n\t\t\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\r\n\t\t\t\tcon.setRequestMethod(\"GET\");\r\n\t\t\t\tcon.setConnectTimeout(3000);\r\n\t\t\t\tcon.connect();\r\n\t\t\t\tint respCode = con.getResponseCode();\r\n\t\t\t\tif (respCode != 200)\r\n\t\t\t\t\tSystem.out.println(\"Status code: \" + respCode + \"\\nFor request: \" + query);\r\n\t\t\t\telse {\r\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n\t\t\t\t\tresponse = reader.lines().collect(Collectors.joining());\r\n\t\t\t\t\tint numGames = new JSONObject(response).getJSONObject(\"response\").getInt(\"game_count\");\r\n\t\t\t\t\tif (numGames > 0) {\r\n\t\t\t\t\t\tJSONArray ownedGames = new JSONObject(response).getJSONObject(\"response\").getJSONArray(\"games\");\r\n\t\t\t\t\t\tfor (int i=0;i<ownedGames.length();++i) {\r\n\t\t\t\t\t\t\tJSONObject g = ownedGames.getJSONObject(i);\r\n\t\t\t\t\t\t\tlong appId = g.getLong(\"appid\");\r\n\t\t\t\t\t\t\tString name = g.getString(\"name\");\r\n\t\t\t\t\t\t\tString logoHash = g.getString(\"img_logo_url\");\r\n\t\t\t\t\t\t\tint playForever = g.getInt(\"playtime_forever\");\r\n\t\t\t\t\t\t\tint play2Wks = g.has(\"playtime_2weeks\") ? g.getInt(\"playtime_2weeks\") : 0;\r\n\t\t\t\t\t\t\tPlayedGame game = new PlayedGame(appId, name, logoHash, play2Wks, playForever);\r\n\t\t\t\t\t\t\tp.addPlayedGame(game);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (!knownGames.contains(game)) {\r\n\t\t\t\t\t\t\t\tknownGames.add((SteamGame) game);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (localWrite) {\r\n\t\t\t\t\t\t\tjsonWriter.writeOwnedGames(response, p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (JSONException jse) {\r\n\t\t\t\tSystem.err.println(jse.getMessage());\r\n\t\t\t\tSystem.out.println(response);\r\n\t\t\t} catch (MalformedURLException mue) {\r\n\t\t\t\t//once again, this better not happen...\r\n\t\t\t\tSystem.err.println(mue.getMessage());\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.println(ioe.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn players;\r\n\t}",
"void getMarketOrders();",
"@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }",
"public List<MemberData> findPastPlayers(Long playerId) {\r\n\t\tPlayer master = lookupPlayer(playerId);\r\n\t\tSet<Member> memberSet = new HashSet<Member>();\r\n\t\tfor (Player thisPlayer : playerDao.findByMember(master.getMember())) {\r\n\t\t\tfor (Player otherPlayer : thisPlayer.getGame().getPlayers()) {\r\n\t\t\t\tmemberSet.add(otherPlayer.getMember());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// remove all players currently invited\r\n\t\tfor (Invite i : master.getGame().getInvites()) {\r\n\t\t\tmemberSet.remove(i.getMember());\r\n\t\t}\r\n\t\t// remove self!\r\n\t\tmemberSet.remove(master.getMember());\r\n\t\t\r\n\t\t// sort by first name\r\n\t\tList<Member> sortedMembers = new ArrayList<Member>(memberSet);\r\n\t\tCollections.sort(sortedMembers, new Comparator<Member>() {\r\n\t\t public int compare(Member o1, Member o2) {\r\n\t\t return o1.getName().compareTo(o2.getName());\r\n\t\t }});\r\n\t\t\r\n\t\tArrayList<MemberData> membersData = new ArrayList<MemberData>();\r\n\t\tfor (Member m : sortedMembers) {\r\n\t\t\tmembersData.add(new MemberData(m));\r\n\t\t}\r\n\t\treturn membersData;\r\n\t}",
"public ArrayList<Player> getLeaderboard() {\n ArrayList<Player> result = new ArrayList(players);\n for (Player player : players) {\n Collections.sort(result);\n Collections.reverse(result);\n }\n return result;\n}",
"public static ArrayList<Player> getPlayerAry(){\n\t\treturn players;\n\t}",
"private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }",
"private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }",
"private void displayPlayers() {\n\t\tfor (Player p: game.getPlayers()) {\n\t\t\tview.updateDisplay(p.getId(), p.getDeck().getNumberOfCards());\n\t\t}\n\t}",
"public List<SkungeePlayer> getPlayers(SkungeeServer... servers) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setServers(servers);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public synchronized List<Card> getCardsInPlay(){\n cardsInPlay.clear();\r\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n if(player.getCardsInHand().isEmpty()){\r\n continue;\r\n }\r\n for(Card card: player.getCardsInHand()){\r\n cardsInPlay.add(card);\r\n }\r\n }\r\n return cardsInPlay;\r\n }"
] |
[
"0.7110502",
"0.6842064",
"0.6805894",
"0.67975706",
"0.6690115",
"0.6683628",
"0.663076",
"0.6538126",
"0.6502832",
"0.649249",
"0.64382225",
"0.6425519",
"0.64189506",
"0.6380346",
"0.63624007",
"0.63498175",
"0.63409895",
"0.633687",
"0.631243",
"0.62884086",
"0.62704265",
"0.626681",
"0.62321216",
"0.62164843",
"0.6190207",
"0.6186551",
"0.6180012",
"0.6180012",
"0.6149295",
"0.61378884",
"0.6125165",
"0.6124533",
"0.6111548",
"0.61105883",
"0.61099",
"0.6101869",
"0.60879666",
"0.60854214",
"0.6076995",
"0.60719436",
"0.60705334",
"0.60655534",
"0.60655534",
"0.60374504",
"0.6034342",
"0.5991933",
"0.59746546",
"0.59732515",
"0.5949179",
"0.5948976",
"0.5926219",
"0.5902962",
"0.58930135",
"0.5883629",
"0.5880113",
"0.5863703",
"0.58585304",
"0.5841168",
"0.583442",
"0.5794721",
"0.5776154",
"0.57741624",
"0.57719016",
"0.57613456",
"0.57541215",
"0.57369673",
"0.57250303",
"0.57231027",
"0.5718414",
"0.5697745",
"0.56851774",
"0.5682713",
"0.567845",
"0.56768394",
"0.56678396",
"0.56591403",
"0.56564206",
"0.56327915",
"0.56312907",
"0.56123644",
"0.5594123",
"0.5590383",
"0.5587282",
"0.55772066",
"0.5568633",
"0.5567827",
"0.5563658",
"0.55624807",
"0.55596703",
"0.5553953",
"0.55440754",
"0.5536967",
"0.5531599",
"0.55252266",
"0.55213803",
"0.55133873",
"0.551236",
"0.5510126",
"0.550978",
"0.5505345"
] |
0.8027012
|
0
|
Returns all the football players in the market that play for a given team
|
public List <FootballPlayer> getAllPlayersByTeamName(String name) {
return market.getAllPlayersByTeamName(name);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}",
"public static List<Player> getRankedPlayersInTeam(List<Player> players, Player.PlayerTeam team) {\n List<Player> choosenTeam = players.stream()\n .filter(player -> player.getTeam() == team)\n .collect(Collectors.toList());\n\n\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n choosenTeam.sort(playerComparator);\n return choosenTeam;\n\n }",
"public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }",
"public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}",
"public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n }\n }",
"private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }",
"List<Team> findAll();",
"public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}",
"List<Player> findAllPlayers();",
"public List<PlayerWon> findByTeamId(int teamId);",
"public List<Team> getAllOrdered() {\n TeamDB tdb = new TeamDB();\n return tdb.getAllOrdered();\n }",
"List<Player> getPlayers();",
"@Override\n\tpublic List<TeamInfo> findAll() {\n\t\treturn repository.findAll();\n\t}",
"public ArrayList<CollegeFootballTeam> getTeamList();",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"public List<Team> getAll() {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAll();\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }",
"public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"List<Team> findTeamsByUserId(UserId userId);",
"public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n TeamsPojo pojo = objectMapper.readValue(response.getEntity().getContent(),TeamsPojo.class);\n List<String> willBeReturned = new ArrayList<>();\n List<Teams> teams = pojo.getTeams();\n for (int i =0 ; i<teams.size();i++){\n willBeReturned.add(teams.get(i).getName());\n }\n\n\n return willBeReturned;\n }",
"@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}",
"public ArrayList<CollegeFootballTeam> rankTeams();",
"public BasketballPlayer getPlayer(String whichTeam, int player){\n\t\tif(whichTeam.equals(_homeTeam.getTeamName())){\n\t\t\treturn _homeTeam.getPlayer(player);\n\t\t}\n\t\telse{\n\t\t\treturn _awayTeam.getPlayer(player);\n\t\t}\n\t}",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"public <T extends Card> Stream<T> getPlayerCards(int team, Function<Player, List<T>> queryFunc) {\n if (team == 0) {\n return Stream.concat(queryFunc.apply(this.getPlayer(1)).stream(), queryFunc.apply(this.getPlayer(-1)).stream());\n } else if (team > 0) {\n return queryFunc.apply(this.getPlayer(1)).stream();\n } else {\n return queryFunc.apply(this.getPlayer(-1)).stream();\n }\n }",
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"public ResultSet getPlayersByTeamId(int teamId) throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString playersByTeamRecords_sql = \"SELECT * FROM \" + player_table + \" WHERE idTeam='\" + teamId + \"'\";\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(playersByTeamRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"public static List<Team> getTeams() {\n return find().all();\n }",
"@WebMethod public List<Team> getAllTeams();",
"public List <FootballPlayer> getAllPlayersByPosition(String position) {\n\t\treturn market.getAllPlayersByPosition(position);\n\t}",
"public List<Team> getAllTeams() { \r\n\t\t\tif(teams==null)\t{\r\n\t\t\t\tteams=dao.listTeams(); //LIST\t\t\t\r\n\t\t\tfor(Team atemp:teams){\t\t\tthis.mapTeam.put(atemp.getTeam(), atemp);\t\t}\r\n\t\t\t\t}\r\n\t\t\treturn teams;\r\n\t\t}",
"public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }",
"public <T extends Card> Stream<T> getPlayerCard(int team, Function<Player, Optional<T>> queryFunc) {\n List<T> ret = new ArrayList<>();\n if (team >= 0) {\n queryFunc.apply(this.getPlayer(1)).ifPresent(ret::add);\n }\n if (team <= 0) {\n queryFunc.apply(this.getPlayer(-1)).ifPresent(ret::add);\n }\n return ret.stream();\n }",
"public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}",
"public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}",
"public Set<Player> getAllPlayers(Term term, PaginationFilter pagination);",
"@GET\n @Path(\"Current/Team\")\n public Response findTeamsByCurrentUser() {\n Response r = Response.noContent().build();\n Collection<Team> teamsToReturn = new ArrayList<>();\n User currentUser = userFacade.getCurrentUser();\n final List<Player> players = currentUser.getPlayers();\n for (Player p : players) {\n teamsToReturn.add(p.getTeam());\n }\n if (!teamsToReturn.isEmpty()) {\n r = Response.ok().entity(teamsToReturn).build();\n }\n\n return r;\n }",
"private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}",
"public void calculatePausedPlayers(Tournament tournament, Round round) {\r\n\t\t// this is the number of players in one match\r\n\t\tint numberOfMatchPlayers = tournament.getTeamSize() * 2; // home and away team\r\n\t\t// this is the maximum number of players in one round\r\n\t\tint maxNumberOfActivePlayers = tournament.getCourts() * numberOfMatchPlayers;\r\n\r\n\t\twhile (round.getPlayers().size() > maxNumberOfActivePlayers) {\r\n\t\t\taddPausedPlayer(tournament.getRounds(), round);\r\n\t\t}\r\n\r\n\t\twhile ((round.getPlayers().size() % numberOfMatchPlayers) != 0) {\r\n\t\t\taddPausedPlayer(tournament.getRounds(), round);\r\n\t\t}\r\n\t}",
"@Override\n // report number of players on a given team (or all players, if null)\n\tpublic int numPlayers(String teamName) {\n\n int numPlayers = 0;\n\n\n if (teamName == null) {\n\n for (int i = 0; i < (stats.keySet()).toArray().length; i++) {\n\n numPlayers++;\n\n }\n\n return numPlayers;\n\n }\n\n else {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n for (SoccerPlayer sp: soccerPlayers) {\n\n if (sp.getTeamName().equals(teamName)){\n\n numPlayers++;\n }\n }\n\n return numPlayers;\n\n }\n\n\n\t}",
"public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }",
"public Set<String> getPlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayers())\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}",
"public ArrayList<CollegeFootballTeam> getTeamList()\r\n\t{\r\n\t\treturn teams;\r\n\t}",
"@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}",
"@Override\r\n\tpublic ArrayList<TeamPO> getAllTeams() {\n\t\treturn teams.getAllTeams() ;\r\n\t}",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}",
"public int getKillsByTeam(Team team) {\n\t\tint kills = 0;\n\t\tfor (Player player : team.getPlayers()) {\n\t\t\tkills += getKillsOfPlayer(player);\n\t\t}\n\t\treturn kills;\n\t}",
"TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);",
"@GET\n @Path(\"Current/Team/{teamId}\")\n public Response getTeamByCurrentUser(@PathParam(\"teamId\") Long teamId) {\n Response r = Response.noContent().build();\n User currentUser = userFacade.getCurrentUser();\n final Collection<Game> playedGames = gameFacade.findRegisteredGames(currentUser.getId());\n for (Game g : playedGames) {\n Collection<Team> teams = g.getTeams();\n for (Team t : teams) {\n if (teamId.equals(t.getId())) {\n for (Player p : t.getPlayers()) {\n if (p.getUserId().equals(currentUser.getId())) {\n r = Response.ok().entity(t).build();\n }\n }\n }\n }\n }\n return r;\n }",
"@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}",
"public Hashtable<Integer, Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}",
"public ArrayList<CollegeFootballTeam> rankTeams()\r\n\t{\r\n\t\tArrayList<CollegeFootballTeam> rankedTeams = new ArrayList<>();\r\n\t\t\r\n\t\t// Calls the selection sort method, which ranks the teams from lower to higher scores based on the sum of their votes.\r\n\t\t// The teams are placed into a new ArrayList. \r\n\t\trankedTeams = selectionSort(teams);\r\n\t\t\r\n\t\treturn rankedTeams;\r\n\t}",
"List<Player> listPlayers();",
"public List<PlayerItem> getAllPlayerItemById(Player player);",
"@Override\n public List<Player> getPlayers() {\n return players;\n }",
"ArrayList<Player> getAllPlayer();",
"public static void setTeam(UserTeam team) {\n\t\tgame.setTmpTeam(team);\n\t\tint i=0;\n\t\tfor (Iterator<FootballPlayer> iterator = team.getPlayers().values().iterator(); iterator\n\t\t\t\t.hasNext();) {\n\t\t\tFootballPlayer player = iterator.next();\n\t\t\tnamesLabels.get(i).setText(game.getLastName(player.getName()));\n\t\t\tshirtLabels.get(i).setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[i].setText(\"X\");\n\t\t\ti++;\n\t\t}\n\t}",
"public PageResult<Team> getAll() {\n\t\t\n\t\treturn null;\n\t}",
"public Set<Player> getPlayers() {\n return players;\n }",
"public ArrayList<Team> getList(){\n\t\treturn this.teams;\n\t}",
"public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }",
"public String[] getAvailableTeams() {\n\n int team1 = 0;\n int team2 = 0;\n if (activePlayers > 0) {\n for (int i = 0; i < activePlayers; i++) {\n if (players[i].getTeam() == teams[0]) {\n team1++;\n continue;\n }\n team2++;\n }\n\n String[] team = new String[2];\n if ((activePlayers == numMaxPlayers - 1) && (team1 == 0 || team2 == 0)) {\n if (team1 == 0) {\n team[0] = teams[0].toString();\n return team;\n }\n team[0] = teams[1].toString();\n return team;\n }\n }\n return new String[]{teams[0].toString(), teams[1].toString(), null};\n }",
"private void sortMarket(String team, String position) {\n\t\t\n\t\tArrayList<FootballPlayer> sortedPlayers = new ArrayList<FootballPlayer>();\n\t\tfor(int i = 0; i< players.length; i++){\n\t\t\tif((team.equals(players[i].getTeamName()) || team.equals(\"All teams\")) && (position.equals(players[i].getPosition().getPos()) || position.equals(\"All positions\"))){\n\t\t\t\tsortedPlayers.add(players[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tObject [][] data = new Object[sortedPlayers.size()][5];\n\t\n\t\tfor(int i = 0; i<sortedPlayers.size(); i++) {\n\t\t\t\n\t\t\t\tdata[i][0] = game.getLastName(sortedPlayers.get(i).getName());\n\t\t\t\tdata[i][1] = sortedPlayers.get(i).getPosition();\n\t\t\t\tdata[i][2] = sortedPlayers.get(i).getTeamName();\n\t\t\t\tdata[i][3] = sortedPlayers.get(i).getScore();\n\t\t\t\tdata[i][4] = sortedPlayers.get(i).getMarketValue();\n\t\t\t\n\t\t}\n\t\tString [] columnNames = {\"Name\", \"Position\", \"Team\", \"Points\", \"Cost\"};\n\t\tDefaultTableModel tableModel = new DefaultTableModel(data,columnNames);\n\t\ttableMarket.setModel(tableModel);\n\t}",
"public static ArrayList<Team> findTeamProject() throws DALException {\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tArrayList<Team> listTeams = new ArrayList<>();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(LIST_TEAMS_PROJECTS);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\t// For each team\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTeam team = new Team();\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"Teams_IdTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"Teams_name\"));\n\t\t\t\t\tteam.setIdProject(rs.getInt(\"idProjects\"));\n\t\t\t\t\tteam.setNameProject(rs.getString(\"nameProject\"));\n\t\t\t\t\tlistTeams.add(team);\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\n\t\t\t\tthrow new DALException(\"Problem - listTeamHisProject - TeamDAO - Request : \"+ pstmt+ \" \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn listTeams;\n\n\t\t}",
"Set<String> getPlayers();",
"public List<Hero> getTeam() {\r\n return team;\r\n }",
"public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public void placeBets(){\n System.out.println();\n System.out.println(\"Let's place your bet!\");\n System.out.println();\n for(Player player: players){\n player.placeBet(minBet, maxBet);\n }\n System.out.println();\n }",
"public ArrayList<Team> getTeamList(){\n\t\treturn this.teamList;\n\t}",
"@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }",
"public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}",
"Collection<User> players();",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"private Set<SteamUserNode> bindGames(Set<SteamUserNode> players) {\n\t\tString dest = \"http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?\" +\r\n\t\t\t\t\"key=%s&steamid=%d&include_appinfo=1&include_played_free_games=1&format=json\";\r\n\t\tString response = \"\";\r\n\t\tfor (SteamUserNode p : players) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.apiCalls += 1;\r\n\t\t\t\tString query = String.format(dest, key, p.getId());\r\n\t\t\t\tURL url = new URL(query);\r\n\t\t\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\r\n\t\t\t\tcon.setRequestMethod(\"GET\");\r\n\t\t\t\tcon.setConnectTimeout(3000);\r\n\t\t\t\tcon.connect();\r\n\t\t\t\tint respCode = con.getResponseCode();\r\n\t\t\t\tif (respCode != 200)\r\n\t\t\t\t\tSystem.out.println(\"Status code: \" + respCode + \"\\nFor request: \" + query);\r\n\t\t\t\telse {\r\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n\t\t\t\t\tresponse = reader.lines().collect(Collectors.joining());\r\n\t\t\t\t\tint numGames = new JSONObject(response).getJSONObject(\"response\").getInt(\"game_count\");\r\n\t\t\t\t\tif (numGames > 0) {\r\n\t\t\t\t\t\tJSONArray ownedGames = new JSONObject(response).getJSONObject(\"response\").getJSONArray(\"games\");\r\n\t\t\t\t\t\tfor (int i=0;i<ownedGames.length();++i) {\r\n\t\t\t\t\t\t\tJSONObject g = ownedGames.getJSONObject(i);\r\n\t\t\t\t\t\t\tlong appId = g.getLong(\"appid\");\r\n\t\t\t\t\t\t\tString name = g.getString(\"name\");\r\n\t\t\t\t\t\t\tString logoHash = g.getString(\"img_logo_url\");\r\n\t\t\t\t\t\t\tint playForever = g.getInt(\"playtime_forever\");\r\n\t\t\t\t\t\t\tint play2Wks = g.has(\"playtime_2weeks\") ? g.getInt(\"playtime_2weeks\") : 0;\r\n\t\t\t\t\t\t\tPlayedGame game = new PlayedGame(appId, name, logoHash, play2Wks, playForever);\r\n\t\t\t\t\t\t\tp.addPlayedGame(game);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (!knownGames.contains(game)) {\r\n\t\t\t\t\t\t\t\tknownGames.add((SteamGame) game);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (localWrite) {\r\n\t\t\t\t\t\t\tjsonWriter.writeOwnedGames(response, p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (JSONException jse) {\r\n\t\t\t\tSystem.err.println(jse.getMessage());\r\n\t\t\t\tSystem.out.println(response);\r\n\t\t\t} catch (MalformedURLException mue) {\r\n\t\t\t\t//once again, this better not happen...\r\n\t\t\t\tSystem.err.println(mue.getMessage());\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.println(ioe.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn players;\r\n\t}",
"public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}",
"public List<Player> getAttackedPlayers() {\r\n\t\tArrayList<Player> output = new ArrayList<Player>();\r\n\t\tfor(Player p : getOtherPlayers()) {\r\n\t\t\tif(!(p.deck.hand.contains(new Moat()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Lighthouse()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Champion()) \r\n\t\t\t\t\t|| p.getPlayerNum() == getWhoseTurn())) {\r\n\t\t\t\toutput.add(p);\r\n\t\t\t}\r\n\t\t\tArrayList<Card> reactions = new ArrayList<Card>();\r\n\t\t\tfor(Card c : p.deck.hand) {\r\n\t\t\t\tif(c.isReaction()) reactions.add(c);\r\n\t\t\t}\r\n\t\t\tfor(Card c : reactions) {\r\n\t\t\t\tc.reactAttack();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Add Player---\");\r\n\t\ttheTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"--Top 20 Free Agents--\");\r\n\t\ttheLeague.getFreeAgents(20);\r\n\r\n\t\tint playerChoice;\r\n\t\tdo {\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\" 0 - Filter Free Agents by Position\");\r\n\t\t\t\tSystem.out.println(\" -1 - View All Free Agents\");\r\n\t\t\t\tSystem.out.println(\"1-\" + theLeague.playerList().size() + \" - Select a Player\");\r\n\t\t\t\tplayerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard);\r\n\t\t\t\t\r\n\t\t\t\tif (playerChoice == -1) {\r\n\t\t\t\t\ttheLeague.getFreeAgents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (playerChoice == 0) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Which position would you like to view?\");\r\n\t\t\t\t\tSystem.out.println(\"1 - QB\");\r\n\t\t\t\t\tSystem.out.println(\"2 - WR\");\r\n\t\t\t\t\tSystem.out.println(\"3 - RB\");\r\n\t\t\t\t\tSystem.out.println(\"4 - TE\");\r\n\t\t\t\t\tswitch (Input.validInt(1, 4, keyboard)) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent QBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"QB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent WRs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"WR\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent RBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"RB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent TEs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"TE\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} while (playerChoice < 1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (theLeague.playerList().get(playerChoice - 1).getIsOwned()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + \" is not available\");\r\n\t\t\t}\r\n\t\t} while (theLeague.playerList().get(playerChoice - 1).getIsOwned());\r\n\r\n\t\tPlayer thePlayer = theLeague.playerList().get(playerChoice - 1);\r\n\t\tthePlayer.setIsOwned();\r\n\t\ttheTeam.getRoster().add(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***\" + theTeam.getManagerName() + \" has added \" + thePlayer.playerToString() + \"***\");\r\n\t}",
"public Player[] getPlayers() {\n return this.players;\n }",
"public Player[] getPlayers() {\n return this.players;\n }",
"public Set<Player> getParticipants() { //TODO: not sure the validation needs to happend here\n\t\t// Run through the results and make sure all players have been pushed into the participants set.\n\t\tfor ( Result result : results ) {\n\t\t\tparticipants.add(result.getWinner());\n\t\t\tparticipants.add(result.getLoser());\n\t\t}\n\n\t\treturn participants;\n\t}",
"public Set<String> getOnlinePlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayersWhereOnline(true))\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}",
"List<Team> getTeamsFromApi(List<Long> teamIds);",
"public Player[] getPlayers() {\r\n return players;\r\n }",
"public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}",
"public List<Team> getListOfTeams(){\n \tMap<String, Object> myMap = new HashMap<String, Object>();\n\t\tJSONObject jsonobj = null;\n\t\tList<Team> team = new ArrayList<>();\n\t\tTeamsJsonReader reader = new TeamsJsonReader();\n\t\tJSONParser parser = new JSONParser();\n\t\tObject obj = null;\n\n\t\ttry {\n\t\t\tobj = parser.parse(new FileReader(\"src/main/resources/db.json\"));\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\n\t\t\tJSONArray jsonarr = (JSONArray) jsonObject.get(\"teams\");\n\t\t\tfor (int size = 0; size < jsonarr.size(); size++) {\n\t\t\t\tList<Individual> individualList = new ArrayList<>();\n\t\t\t\tjsonobj = (JSONObject) jsonarr.get(size);\n\t\t\t\tmyMap.put(\"name\", jsonobj.get(\"name\"));\n\t\t\t\tmyMap.put(\"id\", ((Long) jsonobj.get(\"id\")).intValue());\n\t\t\t\tJSONArray memberArray = (JSONArray) jsonobj.get(\"members\");\n\n\t\t\t\tfor (int index = 0; index < memberArray.size(); index++) {\n\n\t\t\t\t\tindividualList.add(reader.getIndividualById(((Long) memberArray.get(index)).intValue()));\n\n\t\t\t\t}\n\t\t\t\tmyMap.put(\"members\", individualList);\n\t\t\t\t\n\t\t\t\tteam.add(new Team(myMap));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn team;\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public Collection<Player> getPlayersChunk() {\n var chunk = new Chunk<Player>();\n var playersChunk = chunk.get(this.players, ALL_PLAYERS_CHUNK_SIZE, allPlayersChunkIndex);\n\n // up to ALL_PLAYERS_CHUNK_SIZE with empty players\n // to have an even view\n var startIndex = playersChunk.size();\n for (var i = startIndex; i < ALL_PLAYERS_CHUNK_SIZE; i++) {\n playersChunk.add(new Player(new Person()));\n }\n\n return playersChunk;\n }",
"@Override\n\tpublic List<ProjectTeamBean> listProjectTeam() {\n\t\treturn null;\n\t}",
"public synchronized List<Card> getCardsInPlay(){\n cardsInPlay.clear();\r\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n if(player.getCardsInHand().isEmpty()){\r\n continue;\r\n }\r\n for(Card card: player.getCardsInHand()){\r\n cardsInPlay.add(card);\r\n }\r\n }\r\n return cardsInPlay;\r\n }",
"public Player[] getPlayers() {\n return players;\n }",
"public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public static Player.PlayerTeam getWinningTeam(List<Player> players) {\n int sumForPaper = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.PAPER)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n int sumForRock = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.ROCK)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n int sumForScissors = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.SCISSORS)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n Map<Player.PlayerTeam, Integer> finalList = new HashMap<>();\n finalList.put(Player.PlayerTeam.PAPER, sumForPaper);\n finalList.put(Player.PlayerTeam.ROCK, sumForRock);\n finalList.put(Player.PlayerTeam.SCISSORS, sumForScissors);\n\n int max = Collections.max(finalList.values());\n\n List<Player.PlayerTeam> collect = finalList.entrySet().stream()\n .filter(entry -> entry.getValue() == max)\n .map(entry -> entry.getKey())\n .collect(Collectors.toList());\n\n Player.PlayerTeam winningTeam = collect.get(0);\n\n return winningTeam;\n\n }",
"@Test\r\n\tpublic void findAllGames() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: findAllGames \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tList<Game> response = null;\r\n\t\tTswacct tswacct = null;\r\n\t\tresponse = service.findAllGames4tsw(tswacct, startResult, maxRows);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: findAllGames\r\n\t}",
"public EntityList<Player> getPlayers() {\n\t\treturn players;\n\t}",
"private void computePresentPleyers() {\n\t\tthis.presentPlayerKeys = new ArrayList<>();\n\t\tList<ChesspairingPlayer> players = mTournament.getPlayers();\n\t\tfor (ChesspairingPlayer player : players) {\n\t\t\tif (player.isPresent()) {\n\t\t\t\tthis.presentPlayerKeys.add(player.getPlayerKey());\n\t\t\t}\n\t\t}\n\t}",
"@RequestMapping(method=RequestMethod.GET)\n public ResponseEntity<List<TeamDTO>> findAll() {\n List<Team> list = this.teamService.findAll();\n List<TeamDTO> listDto = list.stream().map(obj -> new TeamDTO(obj)).collect(Collectors.toList());\n\n return ResponseEntity.ok().body(listDto);\n }",
"public Player getTeamMate(){\n\t\tif(team == null) return null;\n\t\tCollection<Player> players = team.getPlayers();\n\t\tfor(Player p : players){\n\t\t\tif(!p.equals(this))return p; \n\t\t}\n\t\treturn null;\n\t}"
] |
[
"0.71928227",
"0.6654596",
"0.6476931",
"0.6351377",
"0.61279553",
"0.6042278",
"0.6040738",
"0.60400367",
"0.60367066",
"0.6033229",
"0.6031332",
"0.6002824",
"0.59985685",
"0.59782016",
"0.59779036",
"0.59677035",
"0.59580296",
"0.59187675",
"0.5911709",
"0.59102756",
"0.5864596",
"0.58574814",
"0.5856496",
"0.5851295",
"0.58497375",
"0.5849614",
"0.5833544",
"0.58269876",
"0.5824663",
"0.58196354",
"0.5795058",
"0.57878137",
"0.57854164",
"0.57664865",
"0.57444954",
"0.573461",
"0.57265675",
"0.5691749",
"0.5675816",
"0.56590885",
"0.5651429",
"0.565002",
"0.5648251",
"0.56451404",
"0.5642932",
"0.56247634",
"0.56241184",
"0.5606391",
"0.55921066",
"0.55891377",
"0.55731803",
"0.5564978",
"0.55606115",
"0.5560365",
"0.555689",
"0.5547831",
"0.55464655",
"0.5543697",
"0.55415225",
"0.55252326",
"0.5524713",
"0.5514637",
"0.54922825",
"0.54878324",
"0.5483146",
"0.544839",
"0.5430706",
"0.5420933",
"0.54187095",
"0.5415354",
"0.5414439",
"0.5410656",
"0.5410622",
"0.54088634",
"0.5408049",
"0.54021573",
"0.5400736",
"0.5399516",
"0.5383692",
"0.5383692",
"0.53822446",
"0.5381236",
"0.53811467",
"0.5379718",
"0.5376486",
"0.53729755",
"0.5372094",
"0.5372094",
"0.5370826",
"0.53699195",
"0.5359643",
"0.5352964",
"0.5344135",
"0.53334177",
"0.53300196",
"0.53236705",
"0.5321485",
"0.5320987",
"0.53135896",
"0.53089225"
] |
0.679196
|
1
|
Returns all the football players in the market that play a given position
|
public List <FootballPlayer> getAllPlayersByPosition(String position) {
return market.getAllPlayersByPosition(position);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}",
"@Override\n\tpublic List<Player> getPlayersByPosition(String position) throws BusinessException {\n\t\tList<Player> playersByPosition = new ArrayList<>();\n\t\ttry {\n\t\t\tConnection connection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select playerid, playername, teamid, age, position, dob from \\\"Test\\\".player where position = ?\";\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setString(1, position);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tPlayer player = new Player();\n\t\t\t\tplayer.setPlayerid(resultSet.getInt(\"playerid\"));\n\t\t\t\tplayer.setPlayername(resultSet.getString(\"playername\"));\n\t\t\t\tplayer.setTeamid(resultSet.getInt(\"teamid\"));\n\t\t\t\tplayer.setAge(resultSet.getInt(\"age\"));\n\t\t\t\tplayer.setPosition(\"position\");\n\t\t\t\tplayer.setDob(resultSet.getDate(\"dob\"));\n\t\t\t\t\n\t\t\t\tplayersByPosition.add(player);\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Internal Error Ocurred\");\n\t\t}\n\t\t\n\t\treturn playersByPosition;\n\t}",
"public List<Player> getNearbyPlayers(Point position, Entity ignore, float volume) {\n \t\tint range = this.getRange();\n \t\tif (volume > 1.0f) {\n \t\t\t// Multiply range for different volumes\n \t\t\trange *= volume;\n \t\t}\n \t\treturn position.getWorld().getNearbyPlayers(position, ignore, range);\n \t}",
"public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}",
"List<Player> getPlayers();",
"List<Player> findAllPlayers();",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"public List <FootballPlayer> getAllPlayersByTeamName(String name) {\n\t\treturn market.getAllPlayersByTeamName(name);\n\t}",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }",
"public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}",
"public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}",
"public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}",
"public List<PlayerItem> getAllPlayerItemById(Player player);",
"public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }",
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"List<Player> listPlayers();",
"public static List<String> getNearbyPlayers(Location loc, double radius) {\n\t\tList<String> playerNames = new ArrayList<String>();\n\t\tfor (Player player : Bukkit.getOnlinePlayers()) {\n\t\t\tif (player.getLocation().getWorld().equals(loc.getWorld())) {\n\t\t\t\tif (loc.distanceSquared(player.getLocation()) < Math.pow(radius, 2)) {\n\t\t\t\t\tplayerNames.add(player.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn playerNames;\n\t}",
"public Set<Player> getAllPlayers(Term term, PaginationFilter pagination);",
"private void sortMarket(String team, String position) {\n\t\t\n\t\tArrayList<FootballPlayer> sortedPlayers = new ArrayList<FootballPlayer>();\n\t\tfor(int i = 0; i< players.length; i++){\n\t\t\tif((team.equals(players[i].getTeamName()) || team.equals(\"All teams\")) && (position.equals(players[i].getPosition().getPos()) || position.equals(\"All positions\"))){\n\t\t\t\tsortedPlayers.add(players[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tObject [][] data = new Object[sortedPlayers.size()][5];\n\t\n\t\tfor(int i = 0; i<sortedPlayers.size(); i++) {\n\t\t\t\n\t\t\t\tdata[i][0] = game.getLastName(sortedPlayers.get(i).getName());\n\t\t\t\tdata[i][1] = sortedPlayers.get(i).getPosition();\n\t\t\t\tdata[i][2] = sortedPlayers.get(i).getTeamName();\n\t\t\t\tdata[i][3] = sortedPlayers.get(i).getScore();\n\t\t\t\tdata[i][4] = sortedPlayers.get(i).getMarketValue();\n\t\t\t\n\t\t}\n\t\tString [] columnNames = {\"Name\", \"Position\", \"Team\", \"Points\", \"Cost\"};\n\t\tDefaultTableModel tableModel = new DefaultTableModel(data,columnNames);\n\t\ttableMarket.setModel(tableModel);\n\t}",
"public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }",
"private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}",
"private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}",
"public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }",
"ArrayList<Player> getAllPlayer();",
"public List<Player> getAllOrdered() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAllOrdered();\n }",
"public Collection<Player> getPlayersChunk() {\n var chunk = new Chunk<Player>();\n var playersChunk = chunk.get(this.players, ALL_PLAYERS_CHUNK_SIZE, allPlayersChunkIndex);\n\n // up to ALL_PLAYERS_CHUNK_SIZE with empty players\n // to have an even view\n var startIndex = playersChunk.size();\n for (var i = startIndex; i < ALL_PLAYERS_CHUNK_SIZE; i++) {\n playersChunk.add(new Player(new Person()));\n }\n\n return playersChunk;\n }",
"@Override\n public List<Player> getPlayers() {\n return players;\n }",
"public List<PlayerItem> getAll();",
"public Player[] getPlayers() {\n return this.players;\n }",
"public Player[] getPlayers() {\n return this.players;\n }",
"public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}",
"public Set<Player> getPlayers() {\n return players;\n }",
"public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}",
"public Player[] getPlayers() {\r\n return players;\r\n }",
"public Player[] getPlayers() {\n return players;\n }",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public EntityList<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public void placeBets(){\n System.out.println();\n System.out.println(\"Let's place your bet!\");\n System.out.println();\n for(Player player: players){\n player.placeBet(minBet, maxBet);\n }\n System.out.println();\n }",
"public static List<Player> getRankedPlayersInTeam(List<Player> players, Player.PlayerTeam team) {\n List<Player> choosenTeam = players.stream()\n .filter(player -> player.getTeam() == team)\n .collect(Collectors.toList());\n\n\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n choosenTeam.sort(playerComparator);\n return choosenTeam;\n\n }",
"public static ArrayList<EntityPlayer> getAll() {\r\n\t\ttry {\r\n\t\t\tArrayList<EntityPlayer> players = new ArrayList<EntityPlayer>();\r\n\t\t\t\r\n\t\t\tfor (EntityPlayer player : mc.world.playerEntities) {\r\n\t\t\t\tif (!player.isEntityEqual(mc.player)) {\r\n\t\t\t\t\tplayers.add(player);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn players;\r\n\t\t} catch (NullPointerException ignored) {\r\n\t\t\treturn new ArrayList<EntityPlayer>();\r\n\t\t}\r\n\t}",
"@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }",
"public Set<String> getPlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayers())\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}",
"public Set<GamePiece> getPlayerPieces() \n\t{\n\t\tSet<GamePiece> pieces = new HashSet<GamePiece>();\n\t\tfor(GamePiece piece: playerPieces.values())\n\t\t{\n\t\t\tpieces.add(piece);\n\t\t}\n\t\treturn pieces;\n\t}",
"Collection<User> players();",
"public List<Player> getPlayers() {\n\t\treturn players;\n\t}",
"@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }",
"private void computePresentPleyers() {\n\t\tthis.presentPlayerKeys = new ArrayList<>();\n\t\tList<ChesspairingPlayer> players = mTournament.getPlayers();\n\t\tfor (ChesspairingPlayer player : players) {\n\t\t\tif (player.isPresent()) {\n\t\t\t\tthis.presentPlayerKeys.add(player.getPlayerKey());\n\t\t\t}\n\t\t}\n\t}",
"public List<Player> getPlayers() {\n\n\t\treturn players;\n\t}",
"public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}",
"public Position[] getWinningPositions();",
"public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}",
"public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }",
"public List<Player> findPlayers(List<Role> rl) {\n List<Player> pl = new ArrayList<Player>();\n for(Player p: players){\n for(Role r: rl){\n if(r.equals(p.getRole())){\n pl.add(0, p);\n }\n }\n }\n return pl;\n }",
"Set<String> getPlayers();",
"public ArrayList<String> getPlayersAtLocation(Location loc)\n\t{\n\t\tSet<String> playerLocation = playerLocations.keySet();\n\t\tArrayList<String> player = new ArrayList<String>();\n\t\tfor (String name: playerLocation) \n\t\t{\n\t\t\tif(playerLocations.get(name) == loc)\n\t\t\t{\n\t\t\t\tplayer.add(name);\n\t\t\t}\n\t\t}\n\t\treturn player;\n\t}",
"public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }",
"@Override\r\n\tpublic ArrayList<PlayerPO> pickUpPlayersByCondition(String position,\r\n\t\t\tZone zone, String district, String standard,PlayerData dataType,Season season) {\n\t\tArrayList<PlayerPO> results = new ArrayList<PlayerPO>();\r\n\t\tfor(PlayerPO onePlayer: playerController.getAllPlayers()){\r\n\t\t\tTeamPO ofTeam = TeamListPO.findTeamByShortName(onePlayer.getTeam(season));\r\n\t\t\tif(ofTeam!=null && onePlayer.getPosition().contains(position) && (ofTeam.getZone().equals(zone) || \r\n\t\t\t\t\tofTeam.getDistrict().equals(district)))\r\n\t\t\t\tresults.add(onePlayer);\r\n\t\t}\r\n\t\tCollections.sort(results, new PlayerSortHelper(standard, dataType,season));\r\n\t\tif(results.size()>50)\r\n\t\t\tresults = new ArrayList<>(results.subList(0, 50)) ;\r\n\t\treturn results;\r\n\t}",
"public Set<Character> players(){\r\n\t\tSet<Character> players = new HashSet<Character>();\r\n\t\tfor(Character character: characters()){\r\n\t\t\tif(character.isPlayer())\r\n\t\t\t\tplayers.add(character);\r\n\t\t}\r\n\t\treturn players;\r\n\t}",
"public CompactPlayer[] getPlayers()\n {\n return players;\n }",
"public Hashtable<Integer, Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public abstract Collection<PlayerFish> getPlayers();",
"public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }",
"private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public List<SkungeePlayer> getPlayers(String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }",
"public static ArrayList<Player> getAllPlayingPlayers() {\n // Anton fix: Would copy the list itself, we want just the items.\n // Remove/add manipulations would affect original list\n /*\n * ArrayList<Player> all = players; for (Player player: all) { if\n * (!player.isPlaying()) { all.remove(player); } }\n */\n\n ArrayList<Player> all = new ArrayList<Player>();\n for (Player player : players) {\n if (player.isPlaying()) all.add(player);\n }\n\n return all;\n }",
"public List<Player> lookForShootPeople(Player player)\n {\n List<Player> playerList = new LinkedList<>();\n\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n\n /*\n * Now i have to check if the player is close to a door. In this case i can see all the players in this adiacent room.\n * I will implement the method in this way:\n * 1. I check if the player can move to a different room with a distance 1 using the method squareReachableNoWall\n * 2. If the player can effectively move to a different room it means it is close to a door\n * 3. I will add to the list all the players in this different room\n */\n\n for (Square square : player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX(), player.getSquare().getY(), 1))\n {\n if (!(player.getSquare().getColor().equals(square.getColor()))) // if the color of the reachable square is different from the color of the square\n // where the player is this means player can see in a different room\n {\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n }\n\n }\n\n Set<Player> playerSet = new HashSet<>();\n playerSet.addAll(playerList);\n\n playerList.clear();\n\n playerList.addAll(playerSet);\n playerList.remove(player);\n\n\n return playerList;\n }",
"@Override\n\tpublic List<Player> getPlayersByCity(String city) throws BusinessException {\n\t\treturn null;\n\t}",
"private List<Character> lookupPlayerCharacters() throws SQLException {\n QueryBuilder<Character, Integer> charactersQb = characterDao.queryBuilder();\n charactersQb.where().in(\"isPlayer\", true);\n return charactersQb.query();\n }",
"public List<Player> getAttackedPlayers() {\r\n\t\tArrayList<Player> output = new ArrayList<Player>();\r\n\t\tfor(Player p : getOtherPlayers()) {\r\n\t\t\tif(!(p.deck.hand.contains(new Moat()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Lighthouse()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Champion()) \r\n\t\t\t\t\t|| p.getPlayerNum() == getWhoseTurn())) {\r\n\t\t\t\toutput.add(p);\r\n\t\t\t}\r\n\t\t\tArrayList<Card> reactions = new ArrayList<Card>();\r\n\t\t\tfor(Card c : p.deck.hand) {\r\n\t\t\t\tif(c.isReaction()) reactions.add(c);\r\n\t\t\t}\r\n\t\t\tfor(Card c : reactions) {\r\n\t\t\t\tc.reactAttack();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"public Set<Location> getPlayerLocations()\n\t{\n\t\tSet<Location> places = new HashSet<Location>();\n\t\tfor(Location place: playerLocations.values())\n\t\t{\n\t\t\tplaces.add(place);\n\t\t}\n\t\treturn places;\n\t}",
"public List<SkungeePlayer> getPlayers(SkungeeServer... servers) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setServers(servers);\n\t\treturn japson.sendPacket(packet);\n\t}",
"private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}",
"public Set<String> getOnlinePlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayersWhereOnline(true))\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public LinkedList<Player> getPlayers() {\n\t\treturn this.players;\n\t}",
"public List<Player> getAllPlayersLimit(int limit) {\n\t\treturn repository.findAll(limit);\n\t}",
"public synchronized List<Card> getCardsInPlay(){\n cardsInPlay.clear();\r\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n if(player.getCardsInHand().isEmpty()){\r\n continue;\r\n }\r\n for(Card card: player.getCardsInHand()){\r\n cardsInPlay.add(card);\r\n }\r\n }\r\n return cardsInPlay;\r\n }",
"@Override\n public ArrayList<Player> getPlayers() throws RemoteException {\n return players;\n }",
"public String[] getPlayers() {\r\n return playerIds;\r\n }",
"public List<Player> getPlayersInRoom() {\n\t\treturn playersInRoom;\n\t}",
"public ResultSet getPlayers() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString playerRecords_sql = \"SELECT * FROM \" + player_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(playerRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"public ArrayList<Player> searchPlayer(String search){\r\n\t\tint rowId = 1;\r\n\t\tCursor cursor;\r\n\t\tcursor = this.getPlayer(rowId);\r\n\t\tArrayList<Player> playerList = new ArrayList<Player>();\r\n\t\twhile(cursor.getCount() != 0){\r\n\t\t\tif (cursor.getString(1).startsWith(search)) {\r\n\t\t\t\tPlayer p = new Player(cursor.getString(1),cursor.getString(2),cursor.getString(3),\r\n\t\t\t\t\t\tcursor.getString(4),cursor.getString(5),cursor.getInt(6),\r\n\t\t\t\t\t\tcursor.getString(7),cursor.getString(8),cursor.getString(9),\r\n\t\t\t\t\t\tcursor.getString(10));\r\n\t\t\t\tplayerList.add(p);\r\n\t\t\t}\r\n\t\t\trowId = rowId + 1;\r\n\t\t\tcursor = this.getPlayer(rowId); \t\r\n\t\t}\r\n\t\tcursor.close();\r\n\r\n\t\treturn playerList;\r\n\t}",
"@Override\n public Player getPlayerOnIndex(int index) {\n return players.get(index);\n }",
"public List<ServerPlayerEntity> getPlayerList() {\n return this.players;\n }",
"public int getPlayerPosition(int player)\n {\n return players[player];\n }",
"public Set<Player> getParticipants() { //TODO: not sure the validation needs to happend here\n\t\t// Run through the results and make sure all players have been pushed into the participants set.\n\t\tfor ( Result result : results ) {\n\t\t\tparticipants.add(result.getWinner());\n\t\t\tparticipants.add(result.getLoser());\n\t\t}\n\n\t\treturn participants;\n\t}",
"public List<SkungeePlayer> getPlayers(SkungeeServer server, String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\tpacket.setServers(server);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public void printAllPlayerStats(List<Player> players);"
] |
[
"0.70764697",
"0.6893583",
"0.64105856",
"0.6408584",
"0.6133182",
"0.61080915",
"0.6080221",
"0.5986813",
"0.5937886",
"0.5933161",
"0.5900904",
"0.58293366",
"0.582588",
"0.58047146",
"0.5800142",
"0.5799371",
"0.5797967",
"0.5773625",
"0.576842",
"0.572246",
"0.5710971",
"0.57014483",
"0.5695863",
"0.56869906",
"0.5655777",
"0.565133",
"0.56419975",
"0.5625349",
"0.56119937",
"0.5603561",
"0.5593494",
"0.55873066",
"0.55873066",
"0.5582287",
"0.55648756",
"0.55626404",
"0.55388254",
"0.5522918",
"0.5506058",
"0.5505267",
"0.5505267",
"0.5498516",
"0.54801375",
"0.54797053",
"0.5467824",
"0.54307973",
"0.5430789",
"0.542999",
"0.5429935",
"0.5425676",
"0.5423577",
"0.5418852",
"0.54181904",
"0.5417123",
"0.541625",
"0.5414461",
"0.54096127",
"0.5405834",
"0.54038477",
"0.5393964",
"0.53657466",
"0.5357236",
"0.53569436",
"0.5347413",
"0.53387153",
"0.53338015",
"0.533121",
"0.5326987",
"0.53259915",
"0.53221273",
"0.53119594",
"0.5291634",
"0.52900475",
"0.52798164",
"0.52754474",
"0.52601933",
"0.52427346",
"0.52422404",
"0.52401716",
"0.5233753",
"0.5213769",
"0.51956564",
"0.5190589",
"0.51871794",
"0.5177668",
"0.5165796",
"0.5165273",
"0.5154236",
"0.51468164",
"0.5139764",
"0.51152194",
"0.51059103",
"0.5068432",
"0.5067434",
"0.50586116",
"0.50520986",
"0.5040986",
"0.5028131",
"0.50256807",
"0.5019293"
] |
0.7701717
|
0
|
Returns the maximum number of rounds for the game
|
public int getMaxRounds() {
return maxRounds;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getMaxRound() {\n return maxRound;\n }",
"public int getMaxRoundsPerBattle() {\n return maxRoundsPerBattle;\n }",
"public int getLargestRoundNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT MAX(drawCnt) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next())\n\t\t\t\tresult = this.rs.getInt(1);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public int getMaximumPlayers() {\n return getOption(ArenaOption.MAXIMUM_PLAYERS);\n }",
"public static int getMaxSessionCount() {\n\t\treturn (maxSessionCount);\n\t}",
"public int getMaxAttemptCount() {\n return maxAttemptCount;\n }",
"public GameSettingBuilder setMaxRound(int maxRound) {\n this.maxRound = maxRound;\n return this;\n }",
"@Override\n\tpublic long getMaxnum() {\n\t\treturn _esfTournament.getMaxnum();\n\t}",
"public final int getMaxIterations()\r\n\t{\r\n\t\treturn maxIterations;\r\n\t}",
"protected int get_max_iter() {\n\t\treturn iterationsMaximum;\n\t}",
"public int calculateNextRound(Tournament tournament) {\r\n\t\treturn tournament.getRounds().size() + 1;\r\n\t}",
"private static int maximum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() > thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}",
"public int getMaximumPlayers() {\n return maximumPlayers;\n }",
"public int getMaxRetries() {\n\t return maxRetries.get();\n\t}",
"public void setMaxRoundsPerBattle(int value) {\n this.maxRoundsPerBattle = value;\n }",
"public static int numberOfRounds() {\n System.out.print(\"Entrez le nombre de rounds de cette partie : \");\n while (true) {\n try {\n int rounds = new Scanner(System.in).nextInt();\n if (rounds > 0) return rounds;\n } catch (Exception ignored) {\n }\n System.out.println(\"Entrez un entier supérieur à 0 : \");\n }\n }",
"public int getAttemptCount() {\n return maxAttemptCount;\n }",
"public int getMaxPlayers() {\n return maxPlayers;\n }",
"public int getMaxPlayers() {\n\t\treturn maxPlayers;\n\t}",
"public int getMaxIterations() {\n return mMaxIterations;\n }",
"public int getMaxIterations() {\n return mMaxIterations;\n }",
"@Nonnegative\n int getMaxReactionRounds()\n {\n return _maxReactionRounds;\n }",
"public int getRoundNum(){\n return gameRounds;\n }",
"public int getSizeOfLargestSquare()\n {\n int i = GRID_SIZE;\n while(getNumSquares(i) == 0) i--;\n return i;\n }",
"public int getCurrentGameRound(){\n\t\treturn currentGameRound;\n\t}",
"default int getMaximumCount(int slot) {\n\t\treturn 64;\n\t}",
"public int getMaxRetries() {\n return maxRetries;\n }",
"public static int getMaxFramesPerSquare() {\n int max = 0;\n for (int b = 0; b < ColorFrames.BOARD_PLACES; ++b) {\n int frames = 0;\n for (int f = 0; f < ColorFrames.FRAMES_DIM; ++f) {\n if (pieces[b][f] == ColorFrames.NO_FRAME)\n ++frames;\n }\n\n if (frames > max)\n max = frames;\n }\n\n return max;\n }",
"public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}",
"public int getMaxFPS() {\n return getValue(PROP_MAX_FPS);\n }",
"public Integer getMaxRetryAttempt() {\n\t\treturn maxRetryAttempt;\n\t}",
"public int getMaxCount() {\n return maxCount_;\n }",
"Integer getMaximumResults();",
"int getMaximalIterationCount();",
"@Test\n public void returnMaxNumberOfBetsCanMade(){\n assertEquals(maxNumberOfBets,gameRule.getMaxBetsPerRound());\n }",
"private int negaMax(int depth, String indent) {\r\n\r\n\t\tif (depth <= 0\r\n\t\t\t|| this.chessGame.getGameState() == ChessGame.GAME_STATE_END_WHITE_WON\r\n\t\t\t|| this.chessGame.getGameState() == ChessGame.GAME_STATE_END_BLACK_WON){\r\n\t\t\t\r\n\t\t\treturn evaluateState();\r\n\t\t}\r\n\t\t\r\n\t\tList<Move> moves = generateMoves(false);\r\n\t\tint currentMax = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tfor(Move currentMove : moves){\r\n\t\t\t\r\n\t\t\texecuteMove(currentMove);\r\n\t\t\t//ChessConsole.printCurrentGameState(this.chessGame);\r\n\t\t\tint score = -1 * negaMax(depth - 1, indent+\" \");\r\n\t\t\t//System.out.println(indent+\"handling move: \"+currentMove+\" : \"+score);\r\n\t\t\tundoMove(currentMove);\r\n\t\t\t\r\n\t\t\tif( score > currentMax){\r\n\t\t\t\tcurrentMax = score;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(indent+\"max: \"+currentMax);\r\n\t\treturn currentMax;\r\n\t}",
"public int getMaxCount() {\n return maxCount_;\n }",
"private int runValue() {\n int rValue = 0;\n int maxLength = 0;\n \n CribbageRank[] rank = new CribbageRank[cards.length];\n CribbageRank[][] combos;\n \n for (int i = 0; i < cards.length; i++) {\n for (CribbageRank card : CribbageRank.values()) {\n if (cards[i].charAt(0) == card.abbrev()) {\n rank[i] = card;\n }\n }\n }\n \n /** Find the maximum length for the combination which can form a run.\n */\n combos = Combinations.combinations(rank);\n \n for (int i = 0; i < combos.length; i++) {\n Arrays.sort(combos[i]); \n if(combos[i].length>=3 && isRun(combos[i])){\n if (combos[i].length > maxLength) {\n maxLength = combos[i].length;\n }\n } \n } \n\n /** Add up the scores if the maximum length combination is a run.\n */\n for (int i = 0; i < combos.length; i++) {\n if (combos[i].length == maxLength && isRun(combos[i])) {\n rValue += combos[i].length;\n }\n } \n return rValue;\n }",
"public int getMaximumNumberOfLightsToTurnOn() {\n\t\t\n\t\treturn this.maxLightsToTurnOnPerRoom;\n\t}",
"public Long getMaximumPlayerSessionCount() {\n return this.MaximumPlayerSessionCount;\n }",
"public String getIterationSurMax() { return (actuelIteration + 1) + \"/\" + totalIteration; }",
"public static int getGameSize()\n {\n boolean flag = true;\n int n = 0;\n while(flag)\n {\n String s = JOptionPane.showInputDialog(null, \"How many Fighters on each Team?\", \"Game Size\", JOptionPane.QUESTION_MESSAGE);\n try{\n n = Integer.parseInt(s);\n }\n catch(Exception e){}\n if(n<=0)\n JOptionPane.showMessageDialog(null, \"Please enter a number.\");\n else\n flag = false;\n }\n return n;\n }",
"public int getMaxOverhaulCount () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_MaxOverhaulCount);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}",
"public int getMaximumPoints();",
"public static int minimumNumberOfGames() {\n\t\treturn 0;\n\t}",
"public static int numRounds() {\n\t\treturn numRounds;\n\t}",
"int getMaxCount();",
"int getMaxCount();",
"public static int numInRound(int round) {\n\t\treturn (int) (Math.pow(2, round - 1));\n\t}",
"public int calculateNumberOfMatches(Tournament tournament, Round round) {\r\n\t\tint playersPerMatch = tournament.getTeamSize() * 2; // home and away team\r\n\t\tint possibleMatches = round.getPlayers().size() / playersPerMatch;\r\n\t\treturn Math.min(possibleMatches, tournament.getCourts());\r\n\t}",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"public static int numBits(int Rmax){\n if(Rmax == 0)\n return 1;\n return (int) Math.ceil((Math.log(Rmax)/Math.log(2))+0.000001);\n }",
"@Override\n\tpublic int getMaxIterations() {\n\t\treturn maxIterations;\n\t}",
"public int getMax()\n\t{\n\t\treturn max;\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}",
"public int getMax() {\n\t\treturn max;\n\t}",
"public int getMax() {\n\t\treturn max;\n\t}",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public int getMaximum() {\r\n return max;\r\n }",
"public int getMaxRunTime() {\n return maxRunTime;\n }",
"protected int getMaxResults() {\n\t\treturn maxResults;\n\t}",
"public int getMineMaxAmmo() {\r\n\t\t\r\n\t\t// Code kann nur bei Verwendung von eea verwendet werden, sonst muss er geloescht werden!\r\n\t\t// Auch bei Verwendung von eea muss diese Methode erweitert werden.\r\n\r\n\t\tList<Entity> entities = new ArrayList<Entity>();\r\n\r\n\t\tentities = StateBasedEntityManager.getInstance().getEntitiesByState(Tanks.GAMEPLAYSTATE);\r\n\r\n\t\t//TODO\r\n\r\n\t\treturn -1;\r\n\t}",
"public static int numMaxRanks(int ranks[]) {\r\n\r\n\t\tint count[] = new int[13];\r\n\t\tint max = 0;\r\n\r\n\t\tfor (int i = 0; i < ranks.length; i++) {\r\n\t\t\tcount[ranks[i]]++;\r\n\r\n\t\t\tif (count[ranks[i]] > count[max])\r\n\t\t\t\tmax = ranks[i];\r\n\r\n\t\t}\r\n\t\treturn count[max];\r\n\t}",
"public int getMaxPayRaise ()\r\n {\r\n return maxPayRaise;\r\n }",
"private int evaluate(boolean maximizing) {\n int selfEval = getCountOfStonesFor(this);\n selfEval += countOfMills(this) * 5;\n selfEval += countOfPossibleMills(this) * 15;\n\n int opponentEval = getCountOfStonesFor(opponent);\n opponentEval += countOfMills(opponent) * 5;\n opponentEval += countOfPossibleMills(opponent) * 15;\n\n return (selfEval - opponentEval) * (maximizing ? 1 : -1);\n }",
"public int donnePoidsMax() { return this.poidsMax; }",
"public long getMaxRIT() {\n return localMaxRIT;\n }",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public int getMaxCalls();",
"public double getMaxNumberOfEpochs() {\n return maxNumberOfEpochs;\n }",
"public int getMaximumNumber() {\n\t\treturn 99999;\n\t}",
"public int getMaximum() {\n \tcheckWidget();\n \treturn maximum;\n }",
"public static byte getMaxMoves() {\n return MAX_MOVES;\n }",
"public Factura getMaxNumeroFactura();",
"void setMaxWrongGuesses(Integer max);",
"private int mostNumOfCards(WarPlayer[] players) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < players.length; i++)\n if (players[i].getPoints() > players[max].getPoints())\n max = i;\n\n return max;\n }",
"public int getMaxFloor();",
"private int getNumberOfRounds(int changingAxiomsCount) {\n\t\treturn Math.min(maxRounds_,\n\t\t\t\t2 * (31 - Integer.numberOfLeadingZeros(changingAxiomsCount)));\n\t}",
"public int getMaxSlots() {\n return maxSlots;\n }",
"public int getMaxAdsPerIteration() {\n return this.mMaxAdsPerIteration;\n }",
"int getMaximum();",
"public synchronized int getMax() {\r\n\t\treturn mMax;\r\n\t}",
"public int getVarimaxIterations(){\n return this.nVarimax;\n }",
"int getMax( int max );",
"public static int retourneMaxNumber() {\n int tmp = 0;\n try {\n String requete = \"SELECT Max(eleve.id_el) AS Maxeleve FROM eleve\";\n ResultSet rs = Connector1.statement.executeQuery(requete);\n while (rs.next()) {\n tmp = rs.getInt(1);\n\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n }\n return tmp;\n }",
"public int getMaxGenerations() { return maxGenerations; }",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }",
"protected final int getMax() {\n\treturn(this.max);\n }",
"public int NumOfGames()\n\t{\n\t\treturn gametype.length;\n\t}",
"public int getMaxCompleted() {\n\t\tint max = -1;\n\t\tfor (Integer i : playerVisible)\n\t\t\tmax = Math.max(max, i);\n\t\treturn max;\n\t}",
"private int getMaxConfiguredReplicaCount() {\n if (maxConfiguredReplicaCount > 0) {\n return maxConfiguredReplicaCount;\n } else {\n ClientMessage request = PNCounterGetConfiguredReplicaCountCodec.encodeRequest(name);\n ClientMessage response = invoke(request);\n maxConfiguredReplicaCount = PNCounterGetConfiguredReplicaCountCodec.decodeResponse(response);\n }\n return maxConfiguredReplicaCount;\n }",
"private int getAttemptsPerTurn() {\n return attemptsPerTurn;\n }",
"public int getMaxRows() {\r\n\t\treturn boardcell.length;\r\n\t}",
"public int maxDigit() {\n int maxDigit = 1;\n for (int i = 0; i < theArray.length; i++) {\n int n = numberOfDigit(theArray[i]);\n if (n > maxDigit)\n maxDigit = n;\n }\n return maxDigit;\n }",
"public int totalGames() {\n return wins + losses + draws;\n }",
"public int calcMaxLife() {\n\t\treturn 10;\r\n\t}"
] |
[
"0.7902967",
"0.7883401",
"0.77104104",
"0.6929718",
"0.6791594",
"0.6774771",
"0.6729701",
"0.66965",
"0.6692534",
"0.66752326",
"0.6645116",
"0.66287285",
"0.65231496",
"0.6514851",
"0.64984065",
"0.64961433",
"0.6495204",
"0.64936596",
"0.64934385",
"0.64934367",
"0.64934367",
"0.6454789",
"0.6450326",
"0.6448801",
"0.64374554",
"0.6405196",
"0.63814664",
"0.6369309",
"0.6367531",
"0.6366245",
"0.635985",
"0.635365",
"0.6350707",
"0.63316846",
"0.632979",
"0.63265973",
"0.6309416",
"0.63038534",
"0.6282687",
"0.6277299",
"0.62763214",
"0.62719816",
"0.6263741",
"0.62472695",
"0.6243759",
"0.6236161",
"0.62290055",
"0.62290055",
"0.62028277",
"0.61942303",
"0.6176158",
"0.6169637",
"0.6166717",
"0.61530936",
"0.61514723",
"0.61438036",
"0.6137704",
"0.6137704",
"0.6132959",
"0.61328745",
"0.6123476",
"0.6122278",
"0.61221063",
"0.6112384",
"0.61042297",
"0.6095581",
"0.6087494",
"0.6087054",
"0.60854244",
"0.60854244",
"0.60854244",
"0.6071973",
"0.6060186",
"0.60439664",
"0.6031973",
"0.6017779",
"0.6016762",
"0.6014217",
"0.60141486",
"0.6010575",
"0.6003349",
"0.6001172",
"0.5982288",
"0.5979926",
"0.59689724",
"0.5963969",
"0.59633064",
"0.59565663",
"0.59537053",
"0.5953195",
"0.59490824",
"0.5946348",
"0.59444773",
"0.59420973",
"0.593898",
"0.5938083",
"0.5926431",
"0.5917692",
"0.5909858",
"0.5902427"
] |
0.76130956
|
3
|
Returns the distance between p1 and p2
|
static double distance(Point p1, Point p2) {
return Math.sqrt((p2.x - p1.x)*(p2.x - p1.x) + (p2.y - p1.y)*(p2.y - p1.y));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected double getDistance(Point p1, Point p2) {\n\t\treturn Math.sqrt((p1.getX()-p2.getX())*(p1.getX()-p2.getX()) + (p1.getY()-p2.getY())*(p1.getY()-p2.getY())); \n\t}",
"double distance(Point p1,Point p2){\n\t\tdouble dx = p1.x - p2.x;\n\t\tdouble dy = p1.y - p2.y;\n\t\treturn Math.sqrt(dx*dx+dy*dy);\n\t}",
"private int distance(Point p1, Point p2) {\n return (int) Math.sqrt(Math.pow(p1.getCenterX() - p2.getCenterX(), 2) + Math.pow(p1.getCenterY() - p2.getCenterY(), 2));\n }",
"public static float getDistanceBetween(PVector p1, PVector p2) {\n // Note: Raw values between point 1 and point 2 not valid, as they are are origin-based.\n PVector sub = PVector.sub(p1, p2);\n PVector xaxis = new PVector(1, 0);\n float dist = PVector.dist(sub, xaxis);\n return dist;\n }",
"private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}",
"public static double distanceBetween(Pair<Double, Double> p1, Pair<Double, Double> p2) {\n float[] result = new float[1];\n android.location.Location.distanceBetween(p1.first, p1.second, p2.first, p2.second, result);\n return result[0];\n }",
"public static double distance(Position p1, Position p2){\n\t\t\n\t\tdouble lat1 = p1.getLat(); \n\t\tdouble lon1 = p1.getLon();\n\t\tdouble lat2 = p2.getLat(); \n\t\tdouble lon2 = p2.getLon();\n\t\t\n\t\tdouble r = 6371; // km\n\t\tdouble dLat = Math.toRadians(lat2-lat1);\n\t\tdouble dLon = Math.toRadians(lon2-lon1);\n\t\tdouble nlat1 = Math.toRadians(lat1);\n\t\tdouble nlat2 = Math.toRadians(lat2);\n\n\t\tdouble a = Math.sin(dLat/2) * Math.sin(dLat/2) + \n\t\t Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(nlat1) * Math.cos(nlat2); \n\t\tdouble c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); \n\t\tdouble d = r * c;\n\t\treturn d;\n\t\t\n\t}",
"public static float distance(PointF p1, PointF p2){\n return (float) Math.sqrt(Math.pow((p2.x - p1.x), 2) + Math.pow(p2.y - p1.y,2));\n }",
"double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }",
"public static double distance(Prototype one, Prototype two)\r\n {\r\n return d(one, two);\r\n }",
"private static double EuclideanDistance(Point p1, Point p2) {\n\t\tdouble dx = p2.X - p1.X;\n\t\tdouble dy = p2.Y - p1.Y;\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t}",
"public final double calcDistance( Point a, Point b )\r\n {\r\n return( Math.sqrt( (Math.pow(a.y - b.y, 2)) +\r\n (Math.pow(a.x - b.x, 2)) ) );\r\n }",
"public int distance(Coord coord1, Coord coord2);",
"double dist(pair p1){\n\t\tdouble dx=(p1.x-centre.x);\n\t\tdouble dy=(p1.y-centre.y);\n\t\tcount++;\n\t\treturn java.lang.Math.sqrt((dx*dx)+(dy*dy));\n\t}",
"private double calculateDistance(Circle point1, Circle point2) {\r\n double x = point1.getCenterX() - point2.getCenterX();\r\n double y = point1.getCenterY() - point2.getCenterY();\r\n\r\n return Math.sqrt(x*x + y*y);\r\n }",
"public static double getDistance( GameObject one, GameObject two )\n {\n double deltaX = getDeltaX( one, two );\n double deltaY = getDeltaY( one, two );\n return Math.sqrt( deltaX * deltaX + deltaY * deltaY );\n }",
"public static double getDistance(GPSCoordinates point1, GPSCoordinates point2) {\r\n\t\t\r\n\t\treturn EARTH_RADIUS * 2 * Math.atan2( Math.sqrt( getHaversinePart(point1, point2)), Math.sqrt( getHaversinePart(point1, point2) ) );\r\n\t}",
"private double distance(Position pos1, Position pos2)\r\n {\r\n assert pos1 != null;\r\n assert pos2 != null;\r\n\r\n int x = Math.abs(pos1.column() - pos2.column());\r\n int y = Math.abs(pos1.line() - pos2.line());\r\n\r\n return Math.sqrt(x * x + y * y);\r\n }",
"public double distance(double x1, double y1, double x2, double y2)\n {\n return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow(y2 - y1, 2));\n }",
"public int calculateDistance(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2){\n double x1 = l1.data.getxCo();\n double y1 = l1.data.getyCo();\n double x2 = l2.data.getxCo();\n double y2 = l2.data.getyCo();\n double dist = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return (int) dist;\n }",
"static double distance(double x1, double y1, double x2, double y2)\n {\n double x_dist = x2 - x1;\n double y_dist = y2 - y1;\n double dist = Math.sqrt(Math.pow(x_dist, 2) + Math.pow(y_dist, 2));\n return dist;\n }",
"public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }",
"public double getDistance(final DataPoint point1, final DataPoint point2) {\n return NTree.getDistance(point1, point2);\n }",
"private static double distance(double x, double y, double x1, double x2,\n\t\t\tdouble y1, double y2) {\n\t\tPoint p = new Point(x, y);\n\t\tPoint p1 = new Point(x1, y1);\n\t\tPoint p2 = new Point(x2, y2);\n\t\treturn p.distance(p1, p2);\n\t}",
"public double distance(Point other) {\n\n // Define delta-X and delta-Y.\n double deltaX = this.x - other.x;\n double deltaY = this.y - other.y;\n\n // Calculate distance and return.\n return Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n }",
"public double distanceBetween2Points(double x1,double y1,double x2, double y2){\n\t\treturn Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));\n\t}",
"static double distance(Point a, Point b) {\n\t\tint xDiff = a.x - b.x;\n\t\tint yDiff = a.y - b.y;\n\t\treturn Math.sqrt((xDiff * xDiff) + (yDiff * yDiff));\n\t}",
"public double distance(Point other) {\r\n double dx = this.x - other.getX();\r\n double dy = this.y - other.getY();\r\n return Math.sqrt((dx * dx) + (dy * dy));\r\n }",
"private double distance(Point a, Point b) {\n\t\tDouble xdist = new Double( a.x - b.x );\n\t\tDouble ydist = new Double( a.y - b.y );\n\t\treturn Math.sqrt( Math.pow(xdist, 2.0) + Math.pow(ydist, 2.0) );\n\t}",
"double getDistance(Point p);",
"private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}",
"public static double getDistance(int x1, int y1, int x2, int y2)\n {\n double dx = x2 - x1;\n double dy = y2 - y1;\n\n // return Math.hypot(x2 - x1, y2 - y1); // Extremely slow\n // return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); // 20 times faster than hypot\n return Math.sqrt(dx * dx + dy * dy); // 10 times faster then previous line\n }",
"public static double euclidDist(Point p1, Point p2) {\r\n\t\tvar p1Lat = p1.latitude();\r\n\t\tvar p1Lon = p1.longitude();\r\n\t\tvar p2Lat = p2.latitude();\r\n\t\tvar p2Lon = p2.longitude();\r\n\t\tvar dist = Math.sqrt( ((p1Lat-p2Lat)*(p1Lat-p2Lat)) + ((p1Lon-p2Lon)*(p1Lon-p2Lon)) );\r\n\t\treturn dist;\r\n\t}",
"public double distance(Point other) {\n double newX = this.x - other.getX();\n double newY = this.y - other.getY();\n return Math.sqrt((newX * newX) + (newY * newY));\n }",
"private double lPDistance(Instance one, Instance two, int p_value) {\n\n double distanceSum = 0;\n\n for (int i = 0; i < one.numAttributes() - 1; i++) {\n distanceSum += Math.pow(Math.abs(one.value(i) - two.value(i)), p_value);\n }\n\n distanceSum = Math.pow(distanceSum, 1.0 / p_value); // Root in base P\n\n return distanceSum;\n\n }",
"private double findDistance(int[] pos1, int[] pos2) {\n return sqrt((pos1[0]-pos2[0])*(pos1[0]-pos2[0])+\n (pos1[1]-pos2[1])*(pos1[1]-pos2[1]));\n }",
"public int findDistance(int p1X, int p1Y, int p2X, int p2Y) {\n\t\tint distance = (int) (Math.sqrt(Math.pow((p2X - p1X), 2) + Math.pow((p2Y - p1Y), 2)));\n\t\treturn distance;\n\n\t}",
"public double distance(Point a, Point b) {\n\t\tdouble dx = a.x - b.x;\n\t\tdouble dy = a.y - b.y;\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t}",
"public double distanceTo(Point other) {\r\n\t\tdouble distX, distY, totalDist;\r\n\t\tdistX=(other.pX - pX) * (other.pX - pX);\r\n\t\tdistY=(other.pY - pY) * (other.pY - pY);\r\n\t\ttotalDist=Math.sqrt(distX + distY);\r\n\t\t\r\n\t\treturn totalDist;\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\t\r\n\t}",
"public static final double distance(final Vector3f pt1, final Vector3f pt2) {\r\n return Math.sqrt( ( (pt2.X - pt1.X) * (pt2.X - pt1.X)) + ( (pt2.Y - pt1.Y) * (pt2.Y - pt1.Y))\r\n + ( (pt2.Z - pt1.Z) * (pt2.Z - pt1.Z)));\r\n }",
"public static double computeDistance(GeoPoint point1, GeoPoint point2) {\n return Math.sqrt(Math.pow(point1.getLatitudeE6()\n - point2.getLatitudeE6(), 2d)\n + Math.pow(point1.getLongitudeE6() - point2.getLongitudeE6(),\n 2d));\n }",
"public double distance(Point other) {\n return Math.sqrt(((this.x - other.getX()) * (this.x - other.getX()))\n + ((this.y - other.getY()) * (this.y - other.getY())));\n }",
"public static double distancia(Entidade e1,Entidade e2){\r\n\t\tdouble dx = e1.getPosicaoX() - e2.getPosicaoX();\r\n\t\tdouble dy = e1.getPosicaoY() - e2.getPosicaoY();\r\n\t\tdouble d = Math.sqrt(dx*dx + dy*dy);\r\n\t\treturn d;\r\n\t}",
"public static double distance(\n\t\t\tdouble x1, double y1, double x2, double y2) {\n\t\treturn Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n\t}",
"public double distanceTo(Point other) {\n\t\tdouble distX, distY, totalDist;\n\t\tdistX=(other.pX - pX) * (other.pX - pX);\n\t\tdistY=(other.pY - pY) * (other.pY - pY);\n\t\ttotalDist=Math.sqrt(distX + distY);\n\t\t\n\t\treturn totalDist;\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\t\n\t}",
"public static double distance(double x1, double y1, double x2, double y2) {\n\t\tdouble r1 = x2 - x1;\n\t\tdouble r2 = y2 - y1;\n\t\treturn Math.sqrt(r1 * r1 + r2 * r2);\n\t}",
"public static double calculateDistance(Point point1, Point point2){\n\n if (point1.getX() > point2.getX() || point1.getY() > point2.getY()){\n Point tmp = point1;\n point1 = point2;\n point2 = tmp;\n }\n\n double distance = Math.abs(Math.sqrt((point2.x - point1.x) * (point2.x - point1.x) + (point2.y - point1.y) * (point2.y - point1.y)));\n\n return distance;\n //return Math.ceil(distance * scale) / scale;\n }",
"public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t\t, 2 )\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}",
"protected static float getSquareDistance(PVector p1, PVector p2) {\n\t\tfloat dx = p1.x - p2.x;\n\t\tfloat dy = p1.y - p2.y;\n\n\t\treturn dx * dx + dy * dy;\n\t}",
"public abstract double getDistance(T o1, T o2) throws Exception;",
"public double getDistance(double x, double y, Point p)\n\t{\n\t\tdouble s1 = Math.sqrt((x - p.x)*(x - p.x) + (y - p.y)*(y - p.y));\n\t\treturn s1;\n\t}",
"private static int dist(int x1, int y1, int x2, int y2) {\n\t\treturn (int) Math.sqrt(Math.abs(((x2-x1) * (x2-x1)) + ((y2-y1) * (y2-y1))));\n\t}",
"public double distance(Point p){\n\t\treturn (this.minus(p)).magnitude(); //creates a vector between the two points and measures its magnitude\n\t}",
"public static double d(Prototype one, Prototype two)\r\n {\r\n return Math.sqrt(squaredEuclideanDistance(one, two));\r\n }",
"private static final double l2Distance (final double[] p0,\n final double[] p1) {\n assert p0.length == p1.length;\n double s = 0.0;\n double c = 0.0;\n for (int i=0;i<p0.length;i++) {\n final double dp = p0[i] - p1[i];\n final double zi = dp*dp - c;\n final double t = s + zi;\n c = (t - s) - zi;\n s = t; }\n return Math.sqrt(s); }",
"private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }",
"public double distance(V a, V b);",
"public double distance(Point p){\n double distX = this.x-p.x;\n double distY = this.y-p.y;\n return Math.sqrt(\n ( distX*distX ) + ( distY*distY )\n );\n \n }",
"private double d(Point a, Point b){\n\t\treturn Math.sqrt(Math.pow(b.getX()-a.getX(),2) + Math.pow(a.getY() - b.getY(), 2));\r\n\t}",
"public double getLength() {\n\t\treturn getDistance( p1, p2 );\n\t}",
"private double DistancePoint(Point a, Point b) {\n\t\tdouble ab = Math.sqrt( \n\t\t\t\tMath.pow( (b.getX() - a.getX()) , 2) +\n\t\t\t\tMath.pow( (b.getY() - a.getY()) , 2)\n\t\t);\n\t\treturn ab;\n\t}",
"public double distance(double x, double y);",
"private double distance(Point A, Point B) {\n\t\tdouble dX = A.x - B.x;\n\t\tdouble dY = A.y - B.y;\n\t\treturn Math.sqrt(dX * dX + dY * dY);\n\t}",
"public double distance(Coordinates coordinate1, Coordinates coordinate2)\n {\n return Math.sqrt(Math.pow(coordinate1.getX() - coordinate2.getX(), 2) + Math.pow(coordinate1.getY() - coordinate2.getY(), 2));\n }",
"public double distancia(Ponto p){\n double dx = Math.pow((p.x - this.x), 2);\n double dy = Math.pow((p.y - this.y), 2);\n return Math.sqrt((dx+dy));\n }",
"public double getDistance(final Point2d p){\n Point2d nearest = getNearestPointOnLine(p);\n return nearest.distance(p);\n }",
"private static double calculaDistancia(double[] param1, double[] param2){\n\t\tdouble res1= Math.pow((param1[0]-param2[0]), 2);\n\t\tdouble res2= Math.pow((param1[1]-param2[1]), 2);\n\t\tdouble res3= Math.pow((param1[2]-param2[2]), 2);\n\t\tdouble res4= res1 + res2 + res3;\n\t\tdouble res5= res4/3;\n\t\tdouble res6= Math.sqrt(res5);\n\t\treturn res6;\n\t}",
"public static final double distance(final double x1, final double x2, final double y1, final double y2) {\r\n return Math.sqrt( ( (x2 - x1) * (x2 - x1)) + ( (y2 - y1) * (y2 - y1)));\r\n }",
"public static double euclideanDistance(Prototype one, Prototype two)\r\n {\r\n return d(one, two);\r\n }",
"public static EquationExpression dist2(final EquationPoint a,\n\t\t\tfinal EquationPoint b) {\n\t\tEquationExpression x = diff(a.getXExpression(), b.getXExpression());\n\t\tEquationExpression y = diff(a.getYExpression(), b.getYExpression());\n\t\treturn sum(times(x, x), times(y, y));\n\t}",
"public static EquationExpression dist2(final EquationPoint a, final EquationPoint b) {\n EquationExpression x = diff(a.getXExpression(), b.getXExpression());\n EquationExpression y = diff(a.getYExpression(), b.getYExpression());\n return sum(times(x,x), times(y,y));\n }",
"public abstract double distance(AbstractPoisson o2);",
"public double distance(final Coordinates other) {\n\t\treturn Math.sqrt(Math.pow((double) x - other.getX(), 2) + Math.pow((double) y - other.getY(), 2));\n\t}",
"public static float getDistance(float x1, float y1, float x2, float y2)\r\n\t{\r\n\t\treturn (float) Math.sqrt(getSquareDistance(x1, y1, x2, y2));\r\n\t}",
"public static final double distance(final float x1, final float x2, final float y1, final float y2) {\r\n return Math.sqrt( ( (x2 - x1) * (x2 - x1)) + ( (y2 - y1) * (y2 - y1)));\r\n }",
"public static double distance(Vertex v1, Vertex v2)\n\t{\n\t\treturn Math.sqrt(Math.pow((v2.x - v1.x), 2) + Math.pow((v2.y - v1.y), 2));\n\t}",
"public static EquationExpression dist(final EquationPoint a,\n\t\t\tfinal EquationPoint b) {\n\t\treturn sqrt(dist2(a, b));\n\t}",
"Integer distance(PathFindingNode a, PathFindingNode b);",
"public double calculateDistance(LatLng other) {\n return Math.sqrt( (this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y) );\n }",
"private Integer getDistance(double lat1, double lon1, double lat2, double lon2) {\n Location locationA = new Location(\"Source\");\n locationA.setLatitude(lat1);\n locationA.setLongitude(lon1);\n Location locationB = new Location(\"Destination\");\n locationB.setLatitude(lat2);\n locationB.setLongitude(lon2);\n distance = Math.round(locationA.distanceTo(locationB));\n return distance;\n }",
"private double dist(Integer unit1, Integer unit2, StateView newstate) {\n\t\t//Creating two arrays of size 2 to store the position of the 2 units\n\t\tint[] pos1 = new int[2];\n\t\tint[] pos2 = new int[2];\n\t\t//Extracting the positional data\n\t\tpos1[0] = newstate.getUnit(unit1).getXPosition();\n\t\tpos1[1] = newstate.getUnit(unit1).getYPosition();\n\t\tpos2[0] = newstate.getUnit(unit2).getXPosition();\n\t\tpos2[1] = newstate.getUnit(unit2).getYPosition();\n\t\t//Calculating the distance\n\t\tdouble dx = Math.abs(pos1[0] - pos2[0]);\n\t\tdouble dy = Math.abs(pos1[1] - pos2[1]);\n\t\tdouble distance = Math.sqrt(Math.pow(dx, 2.0) + Math.pow(dy, 2.0));\n\t\treturn distance;\n\t}",
"private double distFrom(double lat1, double lng1, double lat2, double lng2) {\n\t\tdouble dist = Math.pow(lat1 - lat2, 2) + Math.pow(lng1 - lng2, 2);\n\n\t\treturn dist;\n\t}",
"public double calcDistance(GpsCoordinate other)\n\t{\n\t\tdouble lat1 = degToRadian(this.latitude);\n\t\tdouble lng1 = degToRadian(this.longitude);\n\t\tdouble lat2 = degToRadian(other.latitude);\n\t\tdouble lng2 = degToRadian(other.longitude);\n\t\t\n\t\t/*\n\t\t * use haversine Formula to calc the distance\n\t\t * @see: http://en.wikipedia.org/wiki/Haversine_formula\n\t\t */\n\t\tdouble inRootFormula = Math.sqrt(\n\t\t\t\tMath.sin((lat1 - lat2)/2)*Math.sin((lat1 - lat2)/2)+\n\t\t\t\tMath.cos(lat1)*Math.cos(lat2)*Math.sin((lng1-lng2)/2)*Math.sin((lng1-lng2)/2));\n\t\t\n\t\treturn 2* EARTH_RADIUS * Math.asin(inRootFormula);\n\n\t\n\t}",
"public static String distance(String x1, String x2){\n\n }",
"private double calculateDistance(Example first, Example second) {\n\t\tdouble distance = 0;\n\t\tfor (Attribute attribute : first.getAttributes()) {\n\t\t\tdouble diff = first.getValue(attribute) - second.getValue(attribute);\n\t\t\tdistance += diff * diff;\n\t\t}\n\t\treturn Math.sqrt(distance);\n\t}",
"private static double getDistance(Point r_p1, Point r_p2, Point s_p1, Point s_p2, long time){\n\t\t// get the factors\n\t\tdouble a = getA(r_p1, r_p2, s_p1, s_p2);\n\t\tdouble b = getB(r_p1, r_p2, s_p1, s_p2);\n\t\tdouble c = getC(r_p1, r_p2, s_p1, s_p2);\n\t\t\n\t\tdouble dist = Math.sqrt(a*Math.pow(time, 2) + b*time + c);\n\t\t\n\t\treturn dist;\n\t}",
"public static double absoluteDistance(Prototype one, Prototype two)\r\n {\r\n double[] oneInputs = one.getInputs();\r\n double[] twoInputs = two.getInputs();\r\n //int _size = one.numberOfInputs();\r\n double acc = 0.0;\r\n for (int i = 0; i < numberOfInputs; ++i)\r\n {\r\n acc += Math.abs(oneInputs[i] - twoInputs[i]);\r\n }\r\n\r\n return acc;\r\n }",
"public static double getDistancia(Punto puntoA, Punto puntoB) {\r\n return Math.sqrt(Math.pow(puntoB.getX() - puntoA.getX(), 2) + Math.pow(puntoB.getY() - puntoA.getY(), 2));\r\n }",
"public static int dist(Location loc1, Location loc2)\n\t{\n\t\treturn Math.abs(loc1.x - loc2.x) + Math.abs(loc1.y - loc2.y);\n\t}",
"public double distance(InputDatum datum, InputDatum datum2) throws MetricException;",
"public static double getDist(int id1, int id2) {\n\t\tArrayList<Double> gA1 = geneAttributes.get(id1);\n\t\tArrayList<Double> gA2 = geneAttributes.get(id2);\n\t\tdouble dist = 0;\n\t\tfor(int i=0;i<gA1.size();i++) {\n\t\t\tdist += ( (gA1.get(i) - gA2.get(i)) * (gA1.get(i) - gA2.get(i)) );\n\t\t}\n\t\tdist = Math.sqrt(dist);\n\t\treturn dist;\n\t}",
"public abstract double distanceFrom(double x, double y);",
"public static EquationExpression dist(final EquationPoint a, final EquationPoint b) {\n return sqrt(dist2(a,b));\n }",
"double getDistance();",
"public abstract double calculateDistance(double[] x1, double[] x2);",
"public double distance(Point p) {\n\t\treturn Math.sqrt(Math.pow(p.y - this.y, 2) + Math.pow(p.x - this.x, 2));\n\t}",
"public double calcDistance(final Move otherPoint) {\r\n \r\n final double x = this.currentMove.getX();\r\n final double y = this.currentMove.getY();\r\n \r\n final double x2 = otherPoint.getX();\r\n final double y2 = otherPoint.getY();\r\n \r\n final double distx = Math.abs(x2 - x);\r\n final double disty = Math.abs(y2 - y);\r\n \r\n return Math.sqrt((distx * distx) + (disty * disty));\r\n }",
"private double distance(Double[] e1, Double[] e2) {\n if(e1.length != e2.length)\n throw new IllegalArgumentException(\"e1 and e2 lie in two different dimensional spaces.\");\n\n double sum = 0.0;\n for(int i = 0; i < e1.length; ++i)\n sum += Math.pow(e1[i] - e2[i], 2);\n return Math.sqrt(sum);\n }",
"public static final double distance(final int x1, final int x2, final int y1, final int y2) {\r\n return Math.sqrt( ( (x2 - x1) * (x2 - x1)) + ( (y2 - y1) * (y2 - y1)));\r\n }",
"public double dist(Point p) {\n\t\treturn Math.sqrt(Math.pow(this.getX() - p.getX(), 2) + Math.pow(this.getY() - p.getY(), 2));\n\t}"
] |
[
"0.83341765",
"0.823514",
"0.8193788",
"0.80250037",
"0.7874621",
"0.7815043",
"0.7770693",
"0.7609555",
"0.75574744",
"0.74879384",
"0.74697566",
"0.7465934",
"0.7461819",
"0.7460515",
"0.7444128",
"0.74408805",
"0.7417298",
"0.7416451",
"0.73901826",
"0.73789316",
"0.73416424",
"0.7335147",
"0.7325627",
"0.7321045",
"0.7319301",
"0.7268549",
"0.72659785",
"0.72623056",
"0.72607905",
"0.72534937",
"0.72455686",
"0.7216973",
"0.72074556",
"0.7197773",
"0.71950215",
"0.71808356",
"0.7169566",
"0.7161243",
"0.7151074",
"0.71440893",
"0.71401477",
"0.7140071",
"0.71261084",
"0.71114177",
"0.71076745",
"0.70819676",
"0.70497906",
"0.704651",
"0.70381916",
"0.7033274",
"0.7000627",
"0.70001316",
"0.69865847",
"0.69528276",
"0.69528043",
"0.69437945",
"0.6917213",
"0.6909793",
"0.69070846",
"0.69069827",
"0.689995",
"0.68899786",
"0.68611115",
"0.68582267",
"0.68501234",
"0.68445694",
"0.68390906",
"0.68248564",
"0.6818803",
"0.6810587",
"0.67998445",
"0.6787697",
"0.6777039",
"0.67708826",
"0.67530817",
"0.674131",
"0.67369944",
"0.6733703",
"0.6728283",
"0.672621",
"0.6697159",
"0.6694961",
"0.66915154",
"0.6688479",
"0.6685443",
"0.6676297",
"0.66757447",
"0.6674489",
"0.6674234",
"0.6658485",
"0.6654763",
"0.6653328",
"0.66512764",
"0.66417515",
"0.66411686",
"0.6634027",
"0.66179454",
"0.66141814",
"0.66140836",
"0.66087705"
] |
0.83090186
|
1
|
Returns whether p1 = p2 with characteristic distance d (to account for calculation errors)
|
static boolean isEqual(Point p1, Point p2, double d) {
return (distance(p1, p2) < 0.1 * d);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}",
"boolean hasDistance();",
"public static boolean doubleCompare(double accuracy, double d1, double d2)\n {\n if (Math.abs(d1 - d2) < accuracy) { return true; }\n return false;\n }",
"public static boolean doubleEqual(double d1, double d2) {\n if (Double.isNaN(d1) || Double.isNaN(d2)) {\n return false;\n }\n return Math.abs(d1 - d2) < EPSILON;\n }",
"public static final boolean lenientCrossing(S2Point a, S2Point b, S2Point c, S2Point d) {\n // assert (S2.isUnitLength(a));\n // assert (S2.isUnitLength(b));\n // assert (S2.isUnitLength(c));\n\n double acb = S2Point.scalarTripleProduct(b, a, c);\n if (Math.abs(acb) < MAX_DET_ERROR) {\n return true;\n }\n double bda = S2Point.scalarTripleProduct(a, b, d);\n if (Math.abs(bda) < MAX_DET_ERROR) {\n return true;\n }\n if (acb * bda < 0) {\n return false;\n }\n double cbd = S2Point.scalarTripleProduct(d, c, b);\n if (Math.abs(cbd) < MAX_DET_ERROR) {\n return true;\n }\n double dac = S2Point.scalarTripleProduct(c, d, a);\n if (Math.abs(dac) < MAX_DET_ERROR) {\n return true;\n }\n return (acb * cbd >= 0) && (acb * dac >= 0);\n }",
"boolean withinD(double d, double x, double y, double x2, double y2) {\r\n\t\tif (x == Double.NEGATIVE_INFINITY)\r\n\t\t\tx = x2;\r\n\t\tif (y == Double.NEGATIVE_INFINITY)\r\n\t\t\ty = y2;\r\n\t\tdouble[] origin = {x,y};\r\n\t\tdouble[] point = {x2, y2};\r\n\t\tdouble dist = Physics.len( origin, 0 , point, 0);\r\n\t\treturn dist <= d;\r\n\t}",
"public abstract boolean isSameDirection(double[] direction1, double[] direction2);",
"@Test\n\tpublic void testEquals2() {\n\t\tDistance d2 = new Distance();\n\t\tDistance d4 = new Distance(1, 1);\n\t\tassertEquals(true, d2.equals(d4));\n\t}",
"@Test\n\tpublic void testEquals1() {\n\t\tDistance d1 = new Distance(0, 0);\n\t\tDistance d2 = new Distance();\n\t\tassertEquals(false, d1.equals(d2));\n\t}",
"public static final boolean m18706a(double d, double d2, double d3) {\n return d == d2 || (Double.isNaN(d) && Double.isNaN(d2)) || Math.abs(d - d2) <= d3;\n }",
"private float checkDistance(float d) {\r\n if (d < 0) {\r\n return 0f;\r\n }\r\n if (d > 1) {\r\n return 1f;\r\n }\r\n return d;\r\n }",
"@Override\n public double similarity(double[] data1, double[] data2) {\n\t\tdouble distance;\n\t\tint i;\n\t\tif(MATHOD ==1){\n\t\t\t i = 0;\n\t\t\tdistance = 0;\n\t\t\twhile (i < data1.length && i < data2.length) {\n\t\t\t\tdistance += Math.pow(Math.abs(data1[i] - data2[i]), q);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tif(MATHOD ==2){\n\t\t\ti = 0;\n\t\t\tdistance = 0;\n\t\t\twhile (i < data1.length && i < data2.length) {\n\t\t\t\tdistance += ( Math.abs(data1[i] - data2[i]) )/( Math.abs(data1[i]) + Math.abs(data2[i]) );\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tif(MATHOD ==3){\n\t\t\ti = 0;\n\t\t\tdistance = 0;\n\t\t\twhile (i < data1.length && i < data2.length) {\n\t\t\t\tdistance += Math.abs( (data1[i] - data2[i]) / ( 1 + data1[i] + data2[i]) );\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\treturn Math.pow(distance, 1 / q);\n }",
"@Test\n public void testEditDistEqualStrings() throws Exception{\n assertEquals(0,Esercizio2.edit_distance_dyn(s1,s4));\n }",
"public boolean equals(Complex that, double d) {\r\n double delta = d;\r\n double deltaReal = Math.abs(this.getReal() - that.getReal());\r\n double deltaImag = Math.abs(this.getImag() - that.getImag());\r\n \r\n if (deltaReal > delta || deltaImag > delta)\r\n return false;\r\n \r\n return true; \r\n }",
"static double distance(Point p1, Point p2) {\n\t\treturn Math.sqrt((p2.x - p1.x)*(p2.x - p1.x) + (p2.y - p1.y)*(p2.y - p1.y));\n\t}",
"public boolean contains(final Point2d p){\n return this.getDistance(p) < 0.0000000001;\n }",
"private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }",
"private double d(Point a, Point b){\n\t\treturn Math.sqrt(Math.pow(b.getX()-a.getX(),2) + Math.pow(a.getY() - b.getY(), 2));\r\n\t}",
"public static boolean collisionCheck (Planet p1, Planet p2, double dist){\n \n if ( dist <= p1.rad + p2.rad ){ \n return true;\n }\n else{ \n return false;\n }\n }",
"public boolean near(double d, double x, double y) {\n Reporter.debug(6, \"(%f,%f) dist (%f, %f)\",\n x, y, _x, _y);\n double dist = Math.sqrt(Math.pow(_x - x, 2)\n + Math.pow(_y - y, 2));\n Reporter.debug(6, \"%f <= %f\\t\" + (dist <= d), dist, d);\n return dist < d;\n }",
"static boolean ccw(PointDouble p, PointDouble q, PointDouble r) {\n return cross(vector(p, q), vector(p, r)) > 0;\n }",
"boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}",
"public double matchData() {\n\t\tArrayList<OWLDataProperty> labels1 = getDataProperties(ontology1);\n\t\tArrayList<OWLDataProperty> labels2 = getDataProperties(ontology2);\n\t\tfor (OWLDataProperty lit1 : labels1) {\n\t\t\tfor (OWLDataProperty lit2 : labels2) {\n\t\t\t\tif (LevenshteinDistance.computeLevenshteinDistance(TestAlign.mofidyURI(lit1.toString())\n\t\t\t\t\t\t, TestAlign.mofidyURI(lit2.toString()))>0.8){\n\t\t\t\t\treturn 1.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0.;\n\n\n\t}",
"public static boolean simpleCrossing(S2Point a, S2Point b, S2Point c, S2Point d) {\n // We compute simpleCCW() for triangles ACB, CBD, BDA, and DAC. All\n // of these triangles need to have the same orientation (CW or CCW)\n // for an intersection to exist. Note that this is slightly more\n // restrictive than the corresponding definition for planar edges,\n // since we need to exclude pairs of line segments that would\n // otherwise \"intersect\" by crossing two antipodal points.\n\n S2Point ab = S2Point.crossProd(a, b);\n double acb = -(ab.dotProd(c));\n double bda = ab.dotProd(d);\n if (acb * bda <= 0) {\n return false;\n }\n\n S2Point cd = S2Point.crossProd(c, d);\n double cbd = -(cd.dotProd(b));\n double dac = cd.dotProd(a);\n return (acb * cbd > 0) && (acb * dac > 0);\n }",
"private double lPDistance(Instance one, Instance two, int p_value) {\n\n double distanceSum = 0;\n\n for (int i = 0; i < one.numAttributes() - 1; i++) {\n distanceSum += Math.pow(Math.abs(one.value(i) - two.value(i)), p_value);\n }\n\n distanceSum = Math.pow(distanceSum, 1.0 / p_value); // Root in base P\n\n return distanceSum;\n\n }",
"double distance(Point p1,Point p2){\n\t\tdouble dx = p1.x - p2.x;\n\t\tdouble dy = p1.y - p2.y;\n\t\treturn Math.sqrt(dx*dx+dy*dy);\n\t}",
"@Test\n\tpublic void testDistance() {\n\t\tCoordinate newBasic = new Coordinate(4,4);\n\t\tassertTrue(\"Correct distance\", newBasic.distance(basic2) == 5);\n\t}",
"@Test\n\tpublic void evalCrispDistanceWithFuzzyNumberOverlap1(){\n\t\tFuzzySet res = cs4.distance(dfn2);\n\t\tassertTrue(res instanceof FuzzyInterval);\n\t\tFuzzyInterval fuzzyRes = (FuzzyInterval)res;\n\t\t//Puntos limite\n\t\tassertTrue(fuzzyRes.getMembershipValue(0)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(1)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(2)==1);\n\t\t//Valores extremos\n\t\tassertTrue(fuzzyRes.getMembershipValue(3)==0);\n\t\t//Valores exteriores\n\t\tassertTrue(fuzzyRes.getMembershipValue(3.1)==0);\n\t\tassertTrue(fuzzyRes.getMembershipValue(-1)==0);\n\t}",
"private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}",
"@Test\n public void testEditDistDifferentStrings() throws Exception{\n assertEquals(1,Esercizio2.edit_distance_dyn(s1, s2));\n }",
"private boolean linkIsViableDSRCComplex(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link viable debug: no GPS fix.\");\n\t\t\treturn true;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\n\t\t// Too far away (> 250m)\n\t\tif (distance > 250) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link not viable: %.1f meters apart. (>250)\", distance));\n\t\t\treturn false;\n\t\t}\n\n\t\t// Quite close together (< 150 m)\n\t\tif (v1.distanceTo(v2) < 150) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (<100m)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both stationary?\n\t\tif (v1.hasSpeed() && v1.getSpeed() < 2 && v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (low speed)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// One stationary and other moving towards it?\n\t\tif (v1.hasSpeed()\n\t\t\t\t&& v1.getSpeed() < 2\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& ((Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (other approaching)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\t\tif (v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& ((Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (approaching other)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both moving towards each other\n\t\tif (v1.distanceTo(v2) < 200\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& (Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 15)\n\t\t\t\t&& (Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 15)) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (mutual approach)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Moving together?\n\t\tif (v1.distanceTo(v2) < 200\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& v1.hasSpeed()\n\t\t\t\t&& v2.hasSpeed()\n\t\t\t\t&& (Math.abs(v1.getBearing() - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.getBearing() - v2.getBearing()) > 360 - 15)\n\t\t\t\t&& Math.abs(v1.getSpeed() - v2.getSpeed()) < 5) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (moving together)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// log_nodisplay(String.format(\n\t\t// \"Link viable: %.1f meters apart. (moving apart)\", distance));\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link not viable: %.1f meters apart. (moving apart)\", distance));\n\t\treturn false;\n\t}",
"double dist(pair p1){\n\t\tdouble dx=(p1.x-centre.x);\n\t\tdouble dy=(p1.y-centre.y);\n\t\tcount++;\n\t\treturn java.lang.Math.sqrt((dx*dx)+(dy*dy));\n\t}",
"public int distance(Coord coord1, Coord coord2);",
"@Test\n\tpublic void evalCrispDistanceWithFuzzyNumberOverlap2(){\n\t\tFuzzySet res = cs4.distance(dfn3);\n\t\tassertTrue(res instanceof FuzzyInterval);\n\t\tFuzzyInterval fuzzyRes = (FuzzyInterval)res;\n\t\t//Puntos limite\n\t\tassertTrue(fuzzyRes.getMembershipValue(0)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(1)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(2)==0);\n\t\t//Valores exteriores\n\t\tassertTrue(fuzzyRes.getMembershipValue(3)==0);\n\t\tassertTrue(fuzzyRes.getMembershipValue(-1)==0);\n\t}",
"private static double EuclideanDistance(Point p1, Point p2) {\n\t\tdouble dx = p2.X - p1.X;\n\t\tdouble dy = p2.Y - p1.Y;\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t}",
"@Test\r\n\tpublic void testDistancia0() \r\n\t{\r\n\t\tAssert.assertEquals(1.41, new Ponto(3,3).dist(new Ponto(4,2)), EPSILON);\r\n\t\tAssert.assertEquals(26.20, new Ponto(-7,-4).dist(new Ponto(17,6.5)), EPSILON);\t\r\n\t\tAssert.assertEquals(0.00, new Ponto(0,0).dist(new Ponto(0,0)), EPSILON);\t\r\n\t}",
"private int robustCrossingInternal2(S2Point d) {\n if (!hasTangents) {\n S2Point norm = S2Point.normalize(S2.robustCrossProd(a, b));\n aTangent = S2Point.crossProd(a, norm);\n bTangent = S2Point.crossProd(norm, b);\n hasTangents = true;\n }\n\n // The error in robustCrossProd() is insignificant. The maximum error in the call to\n // crossProd() (i.e., the maximum norm of the error vector) is\n // (0.5 + 1/sqrt(3)) * S2.DBL_EPSILON. The maximum error in each call to dotProd() below is\n // S2.DBL_EPSILON. (There is also a small relative error term that is insignificant because\n // we are comparing the result against a constant that is very close to zero.)\n final double kError = (1.5 + 1 / Math.sqrt(3)) * S2.DBL_EPSILON;\n if ((c.dotProd(aTangent) > kError && d.dotProd(aTangent) > kError)\n || (c.dotProd(bTangent) > kError && d.dotProd(bTangent) > kError)) {\n return -1;\n }\n\n // Otherwise, eliminate the cases where any two vertices are equal. (These cases could be\n // handled in the code below, but since expensiveSign lives up to its name we would rather\n // avoid calling it if possible.)\n //\n // These are the cases where two vertices from different edges are equal.\n if (a.equalsPoint(c) || a.equalsPoint(d) || b.equalsPoint(c) || b.equalsPoint(d)) {\n return 0;\n }\n\n // These are the cases where an input edge is degenerate. Note that in most cases, if CD is\n // degenerate then this method is not even called because acb and bda have different signs.\n // That's why this method is documented to return either 0 or -1 when an input edge is\n // degenerate.\n if (a.equalsPoint(b) || c.equalsPoint(d)) {\n return 0;\n }\n\n // Otherwise it's time to break out the big guns.\n if (acb == 0) {\n acb = -S2Predicates.Sign.expensive(a, b, c, true);\n assert acb != 0;\n }\n if (bdaReturn == 0) {\n bdaReturn = S2Predicates.Sign.expensive(a, b, d, true);\n assert bdaReturn != 0;\n }\n if (bdaReturn != acb) {\n return -1;\n }\n\n S2Point cCrossD = S2Point.crossProd(c, d);\n int cbd = -sign(c, d, b, cCrossD);\n assert cbd != 0;\n if (cbd != acb) {\n return -1;\n }\n\n int dac = sign(c, d, a, cCrossD);\n assert dac != 0;\n return (dac == acb) ? 1 : -1;\n }",
"private boolean distanciaPuntos(int x, int y, int di){\r\n\t\tdouble distancia = Math.sqrt((x-this.x)*(x-this.x) + (y-this.y)*(y-this.y));\r\n\t\treturn distancia <= (di+this.diameter);\r\n\t}",
"private static boolean isDistanceOK(double[] diff) {\n\t\tfor (double d : diff) {\n\t\t\tif (Math.abs(d) > MAX_PIXEL_DISTANCE) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean equals(Point p1, Point p2) {\n final double EPSILON = 0.0001;\n return Math.abs(p1.x - p2.x) < EPSILON &&\n Math.abs(p1.y - p2.y) < EPSILON;\n }",
"public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);",
"public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }",
"private static final double l2Distance (final double[] p0,\n final double[] p1) {\n assert p0.length == p1.length;\n double s = 0.0;\n double c = 0.0;\n for (int i=0;i<p0.length;i++) {\n final double dp = p0[i] - p1[i];\n final double zi = dp*dp - c;\n final double t = s + zi;\n c = (t - s) - zi;\n s = t; }\n return Math.sqrt(s); }",
"public static double distanceBetween(Pair<Double, Double> p1, Pair<Double, Double> p2) {\n float[] result = new float[1];\n android.location.Location.distanceBetween(p1.first, p1.second, p2.first, p2.second, result);\n return result[0];\n }",
"private boolean checkPrevious(String id1, String id2, double[] distances) {\n boolean retVal;\n // Create a string pair.\n var pair = new StringPair(id1, id2);\n double[] oldDistances = this.oldResultMap.get(pair);\n if (oldDistances == null)\n retVal = false;\n else {\n // Copy the cached results to the provided result array.\n System.arraycopy(oldDistances, 0, distances, 0, distances.length);\n retVal = true;\n }\n return retVal;\n }",
"public abstract double calculateDistance(double[] x1, double[] x2);",
"protected boolean checkDistance(Creep c, Point p, double range) {\n if (!c.isAlive()) {\n return false;\n }\n return p.distance(c.getPosition()) < range + c.getHalfWidth();\n }",
"public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }",
"@Test\n\tpublic void evalCrispDistanceWithCrisp1(){\n\t\tFuzzySet res = (CrispSet)cs1.distance(cs2);\n\t\tassertTrue(res instanceof CrispSet);\n\t\tCrispSet resCrisp = (CrispSet)res;\n\t\t//Puntos limite\t\t\n\t\tassertTrue(resCrisp.getLeftBoundary()==3);\n\t\tassertTrue(resCrisp.getRightBoundary()==6);\n\t\t//Valores extremos\n\t\tassertTrue(resCrisp.getMembershipValue(0)==0);\n\t\tassertTrue(resCrisp.getMembershipValue(3)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(4)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(4.5)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(5)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(6)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(6.01)==0);\n\t}",
"protected double getDistance(Point p1, Point p2) {\n\t\treturn Math.sqrt((p1.getX()-p2.getX())*(p1.getX()-p2.getX()) + (p1.getY()-p2.getY())*(p1.getY()-p2.getY())); \n\t}",
"public boolean isSetDistance() {\n return __isset_bit_vector.get(__DISTANCE_ISSET_ID);\n }",
"public boolean isEquilateral() {\r\n double d1 = pointA.distance(pointB);\r\n double d2 = pointA.distance(pointC);\r\n double d3 = pointB.distance(pointC);\r\n \r\n return(Math.abs(d1 - d2) < EPSILON && Math.abs(d1 - d3) < EPSILON && (Math.abs(d2 - d3) < EPSILON));\r\n }",
"public void testGetDistancedoubledouble() {\r\n\t\tCircleArc2D arc = new CircleArc2D(new Point2D(0, 0), 10, 0, PI/2);\r\n\t\tassertEquals(arc.distance(0, 0), 10, Shape2D.ACCURACY);\r\n\t\tassertEquals(arc.distance(10, 0), 0, Shape2D.ACCURACY);\r\n\t\tassertEquals(arc.distance(0, 10), 0, Shape2D.ACCURACY);\r\n\t\tassertEquals(arc.distance(10, -10), 10, Shape2D.ACCURACY);\t\t\r\n\t\tassertEquals(arc.distance(10, 10), (10*(Math.sqrt(2)-1)), Shape2D.ACCURACY);\t\t\r\n\t}",
"public double similarity(REPOverlap rep2) {\r\n\t\tdouble p = 0;\r\n\t\tint i = 0;\r\n\t\tfor (i=0;i<dist.length;i++) {\r\n\t\t\tp += Math.sqrt(dist[i]*rep2.dist[i]);\r\n\t\t}\r\n\t\treturn p;\r\n\t}",
"private int distance(Point p1, Point p2) {\n return (int) Math.sqrt(Math.pow(p1.getCenterX() - p2.getCenterX(), 2) + Math.pow(p1.getCenterY() - p2.getCenterY(), 2));\n }",
"private double calculateDistance(Example first, Example second) {\n\t\tdouble distance = 0;\n\t\tfor (Attribute attribute : first.getAttributes()) {\n\t\t\tdouble diff = first.getValue(attribute) - second.getValue(attribute);\n\t\t\tdistance += diff * diff;\n\t\t}\n\t\treturn Math.sqrt(distance);\n\t}",
"public boolean is_dominant_on(CostVector other_cost_vector){\n int score = 0;\n if (Constants.FIRST_MAX_ATTR >= 0) {\n for (int i = 0; i < Constants.FIRST_MAX_ATTR; i++) {\n if (costs[i] < other_cost_vector.getCosts()[i]) {\n score++;\n }\n }\n for (int i = Constants.FIRST_MAX_ATTR; i < costs.length; i++) {\n if (costs[i] > other_cost_vector.getCosts()[i]) {\n score++;\n }\n }\n } else {\n for (int i = 0; i < costs.length; i++) {\n if (costs[i] <= other_cost_vector.getCosts()[i]) {\n score++;\n }\n }\n }\n\n if (score == costs.length) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean hasDeviation(Location location){\n\n double dth = 2;\n double d = getDistanceFromNextPoint(location);\n details.setText(details.getText()+\"\\n\"+\"Min Dis :\"+String.valueOf(dth));\n details.setText(details.getText()+\"\\n\"+\"Min_m Dist :\"+String.valueOf(d));\n\n if (d >= dth)\n return true;\n return false;\n }",
"@Test\n\tpublic void testGetDistance() {\n\t\t// Initialize 3 points\n\t\tPoint2D p1 = new Point2D.Double(1.848,8.331);\n\t\tPoint2D p2 = new Point2D.Double(10.241,9.463);\n\t\tPoint2D p3 = new Point2D.Double(8.889,2.456);\n\t\t\n\t\t// Initialized the Triangulate object and load points and radii\n\t\tTriangulate test = new Triangulate();\n\t\ttest.setPoints(p1, p2, p3);\n\t\tdouble err = 1e-4; \n\t\t\n\t\tdouble[] dist = test.getDistance();\n\t\tdouble actual1 = 8.4690;\n\t\tdouble actual2 = 7.1362;\n\t\tdouble actual3 = 9.1701;\n\t\t\n\t\tassertEquals(actual1, dist[0], err);\n\t\tassertEquals(actual2, dist[1], err);\n\t\tassertEquals(actual3, dist[2], err);\n\t}",
"public boolean almostEqual(double a, double b);",
"private boolean linkIsViableWiFiComplex(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link viable debug: no GPS fix.\");\n\t\t\treturn true;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\n\t\t// Too far away (> 70m)\n\t\tif (distance > 70) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link not viable: %.1f meters apart. (>70)\", distance));\n\t\t\treturn false;\n\t\t}\n\n\t\t// Quite close together (< 20 m)\n\t\tif (v1.distanceTo(v2) < 20) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (<20m)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both stationary?\n\t\tif (v1.hasSpeed() && v1.getSpeed() < 2 && v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (low speed)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// One stationary and other moving towards it?\n\t\tif (v1.hasSpeed()\n\t\t\t\t&& v1.getSpeed() < 2\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& ((Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (other approaching)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\t\tif (v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& ((Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (approaching other)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both moving towards each other\n\t\tif (v1.distanceTo(v2) < 35\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& (Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 15)\n\t\t\t\t&& (Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 15)) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (mutual approach)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Moving together?\n\t\tif (v1.distanceTo(v2) < 35\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& v1.hasSpeed()\n\t\t\t\t&& v2.hasSpeed()\n\t\t\t\t&& (Math.abs(v1.getBearing() - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.getBearing() - v2.getBearing()) > 360 - 15)\n\t\t\t\t&& Math.abs(v1.getSpeed() - v2.getSpeed()) < 5) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (moving together)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// log_nodisplay(String.format(\n\t\t// \"Link viable: %.1f meters apart. (moving apart)\", distance));\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link not viable: %.1f meters apart. (moving apart)\", distance));\n\t\treturn false;\n\t}",
"public abstract double getDistance(T o1, T o2) throws Exception;",
"private double calculateDistance(Circle point1, Circle point2) {\r\n double x = point1.getCenterX() - point2.getCenterX();\r\n double y = point1.getCenterY() - point2.getCenterY();\r\n\r\n return Math.sqrt(x*x + y*y);\r\n }",
"public boolean almostEqual(Coordinates a, Coordinates b);",
"@Test\n public void testDistanceTo() {\n System.out.println(\"Testing distanceTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 786.3,\n 786.3,\n 786.3,\n 786.3,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.distanceTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }",
"double computeSimilarity(double[] vector1, double[] vector2) {\n\n // We need doubles for these so the math is done correctly. Else we only\n // return 1 or 0.\n double nDifferences = 0.;\n double lengthOfVector = (double) vector1.length;\n\n for (int i = 0; i < vector1.length; i++) {\n if (vector1[i] != vector2[i]) {\n nDifferences ++;\n }\n } \n return (1. - (nDifferences/lengthOfVector));\n }",
"public interface DistanceMeasure {\n\n /**\n * Euclidean distance algorithms to calculate the minium distance. This\n * algorithms operate on two double array.\n *\n * @param a coordinates of the either point.\n * @param b coordinates of the other point.\n * @return distance of the two given coordinates.\n * @see MultidimensionalPoint\n */\n default double euclideanDistance(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = a[i] - b[i];\n sum += d * d;\n }\n return Math.sqrt(sum);\n }\n\n /**\n * Euclidean distance algorithms to calculate the minium distance by the\n * absolute methods which used to calculate the difference of two\n * coordinate. This algorithms operate on two double array.\n *\n * @param a coordinates of the either point.\n * @param b coordinates of the other point.\n * @return distance of the two given coordinates.\n * @see MultidimensionalPoint\n */\n default double euclideanDistanceAbs(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = Math.abs(a[i] - b[i]);\n sum += d * d;\n }\n return Math.sqrt(sum);\n }\n\n /**\n * Check the two given double array has the same length.\n *\n * @param a given array of coordinates.\n * @param b given array of coordinates.\n * @throws IllegalArgumentException\n */\n default void checkLengthOfArrays(double[] a, double[] b) throws IllegalArgumentException {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"Dimensions are not the same.\");\n }\n }\n}",
"private static double dist(Data d, Centroid c)\r\n \t{\r\n \t\treturn Math.sqrt(Math.pow((c.Y() - d.Y()), 2) + Math.pow((c.X() - d.X()), 2));\r\n \t}",
"static boolean collinear(PointDouble p, PointDouble q, PointDouble r) {\n return Math.abs(cross(vector(p, q), vector(p, r))) < EPS;\n }",
"private double dist(Integer unit1, Integer unit2, StateView newstate) {\n\t\t//Creating two arrays of size 2 to store the position of the 2 units\n\t\tint[] pos1 = new int[2];\n\t\tint[] pos2 = new int[2];\n\t\t//Extracting the positional data\n\t\tpos1[0] = newstate.getUnit(unit1).getXPosition();\n\t\tpos1[1] = newstate.getUnit(unit1).getYPosition();\n\t\tpos2[0] = newstate.getUnit(unit2).getXPosition();\n\t\tpos2[1] = newstate.getUnit(unit2).getYPosition();\n\t\t//Calculating the distance\n\t\tdouble dx = Math.abs(pos1[0] - pos2[0]);\n\t\tdouble dy = Math.abs(pos1[1] - pos2[1]);\n\t\tdouble distance = Math.sqrt(Math.pow(dx, 2.0) + Math.pow(dy, 2.0));\n\t\treturn distance;\n\t}",
"@Override\n\tpublic boolean isSatisfied(double d) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic double computeDistance(AssociatedPair obs) {\n\n\t\t// triangulate the point in 3D space\n\t\ttriangulate.triangulate(obs.p1,obs.p2,keyToCurr,p);\n\n\t\tif( p.z < 0 )\n\t\t\treturn Double.MAX_VALUE;\n\n\t\t// compute observational error in each view\n\t\tdouble error = errorCam1.errorSq(obs.p1.x,obs.p1.y,p.x/p.z,p.y/p.z);\n\n\t\tSePointOps_F64.transform(keyToCurr,p,p);\n\t\tif( p.z < 0 )\n\t\t\treturn Double.MAX_VALUE;\n\n\t\terror += errorCam2.errorSq(obs.p2.x,obs.p2.y, p.x/p.z , p.y/p.z);\n\n\t\treturn error;\n\t}",
"public boolean areDisjoint() {\n return !geometry.almostZero(distance);\n }",
"public AlgoAreEqual(Construction cons, GeoElement inputElement1,\n\t\t\tGeoElement inputElement2) {\n\t\tsuper(cons);\n\t\tthis.inputElement1 = inputElement1;\n\t\tthis.inputElement2 = inputElement2;\n\n\t\toutputBoolean = new GeoBoolean(cons);\n\n\t\tsetInputOutput();\n\t\tcompute();\n\n\t}",
"public double comparePoints(KdTreeST<Value>.Node node, Point2D p, boolean test) {\n\t\tif (test) {\n\t\t\treturn Double.compare(p.x(), node.point.x());\n\t\t} else {\n\t\t\treturn Double.compare(p.y(), node.point.y());\n\t\t}\n\n\t}",
"public static double computeDistance (double[] arr1, double[] arr2, int d) {\n\t\tif (arr1.length < d || arr2.length < d)\n\t\t\treturn -1;\n\n\t\tdouble sum = 0;\n\t\tfor (int i=0; i<d; i++) {\n\t\t\tsum += (arr1[i] - arr2[i]) * (arr1[i] - arr2[i]);\n\t\t}\n\t\treturn sum;\n\t}",
"public static void main(String[] args) {\n Ponto p1 = new Ponto(1, 1);\n Ponto p2 = new Ponto(3,1);\n System.out.println(\"ponto 1=\"+p1);\n System.out.println(\"ponto 2=\"+p2);\n\n System.out.print(\"Os pontos são iguais ? \"+p1.Equal(p2));\n System.out.print(\"\\n\");\n\n System.out.print(\"Distancia entre os dois pontos=\"+p1.Distance(p2));\n }",
"public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }",
"public static double d(Prototype one, Prototype two)\r\n {\r\n return Math.sqrt(squaredEuclideanDistance(one, two));\r\n }",
"private double distance(Double[] e1, Double[] e2) {\n if(e1.length != e2.length)\n throw new IllegalArgumentException(\"e1 and e2 lie in two different dimensional spaces.\");\n\n double sum = 0.0;\n for(int i = 0; i < e1.length; ++i)\n sum += Math.pow(e1[i] - e2[i], 2);\n return Math.sqrt(sum);\n }",
"private Double euclidean(LatitudeLongitude point1, LatitudeLongitude point2) {\n return Double.valueOf(Math.sqrt(Math.pow(point1.getLatitude() - point2.getLatitude(), 2)\n + Math.pow(point1.getLongitude() - point2.getLongitude(), 2)));\n }",
"private static double distance(double x, double y, double x1, double x2,\n\t\t\tdouble y1, double y2) {\n\t\tPoint p = new Point(x, y);\n\t\tPoint p1 = new Point(x1, y1);\n\t\tPoint p2 = new Point(x2, y2);\n\t\treturn p.distance(p1, p2);\n\t}",
"double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }",
"public double orthodromicDistanceWGS84(double dLat1, double dLon1, double dLat2, double dLon2){\n\t\t\n\t\tif(dLon1<=-180){\n\t\t\tdLon1=-179.99999999;\n\t\t}\n\t\tif(dLon1>=180){\n\t\t\tdLon1=179.99999999;\n\t\t}\n\t\tif(dLon2<=-180){\n\t\t\tdLon2=-179.99999999;\n\t\t}\n\t\tif(dLon2>=180){\n\t\t\tdLon2=179.99999999;\n\t\t}\n\t\t\n\t\tif(dLat1<=-90){\n\t\t\tdLat1=-89.99999999;\n\t\t}\n\t\tif(dLat1>=90){\n\t\t\tdLat1=89.99999999;\n\t\t}\n\t\tif(dLat2<=-90){\n\t\t\tdLat2=-89.99999999;\n\t\t}\n\t\tif(dLat2>=90){\n\t\t\tdLat2=89.99999999;\n\t\t}\n\t\t\n\t\t\n\t\tgcl1.setStartingGeographicPoint(dLon1, dLat1);\n\t\tgcl1.setDestinationGeographicPoint(dLon2, dLat2);\n\t\ttry{\n\t\t\treturn gcl1.getOrthodromicDistance()/1000.;\n\t\t}catch(Exception e){\n\t\t\treturn orthodromicDistance(dLat1, dLon1, dLat2, dLon2);\n\t\t}\n\t}",
"double getDistance(Point p);",
"boolean hasDouble();",
"private boolean linkIsViableDSRC(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link not viable: GPS disabled\");\n\t\t\treturn false;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\t\tlong threshold = 250;\n\t\tboolean viable = (distance < threshold);\n\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link %s: %.1f meters apart (threshold %d). v1=%s v2=%s\",\n\t\t\t\tviable ? \"viable\" : \"not viable\", distance, threshold, v1, v2));\n\n\t\treturn viable;\n\t}",
"public boolean larger(CRational1 r) {\n\t\tint cn = (this.n * r.d) - (this.d * r.n);\r\n\t\tif (cn < 0)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}",
"public static double euclideanDistance(Prototype one, Prototype two)\r\n {\r\n return d(one, two);\r\n }",
"public static boolean roughlyEqual(double a, double b) {\n if (Double.isNaN(a)) {\n return Double.isNaN(b);\n }\n\n if (Double.isNaN(b)) {\n return false;\n }\n\n return Math.abs(a - b) < 0.01;\n }",
"private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}",
"public static float getDistanceBetween(PVector p1, PVector p2) {\n // Note: Raw values between point 1 and point 2 not valid, as they are are origin-based.\n PVector sub = PVector.sub(p1, p2);\n PVector xaxis = new PVector(1, 0);\n float dist = PVector.dist(sub, xaxis);\n return dist;\n }",
"private void comparePoints(double[] firstP, double[] secondP) {\n assertEquals(firstP.length, secondP.length);\n\n for(int j=0; j<firstP.length; j++) {\n assertEquals(\"j = \"+j, firstP[j], secondP[j], TOLERANCE);\n }\n }",
"public boolean includesPoint(Point p) {\n double ABC = getArea();\n double PAB = new Triangle(p, p1, p2).getArea();\n double PBC = new Triangle(p, p2, p3).getArea();\n double PAC = new Triangle(p, p1, p3).getArea();\n return abs(ABC - (PAB + PBC + PAC)) < 0.000000001;\n }",
"public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }",
"@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}",
"public abstract double distance(AbstractPoisson o2);",
"public double distance(double[] vector1, double[] vector2) throws MetricException;",
"public double distance(InputDatum datum, InputDatum datum2) throws MetricException;",
"public abstract double distanceFrom(double x, double y);"
] |
[
"0.6444397",
"0.643919",
"0.60948575",
"0.60609996",
"0.60576606",
"0.58976305",
"0.5863028",
"0.5831641",
"0.58139783",
"0.57474476",
"0.5723425",
"0.57128584",
"0.5706858",
"0.570498",
"0.567625",
"0.5663376",
"0.5660188",
"0.5631915",
"0.5621714",
"0.56178325",
"0.5609768",
"0.56078315",
"0.5580006",
"0.55784446",
"0.5577195",
"0.5561962",
"0.5560891",
"0.5549452",
"0.55235124",
"0.5518241",
"0.5499824",
"0.5492006",
"0.5486268",
"0.54834205",
"0.5482901",
"0.54800004",
"0.54615426",
"0.5450009",
"0.54368466",
"0.5414163",
"0.54068536",
"0.53979486",
"0.5390435",
"0.53873414",
"0.53856367",
"0.5376097",
"0.5371456",
"0.5365821",
"0.5354963",
"0.53465825",
"0.5310929",
"0.52983963",
"0.52928066",
"0.5291351",
"0.5289795",
"0.52882206",
"0.52866596",
"0.5275578",
"0.52727175",
"0.5271537",
"0.52710444",
"0.5260771",
"0.5245579",
"0.5239869",
"0.5236585",
"0.52353555",
"0.5230577",
"0.5224035",
"0.52113545",
"0.51929414",
"0.51901245",
"0.51860374",
"0.5184765",
"0.51748055",
"0.517132",
"0.5162633",
"0.5162086",
"0.51597166",
"0.5142299",
"0.5139505",
"0.5135159",
"0.5131271",
"0.5130996",
"0.5123681",
"0.5107913",
"0.51022613",
"0.51022226",
"0.50927323",
"0.50905937",
"0.50897914",
"0.5087797",
"0.50854933",
"0.50850564",
"0.5071947",
"0.5067942",
"0.5061755",
"0.5057976",
"0.5056965",
"0.5055976",
"0.5055401"
] |
0.7589997
|
0
|
Returns whether p belong to al (in the sense of isEqual)
|
static boolean isInArray(Point p, ArrayList<Point> al, double d) {
for (Point pa : al) {
if (isEqual(p, pa, d)) {
return true;
}
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean equals(Object p) {\r\n return this.id == ((Point) p).id;\r\n }",
"boolean hasIsEquivalent();",
"public boolean equals(Person p) {\n if (this.name == p.getName() && this.surname == p.getSurname())\n return true;\n else\n return false;\n }",
"public boolean contain(Point p) {\n\t\tdouble n1, n2, n3, n4, n5, n6;\n\t\tPlane pl1, pl2, pl3, pl4, pl5, pl6;\n\t\tpl1 = new Plane(A1, B1, C1); // Mat phang A1.B1.C1.D1 (1)\n\t\tpl2 = new Plane(A1, B1, A2); // Mat phang A1.B1.B2.A2 (2)\n\t\tpl3 = new Plane(A1, D1, A2); // Mat phang A1.D1.D2.A2 (3)\n\t\tpl4 = new Plane(A2, pl1.getV()); // Mat phang A2.B2.C2.D2 (1)\n\t\tpl5 = new Plane(C1, pl2.getV()); // Mat phang C1.D1.D2.C2 (2)\n\t\tpl6 = new Plane(B1, pl3.getV()); // Mat phang B1.C1.C2.B2 (3)\n\n\t\tn1 = pl1.doSomething(p);\n\t\tn4 = pl4.doSomething(p);\n\n\t\tif (n1 * n4 > 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tn2 = pl2.doSomething(p);\n\t\tn5 = pl5.doSomething(p);\n\t\tif (n2 * n5 > 0f) {\n\t\t\treturn false;\n\t\t}\n\n\t\tn3 = pl3.doSomething(p);\n\t\tn6 = pl6.doSomething(p);\n\t\tif (n3 * n6 > 0f) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean containsSameCoord(Point p) {\n boolean elementsContainsP = false;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point pt = it.next();\n if (x(pt) == x(p) && y(pt) == y(p)) {\n elementsContainsP = true;\n break;\n }\n }\n return elementsContainsP;\n }",
"public boolean findPitA(Pit p)\n\t{\n\t\tif(playerApits.contains(p))\n\t\t\treturn true\n\t\telse\n\t\t\treturn false\n\t}",
"@Override\n public boolean equals(Object ap){\n if(!(ap instanceof AssistantProfessor)){\n return false;\n }\n AssistantProfessor c = (AssistantProfessor)ap;\n if(m_yearsUntilTenure != c.m_yearsUntilTenure){\n return false;\n }\n return true;\n }",
"public boolean onPosition(Point p)\n {\n for(Point pellet : pellets) // iterate over all the pellets\n {\n if (pellet.equals(p))\n return true;\n }\n return false;\n }",
"@Override\n\t\tpublic boolean equals(Object p) {\n\t\t\tif (p instanceof Pair) {\n\t\t\t\tPair obj = (Pair)p;\n\t\t\t\treturn (this.sum == obj.sum && this.index == obj.index);\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Persona)) {\n return false;\n }\n Persona other = (Persona) object;\n if ((this.perId == null && other.perId != null) || (this.perId != null && !this.perId.equals(other.perId))) {\n return false;\n }\n return true;\n }",
"public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}",
"boolean samePainting(Painting p) {\r\n\t\treturn this.title.equals(p.title) &&\r\n\t\t\t\tthis.artist.sameArtist(p.artist);\r\n\t}",
"public boolean includesPoint(Point p) {\n double ABC = getArea();\n double PAB = new Triangle(p, p1, p2).getArea();\n double PBC = new Triangle(p, p2, p3).getArea();\n double PAC = new Triangle(p, p1, p3).getArea();\n return abs(ABC - (PAB + PBC + PAC)) < 0.000000001;\n }",
"public boolean personEquals(Person p) {\n return (this.firstNames.equals(p.firstNames) && this.lastName.equals(p.getLastName()));\n }",
"public boolean inGroup(Person p){\n\t return false;\n }",
"boolean hasSameAs();",
"public boolean equals(Personnel p){\nreturn numPers.equals(p.numPers);\n}",
"public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}",
"abstract public boolean isPickedBy(Point p);",
"public boolean equals(Piece p) {\n\t\tif(y != p.y || x != p.x || type != p.type || color != p.color || timesMoved != p.timesMoved) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean has (Player p)\n\t{\n\t\tIterator<Player> it = this.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tPlayer p2 = it.next();\n\t\t\tif(p2.equals(p))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isAlcoholic(ContentNodeModel m) {\n\t\tfinal ContentNodeModel dept = ContentNodeModelUtil.findDepartment(m);\n\t\tif (dept != null) {\n\t\t\tfinal ContentKey aKey = dept.getContentKey();\n\n\t\t\tif (aKey != null && WineUtil.getWineAssociateId().toLowerCase().equalsIgnoreCase(aKey.getId())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isAsphaltOnTrack(Point p) {\n\t\treturn this.trk.contains(p);\n\t}",
"@Override\n public boolean equals( Object o ) { \n if (o!=null && this.getClass() == (o.getClass()) && \n getP1().equals(((Triangle)o).getP1()) && \n getP2().equals(((Triangle)o).getP2()) && \n getP3().equals(((Triangle)o).getP3())){\n return true;\n }\n return false;//if not equal to each other\n\n }",
"public boolean isEqual(Heaper anObject) {\n\treturn anObject.getCategory() == getCategory();\n/*\nudanax-top.st:15781:SequenceSpace methodsFor: 'testing'!\n{BooleanVar} isEqual: anObject {Heaper}\n\t\"is equal to any basic space on the same category of positions\"\n\t^anObject getCategory == self getCategory!\n*/\n}",
"public boolean equals(PhotoPost p) {\n\t\treturn super.equals(p) && filename.equals(p.filename) && caption.equals(p.caption);\n\t}",
"public boolean equals(Actor a){\n return (x == a.getX() && y == a.getY() && pok.getName().equalsIgnoreCase(a.getPokemon().getName()));\n }",
"@Override\n\tpublic boolean equals(MengdeADT<T> m) {\n\t\tboolean likeMengder = true;\n\t\tIterator<T> nye = m.oppramser();\n\t\tif (this.antall == m.antall()) {\n\t\t\twhile (nye.hasNext() && likeMengder) {\n\t\t\t\t// Hvis neste element i m ikke er med i denne mengden --> likeMengder = false\n\t\t\t\tif (!inneholder(nye.next())) {\n\t\t\t\t\tlikeMengder = false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tlikeMengder = false;\n\t\t}\n\t\t\n\t\treturn likeMengder;\n\t}",
"public boolean equals( Object other ) {\n if ( super.equals( other ) && ( other instanceof Point ) ) {\n \tPoint p = (Point)other;\n boolean flagEq = Math.abs( getX() - p.getX() ) < mute &&\n \t \t\t\t Math.abs( getY() - p.getY() ) < mute;\n if ( getCoordinateDimension() == 3 ) {\n \tflagEq = flagEq && Math.abs( getZ() - p.getZ() ) < mute;\n }\n return flagEq;\n }\n\n return false;\n }",
"public boolean contains(Point2D p) {\n return pointSet.contains(p);\n }",
"public boolean equals(Price p, double accuracy) {\n\t\tif (p.price < price){\n\t\t\treturn p.equals(this, accuracy);\n\t\t} else {\n\t\t\treturn price * (1.0 + accuracy) >= p.price;\n\t\t}\n\t}",
"public static boolean opposites(Pair[] data){\n HashSet<Pair> hs = new HashSet<>(20, 0.9f);\n for(Pair p : data) {\n if(hs.contains(new Pair(p.b(), p.a())))\n return true;\n hs.add(p);\n }\n return false;\n }",
"boolean equals(Point other) {\n //System.out.println(\"Calling our equals method now!\");\n return (this.x == other.x) && (this.y == other.y);\n }",
"@Override\r\n\tpublic boolean equals(Object other) {\r\n\r\n\t\tif (other == this) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif (!(other instanceof Plane)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tPlane p = (Plane) other;\r\n\r\n\t\treturn this.vecX.equals(p.vecX) && this.pos.equals(p.pos) && this.vecY.equals(p.vecY);\r\n\r\n\t}",
"public boolean samePieceCheck(GameBoardVertex p){\n if (pieceAtVertex == null){\n if (p.getPiece() == null){\n return true;\n } else {\n return false;\n }\n } else {\n if (p.getPiece() == null) {\n return false;\n } else {\n return pieceAtVertex.equals(p.getPiece());\n }\n }\n }",
"public boolean equals(PosicionMatriz p) {\n return this.columna == p.columna && this.fila == p.fila;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof GrlesschildP)) {\n return false;\n }\n GrlesschildP other = (GrlesschildP) object;\n if ((this.grlesschildpId == null && other.grlesschildpId != null) || (this.grlesschildpId != null && !this.grlesschildpId.equals(other.grlesschildpId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Proposition)) {\n return false;\n }\n return id != null && id.equals(((Proposition) o).id);\n }",
"boolean isAssociative();",
"public abstract boolean isMatching(Properties p);",
"public boolean equals(PolyTerm pt) {\n\t\treturn this.exponent==pt.exponent&&this.coefficient.equals(pt);\n\t}",
"public boolean estRealisable(Couple P) {\n\t\tboolean dedans = true;\n\n\t\tfor (Contrainte c : this.contraintes) {\n\t\t\tif (!c.estVerifie(P)) {\n\t\t\t\tdedans = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn dedans;\n\t}",
"public boolean inArena(Player p)\n {\n return arenaPlayers.contains(p);\n }",
"public boolean isConnected(int p, int q) {\n\t\treturn find(p) == find(q);\n\t}",
"public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof PPoint)) {\n\t\t\treturn false;\n\t\t}\n\t\tPPoint other = (PPoint) obj;\n\t\treturn Double.compare(getX(), other.getX()) == 0 && Double.compare(getY(), other.getY()) == 0;\n\t}",
"public boolean equals(Position p) {\n return p.xCoord == xCoord && p.yCoord == yCoord && p.zCoord == zCoord;\n }",
"public boolean contains(GJPoint2D p) {\n\t\treturn this.contains(p.x(), p.y());\n\t}",
"public boolean contradicts(Predicate p){\r\n\t\treturn (type.equals(p.type) && (id.equals(p.id)) && !(value.equals(p.value)));\r\n\t}",
"@Override\n public boolean equals(Object autre) {\n AcideAmine inter = (AcideAmine) autre;\n return ( acideAmine.equals(inter.acideAmine));\n \n }",
"public boolean equals(Object other) {\n System.out.println(\"Calling our equals method now!\");\n\n if (other == null) {\n return false;\n }\n\n if (!(other instanceof Point)) {\n return false;\n }\n\n // other must be a Point here\n Point p = (Point) other;\n return (this.x == p.x) && (this.y == p.y);\n }",
"public boolean isIn(Point p)\n {\n \n \treturn isIn(p.x, p.y);\n \t\n //\tboolean cond1 = false;\n // boolean cond2 = false; \n // cond1 = (p.x>=rettangoloX)&&(p.x<=(rettangoloX+larghezza));\n // cond2 = (p.y>=rettangoloY)&&(p.y<=(rettangoloY+altezza));\n // return (cond1&&cond2);\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Paramentro)) {\n return false;\n }\n return id != null && id.equals(((Paramentro) o).id);\n }",
"public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException(\"cannot query null pt\");\n }\n return pointsSet.contains(p);\n\n }",
"@Override\r\n\tpublic void isMatched(Point p) {\n\t\t\r\n\t}",
"@Override public boolean equals(Object o) {\r\n\t\tif (o instanceof Shape) {\r\n\t\t\treturn this.area() == ((Shape)o).area();\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean containsPointList(final PointListPanel plp) {\n\t\tfinal Component[] c = panel.getComponents();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tif (c[i] == plp) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean contains(final Point2d p){\n return this.getDistance(p) < 0.0000000001;\n }",
"public boolean equals( Object other){\n \tif( other instanceof Person){\n \t\treturn personId == ((Person)other).getPersonId();\n \t}\n \treturn false;\n }",
"public boolean connected(int p, int q) {\n return root(p) == root(q);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof APerson)) {\n return false;\n }\n APerson other = (APerson) object;\n if ((this.personId == null && other.personId != null) || (this.personId != null && !this.personId.equals(other.personId))) {\n return false;\n }\n return true;\n }",
"public abstract boolean equals(Object other);",
"public boolean connected(int p, int q) {\n\t\treturn find(p) == find(q);\n\t}",
"public boolean equals(Point other) {\n return this.x == other.getX() && this.y == other.getY();\n }",
"public boolean isConnected(int p, int q) {\n int pRoot = getRoot(p);\n int qRoot = getRoot(q);\n return pRoot == qRoot;\n }",
"public boolean equals(Point other) {\r\n return ((this.x == other.getX()) && (this.y == other.getY()));\r\n }",
"public boolean contains(Point2D.Double p) {\n if(p.x <= middle.x + length/2.0 &&\n p.x >= middle.x - length/2.0 &&\n p.y <= middle.y + length/2.0 &&\n p.y >= middle.y - length/2.0) return true;\n else return false;\n }",
"public boolean contains(Point p);",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GePecasAprovacao)) {\r\n return false;\r\n }\r\n GePecasAprovacao other = (GePecasAprovacao) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CatParroquia)) {\n return false;\n }\n CatParroquia other = (CatParroquia) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }",
"public boolean isConnected(int p, int q) {\n return (root(p) == root(q));\n }",
"public boolean contains(Point2D p) \r\n\t{\r\n\t\treturn get(root, p) != null;\r\n\t}",
"public boolean policiesEqual(HashMap<List<Integer>,List<Integer>> pi, HashMap<List<Integer>,List<Integer>> piDash) {\n\t\tboolean eq = true;\n\t\t\n\t\tfor (List<Integer> key : pi.keySet()) {\n\t\t\tfor (int i = 0 ; i<pi.get(key).size();i++) {\n\t\t\t\tif (pi.get(key).get(i)!=piDash.get(key).get(i))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}",
"public boolean contains(Point2D p) {\n return mPoints.contains(p);\n }",
"boolean equivalent(AssignmentPath other);",
"private boolean checkPAnagrams(int[] mapElements, int[] pElements) {\n for (int i = 0; i < 26; i++) {\n if(mapElements[i]!=pElements[i])\n return false;\n }\n// System.out.println(\"check p anagrams :\" + (System.nanoTime() - startTime));\n return true;\n }",
"@Override\n\tpublic boolean equals(Object arg){\n\t\tif(arg == null) return false;\n\t\tif(this == arg) return true;\n\t\tif (!(arg instanceof Pet)) return false;\n\n\n\t\tPet p= (Pet)arg;\n\n\t\treturn this.getId() == p.getId() &&\n\t\t\t\tthis.getType().equals(p.getType()) &&\n\t\t\t\tthis.getName().equals(p.getName()) &&\n\t\t\t\tthis.getAge() == p.getAge() &&\n\t\t\t\tthis.getClient().getId() == p.getClient().getId() &&\n\t\t\t\tthis.compareProcedures(p);\n\n\t}",
"boolean isOneToMany();",
"@Override\r\n public boolean equals(INavMeshAtom atom) {\r\n if(atom.getClass() == OffMeshPoint.class) {\r\n OffMeshPoint op = (OffMeshPoint) atom;\r\n return (op.navpointId.getStringId().equals(this.navpointId.getStringId()));\r\n }\r\n else return false;\r\n }",
"private boolean estPlein() {\n return (nbAssoc == associations.length);\n }",
"public boolean contains(Point p) {\n\t\tif ((p.y > (super.getY() - super.height/2)) && (p.x > (super.getX() - width/2)) && (p.y < (super.getY() + super.height/2 + super.height)) && (p.x < (super.getX() - width/2 + super.width))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Pessoa)) {\n return false;\n }\n return id != null && id.equals(((Pessoa) o).id);\n }",
"public static boolean isExactlySimilar(int p, int s) {\n\t\treturn (p == s);\n\t}",
"public boolean connected(int p, int q) {\n\t\treturn root(p) == root(q);\n\t}",
"public boolean connected(int p, int q) {\n return id[p] == id[q];\n }",
"private boolean hasCollided(Circle a, Polygon p) {\r\n //calculate the distance between the centers\r\n return p.getBoundsInParent().intersects(a.getBoundsInParent());\r\n\r\n }",
"public boolean contient(Couple assoc) {\n for (int i = 0; i < nbAssoc; i++)\n if (associations[i].equals(assoc))\n return true;\n return false;\n }",
"public boolean equals(Point other) {\n if (other == null) {\n return false;\n }\n return this.x == other.x && this.y == other.y;\n }",
"public boolean equals(Person rsp) {\r\n\t\treturn id.equals(rsp.getId());\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Pessoa)) {\r\n return false;\r\n }\r\n Pessoa other = (Pessoa) object;\r\n return (this.id != null || other.id == null) && (this.id == null || this.id.equals(other.id));\r\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof PersonCard)) {\n return false;\n }\n\n // state check\n PersonCard card = (PersonCard) other;\n return displayedIndex == card.getDisplayedIndex()\n && staff.equals(card.staff);\n }",
"public boolean connected(int p, int q)\n {\n return this.root(p) == this.root(q);\n }",
"public boolean contains2(Point p) {\n int crossings = 0;\n for (int i = 0; i < N; i++) {\n int j = i + 1;\n boolean cond1 = (a[i].y <= p.y) && (p.y < a[j].y);\n boolean cond2 = (a[j].y <= p.y) && (p.y < a[i].y);\n if (cond1 || cond2) {\n // need to cast to double\n if (p.x < (a[j].x - a[i].x) * (p.y - a[i].y) / (a[j].y - a[i].y) + a[i].x)\n crossings++;\n }\n }\n if (crossings % 2 == 1) return true;\n else return false;\n }",
"public boolean contains(Point2D p) {\n\n\t\tif (p == null)\n\t\t\tthrow new IllegalArgumentException(\"arguemnt to contains() is null\");\n\t\treturn get(p) != null;\n\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof PlEmpleado)) {\r\n return false;\r\n }\r\n PlEmpleado other = (PlEmpleado) object;\r\n if ((this.idEmpleado == null && other.idEmpleado != null) || (this.idEmpleado != null && !this.idEmpleado.equals(other.idEmpleado))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean hasAdjacentEqualPair()\n { \n \tfor( int i = 0; i < purchases.size()-1; i++ )\n \t{\n \t\tGizmo curr = purchases.get( i );\n \t\tGizmo nxt = purchases.get( i + 1 );\n \t\tif( curr.equals( nxt ) )\n \t\t\treturn true;\n \t}\n \treturn false; \t\n }",
"public boolean isBefore(People p){\n\t\t//If P is higher age\n\t\tif( this.age==7 && p.age!=7)\n\t\t\treturn true;\n\t\t//If current is professor\n\t\tif(this.age!=7 && this.age!=8){\n\t\t\treturn p.age ==8;\n\t\t}\n\t\t//If p is professor\n\t\tif(p.age!=7 && p.age!=8){\n\t\t\treturn this.age ==7;\n\t\t}\n\t\t//If current is 8\n\t\tif(this.age==8 && p.age==7){\n\t\t\treturn false;\n\t\t}\n\t\t//Same age - age 7\n\t\tif(this.age== p.age && this.age==7){\n\t\t\treturn this.height <= p.height;\n\t\t}\n\t\tif(this.age== p.age && this.age==8){\n\t\t\treturn this.height >= p.height;\n\t\t}\n\t\tSystem.out.println(\"Some Error!!\"+this.age+\" \"+this.height+\" \"+p.age+\" \"+p.height);\n\t\treturn false;\n\t}",
"public boolean contains(Point2D p)\n {\n if (p != null && !isEmpty())\n {\n Node current = root;\n while (current != null)\n {\n if (current.isVertical()) // compare by x\n {\n if (p.x() < current.getPoint().x())\n {\n current = current.getLeft();\n }\n else if (p.x() > current.getPoint().x())\n {\n current = current.getRight();\n }\n else // equal x, now compare y\n {\n if (p.y() == current.getPoint().y())\n {\n return true;\n }\n }\n }\n else // compare by y\n {\n if (p.y() < current.getPoint().y())\n {\n current = current.getLeft();\n }\n else if (p.y() > current.getPoint().y())\n {\n current = current.getRight();\n }\n else // equal y, now compare x\n {\n if (p.x() == current.getPoint().x())\n {\n return true;\n }\n }\n }\n }\n }\n return false;\n }",
"public boolean ok ( int x, int y, int p ) {\n return( (m[x][y] & TWO[p]) == TWO[p] );\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n PerPlan perPlan = (PerPlan) o;\n if (perPlan.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), perPlan.getId());\n }"
] |
[
"0.67341405",
"0.6508577",
"0.6301112",
"0.6266029",
"0.6252084",
"0.6213731",
"0.618129",
"0.6165256",
"0.61391556",
"0.6127623",
"0.61036575",
"0.6081833",
"0.6077313",
"0.60771614",
"0.6006193",
"0.5990546",
"0.5981649",
"0.5971997",
"0.5969269",
"0.5912874",
"0.58918965",
"0.586386",
"0.58619577",
"0.58522093",
"0.58336985",
"0.58326447",
"0.5822139",
"0.5810362",
"0.58093727",
"0.57948405",
"0.57898545",
"0.576467",
"0.5756429",
"0.5745846",
"0.57352936",
"0.57342076",
"0.57219094",
"0.57075155",
"0.5704814",
"0.570088",
"0.5698642",
"0.56829995",
"0.56799376",
"0.5675485",
"0.56700486",
"0.56656635",
"0.5657696",
"0.56428134",
"0.56237483",
"0.5614017",
"0.5613117",
"0.561074",
"0.5584814",
"0.5580769",
"0.55777276",
"0.5570118",
"0.5568011",
"0.5564527",
"0.55578905",
"0.55413395",
"0.5537762",
"0.553344",
"0.55316144",
"0.5518326",
"0.551754",
"0.55155826",
"0.5507607",
"0.5505333",
"0.5499995",
"0.5499225",
"0.549407",
"0.54935646",
"0.5489486",
"0.5482352",
"0.54804534",
"0.5480122",
"0.5471425",
"0.5460375",
"0.54591936",
"0.5458069",
"0.54569066",
"0.54536533",
"0.5451191",
"0.5451019",
"0.54509574",
"0.54508334",
"0.54459727",
"0.5444444",
"0.54429215",
"0.5439713",
"0.54282635",
"0.54262966",
"0.5424223",
"0.5420458",
"0.5418189",
"0.5417339",
"0.5414381",
"0.5414043",
"0.54131997",
"0.5410275"
] |
0.6210608
|
6
|
Returns coordinates as integers
|
public int xint() {
return (int) x;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"long getCoordinates();",
"long getCoordinates();",
"public abstract int[] getCoords();",
"public int[] getCoordinates() {\n\t\t\n\t\tint[] a=new int[2];\n\t\ta[0]=xCoord;\n\t\ta[1]=yCoord;\n\t\t\n\t\treturn a;\n\t\t\n\t}",
"public int[] getCoords() {\n return coords;\n }",
"public int getXY(int x, int y);",
"public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}",
"public int[] getCellCoordinates(CellRecord cellRecord) {\r\n com.google.gwt.core.client.JsArrayInteger cellCoodJS = doGetCellCoordinates(cellRecord.getJsObj());\r\n return new int[]{cellCoodJS.get(0), cellCoodJS.get(1)};\r\n }",
"org.hl7.fhir.Integer getCoordinateSystem();",
"IntOctagon to_int()\r\n {\r\n if (rx < lx || uy < ly || lrx < ulx || urx < llx)\r\n {\r\n return IntOctagon.EMPTY;\r\n }\r\n return new IntOctagon ((int)Math.floor(lx), (int)Math.floor(ly),\r\n (int)Math.ceil(rx), (int)Math.ceil(uy),\r\n (int)Math.floor(ulx), (int)Math.ceil(lrx),\r\n (int)Math.floor(llx), (int)Math.ceil(urx));\r\n }",
"@Override\n public int read(int[] coordinates) {\n\n coordinates[0] = (int) x.get();\n coordinates[1] = (int) y.get();\n\n return 1;\n }",
"public static int locToInt(MapLocation m){\r\n\t\treturn (m.x*100 + m.y);\r\n\t}",
"public double[] getCoordinates(){\n\t\tdouble[] coord = new double[2];\n\t\tdouble xcoord = (double)position[0]/9;\n\t\tdouble zcoord = (double)position[1]/9;\n\t\tcoord[0] = xcoord;\n\t\tcoord[1] = zcoord;\t\t\n\t\treturn coord;\n\t}",
"public static int[] convertToCartesian(GeoCoords coords) {\n int[] res = new int[2];\n\n res[1] = latToX(coords.getLat());\n res[0] = lonToY(coords.getLon());\n\n return res;\n }",
"public int getLat();",
"public int[] getMapPosition(double[] gpsCoord){\n\t\tint[] mapPosition = new int[2];\n\t\tmapPosition[0] = (int) Math.round(gpsCoord[0]*9);\n\t\tmapPosition[1] = (int) Math.round(gpsCoord[2]*9);\t\t\t\n\t\treturn mapPosition;\n\t}",
"public int getCoordinates(int i) {\n return this.coordinates[i];\n }",
"public int xCoordinate (double degLon){\n return (int) Math.round(degLon*earthRadiusRadians);\n }",
"public String getCoordsForLP() {\n String x = coords[0] < 0 ? \"neg\" + Math.abs(coords[0]) :\n Integer.toString(Math.abs(coords[0]));\n String y = coords[1] < 0 ? \"neg\" + Math.abs(coords[1]) :\n Integer.toString(Math.abs(coords[1]));\n return x + \"_\" + y;\n }",
"public int getXCoordinate ()\n {\n return xCoordinate;\n }",
"public int[] getScreenCoordinateWGS84(double worldLat, double worldLon);",
"int getPoints();",
"public int[] getScreenCoordinate(long worldLat, long worldLon);",
"int getX_coordinate(){\n return x_coordinate;\n }",
"public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }",
"public int getYint(){\n return (int) y;\n }",
"public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}",
"public int CoordsToIs(int[] coords, int[] ret) {\n int ptCt = 0;\n for (int i = 0; i < coords.length / 3; i++) {\n int x = coords[i * 3];\n int y = coords[i * 3 + 1];\n int z = coords[i * 3 + 2];\n if (!Util.InDim(xDim, x)) {\n if (wrapX) {\n x = Util.ModWrap(x, xDim);\n } else {\n continue;\n }\n }\n if (!Util.InDim(yDim, y)) {\n if (wrapY) {\n y = Util.ModWrap(y, yDim);\n } else {\n continue;\n }\n }\n if (!Util.InDim(zDim, z)) {\n if (wrapZ) {\n z = Util.ModWrap(z, zDim);\n } else {\n continue;\n }\n }\n ret[ptCt]= I(x,y,z);\n ptCt++;\n }\n return ptCt;\n }",
"public int getPoints();",
"public Coordinates getCoordinates() {\n if (this.coordinates == null)\n return new Coordinates(-1, -1);\n return this.coordinates;\n }",
"public int getXint(){\n return (int) x;\n }",
"public double getXCoordinates() { return xCoordinates; }",
"public int getX()\r\n {\r\n return xCoord;\r\n }",
"public double[] getCoordinates() {\n\t\treturn coordinateTools.localToCoordinates(this);\n\t}",
"List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);",
"public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }",
"public int getxCoordinate() {\n return xCoordinate;\n }",
"public int getxCoordinate() {\n return xCoordinate;\n }",
"public double[] getHitGeoCoord();",
"public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}",
"public int intX()\n {\n return (int) Math.floor(this.x);\n }",
"public String getCoordinates() {\n return this.coordinates;\n }",
"public int getLon();",
"public double[] getCoordinates() {\n \tdouble []coords = this.position.getCoordinates();\n \tthis.currentX = coords[0];\n \tthis.currentY = coords[1];\n \treturn coords;\n }",
"Collection<Point> getCoordinates(int... ids);",
"long getX();",
"int getLatE6();",
"int getLatE6();",
"IntPoint getLocation();",
"private String coords(int x, int y) {\n return String.format(\"%d,%d\", x, y);\n }",
"public int x (int index) { return coords[index][0]; }",
"private static int latToX(double lat) {\n return (int) ((lat - MIN_LAT) / (MAX_LAT - MIN_LAT) * 100 * 1000);\n }",
"int getLatitude();",
"public static int[] getCoordinate(int state) {\n return new int[]{(state % 4), (state / 4)};\n }",
"public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getX() {\n return xCoord;\n }",
"int getLongitude();",
"@Override\n\tpublic double[] getCoordinates() {\n\t\tdouble[] coordinates = { x1, y2, x2, y1 };\n\t\treturn coordinates;\n\t}",
"public int[][] coords(int i){\r\n\t\tswitch(i){\r\n\t\t\tcase 0:\r\n\t\t\t\tint[][] j1 = {{0,0},{1,0},{2,0},{3,0},{0,1}};\r\n\t\t\t\treturn j1;\r\n\t\t\tcase 1:\r\n\t\t\t\tint[][] j2 = {{0,0},{0,1},{0,2},{0,3},{1,0}};\r\n\t\t\t\treturn j2;\r\n\t\t\tcase 2:\r\n\t\t\t\tint[][] j3 = {{0,0},{1,1},{1,2 },{1,3},{1,0}};\r\n\t\t\t\treturn j3;\r\n\t\t\tcase 3:\r\n\t\t\t\tint[][] j4 = {{0,0},{1,1},{2,1},{3,1},{0,1}};\r\n\t\t\t\treturn j4;\r\n\t\t\tcase 4:\r\n\t\t\t\tint[][] j5 = {{3,0},{1,1},{2,1},{3,1},{0,1}};\r\n\t\t\t\treturn j5;\r\n\t\t\tcase 5:\r\n\t\t\t\tint[][] j6 = {{0,0},{0,1},{0,2},{0,3},{1,3}};\r\n\t\t\t\treturn j6;\t\t\r\n\t\t\tcase 6:\r\n\t\t\t\tint[][] j7 = {{0,0},{1,0},{2,0 },{3,0},{3,1}};\r\n\t\t\t\treturn j7;\r\n\t\t\tcase 7:\r\n\t\t\t\tint[][] j8 = {{0,3},{1,1},{1,2 },{1,3},{1,0}};\r\n\t\t\t\treturn j8;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"Coordinates getCoordinates(int rowIndex);",
"protected int getxCoord() {\n\t\treturn xCoord;\n\t}",
"public static long convertXY(Object aInCoordinate) {\n if (aInCoordinate instanceof Number) return ((Number) aInCoordinate).longValue();\n else return 0L;\n }",
"public int getX() {\n return this.coordinate.x;\n }",
"public int[] computeXY() \n\t\t//POST: FCTVAL == coordinates of the node in form [x, y]\n\t\t{\n\t\t\tint myPosition = getPositionInList(this);\t//get the position of the node\n\n\t\t\t//calculate angle in the circle based on position\n\t\t\tdouble angle = (((double) myPosition) * ((2*Math.PI) / (double) length)); \n\n\t\t\t//convert from polar to cartesian coordinates with radius 0.7; x = rcos(theta)\n\t\t\tdouble x = Math.cos(angle) * 0.7;\t\t//x = rcos(theta)\n\t\t\tdouble y = Math.sin(angle) * 0.7;\t\t//y = rsin(theta)\n\t\t\t\n\t\t\treturn ScaledPoint.getRealCoordinance(x, y);\n\t\t}",
"public Coordinates getCoordinates()\r\n {\r\n return new Coordinates(r.getX(), r.getY());\r\n }",
"public int x() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getX() {\n return (int) Math.round(x);\n }",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}",
"public int getX()\r\n\t{\r\n\t\treturn (int)x;\r\n\t}",
"private int separarCoordenadasFil(String[] pCasilla){\n\t\treturn Integer.parseInt(pCasilla[0]);\n\t}",
"public static int datoint(){\n \n try {\n return(Integer.parseInt(dato()));\n } catch (NumberFormatException error) {\n return (Integer.MIN_VALUE);\n }\n \n }",
"public int getxCoord() {\n\t\treturn xCoord;\n\t}",
"public List<Double> getCoordinates() {\n return coordinates;\n }",
"private int separarCoordenadasCol(String[] pCasilla){\n\t\treturn Integer.parseInt(pCasilla[1]);\n\t}",
"public int getLocationX() {\r\n\t\treturn x;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}",
"private int convert(int x, int y) {\n\treturn (150 * y) + x;\n }",
"public int[] convertTouchCoordinates(float[] coors) {\n\n newCoords[0] = (int) (coors[0] * ((float) mCanvas.getWidth() / mIndoorMap.getRight()));\n newCoords[1] = (int) (coors[1] * ((float) mCanvas.getHeight() / mIndoorMap.getBottom()));\n\n Log.i(\"test\", ((float) mCanvas.getWidth() / mIndoorMap.getRight()) + \" \" + ((float) mCanvas.getHeight() / mIndoorMap.getBottom()));\n return newCoords;\n }",
"public int[][] toInt() {\r\n\t\tint dim=this.getDimensión();\r\n\t\tint convertida [][]=new int[dim][dim];\r\n\t\tfor(int i=0; i<dim; i++) {\r\n\t\t\tfor(int j=0; j<dim; j++) {\r\n\t\t\t\tconvertida[i][j]=this.getCuadrícula()[i][j].getValor();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn convertida;\r\n\t}",
"private int coordinateConvertFrom(int i, int j) {\n return size * (i - 1) + j;\n }",
"public int[] getX(){\n \t int[] arr = new int[12];\n \t double[] arrx = getXLocal();\n \t double[] arry = getYLocal();\n \t for (int i=0; i<getNumOfSides(); i++){\n \t\t arr[i]= (int) Math.round(arrx[i]*Math.cos(getTheta())\n \t\t-arry[i]*Math.sin(getTheta())+getXc());\n \t }\n \t return arr;}",
"protodef.b_math.coord getCoordInfo();",
"int getNumberOfTextureCoordinates();",
"public abstract int getPoints();",
"public int[] chooseCoordinates(Scanner reader) {\n\t\tint[] coordinates = new int[4];\n\t\t\t\t\n\t\tSystem.out.println(\"Enter starting row: \");\n\t\tcoordinates[0] = Integer.parseInt(reader.nextLine()) - 1;\n\t\t\n\t\tSystem.out.println(\"Enter starting column: \");\n\t\tcoordinates[1] = Integer.parseInt(reader.nextLine()) - 1;\n\t\t\n\t\tSystem.out.println(\"Enter ending row: \");\n\t\tcoordinates[2] = Integer.parseInt(reader.nextLine()) - 1;\n\t\t\n\t\tSystem.out.println(\"Enter ending column: \");\n\t\tcoordinates[3] = Integer.parseInt(reader.nextLine()) - 1;\n\t\t\n\t\treturn coordinates;\n\t}",
"public Integer[] getCoordenada() {\n return this.elementos.clone();\n }",
"Collection<Point> getAllCoordinates();",
"public int[] convertPlacementData(HashSet<Coordinate> locationToConvert) {\r\n int[] converted = new int[locationToConvert.size()];\r\n Iterator<Coordinate> it = locationToConvert.iterator();\r\n int index = 0;\r\n while (it.hasNext()) {\r\n Coordinate converting = it.next();\r\n converted[index] = (converting.getxCoord()-65) + ((converting.getyCoord()-1)*12);\r\n index++;\r\n }\r\n return converted;\r\n }",
"protected int[] pos(int raster) {\n return FormatTools.rasterToPosition(lengths, raster);\n }",
"public static int getIntX(MutableVector loc) {\n return (int) (loc.getX() * GRANULARITY);\n }",
"public long[] getWorldCoordinate(int screenX, int screenY);",
"public void coFromInt(int coord) {\n int twist = 0;\n for(int j = 0; j < 7; j ++) {\n co[6 - j] = coord % 3;\n twist = (twist + coord % 3) % 3;\n coord /= 3;\n }\n co[7] = (3 - twist) % 3;\n }",
"public List<Float[]> getCoordinates() {\n return coordinates;\n }",
"public Integer getPoints() {\r\n return points;\r\n }",
"int getMapPointID();",
"public Point[] getCoordinates() {\n Point[] temp = new Point[segments.length];\n for (int i = 0; i < segments.length; i++) {\n temp[i] = segments[i].getCoordinates();\n }\n return temp;\n }",
"public int getX(){\n\t\treturn this.x_location;\n\t}",
"public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }",
"public int getY() { return (int)y; }"
] |
[
"0.735982",
"0.735982",
"0.6800262",
"0.66169804",
"0.6547367",
"0.6523772",
"0.6476847",
"0.6394062",
"0.6338513",
"0.63378745",
"0.633706",
"0.63232785",
"0.6308323",
"0.62571454",
"0.6246915",
"0.6212795",
"0.6153046",
"0.6116429",
"0.61135113",
"0.60904807",
"0.6086757",
"0.60611385",
"0.6023957",
"0.6004813",
"0.5989234",
"0.5987609",
"0.5983335",
"0.5983324",
"0.5956718",
"0.5953027",
"0.5952976",
"0.5941233",
"0.59239763",
"0.5911017",
"0.589548",
"0.5890913",
"0.5888597",
"0.5888597",
"0.58884805",
"0.5887088",
"0.58864474",
"0.58488667",
"0.5809687",
"0.5805671",
"0.5800978",
"0.5797657",
"0.5771394",
"0.5771394",
"0.5766565",
"0.5756654",
"0.57558346",
"0.5752544",
"0.57523525",
"0.57492316",
"0.57466084",
"0.57466084",
"0.5739885",
"0.5739123",
"0.573576",
"0.5734223",
"0.5732739",
"0.5728112",
"0.5699089",
"0.568737",
"0.56748295",
"0.56635964",
"0.5656451",
"0.5649166",
"0.56479084",
"0.5646516",
"0.56321764",
"0.5627308",
"0.5626737",
"0.562236",
"0.5621457",
"0.561795",
"0.55973434",
"0.55945015",
"0.55933094",
"0.5590356",
"0.55893177",
"0.55873704",
"0.55781895",
"0.5571115",
"0.5570898",
"0.55708915",
"0.55643654",
"0.55634224",
"0.5557294",
"0.55557925",
"0.55545247",
"0.5551897",
"0.55493784",
"0.5542248",
"0.5521244",
"0.5520533",
"0.5517792",
"0.55128145",
"0.550686",
"0.5490475"
] |
0.5578165
|
83
|
Mark unavailable positions in the board. Marking valid position & copying boards in each recursive call slows down execution.
|
public static void markInvalidPositions(int queenRowIdx, int queenColIdx, List<int[]> board) {
board.get(queenRowIdx)[queenColIdx] = -1;
// It is sufficient to mark rows after queenRowIdx row.
int offset, leftColIdx, rightColIdx;
for (int rowIdx = queenRowIdx + 1; rowIdx < N; rowIdx++) {
board.get(rowIdx)[queenColIdx] = -1;
offset = rowIdx - queenRowIdx;
leftColIdx = queenColIdx - offset;
rightColIdx = queenColIdx + offset;
if (leftColIdx >= 0) { board.get(rowIdx)[leftColIdx] = -1; }
if (rightColIdx < N ) { board.get(rowIdx)[rightColIdx] = -1; }
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }",
"private void setAvailableFromLastMove(int large, int smallx) {\n clearAvailable();\n // Make all the tiles at the destination available\n if (large != -1) {\n\n\n for (int i = 0; i < 9; i++) {\n for (int dest = 0; dest < 9; dest++) {\n if (!phaseTwo) {\n if (!done) {\n if (i == large) {\n TileAssignment5 tile = mSmallTiles[large][dest];\n if ((tile.getOwner() == TileAssignment5.Owner.NOTCLICKED))\n addAvailable(tile);\n\n switch (smallx) {\n case 0:\n int a[] = adjacencyList.get(0);\n\n for (int x : a) {\n TileAssignment5 tile1 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n //}\n }\n break;\n case 1:\n int a1[] = adjacencyList.get(1);\n\n for (int x : a1) {\n TileAssignment5 tile2 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n //}\n }\n break;\n case 2:\n int a2[] = adjacencyList.get(2);\n for (int x : a2) {\n TileAssignment5 tile3 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile3)) {\n mAvailable.remove(tile3);\n // }\n }\n break;\n case 3:\n int a3[] = adjacencyList.get(3);\n for (int x : a3) {\n TileAssignment5 tile4 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile4)) {\n mAvailable.remove(tile4);\n // }\n }\n break;\n case 4:\n int a4[] = adjacencyList.get(4);\n for (int x : a4) {\n TileAssignment5 tile5 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile5)) {\n mAvailable.remove(tile5);//}\n\n }\n break;\n case 5:\n int a5[] = adjacencyList.get(5);\n for (int x : a5) {\n TileAssignment5 tile6 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile6)) {\n mAvailable.remove(tile6);//}\n\n }\n break;\n case 6:\n int a6[] = adjacencyList.get(6);\n for (int x : a6) {\n TileAssignment5 tile7 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile7)) {\n mAvailable.remove(tile7);//}\n\n }\n break;\n case 7:\n int a7[] = adjacencyList.get(7);\n for (int x : a7) {\n TileAssignment5 tile8 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile8)) {\n mAvailable.remove(tile8);//}\n\n }\n break;\n case 8:\n int a8[] = adjacencyList.get(8);\n for (int x : a8) {\n TileAssignment5 tile9 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile9)) {\n mAvailable.remove(tile9);//}\n\n }\n break;\n }\n\n } else {\n if (DoneTiles.contains(i)) {\n continue;\n }\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.FREEZED);\n tile.updateDrawableState('a', 0);\n }\n } else { //OnDOnePressed\n if (DoneTiles.contains(i)) {\n continue;\n }\n\n // Log.d(\"Comes \", \"Hereeee\");\n if (i != large) {//Correct answer\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.NOTCLICKED);\n addAvailable(tile);\n tile.updateDrawableState('a', 0);\n //done =false;\n }\n }\n\n\n }else {\n/*\n ileAssignment5 thistile = mSmallTiles[i][dest];\n if(((Button)thistile.getView()).getText().charAt(0)==' '){\n mAvailable.remove(thistile);\n thistile.updateDrawableState('a', 0);\n }\n*/\n\n\n if (i == large) {\n if (dest == smallx) {\n TileAssignment5 tile1 = mSmallTiles[large][dest];\n tile1.setOwner(TileAssignment5.Owner.CLICKED);\n if (mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n }\n tile1.updateDrawableState('a', 0);\n\n } else {\n TileAssignment5 tile2 = mSmallTiles[large][dest];\n if (!(tile2.getOwner() == TileAssignment5.Owner.CLICKED)) {\n\n tile2.setOwner(TileAssignment5.Owner.FREEZED);\n }\n if (mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n }\n tile2.updateDrawableState('a', 0);\n }\n\n\n } else {\n\n\n TileAssignment5 tile3 = mSmallTiles[i][dest];\n if (!(tile3.getOwner() == TileAssignment5.Owner.CLICKED)) {\n tile3.setOwner(TileAssignment5.Owner.NOTCLICKED);\n }\n // if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n\n if ((!mAvailable.contains(tile3))&&(tile3.getView().toString().charAt(0)!=' ')){\n mAvailable.add(tile3);\n }\n\n\n tile3.updateDrawableState('a', 0);\n\n\n\n TileAssignment5 tile = mSmallTiles[i][dest];\n if(((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' '){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n\n ileAssignment5 tile = mSmallTiles[i][dest];\n ileAssignment5 tile = mSmallTiles[i][dest];\n try{\n if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }}catch (ArrayIndexOutOfBoundsException e){\n\n\n }catch ( StringIndexOutOfBoundsException e){\n\n }\n\n*/\n }\n\n }\n }\n }\n }\n // If there were none available, make all squares available\n if (mAvailable.isEmpty()&&large==-1) {\n setAllAvailable();\n }\n }",
"private void reMark(int row, int col){\n for(int i = 0; i < sizeOfBoard; ++i){\n int rowOfOtherCol = rowUsedByColNumber[i] - 1;\n if(rowOfOtherCol != -1){//Is there a queen in this row?\n int colOffSet = Math.abs(rowOfOtherCol - row);\n int rowOffSet = col - i;\n \n if(col + colOffSet < sizeOfBoard){\n openPositions[rowOfOtherCol][col + colOffSet] = true;//Mark the one open square in the row of other queen.\n }\n if(i+ colOffSet < sizeOfBoard){\n openPositions[row][i + colOffSet] = true;//Mark the diagonal of the other queen at can attack in the row that the removed queen was in.\n }\n //remake were a queen and the queen removed could both attack in the diagonal direction.\n int colD = (i + col + row - rowOfOtherCol) / 2;//First intersection point.\n int rowD = (col - i + row + rowOfOtherCol) / 2;//First intersection point.\n \n if(colD >= 0 && colD < sizeOfBoard && rowD >= 0 && rowD < sizeOfBoard){//Does that point lie in the board?\n if( colD*2 == i + col + row - rowOfOtherCol && rowD*2 == col - i + row + rowOfOtherCol && colD >col){//Is the point a lattice point?\n openPositions[rowD][colD] = true;\n }\n }\n \n colD = (i + col - row + rowOfOtherCol) / 2;//Second intersection point.\n rowD = (i - col +row + rowOfOtherCol) / 2;//Second intersection point.\n if(colD >= 0 && colD < sizeOfBoard && rowD >= 0 && rowD < sizeOfBoard){\n if(colD*2 == i + col - row + rowOfOtherCol && rowD*2 == i - col +row + rowOfOtherCol && colD > col ){//Is the point a lattice point?\n openPositions[rowD][colD] = true;\n }\n }\n }\n }\n }",
"private void setAvailableFromLastMove(int small) {\r\n clearAvailable();\r\n // Make all the tiles at the destination available\r\n if (small != -1) {\r\n for (int dest = 0; dest < 9; dest++) {\r\n Tile tile = mSmallTiles[small][dest];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n // If there were none available, make all squares available\r\n if (mAvailable.isEmpty()) {\r\n setAllAvailable();\r\n }\r\n }",
"private void unsetValidMoves() {\n\t\tcurrentPos.setFill(Paint.valueOf(\"Dodgerblue\"));\n\n\t\tif(l.upValid) {\n\t\t\ttmp=layout_Circle[l.y-1][l.x];\n\t\t\ttmp.setFill(Paint.valueOf(\"Dodgerblue\"));\n\t\t}\n\n\t\tif(l.leftValid) {\n\t\t\ttmp=layout_Circle[l.y][l.x-1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Dodgerblue\"));\n\t\t}\n\n\t\tif(l.rightValid) {\n\t\t\ttmp=layout_Circle[l.y][l.x+1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Dodgerblue\"));}\n\t}",
"void updateAvailMovesInLine(int x, int y, int num) {\n\t\tfor(int i = 0; i < boardSize; i++) {\n\t\t\tavailMoves[x][i][num-1] = false;\n\t\t\tavailMoves[i][y][num-1] = false;\n\t\t}\n\t}",
"public void markDangerTiles() {\n List<Tile> dangerTiles = this.gb.nearByTiles(this.enemy_head_x, this.enemy_head_y);\n if (dangerTiles.contains(this.gb.get(this.us_head_x, this.us_head_y)))\n return; // Don't force fill if our head is there\n for (Tile t : dangerTiles)\n t.setForceFilled(true);\n }",
"private void resetPosition() {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n if (!board[i][j]) {\n rowPos = i;\n columnPos = j;\n return;\n }\n }\n }\n }",
"public void clearDomainMarks(){\n for (int i = 0 ; i < getBoardSize(); i++)\n for (int j = 0 ; j < getBoardSize(); j++){\n getPoint(i, j).setHolder(GoPlayer.UNKNOWN);\n }\n }",
"public void setValidMoves(){\r\n int row = (int)this.space.getX();\r\n int column = (int)this.space.getY();\r\n int max = puzzleSize-1;\r\n if (row < max)\r\n this.validMoves.add(new Point(row+1, column));\r\n if (row > 0)\r\n this.validMoves.add(new Point(row-1, column));\r\n if (column < max)\r\n this.validMoves.add(new Point(row, column+1));\r\n if (column > 0)\r\n this.validMoves.add(new Point(row, column-1));\r\n }",
"void goOverLines() {\n\t\t//checking every vertical line if there is some number that has only one number available\n\t\t//for every number\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t//for every line\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t//for every square\n\t\t\t\tint tempCounter = 0;\n\t\t\t\tint tempK = 0;\n\t\t\t\tfor (int k = 0; k < boardSize; k++) {\n\t\t\t\t\tif (availMoves[j][k][i] == true) {\n\t\t\t\t\t\ttempCounter++;\n\t\t\t\t\t\ttempK = k;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tempCounter == 1) {\n\t\t\t\t\tmoveQueue.add(new int[] {j, tempK, (i + 1)});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//checking every vertical line if there is some number that has only one number available\n\t\t//for every number\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t//for every line\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t//for every square\n\t\t\t\tint tempCounter = 0;\n\t\t\t\tint tempK = 0;\n\t\t\t\tfor (int k = 0; k < boardSize; k++) {\n\t\t\t\t\tif (availMoves[k][j][i] == true) {\n\t\t\t\t\t\ttempCounter++;\n\t\t\t\t\t\ttempK = k;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tempCounter == 1) {\n\t\t\t\t\tmoveQueue.add(new int[] {tempK, j, (i + 1)});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!moveQueue.isEmpty()) {\n\t\t\tdoMove();\n\t\t}\n\t}",
"public void setAllUnexplored() {\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n if (in_start(row, col) || in_goal(row, col)) {\n grid[row][col].setIsExplored(true);\n } else {\n grid[row][col].setIsExplored(false);\n }\n }\n }\n }",
"private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }",
"public boolean move(int x, int y, CheckersBoard board) {\n if (whiteTurn == true && team == Constants.TeamId.team1Id) {\n return false;\n }\n if (whiteTurn == false && team == Constants.TeamId.team2Id) {\n return false;\n }\n /**\n * then change the x - y coords of the piece\n * update the UI to remove the highlighted squares then move the piece\n * if chess and shared square you take a piece\n * if checkers you jumped them you take the piece\n * return new x - y components\n *\n * if this is too high up in the tree you can override this implementation or update it\n * to fit specific pieces if its not working for some reason\n */\n if (possible(x, y, gameBoard)) {\n int changex = this.getX()-x;\n int changey = this.getY()-y;\n CheckersPiece temp = gameBoard.boardPositions[getX()][getY()];\n gameBoard.boardPositions[getX()][getY()] = null;\n gameBoard.boardPositions[x][y] = temp;\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] != null) {\n System.out.println(\"Here\");\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].team != this.team) {\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].imageView.setVisibility(View.GONE);\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] = null;\n }\n }\n this.setX(x);\n this.setY(y);/*\n if (Math.abs(changex) == 2) {\n gameBoard.boardPositions[x + (changex/2)][y + (changey/2)] = null;\n if (team == Constants.TeamId.team1Id) {\n board.numPieces1--;\n } else if (team == Constants.TeamId.team2Id) {\n board.numPieces0--;\n }\n }*/\n\n gameBoard.boardPositions[x][y].imageView.setX(142*x);\n gameBoard.boardPositions[x][y].imageView.setY(142*y);\n // flips after move is\n whiteTurn = !whiteTurn;\n gameBoard.startTimer();\n }\n //setUpUI(gameBoard);\n if (getY() == 7 && team == Constants.TeamId.team2Id) {\n board.crown(this);\n }\n if (getY() == 0 && team == Constants.TeamId.team1Id) {\n board.crown(this);\n }\n return possible(x, y, gameBoard);\n }",
"private void setSlotsAsNotVisited(boolean[][] visitedSlots) {\n for (int r = 0; r < Board.MAX_ROW; r++) {\n for (int c = 0; c < Board.MAX_COLUMN; c++) {\n visitedSlots[r][c] = false;\n }\n }\n }",
"private void coverExistingValues() \n {\n for(int i = 1; i <= gDim; i++)\n {\n for(int j = 1; j <= gDim; j++)\n {\n //If the board has a value at the current position, cover the satisfied rows and columns\n if(board[i - 1][j - 1] != null)\n {\n int rowIndex = rcvToMatrixRow(i, j, board[i - 1][j - 1]);\n coverSatisfiedColumns(ecmCoveredCols, rowIndex);\n coverSatisfiedRows(ecmCoveredRows, rowIndex);\n }\n }\n }\n }",
"private void setValidMoves() {\n\t\tl.getValidMoves();\n\n\t\tif(l.upValid) {\t// Update upward movement\n\t\t\ttmp=layout_Circle[l.y-1][l.x];\n\t\t\ttmp.setFill(Paint.valueOf(\"Green\"));\n\t\t}\n\n\t\tif(l.leftValid) {\t// Update leftward movement\n\t\t\ttmp=layout_Circle[l.y][l.x-1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Green\"));\n\t\t}\n\n\t\tif(l.rightValid) {\t// Update rightward movement\n\t\t\ttmp=layout_Circle[l.y][l.x+1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Green\"));\n\t\t}\n\t}",
"private void calculatePossibleMoves(Tile orig, List<Tile> availableSpots) {\n for (Tile spot : orig.getConnectedTiles()) {\n if (spot != null) {\n if (!availableSpots.contains(spot)) {\n availableSpots.add(spot);\n this.calculatePossibleMoves(spot, availableSpots);\n }\n }\n }\n }",
"private void setNeighboringMines(){\n\t\t//cycle the board\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++){\n\t\t\t\tint neighborCount = 0;\n\t\t\t\tif(!board[r][c].isMine()) {\n\t\t\t\t\t//checks if there is mines touching\n\t\t\t\t\tneighborCount = neighboringMines(r, c);\n\t\t\t\t\tif (neighborCount > 0) {\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(true);\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines\n\t\t\t\t\t\t\t\t(neighborCount);\n\t\t\t\t\t} else if (neighborCount == 0) {\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines(0);\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(false);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void completeGameBoard() {\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < column; j++) {\n if (game[i][j].equals(open)) {\n int replaceOpen = getNearbyMines(i, j); //calls to get nearby mines\n game[i][j] = String.valueOf(replaceOpen);\n }\n }\n }\n }",
"void updateAvailMovesInBox(int x, int y, int num) {\n\t\t// xBox and yBox are used to find which box we are inside (so we can loop through the box)\n\t\tint xBox = (x/boxSize);\n\t\tint yBox = (y/boxSize);\n\t\tfor (int i = boxSize * xBox; i < boxSize * xBox + boxSize; i++) {\n\t\t\tfor (int j = boxSize * yBox; j < boxSize * yBox + boxSize; j++) {\n\t\t\t\tavailMoves[i][j][num-1] = false;\n\t\t\t}\n\t\t}\n\t}",
"public void updateBoard() {\r\n\t\tfor(int i = 0, k = 0; i < board.getWidth(); i+=3) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j+=3) {\r\n\t\t\t\t//Check that there are pieces to display\r\n\t\t\t\tif(k < bag.size()) {\r\n\t\t\t\t\tboard.setTile(bag.get(k), i, j);\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tboard.fillSpace(GridSquare.Type.EMPTY, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }",
"boolean isValid() {\n\t\t// see if there is a empty square with no available move\n\t\tint counter;\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tfor(int j = 0; j < boardSize; j++) {\n\t\t\t\tcounter = 0;\n\t\t\t\tif (board[i][j] == 0) {\n\t\t\t\t\tfor (int k = 0; k < boardSize; k++) {\n\t\t\t\t\t\tif (availMoves[i][j][k] == true) {\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (counter == 0) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// see if there is a number missing in availMoves + board in each line/box \n\t\tboolean[][] verticalNumbers = new boolean[boardSize][boardSize];\n\t\tboolean[][] horizontalNumbers = new boolean[boardSize][boardSize];\n\t\tboolean[][] boxNumbers = new boolean[boardSize][boardSize];\n\t\tint box = 0;\n\t\tfor(int i = 0; i < boardSize; i++) {\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\tbox = i/boxSize + ((j/boxSize) * boxSize); \n\t\t\t\tif (board[i][j] > 0) {\n\t\t\t\t\tverticalNumbers[i][board[i][j] - 1] = true;\n\t\t\t\t\thorizontalNumbers[j][board[i][j] - 1] = true;\n\t\t\t\t\tboxNumbers[box][board[i][j] - 1] = true;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int k = 0; k < boardSize; k++) {\n\t\t\t\t\t\tif (availMoves[i][j][k] == true) {\n\t\t\t\t\t\t\tverticalNumbers[i][k] = true;\n\t\t\t\t\t\t\thorizontalNumbers[j][k] = true;\n\t\t\t\t\t\t\tboxNumbers[box][k] = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if there is any boolean still false it means that number is missing from that box/line\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\tif (verticalNumbers[i][j] == false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (horizontalNumbers[i][j] == false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (boxNumbers[i][j] == false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public void fillBoard() {\n List<Integer> fifteen = ArrayUtils.intArrayToList(SOLVED_BOARD);\n Collections.shuffle(fifteen, this.random);\n this.emptyTileIndex = fifteen.indexOf(0);\n this.matrix = fifteen.stream().mapToInt(i -> i).toArray();\n }",
"void removeFromAvailMoves(int x, int y) {\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tavailMoves[x][y][i] = false;\n\t\t}\n\t}",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"private void setupGhostBoard(){\n // The ghostBoard is being set to be an exact copy of the board.\n ghostBoard.setBoardBricks(new ArrayList<>());\n for(Brick brick : board.getBoardBricks()){\n ghostBoard.getBoardBricks().add(new Brick(brick.getX(), brick.getY()));\n }\n ArrayList<Brick> ghostBlock = new ArrayList<>();\n for(Brick currentBlockBrick : board.getCurrentBlock().getBricks()){\n ghostBlock.add(new Brick(currentBlockBrick.getX(), currentBlockBrick.getY()));\n }\n ghostBoard.getCurrentBlock().setBricks(ghostBlock);\n // Its currentBlock is moved right up against the lowest reachable position.\n while (!ghostBoard.getDownwardsCollision()){\n ghostBoard.moveDown();\n }\n }",
"private void fillBoard() {\n\t\tint randomRow, randomColumn;\n\t\t\n\t\tfor (int i = 0; i < bombs; ++i) {\n\t\t\trandomRow = (int)(Math.random() * rows);\n\t\t\trandomColumn = (int)(Math.random() * columns);\n\t\t\tboard[randomRow][randomColumn] = -1;\n\t\t}\n\t\t\n\t\tfor (int r = 0; r < rows; ++r) {\n\t\t\tfor (int c = 0; c < columns; ++c) {\n\t\t\t\tif (board[r][c] == -1) {\n\t\t\t\t\tincreaseFreeCells(r, c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void evaluaVisibilidad(int posX, int posY)\n {\n \n /** Contiene todas las posibles casillas visibles.\n * Si en el proceso una casilla tapa, pasa a modo 'oclusion, y ocluye las demás hasta que llega al punto final (Las quita del Array)\n */\n this.casillasVisibles=new TreeSet<>();\n \n //Realizar la interpolacion\n boolean visible=true;\n CoordCasilla origen=new CoordCasilla(posX , posY);\n CoordCasilla destino;\n List<CoordCasilla>camino;\n \n /* Cell cell = new Cell();\n cell.setTile(mapaActual.getTileSets().getTileSet(0).getTile(138));*/\n \n //Calcular las interpolaciones\n for(CoordCasilla cc:MATRIZ_INTERPOLACION)\n {\n visible=true;\n destino=new CoordCasilla(origen.x +cc.x,origen.y+cc.y);\n camino= Analizador.interpola(origen, destino);\n \n \n for(CoordCasilla casillaEstudio:camino)\n {\n //Si la celda está fuera de limites no tiene sentido realizar el analisis de las casillas siguientes\n if(casillaEstudio.x<0 || casillaEstudio.x>this.anchoMapa-1 || casillaEstudio.y<0 || casillaEstudio.y>this.altoMapa - 1)\n break;\n \n \n if(!visible ) //No hay visibilidad, quitamos la casilla si la hay del TreeSet\n {\n //posibleVisibilidad.remove(celdaEstudio);\n continue;\n }\n else if(visible && this.capaViibilidad.getCell(casillaEstudio.x,casillaEstudio.y)!=null) //La casilla es limite de visibilidad\n visible=false;\n \n //TEST: Marcamos esta casilla como visible\n //this.capaAux.setCell(celdaEstudio.x, celdaEstudio.y,cell);\n \n //Llegados a este punto, quitamos la niebla de guerra de la casilla\n quitaNieblaDeGuerra(casillaEstudio);\n \n this.casillasVisibles.add(casillaEstudio);\n }\n }\n }",
"public void testBoardAvailablePositions() {\n \tassertTrue(board6.hasAvailablePositionsForTile());\n \tList<PlacementLocation> expected = new ArrayList<PlacementLocation>();\n \tboard6.place(new Placement(Color.RED, 5, 21, Color.RED, 4, 16));\n \tboard6.place(new Placement(Color.RED, 4, 12, Color.RED, 5, 14));\n \tboard6.place(new Placement(Color.RED, 4, 8, Color.RED, 5, 11));\n \tboard6.place(new Placement(Color.RED, 5, 4, Color.RED, 4, 4));\n \tboard6.place(new Placement(Color.RED, 5, 1, Color.RED, 4, 0));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(5, 26))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 20))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(5, 24))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 29))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 30))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(6, 31))));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(5, 23))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(3, 15))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(5, 27))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 33))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 35))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 37))));\n \t\n \t\n \tfor (PlacementLocation location : board6.getAvailablePositionsForTile()) {\n \t\tif (!expected.contains(location))\n \t\t\tSystem.out.println(\"expected does not contain location: \" + location);\n \t}\n \tSet<PlacementLocation> locations = board6.getAvailablePositionsForTile();\n \tfor (PlacementLocation location : locations) {\n \t\tSystem.out.println(location);\n \t}\n \tfor (PlacementLocation location : expected) {\n \t\tif (!locations.contains(location))\n \t\t\tSystem.out.println(\"expected2 does not contain location: \" + location);\n \t}\n \t\n \tassertEquals(expected, board6.getAvailablePositionsForTile());\n \t\n \t\n }",
"private void fillBoard() {\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tboard[i] = ' ';\n\t\t}\n\t\tfor (int i = 0; i < isFree.length; i++) {\n\t\t\tisFree[i] = true;\n\t\t}\n\t}",
"public void setBeginningBoard() {\n clearBooleanBoard();\n\n figBoard[0][0] = new Rook(\"white\", 00, white[0]);\n figBoard[0][1] = new Knight(\"white\", 01, white[1]);\n figBoard[0][2] = new Bishop(\"white\", 02, white[2]);\n figBoard[0][4] = new King(\"white\", 04, white[3]);\n figBoard[0][3] = new Queen(\"white\", 03, white[4]);\n figBoard[0][5] = new Bishop(\"white\", 05, white[2]);\n figBoard[0][6] = new Knight(\"white\", 06, white[1]);\n figBoard[0][7] = new Rook(\"white\", 07, white[0]);\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[0][i] = true;\n gA.getBoard()[0][i].setRotation(180);\n }\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[1][i] = true;\n gA.getBoard()[1][i].setRotation(180);\n figBoard[1][i] = new Pawn(\"white\", 10 + i, white[8]);\n }\n\n figBoard[7][0] = new Rook(\"black\", 70, black[0]);\n figBoard[7][1] = new Knight(\"black\", 71, black[1]);\n figBoard[7][2] = new Bishop(\"black\", 72, black[2]);\n figBoard[7][4] = new King(\"black\", 74, black[3]);\n figBoard[7][3] = new Queen(\"black\", 73, black[4]);\n figBoard[7][5] = new Bishop(\"black\", 75, black[2]);\n figBoard[7][6] = new Knight(\"black\", 76, black[1]);\n figBoard[7][7] = new Rook(\"black\", 77, black[0]);\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[7][i] = true;\n gA.getBoard()[7][i].setRotation(0);\n }\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[6][i] = true;\n gA.getBoard()[6][i].setRotation(0);\n figBoard[6][i] = new Pawn(\"black\", 60 + i, black[8]);\n }\n\n clearFallenFigures();\n clearBoardBackground();\n clearStringBoard();\n showBoard(); //shows the figures\n showScore();\n setBoardClickable();\n\n if (beginner % 2 == 0)\n this.turn = 0;\n else this.turn = 1;\n\n beginner++;\n\n numberOfBlackFallen = 0;\n numberOfWhiteFallen = 0;\n fallenFiguresWhite = new ArrayList<Figure>();\n fallenFiguresBlack = new ArrayList<Figure>();\n\n showCheck();\n showTurn();\n }",
"void updateAvailMovesInBoxForFirstMove(int x, int y, int num) {\n\t\tint counter = 0;\n\t\tint i = x/boxSize;\n\t\tint j = y/boxSize;\n\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// next we see if there is a horizontal/vertical line that contains all of them, if it does, we can remove them from the line in the other boxes.\n\t\tif (counter > 1) {\n\t\t\tint lineCounter;\n\t\t\t// see if all the the availMoves that contain num are vertical\n\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\tlineCounter = 0;\n\t\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\tlineCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (lineCounter == counter) {\n\t\t\t\t\tupdateAvailMovesInLineInBoxVertical(num, k, j);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(lineCounter > 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// see if all the the availMoves that contain num are horizontal\n\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\tlineCounter = 0;\n\t\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\tlineCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (lineCounter == counter) {\n\t\t\t\t\tupdateAvailMovesInLineInBoxHorizontal(num, l, i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(lineCounter > 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n public Collection<Move> calculateLegalMoves(Board board) {\n System.out.println(\"INSIDE Knight: calculateLegalMoves()\");\n System.out.println(\"------------------------------>\\n\");\n\n //ArrayList of moves used to store all possible legal moves.\n final List<Move> legalMoves = new ArrayList<>();\n\n //Iterate the constant class array of piece offsets.\n for(final int currentCandidate : CANDIDATE_MOVE_COORDS){\n //Add the current coordinate of the piece to each offset, storing as a destination coordinate.\n final int candidateDestinationCoord = this.piecePosition + currentCandidate;\n\n //If the destination coordinate is within legal board bounds (between 0 and 64)...\n if(BoardUtils.isValidCoord(candidateDestinationCoord)){\n //Check to see if the piece is in the first column and its destination would move it outside the board.\n if(isfirstColumnExclusion(this.piecePosition, currentCandidate) ||\n isSecondColumnExclusion(this.piecePosition, currentCandidate) ||\n isSeventhColumnExclusion(this.piecePosition, currentCandidate) ||\n isEighthColumnExclusion(this.piecePosition, currentCandidate)){\n continue; //Continue the loop if any of these methods return true\n }\n\n //Store the tile of the destination coordinate.\n final Tile candidateDestinationTile = board.getTile(candidateDestinationCoord);\n\n //If the tile is not marked as occupied by the Tile class...\n if(!candidateDestinationTile.isOccupied()){\n //Add the move to the list of legal moves as a non-attack move.\n legalMoves.add(new MajorMove(board, this, candidateDestinationCoord));\n }\n else{\n //Otherwise, get the type and alliance of the piece at the destination.\n final Piece pieceAtDestination = candidateDestinationTile.getPiece();\n final Alliance pieceAlliance = pieceAtDestination.getPieceAlliance();\n\n //If the piece at the occupied tile's alliance differs...\n if(this.pieceAlliance != pieceAlliance){\n //Add the move to the list of legal moves as an attack move.\n legalMoves.add(new MajorAttackMove(board, this, candidateDestinationCoord, pieceAtDestination));\n }\n }\n }\n }\n\n //Return the list of legal moves.\n return legalMoves;\n }",
"public void fillTheBoard() {\n for (int i = MIN; i <= MAX; i++) {\n for (int j = MIN; j <= MAX; j++) {\n this.getCells()[i][j] = new Tile(i, j, false);\n }\n }\n }",
"public void setBoardEnabled(boolean flag) {\r\n\t\tfor (int i = 0; i < order.length; i++) {\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setEnabled(flag);\r\n//\t\t\tblock.setBorderPainted(flag);\r\n\t\t}\r\n\t}",
"public boolean fill() {\n boolean modified = false;\n for (int i = 0; i < gameBoard.getSize(); i++) {\n for (int j = gameBoard.getSize() - 1; j >= 0; j--) {\n Coordinates actualCoordinates = new Coordinates(i, j);\n if (gameBoard.getValue(actualCoordinates) == 0) {\n if (j == 0) {\n gameBoard.setValue(actualCoordinates, DiamondColor.getRandomColor());\n } else {\n Coordinates topCoordinates = new Coordinates(i, j - 1);\n gameBoard.setValue(actualCoordinates, gameBoard.getValue(topCoordinates));\n gameBoard.setValue(topCoordinates, 0);\n }\n modified = true;\n }\n }\n }\n return modified;\n }",
"void doMove() {\n\t\t// we saved the moves in a queue to avoid recursing.\n\t\tint[] move;\n\t\twhile(!moveQueue.isEmpty()) {\n\t\t\tmove = moveQueue.remove(); \n\t\t\tif (board[move[0]][move[1]] == 0) {\n\t\t\t\tinsertNumber(move[0], move[1], move[2]);\n\t\t\t}\n\t\t}\n\t\tgoOverLines();\n\t}",
"void updateAvailMovesInLineInBox(int num) {\n\t\tint counter;\n\t\t//for loop through each box\n\t\t\n\t\tfor (int i = 0; i < boxSize; i++) {\n\t\t\tfor (int j = 0; j < boxSize; j++) {\n\t\t\t\t// here we count the amount/number of the inserted num inside the box\n\t\t\t\tcounter = 0;\n\t\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// next we see if there is a horizontal/vertical line that contains all of them, if it does, we can remove them from the line in the other boxes.\n\t\t\t\tif (counter > 1) {\n\t\t\t\t\tint lineCounter;\n\t\t\t\t\t// see if all the the availMoves that contain num are vertical\n\t\t\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\t\t\tlineCounter = 0;\n\t\t\t\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\t\t\tlineCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (lineCounter == counter) {\n\t\t\t\t\t\t\tupdateAvailMovesInLineInBoxVertical(num, k, j);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(lineCounter > 0) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// see if all the the availMoves that contain num are horizontal\n\t\t\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\t\t\tlineCounter = 0;\n\t\t\t\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\t\t\tlineCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (lineCounter == counter) {\n\t\t\t\t\t\t\tupdateAvailMovesInLineInBoxHorizontal(num, l, i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(lineCounter > 0) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void makeChanges() { \n for(int i = 1; i < 9; i++) {\n for(int j = 1; j < 11; j++) {\n if(!(controller.getBoard().getPiece(i, j) instanceof Forbidden)) {\n Cell[i][j].setBackground(Color.white);\n if(controller.getBoard().getPiece(i,j) != null) {\n if(controller.getPlayer(controller.getTurn()).getColour() != controller.getBoard().getPiece(i,j).getColour()) {\n if(controller.getTurn() == 1) {\n Cell[i][j].setIcon(new ImageIcon(\"pieces\\\\redHidden.png\"));\n Cell[i][j].setEnabled(false);\n } else {\n Cell[i][j].setIcon(new ImageIcon(\"pieces\\\\blueHidden.png\"));\n Cell[i][j].setEnabled(false);\n }\n } else {\n Cell[i][j].setIcon((controller.getBoard().getPiece(i, j).getIcon()));\n Cell[i][j].setEnabled(true);\n }\n if(controller.getBoard().getPiece(i,j) instanceof Trap || controller.getBoard().getPiece(i,j) instanceof Flag) {\n Cell[i][j].removeActionListener(handler);\n Cell[i][j].setEnabled(false);\n }\n } else {\n Cell[i][j].setBackground(Color.white);\n Cell[i][j].setEnabled(false);\n }\n }\n }\n }\n controller.setTurn(); \n }",
"public void setBoard(){\n \n\t m_Pieces[3][3]= WHITE_PIECE;\n m_Pieces[4][4]= WHITE_PIECE;\n m_Pieces[3][4]= BLACK_PIECE;\n m_Pieces[4][3]= BLACK_PIECE;\n for(int x=0;x<WIDTH;x++){\n for(int y=0;y<HEIGHT;y++){\n if(m_Pieces[x][y]==null){\n m_Pieces[x][y]=NONE_PIECE;\n }\n }\n }\n }",
"@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n assertTrue(this.board.isPositionValid(new Position(line, column)));\n }\n }\n }",
"private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }",
"public void compactUp() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y primera columna. Si esta contiene un 0 y la fila posterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = 0; j < board.length - 1; j++) {\n\t\tif (board[j][i] == EMPTY && board[j + 1][i] != EMPTY) {\n\t\t board[j][i] = board[j + 1][i];\n\t\t board[j + 1][i] = EMPTY;\n\t\t compactUp();\n\t\t}\n\t }\n\t}\n }",
"void changepos(MouseEvent e, pieces chessPiece) \n { \n for(int beta : chessPiece.movnum)\n { \n if (chessPiece.color == 0 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allWhitePositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false;\n \n \n \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/\n }\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = false;\n }\n else if (chessPiece.color == 1 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allBlackPositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false; \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/}\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = true;\n }\n }//for ends\n \n }",
"public static void updatePositions() {\n\t\tfor(Square s1 : ChessBoard.BOARD_SQUARES) {\n\t\t\tif(s1.hasPiece()) {\n\t\t\t\t(s1.getPiece()).setPosition(s1.getPosition());\n\t\t\t\t(s1.getPiece()).updatePossibleMoves();\n\t\t\t}\n\t\t}\n\t}",
"protected abstract void paintBoard() throws TilePixelOutOfRangeException;",
"private void setShips() {\n //This clears the board. To \"Invalidate\"\n for (int x = 0; x < maxN; x++) {\n for (int y = 0; y < maxN; y++) {\n ivCell[x][y].setBackgroundResource(gridID);\n }\n }\n\n for (Ship s : ships) {\n for (int i = 0; i < s.getShipSize(); i++) {\n if(player)ivCell[s.getBodyLocationPoints()[i].x][s.getBodyLocationPoints()[i].y].setBackgroundResource(s.getBodyResources()[i]);\n updateOccupiedCells(s.getBodyLocationPoints());\n }\n }\n\n }",
"private void resetValidMove()\n {\n validMoves = null;\n setToValidMoveColor = false;\n validMoveFlag = false;\n }",
"private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}",
"static int [][] checkPreventer( int[][]MultiArray,int CurrentX, int CurrentY, int[] ComXY, String CurrentTitle){\n\t\touterloop_TopLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] < 0 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block bishop's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//top right tiles\n\t\touterloop_TopRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopRightTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//bottom left tiles\n\t\touterloop_BottomLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\n\t\t\tif (NewXY[0] < 0 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.2\");\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.4\");\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t//bottom right tiles\n\t\touterloop_BottomRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MultiArray;\n\t}",
"public void initChessBoardManually() {\r\n\t\tstatus.setStatusEdit();\r\n\t\tclearBoard();\r\n\t\tthis.setBoardEnabled(true);\r\n\t\tfor (int i=0; i<8*8; i++) {\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setBorderPainted(false);\r\n\t\t}\r\n\t\tswitcher.setEnabled(true);\r\n\t\tconfirm.setEnabled(true);\r\n\t\tt.setText(\"<html>Please choose position to put the pieces.<br>Right click to set/cancel King flag</html>\");\r\n\t}",
"public void setBoard() {\n bestPieceToMove = null;\n bestPieceFound = false;\n bestMoveDirectionX = 0;\n bestMoveDirectionY = 0;\n bestMoveFound = false;\n killAvailable = false;\n lightCounter = 12;\n darkCounter = 12;\n for (int y = 0; y < boardSize; y++) {\n for (int x = 0; x < boardSize; x++) {\n board[y][x] = new Field(x, y);\n if (y < 3 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.DARK, PieceType.MEN));\n } else if (y > 4 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.LIGHT, PieceType.MEN));\n }\n }\n }\n }",
"public void addUnavailablePosition(Position position) {\n unavailablePositions.add(position.clone());\n }",
"public List<Move> validMoves(){\n List<Move> results = new LinkedList<>();\n int kingVal = turn == WHITE ? WHITE_KING : BLACK_KING;\n int kingX = 0, kingY = 0;\n List<Piece> checks = null;\n kingSearch:\n for (int y = 0; y < 8; y++){\n for (int x = 0; x < 8; x++){\n if (board[y][x] == kingVal){\n kingX = x;\n kingY = y;\n checks = inCheck(x,y);\n break kingSearch;\n }\n }\n }\n if (checks.size() > 1){ // must move king\n for (int x = -1; x < 2; x++){\n for (int y = -1; y < 2; y++){\n if (kingX+x >= 0 && kingX + x < 8 && kingY+y >= 0 && kingY+y < 8){\n int val = board[kingY+y][kingX+x];\n if (val == 0 || turn == WHITE && val > WHITE_KING || turn == BLACK && val < BLACK_PAWN){\n // may still be a move into check, must test at end\n results.add(new Move(kingVal, kingX, kingY, kingX+x, kingY+y, val, 0, this));\n }\n }\n }\n }\n } else { // could be in check TODO: split into case of single check and none, identify pin/capture lines\n int queen = turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN;\n int knight = turn == WHITE ? WHITE_KNIGHT : BLACK_KNIGHT;\n int rook = turn == WHITE ? WHITE_ROOK : BLACK_ROOK;\n int bishop = turn == WHITE ? WHITE_BISHOP : BLACK_BISHOP;\n for (int y = 0; y < 8; y++) {\n for (int x = 0; x < 8; x++) {\n int piece = board[y][x];\n if (piece == (turn == WHITE ? WHITE_PAWN : BLACK_PAWN)) { // pawns\n // regular | 2 move\n if (board[y+turn][x] == 0){\n if (y+turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x, y + turn, 0, queen, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, knight, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, rook, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, bishop, this));\n }\n else {\n results.add(new Move(piece, x, y, x, y + turn, 0, 0, this));\n if ((y == (turn == WHITE ? 1 : 6)) && board[y + 2 * turn][x] == 0) { // initial 2 move\n results.add(new Move(piece, x, y, x, y + 2*turn, 0, 0, this));\n }\n }\n }\n // capture\n for (int dx = -1; dx <= 1; dx += 2){\n if (x + dx >= 0 && x + dx < 8) {\n int val = board[y+turn][x+dx];\n if (val > 0 && (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n if (y + turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x+dx, y + turn, val, queen, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, knight, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, rook, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, bishop, this));\n } else {\n results.add(new Move(piece, x, y, x+dx, y + turn, val, 0, this));\n }\n }\n if (val == 0 && y == (turn == WHITE ? 4 : 3) && x+dx == enPassant){ // en passant\n results.add(new Move(piece, x, y, x+dx, y + turn, 0, 0, this));\n }\n }\n }\n\n } else if (piece == knight) { // knights TODO: lookup table\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -2; dy <= 2; dy += 4){\n if (x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n if (x+dy >= 0 && x + dy < 8 && y + dx >= 0 && y + dx < 8){\n int val = board[y+dx][x+dy];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dy,y+dx,val,0,this));\n }\n }\n }\n }\n } else if (piece == bishop) { // bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == rook) { // rooks\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN)) { // queens\n // Diagonals - same as bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_KING : BLACK_KING)) { // king\n for (int dx = -1; dx < 2; dx++){\n for (int dy = -1; dy < 2; dy++){\n if ((dx != 0 || dy != 0) && x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n }\n }\n }\n }\n }\n // castle\n if (checks.size() == 0){\n if (turn == WHITE && (castles & 0b11) != 0){//(castles[0] || castles[1])){\n board[0][4] = 0; // remove king to avoid check test collisions with extra king\n if ((castles & WHITE_SHORT) != 0 && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n //if (castles[0] && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 6, 0, 0, 0, this));\n }\n if ((castles & WHITE_LONG) != 0 && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 &&\n inCheck(3,0).size() == 0){\n //if (castles[1] && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 && inCheck(3,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 2, 0, 0, 0, this));\n }\n board[0][4] = WHITE_KING;\n }else if (turn == BLACK && (castles & 0b1100) != 0){//(castles[2] || castles[3])) {\n board[7][4] = 0; // remove king to avoid check test collisions with extra king\n //if (castles[2] && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n if ((castles & BLACK_SHORT) != 0 && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 6, 7, 0, 0, this));\n }\n //if (castles[3] && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 && inCheck(3, 7).size() == 0) {\n if ((castles & BLACK_LONG) != 0 && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 &&\n inCheck(3, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 2, 7, 0, 0, this));\n }\n board[7][4] = BLACK_KING;\n }\n }\n }\n List<Move> fullLegal = new LinkedList<>();\n for (Move m : results){\n makeMove(m);\n turn = -turn;\n if (m.piece == WHITE_KING || m.piece == BLACK_KING){\n if (inCheck(m.toX,m.toY).size() == 0){\n fullLegal.add(m);\n }\n }else if (inCheck(kingX,kingY).size() == 0){\n fullLegal.add(m);\n }\n turn = -turn;\n undoMove(m);\n }\n Collections.sort(fullLegal, (o1, o2) -> o2.score - o1.score); // greatest score treated as least so appears first\n return fullLegal;\n }",
"public void setRemainingToScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tgrid[i][j]=new Scenery(i*grid[0].length+j);\n\t\t\t}\n\t\t}\n\t}",
"private void setMines(){\n Random random = new Random();\r\n int counter = mines;\r\n while(counter>0){\r\n int rx = random.nextInt(this.x); //without +1 because it can be 0\r\n int ry = random.nextInt(this.y);\r\n if( ! this.grid[rx][ry].isMine() ){\r\n this.grid[rx][ry].setMine();\r\n counter--; \r\n }\r\n }\r\n \r\n }",
"private void deadvance() {\n if (currColumn == 0) {\n if (currRow != 0) {\n currColumn = 8;\n currRow--;\n }\n } else {\n currColumn--;\n }\n if (!(currRow == 0 && currColumn == 0)) {\n if (startingBoard[currRow][currColumn] != 0) {\n deadvance();\n }\n }\n }",
"public void reset() {\n\t\t//reset player to 0\n\t\tplayer = 0;\n\t\t\n\t\tfor(int row = size - 1; row >= 0; row --)\n\t\t\tfor(int col = 0; col < size; col ++)\n\t\t\t\tfor(int dep = 0; dep < size; dep ++)\n\t\t\t\t\t//goes through all board positions and sets to -1\n\t\t\t\t\tboard[row][col][dep] = -1;\n\t}",
"public void fillBoard()\r\n {\r\n //fill 2d button array with the cells from bombList\r\n ListIterator itr = gameBoard.bombList.listIterator();\r\n for (int y = 0; y < gameBoard.BOARD_WIDTH; y++)\r\n {\r\n for (int x = 0; x < gameBoard.BOARD_WIDTH; x++)\r\n {\r\n if (itr.hasNext())\r\n {\r\n gameBoard.gameCells[y][x] = (Cell) itr.next();\r\n gameBoard.gameCells[y][x].setX(x);\r\n gameBoard.gameCells[y][x].setY(y);\r\n }\r\n }\r\n }\r\n// // **Debugging** print array to console\r\n// System.out.println(\"****** 2D Array Contents *******\");\r\n// for (int y = 0; y < gameBoard.BOARD_WIDTH; y++)\r\n// {\r\n// for (int x = 0; x < gameBoard.BOARD_WIDTH; x++)\r\n// {\r\n// System.out.print(gameBoard.gameCells[y][x].getText());\r\n// }\r\n// System.out.print(\"\\n\");\r\n// }\r\n\r\n // tell nearby spaces im a bomb\r\n for (int y = 0; y < gameBoard.BOARD_WIDTH; y++)\r\n {\r\n for (int x = 0; x < gameBoard.BOARD_WIDTH; x++)\r\n {\r\n if (gameBoard.gameCells[y][x].isBomb())\r\n {\r\n tellNearby(x, y);\r\n }\r\n }\r\n }\r\n }",
"private void highlightLegalMoves(final Board board) {\n if (shouldHighlightLegalMoves) {\n // running calculatePieceToBeMovedLegalMoves(board) ensures\n // 1. there is a clicked piece\n // 2. clicked piece belongs to current player\n for (final Move move : calculatePieceToBeMovedLegalMoves(board)) {\n MoveTransition transition = board.currentPlayer().makeMove(move);\n if(!transition.getMoveStatus().isDone()){\n continue;\n }\n if (move.getDestinationCoordinate() == this.tileCoordinate) {\n try {\n ImageIcon greenDot = new ImageIcon(ImageIO.read(new File(\"art/misc/green_dot.png\")));\n add(new JLabel(greenDot));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }",
"public void initializeDebugBoard() {\n\t\tboolean hasNotMoved = false;\n\t\tboolean hasMoved = true;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set empty rows\n\t\tfor (int row = 0; row < 8; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\tboard[5][4] = new Piece('k', white, hasMoved, 5, 4, PieceArray.E_kingId);\n//\t\tboard[1][4] = new Piece(\"rook\", white, hasMoved, 1, 4);\n\t\tboard[2][2] = new Piece('q', black, hasMoved, 2, 2, PieceArray.A_rookId);\n//\t\tboard[3][2] = new Piece('q', black, hasMoved, 3, 2, PieceArray.H_rookId);\n\t\t\n\n\t\tboard[0][0] = new Piece('k', black, hasMoved, 0, 0, PieceArray.E_kingId);\n//\t\tboard[7][7] = new Piece('r', black, hasNotMoved, 7, 7, PieceArray.A_rookId);\n//\t\tboard[6][7] = new Piece('p', black, hasNotMoved, 6, 7, PieceArray.A_pawnId);\n//\t\tboard[6][6] = new Piece('p', black, hasNotMoved, 6, 6, PieceArray.B_pawnId);\n//\t\tboard[6][5] = new Piece('p', black, hasNotMoved, 6, 5, PieceArray.C_pawnId);\n//\t\tboard[6][4] = new Piece('p', black, hasNotMoved, 6, 4, PieceArray.D_pawnId);\n\t\n//\t\tboard[6][6] = new Piece(\"pawn\", black, hasMoved, 6, 6);\n//\t\tboard[6][7] = new Piece(\"pawn\", black, hasMoved, 6, 7);\n//\t\tboard[6][4] = new Piece(\"pawn\", black, hasMoved, 6, 4);\n//\t\t\t\n//\t\t\n//\t\tboard[4][4] = new Piece(\"pawn\", black, hasMoved, 4,4);\n//\t\tboard[3][5] = new Piece(\"rook\", white,hasMoved,3,5);\n//\t\tboard[1][7] = new Piece(\"pawn\",black,hasMoved,1,7);\n\n\t}",
"public void ghost(){\n\t\tfor(int i = 0; i < this.position.length ; i++){//itterates through array\n\t\t\tfor(int p = 0; p < this.position.length ; p++){\n\t\t\t\tthis.position[i][p] = 0;//makes the positions for the array 0, player not here\n\t\t\t}\n\t\t}\n\t}",
"public boolean placeComputerShipsDumb(int pattern) {\n if(cpuHasPlaced){\n return false;\n }\n switch(pattern){\n case 1:\n computerShips[0].setShip(4, 2, 1);\n for (int i = 4; i < 9; i++) {\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[1].setShip(2, 4, 0);\n for (int j = 4; j < 8; j++){\n computerPlayerBoard[2][j] = board.ship.ordinal();\n }\n computerShips[2].setShip(0, 0, 1);\n for (int i = 0; i < 3; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[3].setShip(7, 9, 1);\n for (int i = 6; i < 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(5, 4, 1);\n for (int i = 5; i < 7; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n break;\n case 2:\n computerShips[0].setShip(0, 0, 1);\n for(int i = 0; i < 6; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[1].setShip( 0, 3, 1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[2].setShip(0, 4, 1);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,1,1);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,2,1);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n break;\n case 3:\n computerShips[0].setShip(0,0,0);\n for(int i = 0; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[1].setShip( 0, 3, 0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[3][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(0, 4, 0);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n computerShips[3].setShip( 0, 1, 0);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,2,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n break;\n case 4:\n computerShips[0].setShip(3,4,1);\n for(int i = 3; i < 8; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[1].setShip( 3, 6, 1);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[i][6] = board.ship.ordinal();\n }\n computerShips[2].setShip(3, 3, 1);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[3].setShip( 7, 9, 1);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(8,0,0);\n for(int i = 8; i <= 9; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n break;\n case 5:\n computerShips[0].setShip(0,9,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,6,1);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[i][6] = board.ship.ordinal();\n }\n computerShips[2].setShip(3,3,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[3][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,9,1);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(8,0,1);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n break;\n case 6:\n computerShips[0].setShip(0,9,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(0,6,0);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(0,5,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,8,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,7,0);\n for(int i = 0; i < 2; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n break;\n case 7:\n computerShips[0].setShip(3,3,0);\n for(int i = 3; i < 8; i++){\n computerPlayerBoard[3][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,5,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n //cruiser\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(3,2,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(3,4,0);\n for(int i = 3; i < 5; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n break;\n case 8:\n computerShips[0].setShip(2,4,1);\n for(int i = 2; i < 7; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,6,1);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[i][6] = board.ship.ordinal();\n }\n computerShips[2].setShip(4,5,1);\n for(int i = 4; i < 7; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n computerShips[3].setShip(2,3,1);\n for(int i = 2; i < 5; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[4].setShip(2,5,1);\n for(int i = 2; i < 4; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n break;\n case 9:\n computerShips[0].setShip(0,0,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,1,1);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n computerShips[2].setShip(7,0,1);\n for(int i = 7; i <= 9; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[3].setShip(5,0,1);\n for(int i = 5; i < 8; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,1,1);\n for(int i = 0; i < 2; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n break;\n case 10:\n computerShips[0].setShip(0,0,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,1,0);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(7,0,0);\n for(int i = 7; i <= 9; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(5,0,0);\n for(int i = 5; i < 8; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,1,0);\n for(int i = 0; i < 2; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n break;\n case 11:\n computerShips[0].setShip(2,3,1);\n for(int i = 2; i < 7; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,5,1);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n computerShips[2].setShip(3,0,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(4,1,1);\n for(int i = 4; i < 6; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n computerShips[4].setShip(4,8,1);\n for(int i = 4; i < 6; i++){\n computerPlayerBoard[i][8] = board.ship.ordinal();\n }\n break;\n case 12:\n computerShips[0].setShip(3,5,0);\n for(int i = 3; i < 8; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,2,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(4,2,1);\n for(int i = 4; i < 7; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[3].setShip(3,0,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(3,9,0);\n for(int i = 3; i < 5; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n break;\n case 13:\n computerShips[0].setShip(0,0,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[1].setShip(0,9,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,0,1);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[3].setShip(6,9,1);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(8,9,1);\n for(int i = 8; i <= 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n break;\n case 14:\n computerShips[0].setShip(0,4,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[1].setShip(0,2,1);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[2].setShip(5,4,1);\n for(int i = 5; i < 8; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[3].setShip(4,2,1);\n for(int i = 4; i < 7; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[4].setShip(6,2,1);\n for(int i = 6; i < 8; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n break;\n case 15:\n computerShips[0].setShip(1,4,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,5,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,4,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,5,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,5,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n break;\n case 16:\n computerShips[0].setShip(1,1,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,8,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,1,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,8,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,8,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n break;\n case 17:\n computerShips[0].setShip(1,1,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,2,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,1,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,2,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,2,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n break;\n case 18:\n computerShips[0].setShip(1,6,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,7,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,6,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,7,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,7,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n break;\n case 19:\n computerShips[0].setShip(0,5,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,2,0);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(0,9,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(6,0,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(6,9,0);\n for(int i = 6; i < 8; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n break;\n case 20:\n computerShips[0].setShip(2,5,1);\n for(int i = 2; i < 7; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n computerShips[1].setShip(1,8,0);\n for(int i = 1; i < 5; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(3,0,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,2,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(4,2,1);\n for(int i = 4; i < 6; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n break;\n\n }\n cpuHasPlaced = true;\n return true;\n }",
"public void setAllMissing();",
"private void reachAllValidPoint(int[][] tempMap, int i, int j) {\n\n\t\ttempMap[i][j] = 0;\n\t\t\n\t\t//moving in edge\n\t\tif (j > 0\n\t\t\t\t&& tempMap[i][j - 1] == 1\n\t\t\t\t&& (mapElementArray[i][j - 1] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j - 1] instanceof Teleporter || mapElementArray[i][j - 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, j - 1);\n\t\t}\n\t\tif (j + 1 < width\n\t\t\t\t&& tempMap[i][j + 1] == 1\n\t\t\t\t&& (mapElementArray[i][j + 1] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j + 1] instanceof Teleporter || mapElementArray[i][j + 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, j + 1);\n\t\t}\n\t\tif (i - 1 >= 0\n\t\t\t\t&& tempMap[i - 1][j] == 1\n\t\t\t\t&& (mapElementArray[i - 1][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i - 1][j] instanceof Teleporter || mapElementArray[i][j - 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i - 1, j);\n\t\t}\n\t\tif (i + 1 < height\n\t\t\t\t&& tempMap[i + 1][j] == 1\n\t\t\t\t&& (mapElementArray[i + 1][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i + 1][j] instanceof Teleporter || mapElementArray[i + 1][j] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i + 1, j);\n\t\t}\n\t\t\n\t\t//moving at edge, must consider if this point is a RandPaar\n\t\tif (i == 0 && tempMap[height - 1][j] == 1\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, height - 1, j);\n\t\t} else if (i == height - 1 && tempMap[0][j] == 1\n\t\t\t\t&& !(mapElementArray[0][j] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[0][j] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[0][j] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, 0, j);\n\t\t} else if (j == 0 && tempMap[i][width - 1] == 1\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, width - 1);\n\t\t} else if (j == width - 1 && tempMap[i][0] == 1\n\t\t\t\t&& !(mapElementArray[i][0] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[i][0] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[i][0] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, 0);\n\t\t}\n\t}",
"private void resetBoard(Integer[][] savedBoard) {\n for (int r = 0; r < Board.MAX_ROW; r++) {\n for(int c = 0; c < Board.MAX_COLUMN; c++) {\n boardObject.setSlotColor(boardObject.getSlot(r, c), savedBoard[r][c]);\n }\n }\n }",
"public static void setBlocked(int i, int j) {\n\tgrid[i][j] = null;\n//\tSystem.out.println(\"end\");\n}",
"private void moveTo(int xpos, int ypos) {\n repeat = true;\n int x1 = ypos / CELL_SIZE;\n int y1 = xpos / CELL_SIZE;\n int d;\n boolean valid = true;\n int st, bc = 0;\n if (x1 == x && y1 != y) {\n if (y1 > y) {\n for (int i = y; i <= y1; i++) {\n st = state[x][i];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n } else {\n for (int i = y1; i <= y; i++) {\n st = state[x][i];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n }\n } else if (x1 != x && y1 == y) {\n if (x1 > x) {\n for (int i = x; i <= x1; i++) {\n st = state[i][y];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n } else {\n for (int i = x1; i <= x; i++) {\n st = state[i][y];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n }\n } else {\n valid = false;\n }\n\n if (valid) {\n if (x1 == x && y1 != y) {\n if (y1 > y) {\n d = y1 - y;\n for (int i = 0; i < d && repeat; i++) {\n changeState(RIGHT_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n } else {\n d = y - y1;\n for (int i = 0; i < d && repeat; i++) {\n changeState(LEFT_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n }\n } else if (x1 != x && y1 == y) {\n if (x1 > x) {\n d = x1 - x;\n for (int i = 0; i < d && repeat; i++) {\n changeState(DOWN_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n } else {\n d = x - x1;\n for (int i = 0; i < d && repeat; i++) {\n changeState(UP_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n }\n }\n } else {\n List<Point> path = findPath(new Point(y, x), new Point(y1, x1));\n\n if (path.size() > 1) {\n Point cpnt, opnt;\n opnt = (Point) path.get(0);\n int psize = path.size();\n for (int i = 1; i < psize && repeat; i++) {\n cpnt = (Point) path.get(i);\n moveOne(cpnt.y, cpnt.x, opnt.y, opnt.x);\n opnt = cpnt;\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n }\n }\n }",
"private void checkIfOccupied(int row, int col) {\n if (status == MotionStatus.DOWN || AIisAttacking) {\n\n// if (player && playerAttacks != null) {\n// // Ignore touch if player has previously committed an attack on that cell.\n// for (int i = 0; i < playerAttacks.size(); i++) {\n// if (playerAttacks.get(i).equals(row,col)) {\n// Log.i(\"for\", \"You Hit this Previously!\");\n// }\n// }\n// }\n\n for (int i = 0; i < occupiedCells.size(); i++) {\n if (occupiedCells.get(i).x == row && occupiedCells.get(i).y == col) {\n Point p = new Point(row, col);\n selectedShip = findWhichShip(p); //Touching View Updated\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n setHit(true);\n break;\n }\n }\n\n if (selectedShip == null) {\n setHit(false);\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n }\n\n } else if (status == MotionStatus.MOVE) {//MotionStatus.MOVE\n if (selectedShip != null) {//Need to make sure none of the current ship parts will overlap another.\n int rowHolder = selectedShip.getHeadCoordinatePoint().x;\n int colHolder = selectedShip.getHeadCoordinatePoint().y;\n int tempRow, tempCol;\n selectedShip.moveShipTo(row, col);\n for (Ship s : ships) {\n if (s != selectedShip) {\n\n for (int i = 0; i < selectedShip.getShipSize(); i++) {\n tempRow = selectedShip.getBodyLocationPoints()[i].x;\n tempCol = selectedShip.getBodyLocationPoints()[i].y;\n\n for (int j = 0; j < s.getShipSize(); j++) {\n if (tempRow == s.getBodyLocationPoints()[j].x && tempCol == s.getBodyLocationPoints()[j].y) {\n selectedShip.moveShipTo(rowHolder, colHolder);\n }\n }//for\n }//for\n }\n }//for\n }\n }//Move\n }",
"@Override\n\tpublic Collection<Move> calculateLegalMoves(final Board board) {\n\t\t\n\t\t//Array that will hold of the legal moves for the Pawn\n\t\tfinal List<Move> legalMoves = new ArrayList<>();\n\t\t\n\t\t//Loop through all possible moves by applying of the offsets to the Pawn's current position\n\t\tfor(final int currentCandidateOffset: CANDIDATE_MOVE_COORDINATES){\n\t\t\t\n\t\t\t//Apply the offset to the Pawn's current position\n\t\t\tfinal int candidateDestinationCoordinate = this.piecePosition + (this.getPieceTeam().getDirection() * currentCandidateOffset);\n\t\t\t\n\t\t\t//Checks if the Destination Coordinate is valid\n\t\t\tif(!BoardUtils.isValidTileCoordinate(candidateDestinationCoordinate)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Checks if this tile is occupied\n\t\t\tif(currentCandidateOffset == 8 && !board.getTile(candidateDestinationCoordinate).isTileOccupied()){\n\t\t\t\tif(this.pieceTeam.isPawnPromotionSquare(candidateDestinationCoordinate))\n\t\t\t\t\tlegalMoves.add(new Move.PawnPromotion(new Move.PawnMove(board, this, candidateDestinationCoordinate)));\n\t\t\t\telse\n\t\t\t\t\tlegalMoves.add(new Move.PawnMove(board, this, candidateDestinationCoordinate));\t\n\t\t\t}\n\t\t\t//Checks if the Pawn is on it's first move\n\t\t\telse if(currentCandidateOffset == 16 && this.isFirstMove() && ((BoardUtils.SEVENTH_RANK[this.piecePosition] && \n\t\t\t\t\tthis.getPieceTeam().isBlack()) || (BoardUtils.SECOND_RANK[this.piecePosition] && this.getPieceTeam().isWhite()))) {\n\t\t\t\t\n\t\t\t\t//Calculate coordinate of the tile behind candidate coordinate\n\t\t\t\tfinal int behindCandidateDestinationCoordinate = this.piecePosition + (this.pieceTeam.getDirection() * 8);\n\t\t\t\t\n\t\t\t\t//Checks if the tile behind the candidate destination is NOT occupied & if the Tile at the Candidate Destination is NOT occupied\n\t\t\t\tif(!board.getTile(behindCandidateDestinationCoordinate).isTileOccupied() && \n\t\t\t !board.getTile(candidateDestinationCoordinate).isTileOccupied())\n\t\t\t\t\t\tlegalMoves.add(new Move.PawnJump(board, this, candidateDestinationCoordinate));\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t//Checks for edge cases in the 7 direction\t\n\t\t\t} else if(currentCandidateOffset == 7 &&\n\t\t\t\t\t!((BoardUtils.FILE_H[this.piecePosition] && this.getPieceTeam().isWhite() ||\n\t\t\t\t\t(BoardUtils.FILE_A[this.piecePosition] && this.getPieceTeam().isBlack())))){\n\t\t\t\t\n\t\t\t\tif(board.getTile(candidateDestinationCoordinate).isTileOccupied()){\n\t\t\t\t\tfinal Piece pieceOnCandidate = board.getTile(candidateDestinationCoordinate).getPiece();\n\t\t\t\t\t//If the pieces are not on the same team an Attack move is added to legal moves.\n\t\t\t\t\tif(this.getPieceTeam() != pieceOnCandidate.getPieceTeam())\n\t\t\t\t\t\tif(this.pieceTeam.isPawnPromotionSquare(candidateDestinationCoordinate))\n\t\t\t\t\t\t\tlegalMoves.add(new Move.PawnPromotion(new Move.PawnAttackMove(board, this, candidateDestinationCoordinate, pieceOnCandidate)));\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tlegalMoves.add(new Move.PawnAttackMove(board, this, candidateDestinationCoordinate, pieceOnCandidate));\n\t\t\t\t\t\t\n\t\t\t\t//This basically checks if En Passant Pawn is next to Player's pawn\t\n\t\t\t\t} else if(board.getEnPassantPawn() != null){\n\t\t\t\t\tif(board.getEnPassantPawn().getPiecePosition() == (this.piecePosition + (this.pieceTeam.getOppositeDirection()))){\n\t\t\t\t\t\tfinal Piece pieceOnCandidate = board.getEnPassantPawn();\n\t\t\t\t\t\tif(this.pieceTeam != pieceOnCandidate.getPieceTeam()){\n\t\t\t\t\t\t\tlegalMoves.add(new Move.PawnEnPassantAttackMove(board, this, candidateDestinationCoordinate, pieceOnCandidate));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t//Checks for edge cases in the 9 direction\t\n\t\t\t} else if(currentCandidateOffset == 9 && \n\t\t\t\t\t!((BoardUtils.FILE_A[this.piecePosition] && this.getPieceTeam().isWhite() ||\n\t\t\t\t\t(BoardUtils.FILE_H[this.piecePosition] && this.getPieceTeam().isBlack())))){\n\t\t\t\t\n\t\t\t\tif(board.getTile(candidateDestinationCoordinate).isTileOccupied()){\n\t\t\t\t\tfinal Piece pieceOnCandidate = board.getTile(candidateDestinationCoordinate).getPiece();\n\t\t\t\t\t//If the pieces are not on the same team an Attack move is added to legal moves.\n\t\t\t\t\tif(this.getPieceTeam() != pieceOnCandidate.getPieceTeam())\n\t\t\t\t\t\tif(this.pieceTeam.isPawnPromotionSquare(candidateDestinationCoordinate))\n\t\t\t\t\t\t\tlegalMoves.add(new Move.PawnPromotion(new Move.PawnAttackMove(board, this, candidateDestinationCoordinate, pieceOnCandidate)));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tlegalMoves.add(new Move.PawnAttackMove(board, this, candidateDestinationCoordinate, pieceOnCandidate));\n\t\t\t\t} else if(board.getEnPassantPawn() != null){\n\t\t\t\t\tif(board.getEnPassantPawn().getPiecePosition() == (this.piecePosition - (this.pieceTeam.getOppositeDirection()))){\n\t\t\t\t\t\tfinal Piece pieceOnCandidate = board.getEnPassantPawn();\n\t\t\t\t\t\tif(this.pieceTeam != pieceOnCandidate.getPieceTeam()){\n\t\t\t\t\t\t\tlegalMoves.add(new Move.PawnEnPassantAttackMove(board, this, candidateDestinationCoordinate, pieceOnCandidate));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\treturn ImmutableList.copyOf(legalMoves);\n\t}",
"public void clearMarks() {\r\n markBoard = new boolean[squareDimension][squareDimension];\r\n }",
"public void checkAll() {\n for (int i = 0; i < size * size; i++) {\r\n if (flowGrid[i]!=size*size) {\r\n if ((flowGrid[i] != flowGrid[flowGrid[i]]) || i != flowGrid[i]) {\r\n flowGrid[i] = flowGrid[flowGrid[i]];\r\n if (flowGrid[i] < size) {\r\n grid[i / size][i % size] = 2;\r\n }\r\n }\r\n }\r\n }\r\n\r\n }",
"public void assignmines() {\n\n for(int row = 0; row < mineBoard.length; row++) {\n for(int col = 0; col < mineBoard[0].length; col++) {\n mineBoard[row][col] = 0;\n }\n }\n\n int minesPlaced = 0;\n Random t = new Random();\n while(minesPlaced < nummines) {\n int row = t.nextInt(10);\n int col = t.nextInt(10);\n if(mineBoard[row][col] == Empty) {\n setmine(true);\n mineBoard[row][col] = Mine;\n minesPlaced++;\n }\n }\n }",
"public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }",
"@Test\n void RookMoveDownBlocked() {\n Board board = new Board(8, 8);\n Piece rook1 = new Rook(board, 7, 1, 1);\n Piece rook2 = new Rook(board, 7, 4, 1);\n\n board.getBoard()[7][1] = rook1;\n board.getBoard()[7][4] = rook2;\n\n board.movePiece(rook1, 7, 7);\n\n Assertions.assertEquals(rook1, board.getBoard()[7][1]);\n Assertions.assertEquals(rook2, board.getBoard()[7][4]);\n Assertions.assertNull(board.getBoard()[7][7]);\n }",
"public void progressCells() {\n\t\tint[][] newMatrix = new int[width][height];\n\t\t\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor(int y = 0; y < height; y++) {\n\t\t\t\tint neighbourCount = countLivingNeighbours(x, y);\n\t\t\t\tboolean wasAlive = cellMatrix[x][y] == 1;\n\t\t\t\t\n\t\t\t\tif(wasAlive) {\n\t\t\t\t\tnewMatrix[x][y] = neighbourCount >= deathLimit ? 1 : 0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnewMatrix[x][y] = neighbourCount > birthLimit ? 1 : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcellMatrix = newMatrix;\n\t}",
"public void setSpawns() {\n List<Tile> spawns = this.board.getSpawns();// get all the possible spawns from board\n List<Tile> usedSpawns = new ArrayList<Tile>();// empty list used to represent all the spawns that have been used so no playerPiece gets the same spawn\n for (PlayerPiece playerPiece : this.playerPieces) { // for each playerPiece\n boolean hasSpawn = false; // boolean to represent whether the playerPiece has a spawn and used to initiate and stop the following while loop.\n while (!hasSpawn) { // while hasSpawn is false.\n int random_int = (int) (Math.random() * spawns.size());// get random number with max number of the total possible tiles the pieces can spawn from\n Tile spawn = spawns.get(random_int); // get spawn from spawns list using the random int as an index\n if (!usedSpawns.contains(spawn)) {// if the spawn isn't in the usedSpawn list\n playerPiece.setLocation(spawn);// set the location of the playerPiece to the spawn\n usedSpawns.add(spawn);//add the spawn to usedSpawns\n hasSpawn = true; // set the variable to true so the while loop stops.\n }\n }\n }\n }",
"public static void compute_possible_moves(Board s){\n\t\tint b [][] = s.board;\n\t\tint x = -1;\n\t\tint y = -1;\n\t\tfor (int i = 0;i < b.length;i++) {\n\t\t\tfor (int j = 0;j < b[i].length;j++) {\n\t\t\t\tif(b[i][j] == 0){\n\t\t\t\t\tx = i;\n\t\t\t\t\ty = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\n\t\tint left [][];\n\t\tint right [][];\n\t\tint up [][];\n\t\tint down [][];\n\t\tpossible_boards.clear();\n\t\tif(x - 1 != -1 && x >= 0 && x < 3){\n\t\t\t//up is a legal move\n\t\t\tint temporary_board [][] = new int[b.length][];\n\t\t\tfor(int q = 0; q < b.length; q++)\n\t\t\t temporary_board [q] = b[q].clone();\n\t\t\t\n\n\t\t\tint temp = temporary_board[x - 1][y];\n\t\t\ttemporary_board[x - 1][y] = temporary_board[x][y];\n\t\t\ttemporary_board[x][y] = temp;\n\t\t\tup = temporary_board;\n\n\t\t\tBoard up_board = new Board(up);\n\t\t\tpossible_boards.add(up_board);\n\n\t\t}\n\t\tif(x + 1 != 3 && x >= 0 && x < 3){\n\t\t\t//down is a legal move\n\t\t\tint temporary_board [][] = new int[b.length][];\n\t\t\tfor(int q = 0; q < b.length; q++)\n\t\t\t temporary_board [q] = b[q].clone();\n\t\t\t\n\t\t\tint temp = temporary_board[x + 1][y];\n\t\t\ttemporary_board[x + 1][y] = temporary_board[x][y];\n\t\t\ttemporary_board[x][y] = temp;\n\t\t\tdown = temporary_board;\n\t\t\tBoard down_board = new Board(down);\n\t\t\tpossible_boards.add(down_board);\n\t\t}\n\t\tif(y - 1 != -1 && y >= 0 && y < 3){\n\t\t\t//left move is legal\n\t\t\tint temporary_board [][] = new int[b.length][];\n\t\t\tfor(int q = 0; q < b.length; q++)\n\t\t\t temporary_board [q] = b[q].clone();\n\t\t\t\n\t\t\tint temp = temporary_board[x][y - 1];\n\t\t\ttemporary_board[x][y - 1] = temporary_board[x][y];\n\t\t\ttemporary_board[x][y] = temp;\n\t\t\tleft = temporary_board;\n\t\t\tBoard left_board = new Board(left);\n\t\t\tpossible_boards.add(left_board);\n\n\t\t}\n\t\tif(y + 1 != 3 && y >= 0 && y < 3){\n\t\t\t//right move is legal\n\t\t\tint temporary_board [][] = new int[b.length][];\n\t\t\tfor(int q = 0; q < b.length; q++)\n\t\t\t temporary_board [q] = b[q].clone();\n\t\t\t\n\t\t\tint temp = temporary_board[x][y + 1];\n\t\t\ttemporary_board[x][y + 1] = temporary_board[x][y];\n\t\t\ttemporary_board[x][y] = temp;\n\t\t\tright = temporary_board;\n\t\t\tBoard right_board = new Board(right);\n\t\t\tpossible_boards.add(right_board);\n\n\t\t}\n\n\t}",
"@Test\n\t/*\n\t * Checking Stalemate by \n\t * deleteing all pieces of Player 2 except 1 pawn but keeping it trapped.\n\t * Moving the King of Player 2 to such a positon that its not a check but cannot move.\n\t * here we are using the Queen of Player 1 to achieve that situation.\n\t */\n\tvoid testCheckStalemate() {\n\t\tm_oBoard.getPositionAgent(\"a8\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"b8\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"c8\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"d8\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"j8\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"k8\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"l8\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"a7\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"c7\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"d7\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"i7\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"j7\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"k7\").getPiece().setPosition(null);\n\t\tm_oBoard.getPositionAgent(\"l7\").getPiece().setPosition(null);\n\n\t\tm_oBoard.getPositionAgent(\"a8\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"b8\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"c8\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"d8\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"j8\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"k8\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"l8\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"a7\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"c7\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"d7\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"i7\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"j7\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"k7\").setPiece(null);\n\t\tm_oBoard.getPositionAgent(\"l7\").setPiece(null);\n\t\t\t\t\n\t\t// Setting Player 1 Pawn from b2 to b4\n\t\tIPositionAgent oSourcePositionOfPawnWhite = m_oBoard.getPositionAgent(\"b2\");\n\t\tIPositionAgent oDestinationPositionOfPawnWhite = m_oBoard.getPositionAgent(\"b4\");\n\t\t\n\t\tIRuleAgent oRulepawnWhite= (IRuleAgent)m_oBoardFactory.createRule();\t\t\n\t\toRulepawnWhite.getRuleData().setRuleType(RuleType.MOVE);\n\t\toRulepawnWhite.getRuleData().setDirection(Direction.EDGE);\n\t\toRulepawnWhite.getRuleData().setMaxRecurrenceCount(Integer.MAX_VALUE);\n\t\toRulepawnWhite.getRuleData().setFile(File.SAME);\n\t\toRulepawnWhite.getRuleData().setRank(Rank.FORWARD);\n\t\toRulepawnWhite.getRuleData().setFamily(Family.IGNORE);\n\t\toRulepawnWhite.getRuleData().setManoeuvreStrategy(Manoeuvre.FILE_AND_RANK);\n\t\toRulepawnWhite.getRuleData().setName(\"MOVE\");\n\t\toRulepawnWhite.getRuleData().setCustomName(\"\");\n\t\t\n\t\tIMoveCandidate oMoveCandidatePawnWhite = new MoveCandidate(oRulepawnWhite, oSourcePositionOfPawnWhite.getPiece(), oSourcePositionOfPawnWhite, oDestinationPositionOfPawnWhite);\n\t\tm_oRuleEngine.tryExecuteRule(m_oBoard, oMoveCandidatePawnWhite);\n\t\t\n\t\t// Setting Player 2 Pawn from b7 to b5\n\t\tIPositionAgent oSourcePositionOfPawnBlack = m_oBoard.getPositionAgent(\"b7\");\n\t\tIPositionAgent oDestinationPositionOfPawnBlack = m_oBoard.getPositionAgent(\"b5\");\n\t\t\n\t\tIRuleAgent oRulepawnBlack= (IRuleAgent)m_oBoardFactory.createRule();\t\t\n\t\toRulepawnBlack.getRuleData().setRuleType(RuleType.MOVE);\n\t\toRulepawnBlack.getRuleData().setDirection(Direction.EDGE);\n\t\toRulepawnBlack.getRuleData().setMaxRecurrenceCount(Integer.MAX_VALUE);\n\t\toRulepawnBlack.getRuleData().setFile(File.SAME);\n\t\toRulepawnBlack.getRuleData().setRank(Rank.FORWARD);\n\t\toRulepawnBlack.getRuleData().setFamily(Family.IGNORE);\n\t\toRulepawnBlack.getRuleData().setManoeuvreStrategy(Manoeuvre.FILE_AND_RANK);\n\t\toRulepawnBlack.getRuleData().setName(\"MOVE\");\n\t\toRulepawnBlack.getRuleData().setCustomName(\"\");\n\t\t\n\t\tIMoveCandidate oMoveCandidatePawnBlack = new MoveCandidate(oRulepawnWhite, oSourcePositionOfPawnBlack.getPiece(), oSourcePositionOfPawnBlack, oDestinationPositionOfPawnBlack);\n\t\tm_oRuleEngine.tryExecuteRule(m_oBoard, oMoveCandidatePawnBlack);\n\t\t\t\t\n\t\t// Setting Player 2 king from i8 to l8\n\t\tIPositionAgent oSourcePositionOfKing = m_oBoard.getPositionAgent(\"i8\");\n\t\tIPositionAgent oDestinationPositionOfKing = m_oBoard.getPositionAgent(\"l8\");\n\t\t\n\t\tIRuleAgent oRuleKing= (IRuleAgent)m_oBoardFactory.createRule();\t\t\n\t\toRuleKing.getRuleData().setRuleType(RuleType.MOVE);\n\t\toRuleKing.getRuleData().setDirection(Direction.EDGE);\n\t\toRuleKing.getRuleData().setMaxRecurrenceCount(Integer.MAX_VALUE);\n\t\toRuleKing.getRuleData().setFile(File.SAME);\n\t\toRuleKing.getRuleData().setRank(Rank.FORWARD);\n\t\toRuleKing.getRuleData().setFamily(Family.IGNORE);\n\t\toRuleKing.getRuleData().setManoeuvreStrategy(Manoeuvre.FILE_AND_RANK);\n\t\toRuleKing.getRuleData().setName(\"MOVE\");\n\t\toRuleKing.getRuleData().setCustomName(\"\");\n\t\t\n\t\tIMoveCandidate oMoveCandidateKing = new MoveCandidate(oRuleKing, oSourcePositionOfKing.getPiece(), oSourcePositionOfKing, oDestinationPositionOfKing);\n\t\tm_oRuleEngine.tryExecuteRule(m_oBoard, oMoveCandidateKing);\n\t\t\n\t\t// Setting Player 1 queen from d1 to j7\n\t\tIPositionAgent oSourcePositionOfQueen = m_oBoard.getPositionAgent(\"d1\");\n\t\tIPositionAgent oDestinationPositionOfQueen = m_oBoard.getPositionAgent(\"j7\");\n\t\t\n\t\tIRuleAgent oRuleQueen= (IRuleAgent)m_oBoardFactory.createRule();\t\t\n\t\toRuleQueen.getRuleData().setRuleType(RuleType.MOVE);\n\t\toRuleQueen.getRuleData().setDirection(Direction.VERTEX);\n\t\toRuleQueen.getRuleData().setMaxRecurrenceCount(Integer.MAX_VALUE);\n\t\toRuleQueen.getRuleData().setFile(File.SAME);\n\t\toRuleQueen.getRuleData().setRank(Rank.FORWARD);\n\t\toRuleQueen.getRuleData().setFamily(Family.IGNORE);\n\t\toRuleQueen.getRuleData().setManoeuvreStrategy(Manoeuvre.FILE_AND_RANK);\n\t\toRuleQueen.getRuleData().setName(\"MOVE\");\n\t\toRuleQueen.getRuleData().setCustomName(\"\");\n\t\t\n\t\tIMoveCandidate oMoveCandidateQueen = new MoveCandidate(oRuleQueen, oSourcePositionOfQueen.getPiece(), oSourcePositionOfQueen, oDestinationPositionOfQueen);\n\t\tm_oRuleEngine.tryExecuteRule(m_oBoard, oMoveCandidateQueen);\n\t\t\n\t\tBoolean bExpected = true;\n\t\tBoolean bActual = m_oRuleProcessor.checkStalemate(m_oBoard, oDestinationPositionOfKing.getPiece().getPlayer());\n\n\t\tassertEquals(bExpected, bActual);\n\t\t\n\t}",
"public int[] findMove(){\n int[] blackCheckerSpots = new int[12];\n int i =0;\n while(mCheckerBoard.indexOf(new Checker(1, false)) != -1){\n int startPosition = mCheckerBoard.indexOf(new Checker(1, false)); //need to override Checker equals method\n Checker current = mCheckerBoard.get(startPosition);\n int[] answer = jumpRight(startPosition, false, current);\n if(answer.length > 1)\n {\n //jumped right downwards\n return answer;\n }\n answer = jumpLeft(startPosition, false, current);\n if(answer.length > 1){\n //jumped left downwards\n return answer;\n }\n answer = moveDiagonalRight(startPosition, false, current);\n if(answer.length > 1){\n //moved diagonal right downwards\n return;\n }\n answer = moveDiagonalLeft(startPosition, false, current);\n if(answer.length > 1){\n //moved diagonal left downwards\n return;\n }\n\n //end of loop\n //these are the ones that need to be set back to black at the end\n current.setIsRed(true);\n blackCheckerSpots[i]=startPosition;\n i++;\n }\n\n for(int j =0; j<blackCheckerSpots.length; j++){\n Checker changed = mCheckerBoard.get(blackCheckerSpots[j]);\n changed.setIsRed(false);\n mCheckerBoard.set(blackCheckerSpots[j], changed);\n }\n\n }",
"@Test\n void RookMoveUpBlocked() {\n Board board = new Board(8, 8);\n Piece rook1 = new Rook(board, 6, 4, 1);\n Piece rook2 = new Rook(board, 6, 2, 1);\n\n board.getBoard()[6][4] = rook1;\n board.getBoard()[6][2] = rook2;\n\n board.movePiece(rook1, 6, 1);\n\n Assertions.assertEquals(rook1, board.getBoard()[6][4]);\n Assertions.assertEquals(rook2, board.getBoard()[6][2]);\n Assertions.assertNull(board.getBoard()[6][1]);\n }",
"private List<Coordinate> getAvailableMoves(ImmutableGameBoard gameBoard) {\n List<Coordinate> availableMoves = new ArrayList<Coordinate>();\n\n for (int x = 0; x < gameBoard.getWidth(); x++) {\n for (int y = 0; y < gameBoard.getHeight(); y++) {\n if(gameBoard.getSquare(x, y) == TicTacToeGame.EMPTY)\n availableMoves.add(new Coordinate(x, y));\n }\n }\n\n return availableMoves;\n }",
"public void resetBoard(){\n totalmoves = 0;\n this.board = new Cell[3][3];\n //fill the board with \"-\"\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board[i][j]=new Cell(new Coordinates(i,j), \"-\");\n }\n }\n }",
"private void resetBoard() {\r\n\t\tboard.removeAll();\r\n\t\tboard.revalidate();\r\n\t\tboard.repaint();\r\n\t\tboard.setBackground(Color.WHITE);\r\n\r\n\t\t// Reset filled\r\n\t\tfilled = new boolean[length][length];\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tfor (int y = 0; y < length; y++) {\r\n\t\t\t\tfilled[x][y] = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tupdateBoard();\r\n\t}",
"private void refillMap()\n {\n List<Block> blocks = map.getAllBlocks();\n blocks.forEach(block ->\n {\n if(block.isSpawnPoint())\n {\n while(!block.isAllWeaponsPresent() && !weaponCardDeck.isEmpty())\n {\n block.addWeaponCard(weaponCardDeck.getFirstCard());\n }\n }\n else\n {\n if(!block.isAmmoCardPresent())block.setAmmoCard(ammoCardDeck.getFirstCard());\n }\n });\n }",
"public void checkCellStatus()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n checkNeighbours(rows, columns);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }",
"public void initChessBoardAutomaticly() {\r\n\t\tthis.initPieces();\r\n\t\tthis.clearBoard();\r\n\t\tfor (int i=0; i<board.size(); i++) {\r\n\t\t\tChessBoardBlock b = board.get(order[i]);\r\n\t\t\tb.setBorderPainted(false);\r\n\t\t}\r\n\t\tfor (int i = 0, w = 0, b = 0, s = 0; i < 8 * 8; i++) {\r\n\r\n\t\t\t// Assign1, Disable board clickable\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setEnabled(false);\r\n\r\n\t\t\t// Assign1, Put black pieces and record the position\r\n\t\t\tif (i % 2 != 1 && i >= 8 && i < 16) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t} else if (i % 2 != 0 && (i < 8 || (i > 16 && i < 24))) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Assign1, Put white pieces and record the position\r\n\t\t\telse if (i % 2 != 0 && i > 48 && i < 56) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t} else if (i % 2 != 1\r\n\t\t\t\t\t&& ((i >= 40 && i < 48) || (i >= 56 && i < 64))) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\t\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t}\r\n\r\n\t\t\t// Assign1, Put empty pieces on the board\r\n\t\t\t// Actually, empty pieces will not display on the board, they are\r\n\t\t\t// not existing\r\n\t\t\t// to chess players, just for calculation\r\n\t\t\telse {\r\n\t\t\t\tChessPiece spacePiece = spacePieces[s];\r\n\t\t\t\tspacePiece.position = order[i];\r\n\t\t\t\tbody.add(spacePiece);\r\n\t\t\t\tpiece.put(order[i], spacePiece);\r\n\t\t\t\tspacePiece.setVisible(false);\r\n\t\t\t\ts++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tt.setText(\"Chess Board has been initialized automatically\");\r\n\t\tthis.startGame();\r\n\t}",
"void advancedAvailMovesBox(int num) {\n\t\t\n\t\tint counter;\n\t\t// a and b are which box we are in\n\t\tfor (int a = 0; a < boxSize; a++) {\n\t\t\tfor (int b = 0; b < boxSize; b++) {\n\t\t\t\tcounter = 0;\n\t\t\t\tint xPos = 0;\n\t\t\t\tint yPos = 0;\n\t\t\t\t//boxSize * a or b gets us inside the box.\n\t\t\t\tfor (int i = boxSize * a; i < boxSize * a + boxSize; i++) {\n\t\t\t\t\tfor (int j = boxSize * b; j < boxSize * b + boxSize; j++) {\n\t\t\t\t\t\tif (availMoves[i][j][num-1] == true) {\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\txPos = i;\n\t\t\t\t\t\t\tyPos = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (counter > 1) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (counter > 1) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (counter == 1) {\n\t\t\t\t\tmoveQueue.add(new int[] {xPos, yPos, num});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"private boolean moveUP() {\r\n\t\tint i,j,k;\r\n\t\tboolean flag = false;\r\n\t\tfor(i = 0 ; i < rows_size; i++) {\r\n\t\t\tfor( j = 0; j < columns_size; j++) {\r\n\t\t\t\tif( !isEmpty(i,j) ) {\r\n\t\t\t\t\tfor(k = i; k >= 0 && isEmpty(k-1,j); k--);\r\n\t\t\t\t\t\tif(k == 0) {\r\n\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\tgame[k][j] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(game[i][j].isEqual(game[k-1][j]) && game[k-1][j].getFlag() == false) {\r\n\t\t\t\t\t\t\t\tgame[k-1][j].setValue(game[k-1][j].getValue()*2);\r\n\t\t\t\t\t\t\t\tgame[k-1][j].setFlag(true);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tscore += game[k-1][j].getValue();\r\n\t\t\t\t\t\t\t\t--takenCells;\r\n\t\t\t\t\t\t\t\t++freeCells;\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\t\tgame[k][j] = new Cell2048 (game[i][j]);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tFalseFlag();\r\n\t\treturn flag;\r\n\t}",
"void setUnused(){\n assert this.used == true;\n\n //let the parent pointer remain\n this.hf = 0;\n this.used = false;\n\n }",
"private void addNewBoard(int x, int y,\n\t\t\tArrayList<ArrayList<Integer>> board) {\n\t\tif (y < 0 || y > board.size() - 1) { //expanding up/down\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tArrayList<Integer> z = new ArrayList<>();\n\t\t\t\tfor (int j = 0; j < board.get(0).size(); j++) {\n\t\t\t\t\tif ((j < x + boardSize && j >= x && x >= 0)) { //adjusts for y if it isn't 0 or negative, almost forgot about this\n\t\t\t\t\t\tz.add(0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tz.add(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (y < 0) {\n\t\t\t\t\tboard.add(0, z);\n\t\t\t\t\ty++;\n\t\t\t\t} else {\n\t\t\t\t\tboard.add(z);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tif (x < 0 || x > board.get(0).size() - 1) { //expanding to the left/right\n\t\t\tint loc = (x < 0) ? 0 : board.get(0).size();\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tfor (int j = 0; j < board.size(); j++) {\n\t\t\t\t\tif (j < y + boardSize && j >= y) {\n\t\t\t\t\t\tboard.get(j).add(loc, 0); //append as opposed to add\n\t\t\t\t\t} else {\n\t\t\t\t\t\tboard.get(j).add(loc, 5); //append lack of board everywhere else\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tif ((y >= 0 && y < board.size())\n\t\t\t\t&& (x >= 0 && x < board.get(0).size())\n\t\t\t\t&& getBoard(x, y) == 5) { //If within board\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t\tboard.get(y + i).set(x + j, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tupdateOffset();\n\t}",
"public void NoCoordinatesValidBuild(int worker) {\n notifyTryNewCoordinatesBuild(worker, this.getCurrentTurn().getCurrentPlayer().getNickname(),this.getCurrentTurn().getCurrentPlayer().availableCellsToBuild(this.getCurrentTurn().getCurrentPlayer().getWorkerRef().get(worker-1)) );\n }",
"private void getAvailablePlays(int row, int col) {\r\n if (currentPlayer.getColor() == checks[row][col]) {\r\n moveList = getMoveOptions(currentPlayer.getColor(),row, col);\r\n if(moveList.size()==0){\r\n tries++;\r\n if(tries>=5) {\r\n currentPlayer.setCanMove(false);\r\n swapPlayer();\r\n }\r\n }\r\n else {\r\n for (int[] move : moveList) {\r\n if (move != null) nextMove[move[0]][move[1]] = 1;\r\n }\r\n selected = true;\r\n }\r\n }\r\n repaint();\r\n }",
"public void setBoard() {\n for (int i = 0; i < 10 ; i++) {\n board[i] = coordinator.holes[i].getNumberOfMarbleBalls();\n }\n }",
"public void verifyDestroyedBoatsOnLines(){\n for (int i = 0; i < canvasNumberOfLines; i++){\n int start = 0;\n int startCopy = 0;\n \n for (int j = 0; j < canvasNumberOfColumns; j++){\n if (gameMatrix[i][j] != 0 && booleanMatrixUserChoices[i][j] == 1 && booleanFoundBoats[i][j] == 0){\n if (startCopy != gameMatrix[i][j] || start == 0){\n start = gameMatrix[i][j]+1;\n startCopy = gameMatrix[i][j];\n }\n }\n \n if (gameMatrix[i][j] == 0){\n start = 0;\n startCopy = 0;\n }\n \n if (start > 0 && booleanMatrixUserChoices[i][j] == 1){\n start--;\n }\n \n if (start == 1){\n if (startCopy == 1){\n boatsNumber[0] -= 1;\n booleanFoundBoats[i][j] = 1;\n }\n else if (startCopy == 2){\n boatsNumber[1] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n }\n else if (startCopy == 3){\n boatsNumber[2] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n }\n else if (startCopy == 4){\n boatsNumber[3] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n booleanFoundBoats[i][j-3] = 1;\n }\n else if (startCopy == 5){\n boatsNumber[4] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n booleanFoundBoats[i][j-3] = 1;\n booleanFoundBoats[i][j-4] = 1;\n }\n \n start = 0;\n startCopy = 0;\n }\n \n } \n } \n }",
"private static void mineInitialization(){\n\t\tfor (int m = 0; m < BOARD_SIZE; m++)\n\t\t{\n\t\t\tmX = RNG.nextInt(BOARD_SIZE);\n\t\t\tmY = RNG.nextInt(BOARD_SIZE);\n\t\t\tif(gameBoard[mX][mY].equals(Spaces.Empty))\n\t\t\t{\n\t\t\t\tgameBoard[mX][mY] = Spaces.Mine;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t}\n\t\t}\n\t}",
"private boolean checkIn(MyPair<Integer, Integer> position){\n Board copy;\n try{\n copy = new Board(getBoard());\n }\n catch(Exception e){\n System.out.println(\"AAA\");\n return true;\n }\n\n copy.removePiece(copy.kingByColour(getColour()));\n copy.addPiece(new King(getColour(), copy, position));\n if(copy.check() == getColour())\n return true;\n return false;\n }",
"void prepareBoardBeforePlacement( Board board );"
] |
[
"0.6203383",
"0.60055786",
"0.5992003",
"0.59525573",
"0.5939514",
"0.58223957",
"0.575024",
"0.5739756",
"0.5651835",
"0.5598226",
"0.55973333",
"0.55948365",
"0.55799073",
"0.55415845",
"0.5533188",
"0.5527029",
"0.5525185",
"0.5522224",
"0.5512288",
"0.55039585",
"0.5471802",
"0.5458411",
"0.545704",
"0.5454891",
"0.54374415",
"0.54366165",
"0.54194254",
"0.54108095",
"0.54098374",
"0.5398337",
"0.5389291",
"0.5387818",
"0.53417265",
"0.53323895",
"0.5318802",
"0.53165585",
"0.5315604",
"0.53140956",
"0.5310396",
"0.529855",
"0.5296861",
"0.52891815",
"0.52713686",
"0.5268689",
"0.5255578",
"0.5245882",
"0.5228154",
"0.521938",
"0.5218822",
"0.5216285",
"0.52134144",
"0.52119225",
"0.5204806",
"0.51993144",
"0.5198201",
"0.5188518",
"0.51820123",
"0.5175546",
"0.5172717",
"0.51721907",
"0.5170382",
"0.5163726",
"0.5156798",
"0.51557773",
"0.5153514",
"0.51519024",
"0.51502305",
"0.51453173",
"0.5145182",
"0.5143907",
"0.5139577",
"0.51346767",
"0.51313394",
"0.51290447",
"0.5124234",
"0.5123873",
"0.5117575",
"0.51173484",
"0.51167643",
"0.510653",
"0.5099158",
"0.5098835",
"0.5090974",
"0.5090328",
"0.5090131",
"0.5088299",
"0.5077463",
"0.5076355",
"0.5071487",
"0.5066979",
"0.5065118",
"0.5064217",
"0.50549644",
"0.5050012",
"0.50461894",
"0.5045307",
"0.5032423",
"0.503193",
"0.5031212",
"0.503002"
] |
0.6362315
|
0
|
Function format for Leetcode online judge.
|
public List<List<String>> solveNQueens(int n) {
N = n;
results = new ArrayList<List<String>>();
putQueenInRow(0, null, null);
return results;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String algorithm();",
"public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tTest01 t = new Test01();\r\n\t\t\r\n\t\t//String st = \"1927\";\r\n\t\t//int in\t= 2;\t// n 개 제거\r\n\r\n\t\tString st = \"1231234\";\r\n\t\tint in\t= 3;\t\r\n\t\t\r\n\t\tString an = t.solution(st, in);\r\n\t\t\r\n\t\tSystem.out.println(an);\r\n\t}",
"@Override\n\tpublic String getQuestion() {\n\n\t\treturn \"http://leetcode.com/onlinejudge#question_11\";\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"66. All Valid Permutations Of Parentheses I\";\n//\t\tString str = \"Determine If One String Is Another's Substring\";\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t\tSystem.out.println(leet(str));\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t}",
"int mo5885j(String str);",
"public static void main(String[] args) {\r\n\t\tint N=1;\r\n\t\tint[][] trust = {};\r\n\t\tSolution sol = new Solution();\r\n\t\tSystem.out.println(sol.findJudge(N, trust));\r\n\t}",
"public static void main(String[] args) {\n String s = \"**********1111111111\";\n Solution solution = new Solution();\n System.out.println(solution.numDecodings(s));\n }",
"public static String check(String p) {\n\t\tString answer = \"\";\n\t\tif(p.equals(\"\")) {\n\t\t\treturn \"\";\n\t\t}\n\t\t// p 가 들어오면\n\t\t// ()))((()\n\t\tchar[] chararr = p.toCharArray(); // ( ) ) ) ( ( ( ) 인데.\n\t\tint chknum = 0;\n\t\tboolean correct = false;\n\t\tif(chararr[0] == '(') {\n\t\t\tchknum--;\n\t\t\tcorrect = true;\n\t\t} else {\n\t\t\tchknum++;\n\t\t}\n\t\t// ( 은 -1 ) 은 +1\n\t\tint i = 1; // 현재 인덱스\n\t\twhile(chknum != 0) {\n\t\t\t//System.out.println(chknum);\n\t\t\tif(chararr[i] == '(') {\n\t\t\t\tchknum--;\n\t\t\t} else {\n\t\t\t\tchknum++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t// 0 - (i-1) 까지 u 고\n\t\t// i - 끝까지 v\n\t\t\n\t\tif(correct == true) {\n\t\t\tanswer = p.substring(0, i) + check(p.substring(i, p.length()));\n\t\t} else {\n\t\t\t// p.substring을 원래대로 돌려놔야한다!\n\t\t\t// 0 부터 i-1 까지!\n\t\t\tchar[] changearr = new char[i];\n\t\t\t//changearr[0] = '(';\n\t\t\t//changearr[i-1] = ')';\n\t\t\t\n\t\t\tfor(int j=1; j<i-1; j++) {\n\t\t\t\tchangearr[j] = chararr[j] == '('? ')':'(';\n\t\t\t}\n\t\t\t\n\t\t\tanswer = \"(\" + check(p.substring(i, p.length())) + \")\" + String.valueOf(changearr).substring(1,i-1);\n\t\t\t//System.out.println(String.valueOf(changearr));\n\t\t\t//System.out.println(\"answer 1 : \" + answer);\n\t\t}\n\t\t\n\t\t// u, v 로 분리.\n\t\t// u는 조건 수행하고\n\t\t// 뒤에 check (v)를 붙일 것임...\n\t\t// check(v)\n\t\t//System.out.println(\"answer : \"+answer);\n\t\treturn answer;\n\t\t\n\t}",
"public static int Main()\n\t{\n\t\tint len;\n\t\tint i;\n\t\tint j;\n\t\tint p;\n\t\tint l;\n\t\tMain_str = new Scanner(System.in).nextLine();\n\t\tfor (len = 0;Main_str.charAt(len) != '\\0';len++)\n\t\t{\n\t\t\t;\n\t\t}\n\t\tfor (l = 2;l <= len;l++)\n\t\t{\n\t\t\tfor (i = 0;i <= len - l;i++)\n\t\t\t{\n\t\t\t\tfor (j = 0;j < l / 2;j++)\n\t\t\t\t{\n\t\t\t\t\tif (Main_str.charAt(i + j) != Main_str.charAt(i + l - 1 - j))\n\t\t\t\t\t{\n//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:\n\t\t\t\t\t\tgoto here;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tfor (p = i;p < i + l;p++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.printf(\"%c\",Main_str.charAt(p));\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:\n\t\t\t\t\there:\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"public static void main(String args[]) {\n\t\tString number = \"1924\";\n\t\tint k = 2;\n\t\tSystem.out.println(solution(number, k));\n\t}",
"public void solution() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tSolution sl=new Solution();\r\n\t\t/*ListNode l1=new ListNode(2);\r\n\t\tListNode l2=new ListNode(-1);\r\n\t\tl2.next=new ListNode(1);\r\n\t\tl2.next.next=new ListNode(3);\r\n\t\tListNode l3= sl.mergeTwoLists(l1, l2);\r\n\t\twhile(l3!=null)\r\n\t\t{System.out.println(l3.val);\r\n\t\tl3=l3.next;\r\n\t\t}*/\r\n\t\tString a=\"1ab2\",b=\"ab12\";\r\n\t\tSystem.out.println(sl.isRotate(a,b));\r\n\t\t//System.out.println(sl.canConstruct(ran, mag));\r\n\t\t//System.out.println(sl.myAtoi(\" 10522545459\"));\r\n\t}",
"void solve(String result);",
"protected int algo() {\r\n result = algo(root, -2000000000, 2000000000);\r\n\r\n // Nach Terminierung des Algorithmus\r\n lang.nextStep();\r\n setExplain(200, result, 0);\r\n colorNode(root, seenNodeColor);\r\n code.unhighlight(14);\r\n return result;\r\n }",
"public static void main(String[] args) {\n System.out.println(solution(\"1 + 2\"));\n System.out.println(solution(\"1 * 2 + 3\"));\n System.out.println(solution(\"1 + 2 * 3\"));\n System.out.println(solution(\"1 + 2 * 3 - 4 / 2 + 6 / 2 - 7\"));\n\n System.out.println(solution(\"1 + 2 * (3 * (1 + 2))\"));\n }",
"public static String makeAlgorithm(String input) {\r\n\t\ttry {\r\n\t\t\tBufferedReader reader = new BufferedReader(new StringReader(input));\r\n\t\t\tint testCases = Integer.parseInt(reader.readLine());\r\n\t\t\tStringBuffer outputBuffer = new StringBuffer();\r\n\t\t\tfor (int i = 0; i < testCases; i++) {\r\n\t\t\t\toutputBuffer.append(\"Case #\" + (i + 1) + \": \");\r\n\t\t\t\tString[] line = reader.readLine().split(\" \");\r\n\t\t\t\tint x = Integer.parseInt(line[0]);\r\n\t\t\t\tint y = Integer.parseInt(line[1]);\r\n\t\t\t\tint movedX = 0;\r\n\t\t\t\tint movedY= 0;\r\n\t\t\t\tint p=1;\r\n\t\t\t\tfor(int j=0; j<(2*Math.abs(y))-1; j++)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif(y>0)\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"N\":\"S\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"S\":\"N\");\r\n\t\t\t\t\tif(y>0)\r\n\t\t\t\t\t\tmovedY += j%2==0?p:-p;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tmovedY += j%2==0?-p:p;\r\n\t\t\t\t\tp++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor(int j=0; j<(2*Math.abs(x))-1; j++)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif(j==0)\r\n\t\t\t\t\t\tif(x>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toutputBuffer.append(\"W\");\r\n\t\t\t\t\t\t\tmovedX -= p;\r\n\t\t\t\t\t\t\tp++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toutputBuffer.append(\"E\");\r\n\t\t\t\t\t\t\tmovedX += p;\r\n\t\t\t\t\t\t\tp++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif(x>0)\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"E\":\"W\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"W\":\"E\");\r\n\t\t\t\t\tif(x>0)\r\n\t\t\t\t\t\tmovedX += j%2==0?p:-p;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tmovedX += j%2==0?-p:p;\r\n\t\t\t\t\tp++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(movedX + \" \" + movedY);\r\n\t\t\t\toutputBuffer.append(\"\\n\");\r\n\r\n\t\t\t}\r\n\t\t\treturn outputBuffer.toString();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n String problem = \"Herman\";\n\n // Assign string type variable to solution string\n String result = solution(problem);\n\n //Print solution result\n System.out.println(result);\n }",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"뛰어갈 칸의 총 수 : \");\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(jumpCase(n));\n\n\t}",
"public static void main(String[] args) {\n\t\t\tSystem.out.println(Solution(5, 83));\n\t\t\t\n\t\t}",
"public static void main(String[] args) {\n\t\tSolution s = new Solution();\r\n\r\n\t\t\r\n\t\tBoolean result = s.isValid(\"()[]{p}\");\r\n\t\tSystem.out.println(result);\r\n\t\tSystem.out.println(\"done\");\r\n\t}",
"public static void main(String[] args) {\n Homework1 hw1 = new Homework1();\n\n System.out.println(\"===Problem 1===\");\n hw1.problem1();\n\n System.out.println(\"===Problem 2===\");\n System.out.println(hw1.topInt(1.5));\n System.out.println(hw1.topInt(5.1));\n System.out.println(hw1.topInt(1.0));\n System.out.println(hw1.topInt(-4.2));\n\n\n System.out.println(\"===Problem 3===\");\n hw1.draw4x4('-');\n hw1.draw4x4('4');\n\n System.out.println(\"===Problem 4===\");\n System.out.println(hw1.citationName(\"Alastair\", \"Reynolds\"));\n System.out.println(hw1.citationName(\"Grace\", \"Hopper\"));\n\n System.out.println(\"===Problem 5===\");\n System.out.println(String.valueOf(hw1.min3(1.0, 2.0, 3.0)));\n System.out.println(String.valueOf(hw1.min3(4.0, 3.0, 2.0)));\n System.out.println(String.valueOf(hw1.min3(0.5, 0.1, 0.5)));\n \n System.out.println(\"===Problem 6===\");\n System.out.println(hw1.fibonacci(0));\n System.out.println(hw1.fibonacci(1));\n System.out.println(hw1.fibonacci(2));\n System.out.println(hw1.fibonacci(3));\n System.out.println(hw1.fibonacci(10));\n System.out.println(hw1.fibonacci(25));\n \n \n System.out.println(\"===Problem 7===\");\n //System.out.println(hw1.isPalindrome(\"racecar\"));\n //System.out.println(hw1.isPalindrome(\"cat\"));\n //System.out.println(hw1.isPalindrome(\"hannah\"));\n //System.out.println(hw1.isPalindrome(\"saippuakivikauppias\"));\n }",
"public static void main(String[] args) {\n\t\tString[] map = { \"0\",\"1\",\"abc\",\"def\",\"jkl\",\"mno\",\"qprs\",\"tuv\",\"wxyz\"};\n\t\tString digit = \"235\";\n\t\tArrayList<String> res = new ArrayList<String>();\n\t\tres = solve(\"\",map,0,res,digit.length(),digit);\n\t\tSystem.out.println(res);\n\n\t}",
"public static void main(String[] args) {\n\t\tlong n = 3;\n//\t\tlong n = 1;\n\t\tSystem.out.println(solution(n));\n\t\t\n\t}",
"public static void main(String[] args) {\n Solution solution = new Solution();\n boolean convertString = solution.canConvertString(\"mygdwuntwkoc\", \"btydmdiatnhx\", 48);\n System.out.println(convertString);\n }",
"public static void main(String[] args){\n int[] nums = {10, 15, 3, 7};\n System.out.println(solution2(nums, 17));\n System.out.println(solution2(nums, 25));\n System.out.println(solution2(nums, 11));\n }",
"int mo5867a(String str, long j);",
"public static void main(String[] args) {\n\t\tString number = \"777777\";\n\t\tint k = 2;\n\t\t\n\t\t//solution(number, k, 0, \"\", 0);\n\t\tsol(number, k);\n\t\t\n\t}",
"@Override\r\n public String Run(String input) {\n\r\n String right = \"\";\r\n String left = \"\";\r\n char middle = (char) 0;\r\n\r\n for (int i = input.length() - 1; i > 0; i--) {\r\n char prev = input.charAt(i);\r\n char next = input.charAt(i-1);\r\n if (next < prev){ // Tipping point found\r\n middle = next;\r\n right = input.substring(i);\r\n left = input.substring(0, i - 1);\r\n break;\r\n }\r\n if (i == 1){\r\n return \"No Answer\";\r\n }\r\n }\r\n\r\n StringBuilder outputSb = new StringBuilder();\r\n outputSb.append(left);\r\n\r\n boolean middleAdded = false;\r\n\r\n if (right.length() > 0){\r\n outputSb.append(right.charAt(right.length()-1));\r\n }\r\n\r\n for (int i = right.length()-2; i >= 0; i--){\r\n char current = right.charAt(i);\r\n\r\n if (middle > current && !middleAdded){\r\n outputSb.append(right);\r\n outputSb.append(middle);\r\n middleAdded = true;\r\n break;\r\n }\r\n\r\n else if (middle <= current && !middleAdded){\r\n outputSb.append(middle);\r\n middleAdded = true;\r\n }\r\n\r\n outputSb.append(current);\r\n }\r\n\r\n if (!middleAdded){\r\n outputSb.append(middle);\r\n }\r\n\r\n String output = outputSb.toString();\r\n\r\n return output;\r\n }",
"int mo5882g(String str);",
"public static void main(String[] args) {\n int[] arr = {10, 2, 5, 1, 8, 12};\n System.out.println(solution(arr));\n }",
"public static void main (String[] args)\n {\n\n int A[] ={ 1, 0, 8, 9, 20, 39};\n\n int res = solution2(A);\n\n\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(Arrays.toString(solution(8, 1)));\r\n\t}",
"public static void main(String[] args) {\n\t\tint nums[] = {0, 1, 0, 3, 12};\r\n\t\tsolution(nums);\r\n\t\tfor(int a:nums)\r\n\t\t\tSystem.out.println(a);\r\n\t}",
"public static void main(String[] args) {\n Solution s = new Solution();\n System.out.println(s.letterCombinations(\"67\").toString());\n\n }",
"public static void main(String[] args) {\n \r\n Scanner sc = new Scanner(System.in);\r\n ArrayList<Integer> digits = new ArrayList<Integer>();\r\n System.out.println(\"Enter the input\");\r\n int n = sc.nextInt();\r\n for (int i=1;i<=n;i++) {\r\n int digit = sc.nextInt();\r\n digits.add(digit);\r\n }\r\n int b = sc.nextInt();\r\n int c = sc.nextInt();\r\n int res = solve(digits, b, c);\r\n\r\n\r\n }",
"public static void main(String[] args) {\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, true, null)));\n measureTime(()->checkInterruptSequential(4, 4, 3, false));\n measureTime(()->checkInterruptSequential(4, 4, 3, true));\n }",
"public static void main(String[] args) {\n String name = \"ABAAABB\";\n\n System.out.println(solution(name));\n }",
"public static void main(String[] args) {\n String input = \"1234232425\";\n int result = decodeWays(input);\n System.out.println(\"Decode ways \" + result);\n }",
"public static void main(String[] args) {\n int kor,eng,math;\r\n char score='A';\r\n // 사용자가 입력 \r\n /*Scanner scan=new Scanner(System.in);\r\n System.out.print(\"국어 점수 입력:\");\r\n kor=scan.nextInt();\r\n System.out.print(\"영어 점수 입력:\");\r\n eng=scan.nextInt();\r\n System.out.print(\"수학 점수 입력:\");\r\n math=scan.nextInt();*/\r\n kor=input(\"국어\");\r\n eng=input(\"영어\");\r\n math=input(\"수학\");\r\n \r\n // 학점 \r\n int avg=(kor+eng+math)/30;\r\n score=hakjum(avg);// 메소드는 호출 => 메소드 처음부터 실행 => 결과값을 넘겨주고 다음문장으로 이동\r\n /*switch(avg)\r\n {\r\n case 10:\r\n case 9:\r\n \tscore='A';\r\n \tbreak;\r\n case 8:\r\n \tscore='B';\r\n \tbreak;\r\n case 7:\r\n \tscore='C';\r\n \tbreak;\r\n case 6:\r\n \tscore='D';\r\n \tbreak;\r\n default:\r\n \tscore='F';\r\n }*/\r\n \r\n System.out.println(\"국어:\"+kor);\r\n System.out.println(\"영어:\"+eng);\r\n System.out.println(\"수학:\"+math);\r\n System.out.println(\"총점:\"+(kor+eng+math));\r\n System.out.printf(\"평균:%.2f\\n\",(kor+eng+math)/3.0);\r\n System.out.println(\"학점:\"+score);\r\n\t}",
"public static void main(String[] args) {\n\t\tisPolindrom(\"abcd\");\r\n\t\tfibJava8(2);\r\n\t\tfactJava8(5);\r\n\t}",
"@Test\n public void test() {\n Assert.assertEquals(3L, Problem162.solve(/* change signature to provide required inputs */));\n }",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tA = sc.nextLong();\n\t\tB = sc.nextLong();\n\t\tC = sc.nextLong();\n//\t\tif(B==0) {\n//\t\t\tSystem.out.println(1);\n//\t\t}else {\n//\t\t\tD=namuji(A,B);\n//\t\t\tSystem.out.println(D);\n//\t\t}\n\t\t\n\t\t\n\t}",
"public static void main(String... args) {\n System.out.println(judgeSquareSum3(27)); //F\n// System.out.println(judgeSquareSum3(315)); //F\n\n }",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint number = 0;\n\t\tint[] prevmaxdp = new int[3];\n\t\tint[] nextmaxdp = new int[3];\n\t\tint[] prevmindp = new int[3];\n\t\tint[] nextmindp = new int[3];\n\n\t\tStringTokenizer tk = new StringTokenizer(br.readLine(), \" \");\n\n\t\t// 첫 줄만 초기값 지정\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tnumber = Integer.parseInt(tk.nextToken());\n\t\t\tprevmaxdp[i] = number;\n\t\t\tprevmindp[i] = number;\n\t\t}\n\n\t\t// dp구하기\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\ttk = new StringTokenizer(br.readLine(), \" \");\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnumber = Integer.parseInt(tk.nextToken());\n\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tnextmaxdp[j] = Math.max(prevmaxdp[j], prevmaxdp[j + 1]) + number;\n\t\t\t\t\tnextmindp[j] = Math.min(prevmindp[j], prevmindp[j + 1]) + number;\n\t\t\t\t} else if (j == 2) {\n\t\t\t\t\t\n\t\t\t\t\tnextmaxdp[j] = Math.max(prevmaxdp[j - 1], prevmaxdp[j]) + number;\n\t\t\t\t\tnextmindp[j] = Math.min(prevmindp[j - 1], prevmindp[j]) + number;\n\t\t\t\t} else {\n\t\t\t\t\tnextmaxdp[j] = Math.max(prevmaxdp[j - 1], Math.max(prevmaxdp[j], prevmaxdp[j + 1])) + number;\n\t\t\t\t\tnextmindp[j] = Math.min(prevmindp[j - 1], Math.min(prevmindp[j], prevmindp[j + 1])) + number;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tprevmaxdp[j] = nextmaxdp[j];\n\t\t\t\tprevmindp[j] = nextmindp[j];\n\t\t\t}\n\t\t}\n\t\tint max = 0, min = 10000000;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tmax = Math.max(max, prevmaxdp[i]);\n\t\t\tmin = Math.min(min, prevmindp[i]);\n\t\t}\n\t\tSystem.out.println(max + \" \" + min);\n\n\t}",
"public static void main(String[] args) {\n System.out.println(\"*******\");\n numberToWords(-100);\n System.out.println(\"*******\");\n numberToWords(1010);\n System.out.println(\"*******\");\n numberToWords(1000);\n System.out.println(\"*******\");\n numberToWords(1234567890);\n System.out.println(\"*******\");\n\n\n\n\n\n\n\n }",
"public static void main(String[] args) {\n System.out.println(new lc564().nearestPalindromic(\"10\")); //预期结果11\r\n }",
"public static void main(String[] args) {\n\t\tint[][] maps = \n\t\t\t{\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,0,1,0,1},\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,1,1,0,1},\n\t\t\t\t\t{0,0,0,0,1}\n\t\t\t};\n\t\tSystem.out.println(solution(maps));\n\t}",
"private String solveProblem(String element) {\r\n int[] count = new int[27];\r\n for(char c : element.toCharArray()) {\r\n count[convChar(c)]++;\r\n }\r\n int[] nums = new int[10];\r\n extra(count, nums, \"FOUR\", count[convChar('U')], 4);\r\n extra(count, nums, \"SIX\", count[convChar('X')], 6);\r\n extra(count, nums, \"EIGHT\", count[convChar('G')], 8);\r\n extra(count, nums, \"ZERO\", count[convChar('Z')], 0);\r\n extra(count, nums, \"TWO\", count[convChar('W')], 2);\r\n extra(count, nums, \"ONE\", count[convChar('O')], 1);\r\n extra(count, nums, \"THREE\", count[convChar('T')], 3);\r\n extra(count, nums, \"FIVE\", count[convChar('F')], 5);\r\n extra(count, nums, \"SEVEN\", count[convChar('S')], 7);\r\n extra(count, nums, \"NINE\", count[convChar('I')], 9);\r\n \r\n for(int i : count) {\r\n if(i > 0) {\r\n throw new RuntimeException(i + \"\");\r\n }\r\n }\r\n\r\n StringBuilder sb = new StringBuilder();\r\n for(int i = 0; i <= 9; i++) {\r\n for(int j = 0; j < nums[i]; j++) {\r\n sb.append(i);\r\n }\r\n }\r\n \r\n \r\n return sb.toString();\r\n }",
"public static void main(String[] args) throws IOException {\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n char[] s = f.readLine().toCharArray();\n int cnt = 0;\n int other = 0;\n for(char i: s) {\n if(i == '(') {\n cnt++;\n } else if(i == ')') {\n cnt--;\n } else {\n other++;\n }\n }\n if(other > cnt) {\n out.println(-1);\n } else {\n int[] res = new int[other];\n Arrays.fill(res, 1);\n res[other-1] += cnt-other;\n int idx = 0;\n boolean flag = false;\n cnt = 0;\n for(char i: s) {\n if(i == '(') {\n cnt++;\n } else if(i == ')') {\n if(cnt == 0) {\n flag = true;\n break;\n }\n cnt--;\n } else {\n if(cnt < res[idx]) {\n flag = true;\n break;\n }\n cnt -= res[idx];\n idx++;\n }\n }\n if(flag || cnt != 0) {\n out.println(-1);\n } else {\n for(int i: res) {\n out.println(i);\n }\n }\n }\n f.close();\n out.close();\n }",
"public static void main(String[] args) {\n\n String test5 = \"abracadabra\";\n System.out.println(answer(test5));\n\n }",
"public int a(String paramString)\r\n/* 454: */ {\r\n/* 455:451 */ if (paramString == null) {\r\n/* 456:452 */ return 0;\r\n/* 457: */ }\r\n/* 458:454 */ int i1 = 0;\r\n/* 459:455 */ int i2 = 0;\r\n/* 460:457 */ for (int i3 = 0; i3 < paramString.length(); i3++)\r\n/* 461: */ {\r\n/* 462:458 */ char c1 = paramString.charAt(i3);\r\n/* 463: */ \r\n/* 464:460 */ int i4 = a(c1);\r\n/* 465:461 */ if ((i4 < 0) && (i3 < paramString.length() - 1))\r\n/* 466: */ {\r\n/* 467:462 */ c1 = paramString.charAt(++i3);\r\n/* 468:464 */ if ((c1 == 'l') || (c1 == 'L')) {\r\n/* 469:465 */ i2 = 1;\r\n/* 470:466 */ } else if ((c1 == 'r') || (c1 == 'R')) {\r\n/* 471:467 */ i2 = 0;\r\n/* 472: */ }\r\n/* 473:469 */ i4 = 0;\r\n/* 474: */ }\r\n/* 475:471 */ i1 += i4;\r\n/* 476:472 */ if ((i2 != 0) && (i4 > 0)) {\r\n/* 477:473 */ i1++;\r\n/* 478: */ }\r\n/* 479: */ }\r\n/* 480:477 */ return i1;\r\n/* 481: */ }",
"public static void main(String[] args) {\n\t\tint [] arr = {4,2,3,5};\r\n\t\tint [] answer = solution(arr);\r\n\t\tfor(int i=0;i<answer.length;i++)\r\n\t\t\tSystem.out.print(answer[i]+\" \");\r\n\t}",
"public static void main(String[] args) {\n\t\tint arr[] = {9,3,9,3,9,7,9};\n\t\tSolution(arr);\n\t}",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint tc = sc.nextInt();\n\n\t\tfor (int num = 1; num <= tc; num++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tString str = \"\";\n\t\t\tint arr[] = new int[n];\n\t\t\tboolean flag = false;\n\t\t\tboolean visit[]=new boolean[1001];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tif (!flag && arr[i] == 0)\n\t\t\t\t\tflag = true;\n\t\t\t\tstr += arr[i];\n\t\t\t}\n\t\t\tif (flag) {\n\t\t\t\tint ans = 0;\n\t\t\t\tboolean p=false;\n\t\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\t\tfor (int j = 0; j + i <= n; j++) {\n\t\t\t\t\t\t\tint tmp = Integer.parseInt(str.substring(j, j + i));\n\t\t\t\t\t\t\tvisit[tmp]=true;\n\t\t\t\t\t}\n\t\t\t\t\tint amount=(int)Math.pow(10, i);\n\t\t\t\t\tfor(int k=0;k<amount;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!visit[k])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tans=k;\n\t\t\t\t\t\t\tp=true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(p)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\" + num + \" \" + ans);\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"#\" + num + \" \" + 0);\n\t\t}\n\t}",
"static String solve(String puzzle, String delimiter) {\n char cc = 0; // Current character\n\n // Melakukan iterasi ke dalam string dan menyimpan alfabet ke dalam cc\n for (int i = 0; i < puzzle.length(); i++) {\n if (isAlphabetic(puzzle.charAt(i))) {\n cc = puzzle.charAt(i);\n break;\n }\n }\n\n if (cc == 0) {\n // Jika seluruh karakter dalam string sudah diganti dengan digit angka, maka akan dilakukan pengujian\n // terhadap kombinasi angka\n\n totalTest++; // Menghitung total tes yang dilakukan untuk menemukan kombinasi angka yang benar\n String[] operands = puzzle.split(delimiter);\n int op1 = check(operands[0]);\n int op2 = check(operands[1]);\n if (op1 == op2) {\n return puzzle;\n } else {\n return \"\";\n }\n } else {\n // Buat array of numbers [0..9] untuk menyimpan angka-angka yang sudah digunakan\n boolean[] numbers = new boolean[10];\n\n // Melakukan iterasi ke dalam string untuk menandai angka-angka yang sudah digunakan\n for (int i = 0; i < puzzle.length(); i++)\n if (isDigit(puzzle.charAt(i)))\n numbers[puzzle.charAt(i) - '0'] = true;\n\n for (int i = 0; i < 10; i++) {\n if (!numbers[i]) {\n\n // Melakukan substitusi alfabet dengan angka sampai ketemu kombinasi angka yang sesuai\n String solution = solve(puzzle.replaceAll(String.valueOf(cc),\n String.valueOf(i)), delimiter);\n\n // Jika kombinasi angka sudah teruji benar secara matematis,\n // kita akan cek apakah ada angka 0 di depan\n if (!solution.isEmpty()) {\n String[] split = solution.split(\"\\n\");\n boolean zeroAtLeft = false;\n\n for (int j = 0; j < split.length; j++){\n split[j] = split[j].trim();\n if (split[j].charAt(0) == '0'){\n zeroAtLeft = true;\n break;\n }\n }\n // Jika tidak ada angka 0 di depan, solusi ditemukan dan di-return ke main\n if (!zeroAtLeft) {\n return solution;\n }\n }\n }\n }\n }\n return \"\";\n }",
"public static void main(String[] args) {\n\t\tString resName = \"A-small-attempt0.in\";\r\n\t\tCodeJam.solver(resName, (F0<String> lineF) -> {\r\n\t\t\tint firstAnswer = Integer.parseInt(lineF.e());\r\n\t\t\tArrayList<ArrayList<Integer>> rows1 = CodeJam.toInts(lineF, 4);\r\n\t\t\tint secondAnswer = Integer.parseInt(lineF.e());\r\n\t\t\tArrayList<ArrayList<Integer>> rows2 = CodeJam.toInts(lineF, 4);\r\n\t\t\treturn () -> {\r\n\t\t\t\treturn cal(firstAnswer, rows1, secondAnswer, rows2);\r\n\t\t\t};\r\n\t\t})\r\n\t\t.solve();\r\n\t}",
"public static void main(String[] args) {\n\tint n=10;\r\n\tint grade = 3;\r\n\tproblems( n , grade );\r\n\t\r\n\t\r\n}",
"public static void main(String[] args) {\n\t\tint[] A = {51,31,43};\n\t\tSystem.out.println(solution(A));\n\n\t}",
"public static void main(String[] args) {\n\t\tchar[][] matrix = {\r\n\t\t\t\t{ '1', '0', '1', '0', '0' },\r\n\t\t\t\t{ '1', '0', '1', '1', '1' },\r\n\t\t\t\t{ '1', '1', '1', '1', '1' },\r\n\t\t\t\t{ '1', '0', '0', '1', '0' }\r\n\t\t};\r\n\t\t\r\n\t\tint result = new LeetCode_221_569().new Solution().maximalSquare(matrix);\r\n\t\tSystem.out.println(result);\r\n\t}",
"public String a(String paramString, int paramInt, boolean paramBoolean)\r\n/* 517: */ {\r\n/* 518:516 */ StringBuilder localStringBuilder = new StringBuilder();\r\n/* 519:517 */ int i1 = 0;\r\n/* 520:518 */ int i2 = paramBoolean ? paramString.length() - 1 : 0;\r\n/* 521:519 */ int i3 = paramBoolean ? -1 : 1;\r\n/* 522:520 */ int i4 = 0;\r\n/* 523:521 */ int i5 = 0;\r\n/* 524:523 */ for (int i6 = i2; (i6 >= 0) && (i6 < paramString.length()) && (i1 < paramInt); i6 += i3)\r\n/* 525: */ {\r\n/* 526:524 */ char c1 = paramString.charAt(i6);\r\n/* 527:525 */ int i7 = a(c1);\r\n/* 528:527 */ if (i4 != 0)\r\n/* 529: */ {\r\n/* 530:528 */ i4 = 0;\r\n/* 531:530 */ if ((c1 == 'l') || (c1 == 'L')) {\r\n/* 532:531 */ i5 = 1;\r\n/* 533:532 */ } else if ((c1 == 'r') || (c1 == 'R')) {\r\n/* 534:533 */ i5 = 0;\r\n/* 535: */ }\r\n/* 536: */ }\r\n/* 537:535 */ else if (i7 < 0)\r\n/* 538: */ {\r\n/* 539:536 */ i4 = 1;\r\n/* 540: */ }\r\n/* 541: */ else\r\n/* 542: */ {\r\n/* 543:538 */ i1 += i7;\r\n/* 544:539 */ if (i5 != 0) {\r\n/* 545:540 */ i1++;\r\n/* 546: */ }\r\n/* 547: */ }\r\n/* 548:544 */ if (i1 > paramInt) {\r\n/* 549: */ break;\r\n/* 550: */ }\r\n/* 551:548 */ if (paramBoolean) {\r\n/* 552:549 */ localStringBuilder.insert(0, c1);\r\n/* 553: */ } else {\r\n/* 554:551 */ localStringBuilder.append(c1);\r\n/* 555: */ }\r\n/* 556: */ }\r\n/* 557:555 */ return localStringBuilder.toString();\r\n/* 558: */ }",
"int mo23351i(String str, String str2);",
"@Test\n\tvoid test() {\n\t\tassertEquals(0, solution1.solution(2147483647));\n\t\tassertEquals(1, solution1.solution(5));\n\t}",
"public String evaluate(String statement) {\n // TODO: Implement the logic here\n\n if (statement == null | statement == \"\"){\n return null;\n }\n\n String addition = \"+\";\n String substraction = \"-\";\n String multiplication = \"*\";\n String division = \"/\";\n String leftbracket = \"(\";\n String rightbracket = \")\";\n\n Stack<String> temporaryStack = new Stack<>();\n Stack<String> inputStack = new Stack<>();\n Stack<String> outputStack = new Stack<>();\n Stack<String> stackOperators = new Stack<>();\n Stack<String> reverseStack = new Stack<>();\n Stack<Double> computingStack = new Stack<>();\n\n String crutch = \"crutch\";\n stackOperators.push(crutch);\n inputStack.push(crutch);\n\n Double leftNumber;\n Double rightNumber;\n Double outResult;\n int stackCounter = 1;\n int reverseCounter = 0;\n\n String solution;\n\n if (statement.contains(\",\") | statement.contains(\"..\") | statement.contains(\"//\")| statement.contains(\"**\") | statement.contains(\"++\") |\n statement.contains(\"--\")) {\n return null;\n }\n\n//преобразование выражения в обратную польскую нотацию\n StringTokenizer stTok = new StringTokenizer(statement, \"+-*/()\", true);\n while (stTok.hasMoreTokens()) {\n temporaryStack.push(stTok.nextToken());\n stackCounter++;\n }\n while (!temporaryStack.isEmpty()){\n inputStack.push(temporaryStack.peek());\n temporaryStack.pop();\n }\n\n for (int i=1; i<stackCounter; i++){\n if (Character.isDigit(inputStack.peek().charAt(0))){\n outputStack.push(inputStack.peek());\n inputStack.pop();\n }\n else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) |\n inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) |\n inputStack.peek().equals(division))){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){\n while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) |\n stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){\n while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(leftbracket)){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(rightbracket)){\n while (!stackOperators.peek().equals(leftbracket)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n if (stackOperators.peek().equals(crutch)){\n return null;\n }\n inputStack.pop();\n stackOperators.pop();\n }\n }\n while (!stackOperators.peek().equals(crutch)){\n if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){\n return null;\n } else {\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n\n }\n while (!outputStack.isEmpty()){\n reverseStack.push(outputStack.peek());\n outputStack.pop();\n reverseCounter++;\n }\n\n//вычисление выражения\n for (int i=0; i<reverseCounter; i++){\n if (Character.isDigit(reverseStack.peek().charAt(0))) {\n computingStack.push(Double.parseDouble(reverseStack.peek()));\n }\n else if (reverseStack.peek().equals(addition)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber + rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(substraction)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber - rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(multiplication)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber * rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(division)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n if (rightNumber!=0){\n outResult = leftNumber / rightNumber;\n computingStack.push(outResult);\n } else\n return null;\n }\n reverseStack.pop();\n }\n\n DecimalFormat myFormatter = new DecimalFormat(\"#.####\");\n String format = myFormatter.format(computingStack.peek());\n\n solution = format.replace( ',', '.');\n\n return solution;\n }",
"public static void main(String[] args) {\n\t\tSolution s = new Solution();\r\n\t\tSolution2 s2 = new Solution2();\r\n\t\t\r\n\t\tString str = \"1\";\r\n\t\tSystem.out.println(s.numDecodings(str));\r\n\t\tSystem.out.println(s2.numDecodings(str));\r\n\r\n\t}",
"dkj mo4367a(dkk dkk);",
"public static void main(String[] args) {\n\t\tint A[]={2,1,0,0,0};\r\n\t\tSystem.out.println(solution(A));\r\n\r\n\t}",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(judgeSquareSum(1));//10000000001000000001\n\t}",
"public static void main(String[] args) {\n int year = 1918;\n String result = solve(year);\n System.out.println(result);\n }",
"public static void main(String[] args) {\n\n\t\tString word1 = \"anna\";\n\t\tString word2 = \"Hansi Von Burgenstein II\";\n\t\tboolean result;\n\t\tchar[] wordArray;\n\t\t\n\t\tlong initTime;\n\t\tlong finalTime;\n\t\tlong durationOfTask;\n\n\t\tinitTime = System.nanoTime();\n\t\t\n\t\twordArray = word1.toCharArray();\n\t\tresult = palindrom(wordArray);\n\t\tSystem.out.println(result);\n\t\n\t\twordArray = word2.toCharArray();\n\t\tresult = palindrom(wordArray);\n\t\tSystem.out.println(result);\n\tfinalTime = System.nanoTime();\n\tdurationOfTask = finalTime - initTime;\n\tSystem.out.println(durationOfTask);\n\n\tSystem.out.println();\n\t\n\t\tinitTime = System.nanoTime();\n\t\t\t\n\t\t\tresult = palidromRecursive(word1);\n\t\t\tSystem.out.println(result);\n\t\t\t\n\t\t\tresult = palidromRecursive(word2);\n\t\t\tSystem.out.println(result);\n\t\tfinalTime = System.nanoTime();\n\t\tdurationOfTask = finalTime - initTime;\n\t\tSystem.out.println(durationOfTask);\n\n\t\t\n\t\t\n\n\n\t\t\n\n\t\t\n\t\t//System.out.println(factorialRecursion(5));\n\t\t\n\t\t//System.out.println(factorialNonRecursive(5));\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tMake_Big_Number2 mbn = new Make_Big_Number2();\r\n\t\t\r\n\t\tString n1 = \"1924\";\r\n\t\tint k1 = 2;\r\n\t\t\r\n\t String rtn1 = mbn.solution( n1 , k1);\r\n\t System.out.println( \"[1] > \" + rtn1 );\r\n\t \r\n\t\tString n2 = \"1231234\";\r\n\t\tint k2 = 3;\r\n\t\t\r\n\t String rtn2 = mbn.solution( n2 , k2);\r\n\t System.out.println( \"[2] > \" + rtn2 ); \r\n\t \r\n\t\tString n3 = \"4177252841\";\r\n\t\tint k3 = 4;\r\n\t\t\r\n\t String rtn3 = mbn.solution( n3 , k3);\r\n\t System.out.println( \"[3] > \" + rtn3 ); \r\n\t \r\n\t}",
"int mo23349e(String str, String str2);",
"@Override\n\tpublic String getAnswer() {\n\t\treturn \"\" + IntStream.iterate(1, i->i+1)\n\t\t\t\t.mapToObj(i -> Tuple.of(i, sort(DigitsUtils.getDigits(i))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(2*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(3*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(4*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(5*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(6*tuple.getKey()))))\n\t\t\t\t.findFirst()\n\t\t\t\t.orElseThrow(SolutionNotFoundException::new)\n\t\t\t\t.getKey();\n\t}",
"public static void main(String[] args) {\n System.out.println(Arrays.toString(solution(\"\")));\n System.out.println(Arrays.toString(solution(\"abcdef\")));\n System.out.println(Arrays.toString(solution(\"HelloWorld\")));\n System.out.println(Arrays.toString(solution(\"abcde\")));\n System.out.println(Arrays.toString(solution(\"LovePizza\")));\n\n }",
"public String solution() {\n\t\tint[] arr = {1000, 11, 445, 1, 330, 3000};\n int arr_size = 6;\n \n int swaps = 0;\n int max = 0;\n int min = 0;\n int i = 0;\n if(arr_size%2 == 0) {\n \tif(arr[0]<arr[1]) {\n \t\tmin = arr[0];\n \t\tmax=arr[1];\n \t}\n \telse {\n \t\tmin = arr[1];\n \t\tmax=arr[0];\n \t}\n \ti=2;\n }\n else {\n \tmax=arr[0];\n \tmin = arr[0];\n \ti=1;\n }\n \n while(i<arr_size) {\n \tif(arr[i]>arr[i+1]) {\n \t\tmax=Math.max(max, arr[i]);\n \t\tmin=Math.min(min, arr[i+1]);\n \t}\n \telse {\n \t\tmax=Math.max(max, arr[i+1]);\n \t\tmin=Math.min(min, arr[i]);\n \t}\n \ti+=2;\n }\n \n \n\t\treturn \"END \"+max + \" \"+min;\n }",
"public static void main(String[] args) {\n\t\tint[] stones = {2, 4, 5, 3, 2, 1, 4, 2, 5, 1};\n\t\tint k = 3;\n\t\tSystem.out.println(solution(stones, k));\n\t}",
"public static int Main()\n\t{\n\t\t//cout << \"?????????n\" << endl;\n\t\tint n; //n????????a,b,c???,y??????x??????\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint y;\n\t\tint x;\n\t\tint z;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tfor (int i = 1; i <= n; i++) //n???\n\t\t{\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\ta = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tb = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tc = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tif (b > c) //?b??c\n\t\t\t{\n\t\t\t\tz = c;\n\t\t\t\tc = b;\n\t\t\t\tb = z;\n\t\t\t}\n\t\t\tif ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) //????\n\t\t\t{\n\t\t\t\ty = 1;\n\t\t\t}\n\t\t\tfor (; b <= c - 1; b++) //??????\n\t\t\t{\n\t\t\t\tswitch (b)\n\t\t\t\t{\n\t\t\t\tcase 1 :\n\t\t\t\tcase 3 :\n\t\t\t\tcase 5 :\n\t\t\t\tcase 7 :\n\t\t\t\tcase 8 :\n\t\t\t\tcase 10 :\n\t\t\t\tcase 12 :\n\t\t\t\t\tx = x + 31;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\tcase 6 :\n\t\t\t\tcase 9 :\n\t\t\t\tcase 11 :\n\t\t\t\t\tx = x + 30;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tx = x + 28 + y;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x % 7 == 0) //??????????\n\t\t\t{\n\t\t\t\tSystem.out.print(\"YES\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.print(\"NO\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}",
"int mo28885a(int i);",
"private String solve(String inputData) {\n\t\tScanner in = new Scanner(inputData);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint testCases = in.nextInt();\n\t\tfor (int i = 1; i <= testCases; ++i) {\n\t\t\tsb.append(\"Case #\" + i + \": \");\n\t\t\t\n\t\t\tint googlers = in.nextInt();\n\t\t\tint surprisingCase = in.nextInt();\n\t\t\tint target = in.nextInt();\n\t\t\tArrayList<Integer> scores = new ArrayList<Integer>();\n\t\t\tfor (int j = 0; j < googlers; ++j) {\n\t\t\t\tscores.add(in.nextInt());\n\t\t\t}\n\t\t\t\n\t\t\tint accepted = 0;\n\t\t\tint acceptLine = Math.max(target, target * 3 - 2);\n\t\t\tint limited = 0;\n\t\t\tint limitLine = Math.max(target, target * 3 - 4);\n\t\t\tfor (Integer score : scores) {\n\t\t\t\tif (score >= acceptLine) {\n\t\t\t\t\t++accepted;\n\t\t\t\t}\n\t\t\t\telse if (score >= limitLine) {\n\t\t\t\t\t++limited;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint result = accepted + Math.min(surprisingCase, limited);\n\t\t\tsb.append(result);\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(solution(people, limit));\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(solution(0));\n\n\t}",
"@Override\n protected String parseAndSolve(int t, CodeJamReader reader) throws IOException\n {\n int[] ints = reader.readInts();\n// if (t != 3)\n// {\n// return \"Ignore\";\n// }\n return new CropTriangles().solve(ints[0], ints[1], ints[2], ints[3], ints[4], ints[5], ints[6], ints[7]);\n }",
"public static void main(String[] args) throws Exception {\n\n LeetCode leetCode = new LeetCode();\n long start = System.currentTimeMillis();\n System.out.println(leetCode.findKthNumber(\n 719885387,\n 209989719\n ));\n System.out.println(System.currentTimeMillis() - start);\n }",
"public static String produceAnswer(String input)\r\n { \r\n // TODO: Implement this function to produce the solution to the input\r\n\t\tint space = input.indexOf(' ');\r\n String value1 = input.substring(0, space);\r\n\t\tString value2 = input.substring(space + 3, input.length());\r\n\t\tString operator = input.substring(space, space + 3);\r\n\t\tif (value1.contains(\"_\"))\r\n\t\t{\r\n\t\t\tString newValue1 = convertMixedNumber(value1);\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse if (value1.contains(\"/\"))\r\n\t\t{\r\n\t\t\tString newValue1 = value1;\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tString newValue1 = convertWholeNumber(value1);\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif (input.contains(\" / \"))\r\n\t\t{\r\n\t\t int slash = input.indexOf('/');\r\n\t\t int slash2 = input.indexOf('/', slash + 1);\r\n\t\t int slash3 = input.indexOf('/', slash2 + 1);\r\n\t\t space = input.indexOf(' ');\r\n\t\t int num1 = Integer.parseInt(input.substring(0, slash));\r\n\t\t int denom1 = Integer.parseInt(input.substring(slash + 1, space));\r\n\t\t int num2 = Integer.parseInt(input.substring(space + 3, slash3));\r\n\t\t int denom2 = Integer.parseInt(input.substring(slash3 + 1, input.length()));\r\n\t\t if (num2 < 0)\r\n\t\t {\r\n\t\t\t num2 = num2 * -1;\r\n\t\t\t denom2 = denom2 * -1;\r\n\t\t\t int numerator = num1 * denom2;\r\n\t\t\t int denominator = denom1 * num2;\r\n\t\t\t String Answer = numerator + \"/\" + denominator;\r\n\t\t\t return reduceAnswer(Answer);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t int numerator = num1 * denom2;\r\n\t\t int denominator = denom1 * num2;\r\n\t\t String Answer = numerator + \"/\" + denominator;\r\n\t\t return reduceAnswer(Answer);\r\n\t\t }\r\n\t\t}\r\n\t\telse {\r\n\t\t int slash = input.indexOf('/');\r\n\t int slash2 = input.indexOf('/', slash + 1);\r\n\t space = input.indexOf(' ');\r\n\t\t int num1 = Integer.parseInt(input.substring(0, slash));\r\n\t int denom1 = Integer.parseInt(input.substring(slash + 1, space));\r\n\t int num2 = Integer.parseInt(input.substring(space + 3, slash2));\r\n\t int denom2 = Integer.parseInt(input.substring(slash2 + 1, input.length()));\r\n\t if (input.contains(\" + \"))\r\n {\r\n \t int numerator1 = num1 * denom2;\r\n \t int numerator2 = num2 * denom1;\r\n \t int finalNumerator = numerator1 + numerator2;\r\n \t int denominator = denom2 * denom1;\r\n \t String Answer = finalNumerator + \"/\" + denominator;\r\n \t return reduceAnswer(Answer);\r\n \t\t\r\n }\r\n else if (input.contains(\" - \"))\r\n {\r\n \tint numerator1 = num1 * denom2;\r\n \tint numerator2 = num2 * denom1;\r\n \tint finalNumerator = numerator1 - numerator2;\r\n \tint denominator = denom2 * denom1;\r\n \tString Answer = finalNumerator + \"/\" + denominator;\r\n \treturn reduceAnswer(Answer);\r\n }\r\n else if (input.contains(\" * \"))\r\n {\r\n \tint numerator = num1 * num2;\r\n \tint denominator = denom1 * denom2;\r\n \tString Answer = numerator + \"/\" + denominator;\r\n \treturn reduceAnswer(Answer);\r\n }\r\n else\r\n {\r\n \tString error = \"Error: Invalid user input\";\r\n \treturn error; \r\n }\r\n\t}\r\n }",
"public static void main(String[] args) {\n\t\tint[] arr= {6,9,5,7,4};\r\n\t\t//int[] arr= {3,9,9,3,5,7,2};\r\n\t\t//int[] arr= {1,5,3,6,7,6,5};\r\n\t\tint[] tmp=solution(arr);\r\n\t\tfor(int i=0;i<tmp.length;i++)\r\n\t\t\tSystem.out.print(tmp[i]+\" \");\r\n\t}",
"public static void main(String[] args) {\n\t\tSolution test = new Solution();\n\t\tSystem.out.println(test.isPalindrome(\"A man, a plan, a canal: Panama\"));\n\t\t\n\t}",
"public static void main(String[] args) {\n SolutionDp solution = new SolutionDp();\n System.out.println(solution.longestPalindrome(\"babad\"));\n System.out.println(solution.longestPalindrome(\"cbbd\"));\n System.out.println(solution.longestPalindrome(\"a\"));\n System.out.println(solution.longestPalindrome(\"ac\"));\n System.out.println(solution.longestPalindrome(\"aaabaaaa\"));\n System.out.println(solution.longestPalindrome(\"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\"));\n }",
"long mo25071a(long j);",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint t = scn.nextInt();\n\t\twhile (t-- > 0) {\n\t\t\tint n = scn.nextInt();\n\t\t\tint k = scn.nextInt();\n\t\t\tString s = scn.next();\n\t\t\tString s1 = new StringBuilder(s).reverse().toString();\n\t\t\tint[][] dp = new int[n + 1][n + 1];\n\t\t\tfor (int i = 0; i <= n; i++) {\n\t\t\t\tfor (int j = 0; j <= n; j++) {\n\t\t\t\t\tif (i == 0 || j == 0)\n\t\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\telse if (s.charAt(i - 1) == s1.charAt(j - 1))\n\t\t\t\t\t\tdp[i][j] = dp[i - 1][j - 1] + 1;\n\t\t\t\t\telse\n\t\t\t\t\t\tdp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int[] c : dp) {\n\t\t\t\tfor (int v : c) {\n\t\t\t\t\tSystem.out.print(v + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tint rem = n - dp[n][n];\n\t\t\tif (rem <= k)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}",
"void mo64942a(String str, long j, long j2);",
"int mo23352v(String str, String str2);",
"public static void main(String arg []) {\r\n\t\tint n = 8; //problem size\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Insertion(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Selection(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Bubble(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortFateful(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortCentralElement(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortMedianOfThree(n));\r\n\t}",
"public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n \tint n = Integer.parseInt(f.readLine());\r\n \t\r\n \tint[] a = new int[n];\r\n \tStringTokenizer st = new StringTokenizer(f.readLine());\r\n \tfor(int i = 0; i < n; i++) a[i] = Integer.parseInt(st.nextToken());\r\n \t\r\n \tSystem.out.println(solution(a));\r\n \r\n //out.close();\r\n }",
"public static void main(String[] args) {\n\t\tint [] input = new int[]{5, 4, 3, 2, 1};\n\t\tSystem.out.println(new leet334().increasingTriplet(input));\n\t}",
"public static void main(String[] args) {\n\t\tsolve(8, 3);\r\n\t\tsolve(2, 4);\r\n\t\tsolve(3, 2);\r\n\t}",
"public static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"abccbc\";\n\t\t\n\t\tlong[][] dp = new long[str.length()][str.length()];\t\n\t\t\n\t\tfor (int g=0 ; g<str.length() ; g++) {\n\t\t\t\n\t\t\tfor (int i=0 , j=g ; j<str.length() ; i++ , j++) {\n\t\t\t\tif (g == 0) dp[i][j] = 1;\n\t\t\t\t\n\t\t\t\telse if (g == 1) dp[i][j] = (str.charAt(i) == str.charAt(j)) ? 3 : 2;\n\t\t\t\t\n\t\t\t\telse dp[i][j] = (str.charAt(i) == str.charAt(j)) ? (dp[i][j-1] + dp[i+1][j] + 1) : (dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1]);\n\t\t\t\t\n\t\t\t\t//if (dp[i][j] && str.substring(i, j+1).length() > result.length()) result = str.substring(i, j+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[0][str.length()-1]);\n\t}",
"public static void main(String[] args) {\n System.out.println(numJewelsInStones(\"aA\", \"aAAbbbb\"));\n\n }",
"public static void main(String[] args) {\n\t\tint result = 77;\r\n\t\tif(result >= 90) {\r\n\t\t\tif(result >= 95) {\r\n\t\t\t\tSystem.out.println(\"A+ 학점\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"A 학점\");\r\n\t\t\t}\r\n\t\t} else if (result >= 80) {\r\n\t\t\tif(result >= 85) {\r\n\t\t\t\tSystem.out.println(\"B+ 학점\");\r\n\t\t\t} else {\r\n\t\t\tSystem.out.println(\"B 학점\");\r\n\t\t\t}\r\n\t\t} else if (result >= 70) {\r\n\t\t\tif(result >= 75) {\r\n\t\t\t\tSystem.out.println(\"C+ 학점\");\r\n\t\t\t} else {\r\n\t\t\tSystem.out.println(\"C 학점\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"F 학점\");\r\n\t\t}\r\n\r\n\t}"
] |
[
"0.70034784",
"0.6254246",
"0.623857",
"0.6229331",
"0.60575014",
"0.60100716",
"0.5947113",
"0.59438556",
"0.59407884",
"0.5934889",
"0.59218824",
"0.59122545",
"0.58982396",
"0.5883472",
"0.5873167",
"0.58639026",
"0.58269846",
"0.58199483",
"0.5811999",
"0.58107984",
"0.58041483",
"0.57975",
"0.5791513",
"0.5748006",
"0.57473266",
"0.5717428",
"0.5715154",
"0.5691936",
"0.5682264",
"0.56525326",
"0.5641476",
"0.56353575",
"0.56330806",
"0.5631934",
"0.56313735",
"0.5624277",
"0.56131434",
"0.56127906",
"0.5609683",
"0.5603571",
"0.5602234",
"0.5595333",
"0.5572845",
"0.5568623",
"0.55643666",
"0.55621564",
"0.55525833",
"0.55356055",
"0.55316585",
"0.55238926",
"0.5523277",
"0.55190617",
"0.5505531",
"0.55025744",
"0.5491892",
"0.5481402",
"0.54697186",
"0.545721",
"0.5455716",
"0.54493994",
"0.5441546",
"0.54404974",
"0.5434563",
"0.54342407",
"0.5426299",
"0.5420702",
"0.5418843",
"0.5401996",
"0.5398333",
"0.5395864",
"0.5387303",
"0.5386996",
"0.5376125",
"0.53749114",
"0.53736943",
"0.5373674",
"0.5370234",
"0.53643006",
"0.53611964",
"0.53599125",
"0.5353423",
"0.53518593",
"0.53518504",
"0.5350989",
"0.53497654",
"0.53434694",
"0.5341979",
"0.53414226",
"0.5338332",
"0.5336741",
"0.5336537",
"0.53321373",
"0.53315365",
"0.53293985",
"0.53262347",
"0.53230935",
"0.5322739",
"0.53191066",
"0.53169996",
"0.5316921",
"0.53125465"
] |
0.0
|
-1
|
public FileWrap(File file, String rootName, )
|
public java.sql.Timestamp getLastModified() {
return new java.sql.Timestamp(file.lastModified());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@NonNull\n\t\tBuilder withRoot(@NonNull File root);",
"public TarFile(File file) {\n this.file = file;\n }",
"public interface FilesContainer {\n\n\t/**\n\t * Returns a {@link FileWrapper} that point the relative path.\n\t * \n\t * @param fileRelativePath\n\t * @return\n\t */\n\tpublic FileWrapper newFile(String fileRelativePath);\n\t\n\t/**\n\t * Returns the public key identifier of the key pair used to \n\t * encrypt files in this container.\n\t * \n\t * @return\n\t */\n\tpublic String getPublicKeyIdentifier();\n}",
"File a(File file) {\n if (file != null) {\n if (file.exists() || file.mkdirs()) {\n return file;\n }\n akx.h().d(\"Fabric\", \"Couldn't create file\");\n do {\n return null;\n break;\n } while (true);\n }\n akx.h().a(\"Fabric\", \"Null File\");\n return null;\n }",
"public OutputStreamWrapper\r\n (File file)\r\n throws FileNotFoundException\r\n {\r\n mStream=new FileOutputStream(file);\r\n }",
"public FSLockWithShared(File baseFile) {\n file = baseFile;\n }",
"public NestedZipFile(File file) throws IOException {\n this(file, Charset.defaultCharset());\n }",
"public CryptFile(File file, CryptFile parentFile) {\n this.file = file;\n this.parentFile = parentFile;\n users = new Properties();\n }",
"public Window_File_Editor(FileSystemDirectory rootName, MainWindow parent, List<FileSystemFile> file) {\n initComponents();\n root = rootName; \n this.parent = parent;\n files = file;\n setFileNames(files);\n }",
"private static String getFileRoot(String file) {\r\n \treturn file.substring(0, file.indexOf('.'));\r\n }",
"public StaticFiles(final File root) {\r\n\t\tthis.rootPath = root;\r\n\t}",
"public HTMLFile (File inFile) {\n this.inFile = inFile;\n inName = inFile.toString();\n inURL = null;\n commonConstruction();\n }",
"int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;",
"public SourceFile(File file) throws Exception {\r\n\t\t// this.file = file;\r\n\t\tthis.zipFile = new ZipFile(file, \"UTF-8\");\r\n\t}",
"private FileUtil() {\n \t\tsuper();\n \t}",
"private FileUtil() {}",
"public FileInfo(File file) {\n this.file = file;\n }",
"FileObject getFile();",
"FileObject getFile();",
"public FileLocation(File file) {\n this(file, -1, -1);\n }",
"public FileCompilationProvider(File rootSourceDir) {\n if (rootSourceDir == null) {\n throw new IllegalArgumentException(\"rootSourceDir\");\n }\n\n mRootSourceDir = rootSourceDir;\n }",
"public void mo210a(File file) {\n }",
"@Override\n public void addSingleFile(FileInfo file) {\n }",
"public File createBuffer(File file)\n {\n String bufferName = \"#\" + file.getName();\n File buffer = new File(this.getHome() + bufferName);\n\n this.buffer2file.put(buffer, file);\n\n return buffer;\n }",
"public FileOnDisk(File file) throws StyxException\n {\n this(file.getName(), file);\n }",
"void setNewFile(File file);",
"public static File relativeFile(File root, File file) {\n if (root != null && file != null) {\n String absRoot = absoluteFile(root).getPath();\n String absFile = absoluteFile(file).getPath();\n if (absFile.startsWith(absRoot)) {\n String path = absFile.substring(absRoot.length());\n if (path.startsWith(File.separator)) {\n path = path.substring(1);\n }\n file = new File(path);\n }\n }\n return file;\n }",
"public LogFileV2(File file) {\n try {\n if(!file.getParentFile().exists()){\n file.getParentFile().mkdirs();\n }\n this.file = file;\n this.randomAccessFile = new RandomAccessFile(file,\"rw\");\n this.fileChannel = randomAccessFile.getChannel();\n this.readMap = fileChannel.map(FileChannel.MapMode.READ_WRITE,0, CommitLogV2.FILE_SIZE);\n this.writeMap = fileChannel.map(FileChannel.MapMode.READ_WRITE,0, CommitLogV2.FILE_SIZE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private File createRefFile( File f )\n {\n \tfinal String refExtension = \".ref\";\n \n \tString origFileName = f.getName();\n \tint dotPos = origFileName.lastIndexOf( \".\" );\n \tString strippedFileName = origFileName.substring( 0, dotPos ); // filename without extension, and without the dot!\n \n \treturn FileHandler.getFile( new String( harvesterDirName + File.separator + strippedFileName + refExtension ) );\n }",
"public FileOnDisk(String name, File file) throws StyxException\n {\n this(name, file, 0666, true);\n }",
"public void setFile(File file);",
"public static void makeNewFile(File root, String name) {\n File directory = new File(root, name);\n try {\n if (!directory.createNewFile()) {\n throw new IOException(\"Could not create \" + name + \", file already exists\");\n }\n } catch (IOException e) {\n throw new UncheckedIOException(\"Failed to create file: \" + name, e);\n }\n }",
"void processFile(File file);",
"protected AppFile createChildAppFile(WebFile aFile)\n{\n // Get basic file info\n String name = aFile.getName(), path = aFile.getPath(); boolean dir = aFile.isDir();\n String type = aFile.getType(); int tlen = type.length();\n\n // Skip hidden files, build dir, child packages\n if(name.startsWith(\".\")) return null;\n //if(dir && _proj!=null && aFile==_proj.getBuildDir()) return null;\n if(_type==FileType.PACKAGE_DIR && dir && tlen==0) return null; // Skip child packages\n \n // Create AppFile\n AppFile fitem = new AppFile(this, aFile);\n //if(dir && _proj!=null && aFile==_proj.getSourceDir() && !aFile.isRoot()) {\n // fitem._type = FileType.SOURCE_DIR; fitem._priority = 1; }\n //else if(_type==FileType.SOURCE_DIR && dir && tlen==0) {\n // fitem._type = FileType.PACKAGE_DIR; fitem._priority = -1; }\n \n // Set priorities for special files\n if(type.equals(\"java\")) fitem._priority = 1;\n if(type.equals(\"snp\")) fitem._priority = 1;\n\n // Otherwise just add FileItem\n return fitem;\n}",
"public FileName(File fn) {\n fileType = LOCAL;\n setFile(fn.getPath()); // in File, \"path\" is the whole name, not just the directory path\n }",
"public KMLFile(File file)\n {\n if (file == null)\n {\n String message = Logging.getMessage(\"nullValue.FileIsNull\");\n Logging.error(message);\n throw new IllegalArgumentException(message);\n }\n\n this.kmlFile = file;\n }",
"public IconFile(String username, File file) {\n\t\tsuper(username, file, null);\n\t}",
"public GridFSInputFile createFile(File f) throws IOException {\n\treturn createFile(new FileInputStream(f), f.getName(), true);\n }",
"public NestedZipFile(File file, int mode, Charset charset) throws IOException {\n super(getEmbeddedZipFile(file), mode, charset);\n }",
"public NestedZipFile(File file, int mode) throws IOException {\n this(file, mode, Charset.defaultCharset());\n }",
"public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}",
"FileReference createFile(String fileName, String toolId);",
"FileInfo create(FileInfo fileInfo);",
"String prepareFile();",
"public File(String fileName) {\n\t\tthis(new java.io.File(fileName));\n\t}",
"public File() {\n }",
"public void add(File file) {\n\t\tthis.content.add(file);\n\t\tif(file.getParent() != null) {\n\t\t\tfile.getParent().content.remove(file);\n\t\t}\n\t\tfile.setParent(this);\n\t}",
"public XMLHandler(File file) {\n this.file = file;\n }",
"public Project(File file)\n {\n super(file);\n this.open();\n }",
"protected void createFile (ZipFile file, ZipEntry entry, File target)\n {\n if (_buffer == null) {\n _buffer = new byte[COPY_BUFFER_SIZE];\n }\n\n // make sure the file's parent directory exists\n File pdir = target.getParentFile();\n if (!pdir.exists() && !pdir.mkdirs()) {\n log.warning(\"Failed to create parent for '\" + target + \"'.\");\n }\n\n try (InputStream in = file.getInputStream(entry);\n FileOutputStream fout = new FileOutputStream(target)) {\n\n int total = 0, read;\n while ((read = in.read(_buffer)) != -1) {\n total += read;\n fout.write(_buffer, 0, read);\n updateProgress(total);\n }\n\n } catch (IOException ioe) {\n log.warning(\"Error creating '\" + target + \"': \" + ioe);\n }\n }",
"public void handleOpenFile (File inFile) {\n openFile (inFile);\n }",
"public abstract File mo41088k();",
"abstract protected String getWrapperFileNameBase();",
"public void setFile(File f) { file = f; }",
"@NonNull\n\t\tBuilder addFile(@NonNull File file);",
"private FileEntry() {\n // intentionally empty\n }",
"public static File gerarFile(String conteudo, File file)\n\t\t\tthrows WriterException, IOException {\n\t\treturn gerarFile(conteudo, WIDTH, HEIGHT, file);\n\t}",
"public StorageServer(File root)\n {\n this(root, 0, 0);\n }",
"File openFile();",
"public FilePersistence(String file) {\n this.file = file;\n }",
"@Override\n public void setFile(File f) {\n \n }",
"public BufferedFile(File file) throws IOException {\n this(file, \"r\", BufferedFile.DEFAULT_BUFFER_SIZE);\n }",
"private static void recurseFiles(File file)\r\n throws IOException, FileNotFoundException\r\n {\r\n if (file.isDirectory()) {\r\n //Create an array with all of the files and subdirectories \r\n //of the current directory.\r\nString[] fileNames = file.list();\r\n if (fileNames != null) {\r\n //Recursively add each array entry to make sure that we get\r\n //subdirectories as well as normal files in the directory.\r\n for (int i=0; i<fileNames.length; i++){ \r\n \trecurseFiles(new File(file, fileNames[i]));\r\n }\r\n }\r\n }\r\n //Otherwise, a file so add it as an entry to the Zip file. \r\nelse {\r\n byte[] buf = new byte[1024];\r\n int len;\r\n //Create a new Zip entry with the file's name. \r\n\r\n\r\nZipEntry zipEntry = new ZipEntry(file.toString());\r\n //Create a buffered input stream out of the file \r\n\r\n\r\n//we're trying to add into the Zip archive. \r\n\r\n\r\nFileInputStream fin = new FileInputStream(file);\r\n BufferedInputStream in = new BufferedInputStream(fin);\r\n zos.putNextEntry(zipEntry);\r\n //Read bytes from the file and write into the Zip archive. \r\n\r\n\r\nwhile ((len = in.read(buf)) >= 0) {\r\n zos.write(buf, 0, len);\r\n }\r\n //Close the input stream. \r\n\r\n\r\n in.close();\r\n //Close this entry in the Zip stream. \r\n\r\n\r\n zos.closeEntry();\r\n }\r\n }",
"protected EclipseFile(IFile file) {\n \t\tsuper(file);\n \t}",
"public SplitFile() {\n\t}",
"public File createNewFolder(File paramFile) throws IOException {\n/* 803 */ if (paramFile == null) {\n/* 804 */ throw new IOException(\"Containing directory is null:\");\n/* */ }\n/* */ \n/* 807 */ File file = createFileObject(paramFile, newFolderString);\n/* */ \n/* 809 */ if (file.exists()) {\n/* 810 */ throw new IOException(\"Directory already exists:\" + file.getAbsolutePath());\n/* */ }\n/* 812 */ file.mkdirs();\n/* */ \n/* */ \n/* 815 */ return file;\n/* */ }",
"public void setFile(File file)\n {\n this.file = file;\n }",
"public ModuleMarshaller(File file) {\n moduleFile = file;\n }",
"public FileMonitor(String file) {\n this.file = new java.io.File(file);\n t = new Timer();\n }",
"Object create(File file) throws IOException, SAXException, ParserConfigurationException;",
"public FileResult(File file, boolean ok) {\n\t\t\tthis.file = file;\n\t\t\tthis.ok = ok;\n\t\t}",
"public Files files();",
"@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }",
"private void init(File file) throws VlException\n {\n // under windows: will return windows path\n String path = file.getAbsolutePath();\n\n //\n // Forward Flip backslashes !\n // Do this ONLY for the local filesystem !\n //\n\n if (File.separatorChar != VRL.SEP_CHAR)\n path = VRL.uripath(path, true, File.separatorChar);\n\n // under widows: will convert windows path to URI path !\n setLocation(new VRL(VRS.FILE_SCHEME, null, path));\n this.path = getPath(); // use URI path !\n\n _file = file;\n }",
"@Override\n public String saveFile(MultipartFile file, String rootDirectory ) {\n String path = null;\n try {\n if (file != null && !file.isEmpty()) {\n java.util.Date date = new java.util.Date();\n int i = (int) (date.getTime() / 1000);\n String extention = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(\".\")+1);\n String fileName =file.getOriginalFilename().substring(0, file.getOriginalFilename().lastIndexOf(\".\"));\n path = rootDirectory + fileName + \"-\" + i + \".\"+ extention;\n\n File finalFilePath = new File(path);\n //create all path directories if not exist\n finalFilePath.getParentFile().mkdirs();\n file.transferTo(new File(path));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return path;\n }",
"public OnDemandInputStream(File file) {\n super();\n\n this.file = file;\n }",
"public static File newFile(File root, String... segments) {\r\n\t\tif (readableDir(root)) {\r\n\t\t\tif (null != segments) {\r\n\t\t\t\tfor (String segment : segments) {\r\n\t\t\t\t\tif (validSegment(segment)) {\r\n\t\t\t\t\t\troot = new File(root, segment);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn root;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private DirDetailsForWrite fileWithDirListingEntry(String fileName, Block root, int rootIndex) {\n\t\tint slashIndex = fileName != null ? fileName.indexOf(\"/\") : Constants.NEGATIVE;\n\t\tString first = null;\n\t\tString second = null;\n\t\tDirEntryDetails dirEntryDetails = null;\n\t\tDirDetailsForWrite dirDetailsForWrite = null;\n\t\t\n\t\tif(slashIndex > 0) {\n\t\t\tsecond = fileName.substring(slashIndex+1);\n\t\t\tfirst = fileName.substring(0, slashIndex);\n\t\t\t\n\t\t\tdirEntryDetails = ((Directory)root).containDirEntryByName(first);\n\t\t\t//dirDetailsForWrite = new DirDetailsForWrite();\n\t\t\t//dirDetailsForWrite.setDirEntryDetails(dirEntryDetails);\n\t\t\t//dirDetailsForWrite.setRootIndex(rootIndex);\n\t\t\t\n\t\t\treturn fileWithDirListingEntry(second, sector.get(dirEntryDetails.getLink()), dirEntryDetails.getLink());\n\t\t} else {\n\t\t\tdirEntryDetails = ((Directory)root).containDirEntryByName(fileName);\n\t\t\t\n\t\t\tdirDetailsForWrite = new DirDetailsForWrite();\n\t\t\tdirDetailsForWrite.setDirEntryDetails(dirEntryDetails);\n\t\t\tdirDetailsForWrite.setRootIndex(rootIndex);\n\t\t\t\n\t\t\tif(dirEntryDetails != null)\n\t\t\t\treturn dirDetailsForWrite;\n\t\t}\n\t\treturn null;\n\t}",
"public FileObject() {\n\t}",
"public SpecfileTaskHandler(FileEditorInput file, IDocument document) {\n \t\tthis(file.getFile(), document);\n \t}",
"private static File openFile(String file) {\r\n \tFile currFile;\r\n\r\n \tfor (String directory : dir) {\r\n \t\tcurrFile = new File(directory.concat(file));\r\n \t\tif (currFile.exists() && !currFile.isDirectory()) {\r\n \t\t\treturn currFile;\r\n \t\t}\r\n \t}\r\n \treturn null;\r\n }",
"@Override\n\t\t\t\t\tpublic void handle(File file)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public ImageManip(String file) {\n\t\tthis.image = new Picture(file, false);\n\t\tthis.canvas = new Picture(this.image.getWidth(), this.image.getHeight(), false);\n\t\tthis.random = new Random();\n\t\tthis.rotateOffset = 0;\n\t}",
"public File write(IFile file,String contents){\r\n \t\ttry {\r\n \t\t\tString path=file.getProjectRelativePath().toOSString();\r\n \t\t\tFile tgt=new File(new File(workingDir,DIST_FOLDER),path);\r\n \t\t\ttgt.getParentFile().mkdirs();\r\n \t\t\twrite(file,tgt, contents);\r\n \t\t\treturn tgt;\r\n \t\t} catch (Exception e){\r\n \t\t\tBuildWrapperPlugin.logError(e.getLocalizedMessage(), e);\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public DocReader(File f)\n\t{\n\t\tthis.inputFile = f;\n\t}",
"protected File(SleuthkitCase db, long objId, long fsObjId, \n\t\t\tTSK_FS_ATTR_TYPE_ENUM attrType, short attrId, String name, long metaAddr, \n\t\t\tTSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType, \n\t\t\tTSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, \n\t\t\tlong size, long ctime, long crtime, long atime, long mtime, \n\t\t\tshort modes, int uid, int gid, String md5Hash, FileKnown knownState, String parentPath) {\n\t\tsuper(db, objId, fsObjId, attrType, attrId, name, metaAddr, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath);\n\t}",
"default Pair<T, U> build(File file) throws IOException, ConfigurationException {\n return build(new FileConfigurationSourceProvider(), file.toString());\n }",
"public TarArchive( File folder )\n {\n this.folder = folder;\n }",
"FileContent createFileContent();",
"private File createContent (String fileName, InputStream in) throws IOException {\n // keep original extension so MIME can be guessed by the extension\n File tmp = new File(Utils.getTempFolder(), fileName); // NOI18N\n tmp = FileUtil.normalizeFile(tmp);\n tmp.deleteOnExit(); // hard to track actual lifetime\n FileUtils.copyStreamToFile(new BufferedInputStream(in), tmp);\n return tmp;\n }",
"public WorksRepository(File rootDir) {\r\n\t\tthis.rootDir = rootDir;\r\n\t}",
"private void setFile() {\n\t}",
"File getFile();",
"File getFile();",
"public abstract File mo41087j();",
"public EditFile() {\r\n\t\tsuper();\r\n\t}",
"public NestedZipFile(File file, Charset charset) throws IOException {\n this(file, OPEN_READ, charset);\n }",
"public File getFileForKey(String key) {\n\t\treturn new File(mRootDirectory, getFilenameForKey(key));\n\t}",
"public Picture(File file) {\n\t\tcaption = \"\";\n\t\tdate = LocalDateTime.ofInstant(Instant.ofEpochMilli(file.lastModified()), ZoneId.systemDefault());\n\t\ttags = new HashMap<String, ArrayList<String>>();\n\t}",
"public File getFile();",
"public File getFile();"
] |
[
"0.63522065",
"0.61517584",
"0.6060787",
"0.6052313",
"0.6044728",
"0.59911335",
"0.5947685",
"0.58688414",
"0.5836364",
"0.5780853",
"0.5758471",
"0.57136834",
"0.57045555",
"0.56787723",
"0.56566185",
"0.56290233",
"0.5620406",
"0.5583135",
"0.5583135",
"0.55777234",
"0.5574367",
"0.5566099",
"0.55572546",
"0.555155",
"0.5540195",
"0.5535948",
"0.55197954",
"0.55115306",
"0.5504136",
"0.5502361",
"0.5500738",
"0.54902834",
"0.5489088",
"0.54836774",
"0.54794884",
"0.54791516",
"0.5477406",
"0.5475751",
"0.54744935",
"0.54741526",
"0.5469968",
"0.54664814",
"0.5465092",
"0.5464651",
"0.54569525",
"0.5442484",
"0.5439271",
"0.54382306",
"0.5436623",
"0.54187346",
"0.5413297",
"0.5403198",
"0.5394091",
"0.5390462",
"0.5374283",
"0.53659064",
"0.5365542",
"0.53649616",
"0.5360521",
"0.5340665",
"0.5328058",
"0.5318769",
"0.5318614",
"0.53152466",
"0.5313787",
"0.5307069",
"0.530627",
"0.5305018",
"0.5291971",
"0.52739495",
"0.52692646",
"0.5262185",
"0.5261811",
"0.52604985",
"0.52604127",
"0.5258782",
"0.52568406",
"0.5254281",
"0.52528965",
"0.52514046",
"0.52461416",
"0.5243259",
"0.523295",
"0.5232782",
"0.5227037",
"0.5212044",
"0.5208789",
"0.5201112",
"0.51988727",
"0.51945543",
"0.5188661",
"0.5182265",
"0.51614094",
"0.51614094",
"0.5153673",
"0.5152904",
"0.51525676",
"0.51522386",
"0.5148907",
"0.51458067",
"0.51458067"
] |
0.0
|
-1
|
Constructor takes property file that contains email server details and user name Also, initialize the Scanner object with current Input Stream (System.in)
|
public CheckingMails(String proportyFile) {
this.propertyFile = proportyFile;
loadProperties(this.propertyFile);
sc = new Scanner(System.in);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void init()\n {\n try\n {\n userPasswordsProperties = new Properties();\n userPasswordsProperties.load(new FileInputStream(userPasswordsPropertiesFileName));\n log.info(\"Successfully initialized. UsersPasswords property file is: \" + userPasswordsPropertiesFileName);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"UserNamesPropertyFile name: \" + userPasswordsPropertiesFileName + \" not valid. Error: \" + e);\n }\n \n }",
"public\n YutilProperties(InputStream in)\n {\n super(new Properties());\n setPropertiesDefaults(in);\n }",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n \tScanner s = null;\n try{\n s = new Scanner(new File(args[0]));\n }catch (FileNotFoundException e) {\t\t\n \tSystem.out.println(\"File not found!\");\n }catch (Exception e){\t\t\n \tSystem.out.println(\"Something else went wrong!\");\n \te.printStackTrace();\n }\n \t \t\n //Read Line by Line\n s.nextLine();\n while(s.hasNext()){\n\t\t\tString Line=s.nextLine();\n\t\t\tString tokens[] = Line.split(\";\");//4 tokens created(MAIN LINE)\n\t\t\tString personCode=tokens[0];\t\t\n\t\t\tString name[] = tokens[1].split(\", \");//String name created split with comas\t\n\t\t\t\n\t\t\tName personName =new Name (name[0],name[1]);//personName object created under Name class, both name are passed\n\t\t\tSystem.out.println(name[0]);\n\t\t\tpersonName.setFirstName(name[0]);\n \t\tpersonName.setLastName(name[1]);\t\t\t\n \t\tString address[] = tokens[2].split(\",\");\n \t\tAddress personAddress =new Address (address[0],address[1],address[2],address[3],address[4]);\n\t\t\tSystem.out.println(tokens[2]);\t\n\t\t\tif(tokens.length==4) {\n \t\t\tString emailAdress=tokens[3];\n \t\t\tSystem.out.println(tokens[3]);\t\n \n \t\t}\n \n \t}\n\t}",
"public PropertyReader(String propertyFileName)\r\n\t{\r\n\t\tthis.propertyFileName = propertyFileName;\r\n\t}",
"private void init (Properties props) throws FileNotFoundException {\n\t\t\n\t\tport = Integer.parseInt (props.getProperty (AposNtrip.PROP_PORT));\n\t\tString userName = props.getProperty (AposNtrip.PROP_USERNAME);\n\t\tString password = props.getProperty (AposNtrip.PROP_PASSWORD);\n\t\tString mountPoint = props.getProperty (AposNtrip.PROP_MOUNTPOINT);\n\t\t\n\t\tbyte[] encodedPassword = ( userName + \":\" + password ).getBytes();\n\t Base64 encoder = new Base64 ();\n\t basicAuthentication = encoder.encode( encodedPassword );\n\t\n\t expectedRequest = \"GET /\" + mountPoint + \" HTTP/1.0\";\n\t expectedUserAgent = \"User-Agent: .*\";\n\t expectedAuthorisation = \"Authorization: Basic \" + (new String (basicAuthentication));\n\t expectedLocation = props.getProperty (PROP_EXPECTED_LOCATION);\n\t \n\t System.out.println (\"AposNtripCasterMock: expectedRequest=\" + expectedRequest);\n\t System.out.println (\"AposNtripCasterMock: expectedUserAgent=\" + expectedUserAgent);\n\t System.out.println (\"AposNtripCasterMock: expectedAuthorisation=\" + expectedAuthorisation);\n\t \n\t String fileName = props.getProperty (PROP_INPUT_DATA_FILE);\n\t\tURL url = Thread.currentThread ().getContextClassLoader ().getResource (fileName);\n\t\t\n\t\tif (url == null)\n\t\t\tthrow new FileNotFoundException (fileName);\n\t\t\n\t\tinputDataFile = new File (url.getFile ());\n\t}",
"public static void main(String[] args) throws IOException\r\n\t{\n\t\tFileInputStream fis=new FileInputStream(\"D:\\\\QSpiders_2019\\\\html\\\\config.properties.txt\");\r\n\t\t//Create an object of Properties class since getproperty() is a non-static method\r\n\t\tProperties prop=new Properties();\r\n\t\t//load the file into Properties class\r\n\t\tprop.load(fis);\r\n\t\t//read the data from Properties file using Key\r\n\t\tString URL =prop.getProperty(\"url\");\r\n\t\tSystem.out.println(URL);\r\n\t\tSystem.out.println(prop.getProperty(\"username\"));\r\n\t\tSystem.out.println(prop.getProperty(\"password\"));\r\n\t\tSystem.out.println(prop.getProperty(\"browser\"));\r\n\r\n\t}",
"public In(){\n\t\tscanner=new Scanner(new BufferedInputStream(System.in),CHARSET_NAME);\n\t\tscanner.useLocale(LOCALE);\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tFileReader fr = new FileReader(\"./resources/data.properties\");\n\t\tProperties properties = new Properties();\n\t\tproperties.load(fr);\n\t\t\n\t\tString usernameData = properties.getProperty(\"username\");\n\t\tSystem.out.println(usernameData);\n\t}",
"public Person(String username, String email) {\n this.username = username;\n this.email = email;\n }",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}",
"private void setCredentials() {\n Properties credentials = new Properties();\n\n try {\n credentials.load(new FileInputStream(\"res/credentials.properties\"));\n } catch (IOException e) {\n __logger.error(\"Couldn't find credentials.properties, not setting credentials\", e);\n return;\n }\n\n this.username = credentials.getProperty(\"username\");\n this.password = credentials.getProperty(\"password\");\n this.smtpHost = credentials.getProperty(\"smtphost\");\n this.imapHost = credentials.getProperty(\"imaphost\");\n\n if (password == null || password.equals(\"\")) {\n password = this.getPasswordFromUser();\n }\n\n __logger.info(\"Set credentials\");\n }",
"public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}",
"public DccdMailerConfiguration(final InputStream inputStream) throws IOException\n {\n super(inputStream);\n if (getSmtpHost() == null)\n setSmtpHost(SMTP_HOST_DEFAULT);\n if (getSenderName() == null)\n setSenderName(FROM_NAME_DEFAULT);\n if (getFromAddress() == null)\n setFromAddress(FROM_ADDRESS_DEFAULT);\n }",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"public static void main(String[] args) {\n try(\n\t\tFileInputStream in=new FileInputStream(\"credentials.properties\");\n \t)\n {\n \tProperties props=new Properties();\n \tprops.load(in);\n \tString uname=props.getProperty(\"username\");\n \tString pass=props.getProperty(\"password\");\n \t\n \tSystem.out.println(uname+\" \"+pass);\n \t\n } catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\t}",
"public\n void setProperties(InputStream in)\n {\n if (in == null)\n return;\n\n try {\n load(in);\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }",
"@Override\r\n public void initValues() {\r\n try {\r\n crackedPasswords = Files.readAllLines(Paths.get(DefectivePasswordValidatorConstants.PASSWORD_FILE_PATH),\r\n StandardCharsets.UTF_8);\r\n } catch (IOException e) {\r\n log.error(\"Exception occured while reading and initializing values from \"\r\n + DefectivePasswordValidatorConstants.PASSWORD_FILE_NAME, e);\r\n }\r\n }",
"public void getInfo() {\n Scanner scanner = new Scanner(System.in);\n //get values from the user using scanner and sets class variables appropriately\n System.out.print(\"Enter the first name: \");\n setFirstName(scanner.nextLine());\n\n System.out.print(\"Enter the last name: \");\n setLastName(scanner.nextLine());\n\n System.out.print(\"Enter the ZIP code: \");\n setZipcode(scanner.nextLine());\n\n System.out.print(\"Enter the employee ID: \");\n setEmployeeID(scanner.next());\n }",
"public PropertiesCredentials(InputStream inputStream) throws IOException {\n\t\tProperties accountProperties = new Properties();\n\t\ttry {\n\t\t\taccountProperties.load(inputStream);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tinputStream.close();\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t}\n\n\t\tif (accountProperties.getProperty(\"consumerKey\") == null\n\t\t\t\t|| accountProperties.getProperty(\"consumerSecret\") == null\n\t\t\t\t|| accountProperties.getProperty(\"accessToken\") == null\n\t\t\t\t|| accountProperties.getProperty(\"accessTokenSecret\") == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"The specified file or stream doesn't contain the expected properties: 'consumerKey' \"\n\t\t\t\t\t\t\t+ \"'consumerSecret' 'accessToken' and 'accessTokenSecret'.\");\n\t\t}\n\n\t\ttwitterCredentials = new TwitterCredentials(\n\t\t\t\taccountProperties.getProperty(\"consumerKey\"),\n\t\t\t\taccountProperties.getProperty(\"consumerSecret\"),\n\t\t\t\taccountProperties.getProperty(\"accessToken\"),\n\t\t\t\taccountProperties.getProperty(\"accessTokenSecret\"));\n\t}",
"public DBCredentials() {\n try {\n // Get the inputStream\n InputStream inputStream = this.getClass().getClassLoader()\n .getResourceAsStream(file);\n\n Properties properties = new Properties();\n\n // load the inputStream using the Properties\n properties.load(inputStream);\n // get the value of the property\n this.dbUser = properties.getProperty(\"Username\");\n this.dbPassword = properties.getProperty(\"Password\");\n this.dbUrl = properties.getProperty(\"DataBase\");\n\n } catch (IOException e) {\n System.out.println(\"IOException\");\n e.printStackTrace();\n }\n }",
"public Email(String firstname,String lastname)\r\n\t{\r\n\t\tthis.firstname=firstname;\r\n\t\tthis.lastname=lastname;\r\n\t\t//System.out.println(\"EMAIL CREATED:\"+this.firstname+this.lastname);\r\n\t\t//create a method asking for department\r\n\t\tthis.department=setDepartment();\r\n\t\t//System.out.println(\"Deaprtment:\"+this.department);\r\n\t\t//call a method to create default password\r\n\t\tthis.password=setRandompassword(defaultpasswordlength);\r\n\t\t//System.out.println(\"Your Password is:\"+this.password);\r\n\t\temail=firstname.toLowerCase()+\".\"+lastname+\"@\"+\".\"+department+\".com\";\r\n\t\t//System.out.println(\"Your emailid is: \"+email);\r\n\t\t\r\n\t}",
"public InputReader() throws FileNotFoundException, TransformerConfigurationException {\n this.csvlocation = System.getProperty(Static.SYSYEM_PROPERTY_FILE);\n this.templatelocation = System.getProperty(Static.SYSTEM_PROPERTY_TEMPLATE_FILE);\n init();\n }",
"public DataInputClientProperties(String propertiesFilename) throws IOException {\n if (propertiesFilename == null) {\n initializeProperties();\n }\n else {\n initializeProperties(propertiesFilename);\n }\n }",
"public static void read_paramenters() {\n\t\ttry {\n\t\t // TODO CA: check that this work on Windows!\n String home = System.getProperty(\"user.home\");\n File parametersFile = new File(home + \"/\" + parametersFilename);\n\t\t\tScanner sc = new Scanner(parametersFile);\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinitialize_parameters(sc.nextLine());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error: File \" + parametersFilename + \" not found!\");\n\t\t\tSystem.out.println(\"Make sure that file \" + parametersFilename + \" is in the correct format!\");\n\t\t\tSystem.out.println(\"The format of the file is:\");\n\t\t\tSystem.out.println(\"host ap-dev.cs.ucy.ac.cy\");\n\t\t\tSystem.out.println(\"port 43\");\n\t\t\tSystem.out.println(\"cache res/\");\n\t\t\tSystem.out.println(\"access_token <api_key> \" +\n \"[The API key has be generated based on your google account through the anyplace architect]\");\n\t\t\t// TODO CA: when this error is shown, prompt, with Y or N to initialize that file with defaults\n // if yes, then read parameters again\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}",
"public ContactList(String inFileName)\n {\n filename = inFileName;\n }",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tProperties prop = new Properties();\n\t\t\tInputStream in = ReadProperties.class.getClassLoader().getResourceAsStream(\"user.properties\");\n\t\t\tprop.load(in);\n\t\t\tSystem.out.println(\"直接输出prop对象:\"+prop);\n\t\t\tString loginname = prop.getProperty(\"loginname\");\n\t\t\tString Password = prop.getProperty(\"Password\");\n\t\t\tSystem.out.println(\"loginname:\"+loginname+\"---\"+\"Password:\"+Password);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t}\n\t}",
"public User(File file){\n\t try {\n\t Scanner line;\n\t \t BufferedReader in = new BufferedReader(new FileReader(file));\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //username:\n\t \t username = line.next(); \n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //password:\n\t \t password = line.next();\n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //name:\n\t \t line.useDelimiter(\"\\\\n\");\n\t name = line.next().substring(1);\n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //image:\n\t \t imageLocation = line.next();\n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //friends:\n\t \t line.useDelimiter(\",| \");\n\t \t while(line.hasNext()){\n\t \t\t friends.add(line.next());\n\t \t }\n\t \t line.close();\n\t \t in.readLine(); //posts:\n\t \t while(in.ready()){\n\t \t\t posts.add(new Post(username,in.readLine()));\n\t \t }\n\t \t in.close();\n\t }catch(IOException e) {\n\t \t System.out.println(e.getMessage());\n\t }\n\t }",
"public InputReader() {\n reader = new Scanner(System.in);\n }",
"public Entry(String firstName, String lastName, String email) {\r\n this.firstName = firstName;\r\n this.lastName = lastName;\r\n this.phone = \"N/A\";\r\n this.email = email;\r\n }",
"private void inicializar()\n\t{\n\t\tif( this.getIn() != null )\n\t\t\tthrow new ConsolaTecladoSoloPuedeHaberUnaInstanciaException();\n\t\t\t\n\t\tthis.setIn( new Scanner( System.in ) );\n\t}",
"private static void initializeInput(String filename) {\n\t\t// Reading from specified file.\n\t\ttry\n\t\t{\n\t\t\tfileInput = new Scanner(new FileInputStream(filename));\n\t\t}\n\t\tcatch(FileNotFoundException e) \n\t\t{ \n\t\t\tSystem.err.println(\"\\nFile not found. Please re-enter.\");\n\t\t\tinitializeInput(getFilename());\n\t\t}\n\t}",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"@Test\n public void notPromptForPasswordIfuserNameIsGivenInFile() throws Exception {\n properties.setProperty(\"security-username\", \"user\");\n Mockito.doReturn(properties).when(connectCommand).loadProperties(ArgumentMatchers.any(File.class));\n result = ConnectCommandTest.gfshParserRule.executeCommandWithInstance(connectCommand, \"connect\");\n Mockito.verify(gfsh, Mockito.times(0)).readPassword(((CliStrings.CONNECT__PASSWORD) + \": \"));\n assertThat(properties).doesNotContainKey(\"security-password\");\n }",
"public void input(Scanner in) { \r\n if (in.hasNext()) firstName = in.next();\r\n if (in.hasNext()) lastName = in.next();\r\n\t}",
"public PropertyParser(Properties props)\n\t{\n\t\t_props = props;\n\t}",
"static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"public Property(String configFileName) {\r\n\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\r\n\t\tif (configFileName == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tScanner in = null;\r\n\t\tScanner scan = null;\r\n\t\ttry {\r\n\t\t\tFile conf = new File(configFileName);\r\n\t\t\tin = new Scanner(conf);\r\n\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\tString line = in.nextLine().replace('=', ',');\r\n\t\t\t\tscan = new Scanner(line);\r\n\t\t\t\tscan.useDelimiter(\",\");\r\n\t\t\t\tString firstWord = scan.next();\r\n\t\t\t\tif (firstWord.equals(\"positive\")) {\r\n\t\t\t\t\tpositive = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"negative\")) {\r\n\t\t\t\t\tnegative = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"stop\")) {\r\n\t\t\t\t\tstop = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"scoringmethod\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tscoringmethod = Integer.parseInt(next);\r\n\t\t\t\t} else if (firstWord.equals(\"mindistance\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tmindistance = Double.parseDouble(next);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} finally{\r\n\t\t\tif(scan != null)\r\n\t\t\t\tscan.close();\r\n\t\t}\r\n\t}",
"private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}",
"public CMProps(InputStream in) {\n final char c = Thread.currentThread().getThreadGroup().getName().charAt(0);\n if (props[c] == null)\n props[c] = this;\n try {\n this.load(in);\n loaded = true;\n } catch (final IOException e) {\n loaded = false;\n }\n }",
"private static void init()\n {\n long nTimeOut = 12 * 60 * 60 * 1000; // Default == 12 hrs\n \n // Loading values from properties file\n Properties props = new Properties();\n \n try\n {\n ClassLoader classLoader = Constant.class.getClassLoader();\n InputStream is = classLoader.getResourceAsStream(\"joing-server.properties\");\n props.load( is );\n is.close();\n }\n catch( Exception exc )\n {\n // If can not read the file, create a file with default values\n String sHome = System.getProperty( \"user.home\" );\n char cDir = File.separatorChar;\n \n if( sHome.charAt( sHome.length() - 1 ) != cDir )\n sHome += cDir;\n \n // Initialise properties instance with default values\n props.setProperty( sSYSTEM_NAME , \"joing.org\" );\n props.setProperty( sBASE_DIR , cDir +\"joing\" );\n props.setProperty( sEMAIL_SRV , \"localhost\" );\n props.setProperty( sSESSION_TIMEOUT, Long.toString( nTimeOut ));\n }\n \n // Read properties from created props\n sVersion = \"0.1\"; // It's better to hardcode this property than to store it in a file\n sSysName = props.getProperty( sSYSTEM_NAME );\n fBaseDir = new File( props.getProperty( sBASE_DIR ) );\n fUserDir = new File( fBaseDir, \"users\" );\n fAppDir = new File( fBaseDir, \"apps\" );\n \n if( ! fBaseDir.exists() )\n fBaseDir.mkdirs();\n \n if( ! fAppDir.exists() )\n fAppDir.mkdirs();\n \n if( ! fUserDir.exists() )\n fUserDir.mkdirs();\n \n try\n {\n emailServer = new URL( props.getProperty( sEMAIL_SRV ) );\n }\n catch( MalformedURLException exc )\n {\n emailServer = null;\n }\n \n try\n { // From minutes (in file) to milliseconds\n nSessionTimeOut = Long.parseLong( props.getProperty( sSESSION_TIMEOUT ) ) * 60 * 1000;\n }\n catch( NumberFormatException exc )\n {\n nSessionTimeOut = nTimeOut;\n }\n }",
"public Instructor(String firstName, String lastName, String email) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n }",
"public void input_details_log()\r\n {\r\n System.out.print(\"\\n Enter your email id: \");\r\n Email=sc.nextLine();\r\n\r\n System.out.print(\" Enter your password: \");\r\n check_passwrd=sc.nextLine();\r\n }",
"public void parseFileForInput(emailValidator sortingObject){\n File fileObj;\n try {\n fileObj = new File(sortingObject.getPath());\n Scanner scannerObj = new Scanner(fileObj);\n \n while(scannerObj.hasNextLine()){\n String currentEmail = scannerObj.nextLine();\n\n //for each email, call validate method on it\n if(isEmailValid(currentEmail) && !currentEmail.equals(\"end\")){\n String domainEnding = extractEmailEnding(currentEmail);\n sortingObject.allEmails.put(currentEmail, domainEnding);\n\n }\n else if(currentEmail.equals(\"end\")){\n scannerObj.close();\n break;\n }\n }\n scannerObj.close();\n } \n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n}",
"@Test (dataProvider = \"testData\")\n public void readingPropertiesFileTest (final String testUrl, final String userName, final int port) {\n assertWithMessage (\"testurl\").that (testUrl)\n .isNotEmpty ();\n assertWithMessage (\"username\").that (userName)\n .isNotEmpty ();\n assertWithMessage (\"port\").that (port)\n .isNotNull ();\n }",
"private UserParser() {\n }",
"static void loadUser() {\n\t\tScanner inputStream = null; // create object variable\n\n\t\ttry { // create Scanner object & assign to variable\n\t\t\tinputStream = new Scanner(new File(\"user.txt\"));\n\t\t\tinputStream.useDelimiter(\",\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"No User Infomation was Loaded\");\n\t\t\t// System.exit(0);\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\twhile (inputStream.hasNext()) {\n\n\t\t\t\tString instanceOf = inputStream.next();\n\n\t\t\t\tString readUserName = inputStream.next();\n\t\t\t\tString readPassword = inputStream.next();\n\t\t\t\tString readEmployeeNumber = inputStream.next();\n\t\t\t\tString readName = inputStream.next();\n\t\t\t\tString readPhone = inputStream.next();\n\t\t\t\tString readEmail = inputStream.next();\n\t\t\t\tif (instanceOf.contains(\"*AD*\")) {\n\t\t\t\t\tAdmin a1 = new Admin(readUserName, readPassword, readEmployeeNumber, readName, readPhone,\n\t\t\t\t\t\t\treadEmail);\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an Admin User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword() + \" \"+ a1.getEmployeeNum());\n\t\t\t\t} else if (instanceOf.contains(\"*CC*\")) {\n\t\t\t\t\tCourseCoordinator a1 = new CourseCoordinator(readUserName, readPassword, readEmployeeNumber,\n\t\t\t\t\t\t\treadName, readPhone, readEmail);\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an CC User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword() + \" \"+ a1.getEmployeeNum());\n\t\t\t\t} else if (instanceOf.contains(\"*AP*\")) {\n\t\t\t\t\tApproval a1 = new Approval(readUserName, readPassword, readEmployeeNumber, readName, readPhone,\n\t\t\t\t\t\t\treadEmail);\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an Approval User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword()+ \" \" + a1.getEmployeeNum());\n\t\t\t\t} else if (instanceOf.contains(\"*CA*\")) {\n\t\t\t\t\tCasual a1 = new Casual(readUserName, readPassword, readEmployeeNumber, readName, readPhone,\n\t\t\t\t\t\t\treadEmail);\n\t\t\t\t\ta1.setHrly_rate(inputStream.nextInt());\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an Casual User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword()+ \" \" + a1.getEmployeeNum());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tSystem.err.println(\"Could not read from the file\");\n\t\t} catch (InputMismatchException e) {\n\t\t\tSystem.err.println(\"Something wrong happened while reading the file\");\n\t\t}\n\t\tinputStream.close();\n\t}",
"public Entry(String firstName, String lastName, String phone, String email) {\r\n this.firstName = firstName;\r\n this.lastName = lastName;\r\n this.phone = phone;\r\n this.email = email;\r\n }",
"public void getCredentials(){\n System.out.println(\"Enter Your Credit Card Number\");\n setCreditCardNumber(Integer.parseInt(Menu.getScanner().nextLine()));\n System.out.println(\"Enter your billing address\");\n setBillingAddress(Menu.getScanner().nextLine());\n System.out.println(\"Enter your CVC\");\n setCvc(Integer.parseInt(Menu.getScanner().nextLine()));\n }",
"@Test\t\t\n\tpublic void validuser() {\n\t\tFile file = new File(\"C:\\\\Users\\\\gururaj.ravindra\\\\eclipse-workspace\\\\6D\\\\config.properties\\\\testdata.properties\");\n\t\t \n\t\tFileInputStream fileInput = null;\n\t\ttry {\n\t\t\tfileInput = new FileInputStream(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tProperties prop = new Properties();\n\t\t\n\t\t//load properties file\n\t\ttry {\n\t\t\tprop.load(fileInput);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\tWebDriver driver= BrowserFactory.StartBrowser(prop.getProperty(\"browserName\"),prop.getProperty(\"url\"));\n\t\tLoginPage login_page = PageFactory.initElements(driver, LoginPage.class);\n\t\tlogin_page.Validlogin(prop.getProperty(\"username\"),prop.getProperty(\"password\"));\n\t}",
"protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }",
"public UserInput()\n {\n try\n {\n scanner = new Scanner(System.in);\n input = new InputMethods();\n citiesTotal = new CityContainer();\n\n if(scanner != null)\n {\n askUser();\n }\n } catch(Exception ex)\n {\n }\n }",
"private void inputUsers() throws IOException, ParseException {\n int count = 0;\n\n JSONParser parser = new JSONParser();\n File confFile = new File(\"config.json\");\n String confFilePath = confFile.getAbsolutePath();\n\n Object obj = parser.parse(new FileReader(confFilePath));\n\n JSONObject jsonObject = (JSONObject) obj;\n JSONArray hosts = (JSONArray) jsonObject.get(\"Hosts\");\n\n hostsMap = new HashMap<Integer, List<String>>();\n Iterator<JSONObject> iterator = hosts.iterator();\n\n while(iterator.hasNext()) {\n List<String> addport = new ArrayList<>();\n JSONObject host = iterator.next();\n String address = (String) host.get(\"Address\");\n addport.add(address);\n String port = (String) host.get(\"Port\");\n addport.add(port);\n hostsMap.put(count, addport);\n count++;\n }\n String interval = (String) jsonObject.get(\"Interval\");\n this.secondsInterval = Integer.parseInt(interval);\n }",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"public Scanner(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }",
"private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }",
"public Ui() {\n this.scanner = new Scanner(System.in);\n }",
"public Ui() {\n this.scanner = new Scanner(System.in);\n }",
"protected User(Parcel in) {\n this.names = in.readString();\n this.lastnames = in.readString();\n this.age = in.readInt();\n }",
"public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }",
"public static void main(String[] args) throws IOException {\n\t\tProperties p=new Properties();\n\t\tFile f=new File(\"Test.txt\");\n\t\tf.createNewFile();\n\t\tFileInputStream fis=new FileInputStream(\"Test.txt\");\n\t\tp.load(fis);\n\t\tString username=p.getProperty(\"user\");\n\t\tSystem.out.println(\"user name=\"+username);\n\t\tString pass=p.getProperty(\"pwd\");\n\t\tSystem.out.println(\"password=\"+pass);\n\t\tString add=(String) p.setProperty(\"nag\", \"8888\");\n\t\tFileOutputStream fos=new FileOutputStream(\"Test.txt\");\n\t\tp.store(fos, \"updated by Raghu\");\n\n\t}",
"public\n void setPropertiesDefaults(InputStream in)\n {\n if (in == null)\n return;\n\n try {\n defaults.load(in);\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }",
"public static void main(String[] args) throws IOException {\n\n String path = System.getProperty(\"user.dir\")+\"\\\\Files\\\\Config2.properties\";\n FileInputStream fileInputStream=new FileInputStream(path);\n Properties properties=new Properties();\n properties.load(fileInputStream);\n System.out.println(properties.get(\"browser\"));\n System.out.println(properties.get(\"url\"));\n System.out.println(properties.get(\"username\"));\n System.out.println(properties.get(\"password\"));\n //fileInputStream.close();\n FileOutputStream fileOutputStream=new FileOutputStream(path);\n Properties properties1=new Properties();\n properties.store(fileOutputStream,\"Masoud\");\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\tFile f=new File(\"C:/Users/christian/Desktop/registros.txt\"); \n\t\t\ttry{ \n\t\t\tFileReader fr=new FileReader(f); \n\t\t\tBufferedReader br=new BufferedReader(fr); \n\t\t\tString s; \n\t\t\tdo{ \n\t\t\t s=br.readLine(); \n\t\t\t System.out.println(s); \n\t\t\t}while(s!=null); \n\t\t\t} \n\t\t\tcatch(FileNotFoundException e){ \n\t\t\t\tSystem.out.println(\"Error al abrir el archivo\"); \n\t\t\t\t} \n\t\t\t\tcatch(IOException e){ \n\t\t\t\tSystem.out.println(\"Error al leer\"); \n\t\t\t\t} \n\t\t\t\n\t\t\tnew Principal().init();\n\t\t\t}",
"public AppUser(String email, String firstName, String lastName) {\n \tthis.email = email;\n \tthis.firstName = firstName;\n \tthis.lastName = lastName;\n \tthis.password = \"password\";\n }",
"public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }",
"public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }",
"public Email(String firstName, String lastName) {\r\n\t\tthis.firstName=firstName;\r\n\t\tthis.lastName=lastName;\r\n\t\t\r\n\t\t\r\n\t//Call a method asking for the department - return the department\r\n\tthis.department = setDepartment();\r\n\t\t\r\n\t\r\n\t//Call a method that returns a random password\r\n\tthis.password=randomPassword(defaultPasswordLength);\r\n\t\tSystem.out.println(\"Your password is: \" + this.password);\r\n\t\t\r\n\t\t\r\n\t//Combine elements to generate email\r\n\temail=firstName.toLowerCase() + \".\" + lastName.toLowerCase() + \"@\" + department + \".\" + companySuffix;\r\n\t\t\r\n\t}",
"public MyInputStream()\n {\n in = new BufferedReader\n (new InputStreamReader(System.in));\n }",
"public Users(String username, String password, String email, String phone)\r\n/* 53: */ {\r\n/* 54:67 */ this.username = username;\r\n/* 55:68 */ this.password = password;\r\n/* 56:69 */ this.email = email;\r\n/* 57:70 */ this.phone = phone;\r\n/* 58: */ }",
"public void startInfo() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = this.getInputString();\n\t\tSystem.out.println(\"Enter your mobile number:\");\n\t\tint number = this.getInputInteger();\n\t\tSystem.out.println(\"Enter your email:\");\n\t\tString email = this.getInputString();\n\t}",
"public void init(Properties properties) throws IOException;",
"private void initiate(){try{\n\t//String dataIni = run.class.getResource(\"../util/DataBase.ini\").getFile();\n //FileInputStream fin=new FileInputStream(dataIni); // 打开文件,从根目录开始寻找\n//\tFileInputStream fin=new FileInputStream(\"src/util/DataBase.ini\"); // 打开文件,从根目录开始寻找\n//\tProperties props=new Properties(); // 建立属性类,读取ini文件\n//\tprops.load(fin); \n//\tdriver=props.getProperty(\"driver\"); //根据键读取值\n//\turl=props.getProperty(\"url\");\n//\tusername=props.getProperty(\"username\");\n//\tuserpassword=props.getProperty(\"userpassword\");\n\t}\n\tcatch(Exception e){e.printStackTrace();}\n\t}",
"public static void getPropertyInfo(){\n\t\tSystem.out.println(\"Please enter a property id: \");\n\t\tpropertyId = scanner.nextLine();\n\t\tSystem.out.println(\"Please enter the principle amount: \");\n\t\tString principleInput = scanner.nextLine();\n\t\tprinciple = Integer.parseInt(principleInput);\n\t\tSystem.out.println(\"Please enter the interest rate: \");\n\t\tString interestInput = scanner.nextLine();\n\t\tinterestRate = Double.parseDouble(interestInput)*.01;\n\t\tSystem.out.println(\"Please enter the term in months: \");\n\t\tString termInput = scanner.nextLine();\n\t\ttermInMonths = Integer.parseInt(termInput);\n\t\t\n\t}",
"public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}",
"protected void setConfigsFromInput(ExternalMailInput input) throws Exception\n {\n // Instantiate some attributes\n konakartAPI = input.getKonakartAPI();\n context = input.getContext();\n if (context != null)\n {\n storeOwner = (String) context.get(\"storeOwner\");\n storeOwnerEmailAddr = (String) context.get(\"storeOwnerEmailAddr\");\n storeName = (String) context.get(\"storeName\");\n storeId = (String) context.get(\"storeId\");\n imageBaseUrl = (String) context.get(\"imageBaseUrl\");\n templateBase = (String) context.get(\"templateBase\");\n displayPricesWithTax = ((Boolean) context.get(\"displayPricesWithTax\")).booleanValue();\n customerName = (String) context.get(\"customerName\");\n appCustomer = (Customer) context.get(\"customer\");\n adminCustomer = (AdminCustomer) context.get(\"cust\");\n }\n if (customerName == null && adminCustomer != null)\n {\n customerName = getFormattedCustomerName(adminCustomer);\n }\n if (input.getEmailTemplate() != null)\n {\n emailSubject = input.getEmailTemplate().getSubject();\n emailBody = input.getEmailTemplate().getBody();\n }\n emailAddr = input.getEmailAddr();\n if (input.getAppOptions() != null)\n {\n countryCode = input.getAppOptions().getCountryCode();\n templateName = input.getAppOptions().getTemplateName();\n }\n if (input.getAdminOptions() != null)\n {\n countryCode = input.getAdminOptions().getCountryCode();\n templateName = input.getAdminOptions().getTemplateName();\n }\n if (input.getAdminEmailData() != null)\n {\n emailAddr = input.getAdminEmailData().getToAddress();\n emailSubject = input.getAdminEmailData().getSubject();\n emailBody = input.getAdminEmailData().getMessage();\n // Some mail providers don't accept an empty message\n if (emailBody == null || emailBody.length() == 0)\n {\n emailBody = \" \";\n }\n doBlindCopy = input.getAdminEmailData().isSendBlindCopies();\n }\n\n // Override values from config variables\n if (input.getAppOptions() != null)\n {\n /*\n * Mail sent from Application\n */\n if (input.getAppOptions().getFromAddress() != null)\n {\n setFromAddressStr(input.getAppOptions().getFromAddress());\n } else if (input.getAppOptions().getReplyToAddress() != null)\n {\n setReplyToAddressStr(input.getAppOptions().getReplyToAddress());\n } else if (input.getAppOptions().getBccEmails() != null\n && input.getAppOptions().getBccEmails().length() > 0)\n {\n bccEmailsStrArray = input.getAppOptions().getBccEmails().split(\";\");\n }\n\n if (input.getAppOptions().getContentType() == KKConstants.EMAIL_AS_HTML)\n {\n contentType = \"text/html\";\n } else if (input.getAppOptions().getContentType() == KKConstants.EMAIL_AS_PLAIN_TEXT)\n {\n contentType = \"text/plain\";\n } else\n {\n log.warn(\"Unrecognised Email ContentType: \"\n + input.getAppOptions().getContentType());\n contentType = \"text/html\";\n }\n\n fullAttachmentFilename = input.getAppOptions().getFullAttachmentFilename();\n friendlyAttachmentName = input.getAppOptions().getFriendlyAttachmentName();\n deleteAttachmentAfterSend = input.getAppOptions().isDeleteAttachmentAfterSend();\n } else if (input.getAdminEmailData() != null)\n {\n /*\n * Mail sent using admin API call sendEmail\n */\n if (input.getAdminEmailData().getFromAddress() != null)\n {\n setFromAddressStr(input.getAdminEmailData().getFromAddress());\n } else if (input.getAdminEmailData().getReplyToAddress() != null)\n {\n setReplyToAddressStr(input.getAdminEmailData().getReplyToAddress());\n } else if (input.getAdminEmailData().getBccEmails() != null\n && input.getAdminEmailData().getBccEmails().length() > 0)\n {\n bccEmailsStrArray = input.getAdminEmailData().getBccEmails().split(\";\");\n }\n\n if (input.getAdminEmailData().getContentType() == KKConstants.EMAIL_AS_HTML)\n {\n contentType = \"text/html\";\n } else if (input.getAdminEmailData()\n .getContentType() == KKConstants.EMAIL_AS_PLAIN_TEXT)\n {\n contentType = \"text/plain\";\n } else\n {\n log.warn(\"Unrecognised Email ContentType: \"\n + input.getAdminEmailData().getContentType());\n contentType = \"text/html\";\n }\n\n if (input.getAdminEmailData().getSynchronousity() == KKConstants.EMAIL_ASYNCHRONOUS)\n {\n isAsync = true;\n } else if (input.getAdminEmailData()\n .getSynchronousity() == KKConstants.EMAIL_SYNCHRONOUS)\n {\n isAsync = false;\n }\n } else if (input.getAdminOptions() != null)\n {\n /*\n * Mail sent from Admin App\n */\n if (input.getAdminOptions().getFromAddress() != null)\n {\n setFromAddressStr(input.getAdminOptions().getFromAddress());\n } else if (input.getAdminOptions().getReplyToAddress() != null)\n {\n setReplyToAddressStr(input.getAdminOptions().getReplyToAddress());\n } else if (input.getAdminOptions().getBccEmails() != null\n && input.getAdminOptions().getBccEmails().length() > 0)\n {\n bccEmailsStrArray = input.getAdminOptions().getBccEmails().split(\";\");\n }\n\n if (input.getAdminOptions().getContentType() == KKConstants.EMAIL_AS_HTML)\n {\n contentType = \"text/html\";\n } else if (input.getAdminOptions().getContentType() == KKConstants.EMAIL_AS_PLAIN_TEXT)\n {\n contentType = \"text/plain\";\n } else\n {\n log.warn(\"Unrecognised Email ContentType: \"\n + input.getAdminOptions().getContentType());\n contentType = \"text/html\";\n }\n\n if (input.getAdminOptions().getSynchronousity() == KKConstants.EMAIL_ASYNCHRONOUS)\n {\n isAsync = true;\n } else if (input.getAdminOptions().getSynchronousity() == KKConstants.EMAIL_SYNCHRONOUS)\n {\n isAsync = false;\n }\n\n fullAttachmentFilename = input.getAdminOptions().getFullAttachmentFilename();\n friendlyAttachmentName = input.getAdminOptions().getFriendlyAttachmentName();\n deleteAttachmentAfterSend = input.getAdminOptions().isDeleteAttachmentAfterSend();\n }\n\n /*\n * Get specific data depending on type of mail being sent\n */\n if (input.getType() == ExternalMailInput.MAIL_FROM_APP)\n {\n\n if (input.getKonakartAPI().equals(sendTemplateEmailToCustomer1))\n {\n message = (String) context.get(\"message\");\n\n } else if (input.getKonakartAPI().equals(sendOrderConfirmationEmail1))\n {\n appOrder = (Order) context.get(\"order\");\n vendorOrders = (Order[]) context.get(\"vendorOrders\");\n } else if (input.getKonakartAPI().equals(sendStockReorderEmail))\n {\n productName = (String) context.get(\"productName\");\n productQuantity = ((Integer) context.get(\"productQuantity\")).intValue();\n productId = ((Integer) context.get(\"productId\")).intValue();\n sku = (String) context.get(\"sku\");\n } else if (input.getKonakartAPI().equals(sendWelcomeEmail1))\n {\n\n } else if (input.getKonakartAPI().equals(sendNewPassword1))\n {\n doBlindCopy = false;\n newPassword = (String) context.get(\"newPassword\");\n expiryMins = ((Integer) context.get(\"expiryMins\")).intValue();\n } else\n {\n throw new KKException(\"Unknwown KonaKart API - \" + input.getKonakartAPI());\n }\n\n } else if (input.getType() == ExternalMailInput.MAIL_FROM_ADMIN)\n {\n // Special case that doesn't use a Velocity Context\n if (input.getKonakartAPI().equals(sendEmail))\n {\n\n } else if (input.getKonakartAPI().equals(resetCustomerPassword))\n {\n doBlindCopy = false;\n newPassword = (String) context.get(\"newPassword\");\n expiryMins = ((Integer) context.get(\"expiryMins\")).intValue();\n } else if (input.getKonakartAPI().equals(sendStatusChangeEmailForState))\n {\n adminOrder = (AdminOrder) context.get(\"order\");\n } else if (input.getKonakartAPI().equals(sendTemplateEmail))\n {\n } else\n {\n throw new KKException(\"Unknwown KonaKart Admin API - \" + input.getKonakartAPI());\n }\n }\n }",
"public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }",
"public ServerConfiguration(InputStream in) throws IOException, URISyntaxException {\n super(in);\n\n\n Objects.requireNonNull(properties.getProperty(BIND_ADDRESS), \"Host and port are required\");\n Objects.requireNonNull(getMesosMaster(), \"Mesos address must not be empty\");\n\n uri = new URI(properties.getProperty(BIND_ADDRESS));\n // List<String> invalidBindAddresses = Arrays.asList(INVALID_BIND_ADDRESS);\n // loopback addresses must also be checked, but for now inttest uses localhost address\n if (uri.getHost().equals(\"0.0.0.0\")) {\n LOG.error(\"retz.bind is told to Mesos; {}/32 should not be assigned\", uri.getHost());\n throw new IllegalArgumentException();\n }\n if (uri.getPort() < 1024 || 65536 < uri.getPort()) {\n LOG.error(\"retz.bind must not use well known port, or just too large: {}\", uri.getPort());\n throw new IllegalArgumentException();\n }\n\n maxSimultaneousJobs = Integer.parseInt(properties.getProperty(MAX_SIMULTANEOUS_JOBS, DEFAULT_MAX_SIMULTANEOUS_JOBS));\n if (maxSimultaneousJobs < 1) {\n throw new IllegalArgumentException(MAX_SIMULTANEOUS_JOBS + \" must be positive\");\n }\n\n databaseURL = properties.getProperty(DATABASE_URL, DEFAULT_DATABASE_URL);\n databaseDriver = properties.getProperty(DATABASE_DRIVER_CLASS, DEFAULT_DATABASE_DRIVER_CLASS);\n\n if (\"root\".equals(getUserName()) || getUserName().isEmpty()) {\n LOG.error(\"{} must not be 'root' nor empty\", USER_NAME);\n throw new IllegalArgumentException(\"Invalid parameter: \" + USER_NAME);\n }\n\n if (getRefuseSeconds() < 1) {\n throw new IllegalArgumentException(MESOS_REFUSE_SECONDS + \" must be positive integer\");\n }\n\n if (getJobQueueType() == null) {\n throw new IllegalArgumentException(JOB_QUEUE_TYPE + \" must be either fir or all\");\n }\n\n LOG.info(\"Mesos master={}, principal={}, role={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}\",\n getMesosMaster(), getPrincipal(), getRole(), MAX_SIMULTANEOUS_JOBS, maxSimultaneousJobs,\n DATABASE_URL, databaseURL,\n MAX_STOCK_SIZE, getMaxStockSize(),\n USER_NAME, getUserName(),\n MESOS_REFUSE_SECONDS, getRefuseSeconds(),\n GC_LEEWAY, getGcLeeway(),\n GC_INTERVAL, getGcInterval(),\n MAX_LIST_JOB_SIZE, getMaxJobSize(),\n MAX_FILE_SIZE, getMaxFileSize(),\n JOB_QUEUE_TYPE, getJobQueueType());\n LOG.info(\"{}={}\", MESOS_FAILOVER_TIMEOUT, getFailoverTimeout());\n }",
"public Configuration(File configFile) {\r\n \t\tproperties = loadProperties(configFile);\r\n \t}",
"public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }",
"@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}",
"public DMXUserInput() {\n }",
"public static void main(String[] args) {\n\t\tpublic static CfgSingletonfactory getpropertiesfromFile() {\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"public EmailSender()\r\n {\r\n this(\"javaemailsender\" ,\"sendtestemail\");\r\n }",
"public User(String name, String surname, String mail, String phone) {\n this.name = name;\n this.surname = surname;\n this.mail = mail;\n this.phone = phone;\n }",
"public void initialize(final InputStream stream) throws IOException\n {\n // load up the properties\n final Properties props = new Properties();\n props.load(stream);\n initialize(props);\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"enter your first name, last name, company seperated by space\");\n String firstName, lastName, company, email;\n firstName = scan.next(); //(\"Dilmurod\");\n lastName = scan.next(); //(\"Yakubov\");\n company = scan.next();//(\"Verizon\");\n email = (firstName+\"_\"+lastName+\"@\"+company+\".com\");\n System.out.println(\"My name is \"+lastName+\", \"+firstName+\" and I work for \"+ company+\" and my email is: \"\n + email);\n\n\n\n }",
"public void setScan(InputStream inStream){\t\t\n\t\tthis.scan = new Scanner (inStream);\t\t\t\t\t\n\t}",
"public static void main(String[] args) {\n\t\tProperties props = new Properties();\r\n\t\tprops.setProperty(\"displayName\", \"Amit Prakash\");\r\n\t\tString name = props.getProperty(\"displayName\");\r\n\t\tString acctNum = props.getProperty(\"accountNumber\");\r\n\t\tString nextPosition = props.getProperty(\"position\", \"1\");\r\n\t}",
"public static void main(String[] args) throws Exception \n {\n AddUser u = new AddUser();\n /*File file = \n new File(\"C:\\\\Users\\\\Zone\\\\Desktop\\\\my practise\\\\testcase.txt\"); */\n/* Scanner sc = new Scanner(file);*/\n Scanner scan = new Scanner(System.in);\n String[] cnt = scan.nextLine().split(\" \");\n for (int i = 0; i < Integer.parseInt(cnt[1]); i++) {\n \t String line = scan.nextLine();\n String[] tokens = line.split(\" is connected to \");\n u.addName(new User(tokens[0], tokens[1].replace(\" \", \"\").replace(\".\",\"\").split(\",\")));\n }\n while (scan.hasNextLine()) {\n \tString line1 = scan.nextLine();\n \tString[] token = line1.split(\" \");\n \tswitch (token[0]) {\n \t\tcase \"getConnections\":\n \t\tif (u.getConnections(token[1]) == null) {\n \t\t\tSystem.out.println(\"Not a user in Network\");\n \t\t} else{\n \t\tSystem.out.println(u.getConnections(token[1])); }\n \t\tbreak;\n \t\tcase \"addConnections\":\n \t\tu.addConnection(token[1], token[2]);\n \t\tbreak;\n \t\tcase \"CommonConnections\":\n \t\tSystem.out.println(Arrays.toString(u.getCommonlist(token[1], token[2])));\n \t\tbreak;\n \t\tcase \"Network\":\n \t\tu.network();\n \t\tbreak;\n \t\tdefault:\n \t}\n \t\n }\n}",
"public static void main(String[] args) throws IOException {\n File f=new File(\"D:\\\\selenium\\\\filehandlingtest\\\\file\\\\Test.properties\");\n FileInputStream fis=new FileInputStream(f);\n Properties prop=new Properties();\n prop.load(fis);\n System.out.println (prop.getProperty(\"domain\"));\n \n Enumeration e= prop.keys();\n\n while (e.hasMoreElements()){\n \tString key = (String) e.nextElement();\n \tSystem.out.println(key+\"----\"+prop.get(key));\n \t\n }\n\t}",
"public void getInput(){\n\t\tScanner scan= new Scanner(System.in);\n\t\t//Get the range\n\t\tif(scan.hasNext()){\n\t\t\tcount=Integer.parseInt(scan.nextLine()); \n\t\t}\n\t\t//Initialize the array\n\t\tpeople = new People[count];\n\t\t//Get the array elements\n\t\tint i=0;\n\t\twhile(i<count){\n\t\t\tString lin[] = scan.nextLine().split(\" \");\n\t\t\tpeople[i] = new People(Integer.parseInt(lin[0]), Double.parseDouble(lin[1]));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t\n\t}",
"public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}",
"public TestBase() {\n try {\n properties = new Properties();\n FileInputStream fileInputStream = new FileInputStream(\"F:/LearningStuff/PracticalWork\" +\n \"/Frameworks/DataDrivenFrameworkSelenium/src/main/resources/config/config.properties\");\n properties.load(fileInputStream);\n } catch (FileNotFoundException f) {\n f.printStackTrace();\n } catch (IOException i) {\n i.printStackTrace();\n }\n }",
"public JsnParser(String filename) {\n this.filename = filename;\n }",
"public Person( String emailAddress, String first, String last, \r\n String password, String currency, String creditCard )\r\n {\r\n setEmail( emailAddress );\r\n setFirstName( first );\r\n setLastName( last );\r\n setPassword( password );\r\n setCurrency( currency );\r\n setCreditCard( creditCard );\r\n }",
"public static void main(String[] args) throws Exception {\n\t\tURL path = Server.class.getResource(\"user_pass.txt\");\r\n\t\tSystem.out.println(path);\r\n\t\tFile f = new File(path.getFile());\r\n\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\r\n\r\n\t\t//add the set list of names to both hashtables\r\n\t\tString thisLine = null;\r\n\t\twhile ((thisLine = reader.readLine())!= null) {\r\n\t\t\t//parse the line\r\n\t\t\tString[] userpass = thisLine.split(\"\\\\s+\");\r\n\r\n\t\t\t//insert the key, value pair into the hashtable\r\n\t\t\tSystem.out.println(userpass[0]+\", \"+userpass[1]);\r\n\t\t\tuserpasses.put(userpass[0], userpass[1]);\r\n\t\t\tusers.put(userpass[0],null);\r\n\t\t\tHashMap<String, Calendar> holder = new HashMap<String, Calendar>();\r\n\t\t\tblockList.put(userpass[0],holder);\r\n\t\t}\r\n\r\n\t\t//get the port number from args\r\n\t\tInteger portNum = Integer.parseInt(args[0]);\r\n\r\n\t\t//create the serversocket listener\r\n\t\tServerSocket listener = new ServerSocket(portNum);\r\n\t\t\r\n\t\t//start the thread that will check for inactivity\r\n\t\tnew ActivityKeeper().start();\r\n\t\t\r\n\t\t//make your presence known\r\n\t\tSystem.out.println(\"The server is up!\");\r\n\r\n\t\t//try -> finally\r\n\t\ttry {\r\n\t\t\twhile (true) {\r\n\r\n\t\t\t\t//check for the ipAddress in the keyset of the hashtable\r\n\t\t\t\t//if it doesn't exist, add it along with a reference to the User\r\n\t\t\t\t//if it does exist, add the thread to that User\r\n\t\t\t\t//which thread do you send the \"Username: \" prompt to?\r\n\t\t\t\t//send a test message??\r\n\t\t\t\t//use a try catch clause to swap because an exception will come\r\n\t\t\t\t//\r\n\t\t\t\tnew User(listener.accept()).start();\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tlistener.close();\r\n\t\t}\r\n\t}"
] |
[
"0.6268003",
"0.6245927",
"0.60698676",
"0.57867986",
"0.57650477",
"0.57328874",
"0.56772065",
"0.56714773",
"0.5663931",
"0.565371",
"0.5648353",
"0.5643128",
"0.5637285",
"0.5606371",
"0.55898845",
"0.5564218",
"0.5562464",
"0.55581564",
"0.55271804",
"0.55110174",
"0.5495768",
"0.54899496",
"0.5482046",
"0.5466551",
"0.5454567",
"0.5448263",
"0.5448248",
"0.5426319",
"0.54219747",
"0.5399912",
"0.5395663",
"0.53941",
"0.53861314",
"0.53844076",
"0.5382273",
"0.537888",
"0.53667957",
"0.53630537",
"0.53457266",
"0.53446376",
"0.53369516",
"0.5323982",
"0.53182256",
"0.52913487",
"0.5291007",
"0.5290489",
"0.5289",
"0.5253048",
"0.52488524",
"0.52311224",
"0.5229448",
"0.52290255",
"0.5225805",
"0.52188504",
"0.5218189",
"0.5213638",
"0.5211952",
"0.5208793",
"0.52012306",
"0.51963216",
"0.51963216",
"0.51910466",
"0.5190708",
"0.51856077",
"0.5185602",
"0.5162126",
"0.51597667",
"0.5158213",
"0.51572037",
"0.51572037",
"0.5152124",
"0.5152006",
"0.5142718",
"0.51423776",
"0.51380324",
"0.51367927",
"0.5135807",
"0.51356244",
"0.5134879",
"0.5133885",
"0.51289636",
"0.5127584",
"0.51264524",
"0.51247805",
"0.51243126",
"0.51194084",
"0.51187444",
"0.5115326",
"0.5113858",
"0.5111704",
"0.51056993",
"0.5102786",
"0.50950664",
"0.50854766",
"0.50846016",
"0.50781417",
"0.50736934",
"0.50654596",
"0.5059673",
"0.5059196"
] |
0.6983398
|
0
|
Send an email to an user. User provides following details: 1. TO Recipient ID 2. Subject Email Subject 3. Content Email content
|
public void sendEmail() {
System.out.println("Loading session and Authenticating");
final Session session = Session.getInstance(getProtocolProporties(PROTOCOL_SEND), new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(getProperty("username"), getPassword());
}
});
if(null == session) {
System.err.println("Session is null, cann't proceed");
return ;
}
System.out.println("Authenticated, will try to send an email");
try {
final Message message = new MimeMessage(session) {
//Print the message to console
@Override
public String toString() {
StringBuilder stringBuilder = new StringBuilder();
try {
stringBuilder.append("\n").append("From : ").append("\n");
for (Address address : this.getFrom())
stringBuilder.append(address).append("\n");
stringBuilder.append("\n").append("To : ").append("\n");
for (Address address : this.getRecipients(Message.RecipientType.TO))
stringBuilder.append(address).append("\n");
stringBuilder.append("Subject : ").append("\n").append(this.getSubject());
stringBuilder.append("\n").append("Sent Date : ").append(this.getSentDate());
} catch (MessagingException e) {
e.printStackTrace();
}
return stringBuilder.toString();
}
};
//Get Mail field details
message.setFrom(new InternetAddress(getProperty("username")));
message.setRecipient(Message.RecipientType.TO, new InternetAddress(getUserInput("to")));
message.setSubject(getUserInput("subject"));
message.setText(getUserInput("messageContent"));
message.setSentDate(new Date());
System.out.println("Sending the mail as details below :");
System.out.println(message);
//Send email here, this throws exception if fails
Transport.send(message);
System.out.println("Email Sent");
} catch (final MessagingException ex) {
System.err.println("Error: " + ex.getMessage());
ex.printStackTrace();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void sendMail(String to, String subject, String text);",
"public void sendMail(String to, String cc, String bcc, String subject, String text);",
"public void sendMail(String to, String cc, String subject, String text);",
"public void sendEmail(String recipient,String password);",
"void sendCommonMail(String to, String subject, String content);",
"public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;",
"private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}",
"public void sendEmail(\n String to,\n String subject,\n String body\n ) {\n SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(fromAddress);\n\n message.setTo(to);\n message.setSubject(subject);\n message.setText(body);\n\n mailSender.send(message);\n }",
"public void sendEmail(String toAddr,String subject,String text){\n\t\tsendEmail(toAddr, subject, text, null);\n\t}",
"private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void sendMail(String to, String cc, String bcc, String templateName, Object... parameters);",
"public static void sendMail(Context context, String recipient, String subject) {\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n \"mailto\", recipient, null));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n //checking if there is are apps installed that can handle this operation\n if (context.getPackageManager().queryIntentActivities(emailIntent, 0).size() > 0) {\n context.startActivity(Intent.createChooser(emailIntent, GlobalConstants.USER_SEND_EMAIL_APPLICATION_SELECTOR_TITLE));\n }\n }",
"public java.lang.String sendMail(java.lang.String accessToken, java.lang.String toAddresses, java.lang.String subject, java.lang.String body, java.lang.String msgFrom) throws java.rmi.RemoteException;",
"public void sendMail(String to, String cc, String templateName, Object... parameters);",
"public void sendSimpleEmail(String subject, String content, String toMail) {\n SimpleMailMessage message = new SimpleMailMessage();\n\n message.setTo(toMail);\n message.setSubject(subject);\n message.setText(content);\n\n\n\n // Send Message!\n this.emailSender.send(message);\n\n }",
"private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }",
"public void sendEmail(String toAddress, String subject, String bodyText) throws MailException{\n SimpleMailMessage msg = new SimpleMailMessage();\n msg.setTo(toAddress);\n msg.setSubject(subject);\n msg.setText(bodyText);\n\n javaMailSender.send(msg);\n }",
"void sendHtmlMail(String to, String subject, String content);",
"private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"public void sendEmail(Author authorObject);",
"private static void sendMail(String toEmail, String mailText) {\n final String username = \"[email protected]\"; //The Email of the sender.\n final String password = \"emailpassword\";\n\n //Properties of the used SMTP server.\n Properties props = new Properties();\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(toEmail));\n message.setSubject(\"New Password - Household Manager\");\n //Message to the user\n message.setText(mailText);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendEmail(String recipient, String subject, String text) throws MessagingException {\n Message msg = new MimeMessage(this.session);\n msg.setFrom(new InternetAddress(this.USERNAME));\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient, false));\n msg.setSubject(subject);\n msg.setContent(text, \"text/html; charset=utf-8\");\n msg.setSentDate(new Date());\n Transport.send(msg);\n }",
"private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }",
"public static void sendMail(String to, String msg) throws RuntimeException, AddressException, MessagingException {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\r\n// properties.setProperty(\"mail.smtp.host\", HOST);\r\n Session session = Session.getDefaultInstance(properties,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(FROM, PASSWORD);\r\n }\r\n });\r\n\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set From: header field of the header.\r\n message.setFrom(new InternetAddress(FROM));\r\n // Set To: header field of the header.\r\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to));\r\n // Set Subject: header field\r\n message.setSubject(\"Your confirmation code from Simple Blog register\");\r\n // Send the actual HTML message, as big as you like\r\n message.setContent(\r\n \"<h1>\" + msg + \"</h1><br/>\"\r\n + \"<h5>Please input your confirmation code to the web link:</h5>\"\r\n + \"<a href=\\\"\" + CONFIRM_URL + \"\\\">Click here</a>\",\r\n \"text/html\");\r\n\r\n // Send message \r\n Transport.send(message);\r\n System.out.println(\"message sent successfully....\");\r\n\r\n }",
"void sendAttachMail(String to, String subject, String content);",
"public void sendButtonClick(View v){\n String title = getText(R.string.mail_title).toString();\n String mailto = \"mailto:\" + emailAdress;\n Intent openEmailApp = new Intent(Intent.ACTION_SENDTO);\n openEmailApp.setType(\"plain/text\");\n openEmailApp.setData(Uri.parse(mailto));\n openEmailApp.putExtra(Intent.EXTRA_SUBJECT, userName + title);\n openEmailApp.putExtra(Intent.EXTRA_TEXT, evaluationMessage);\n startActivity(openEmailApp);\n }",
"public void sendMail(String to) throws URISyntaxException, IOException {\n final String username = \"kicsikacsacodecool\";//change accordingly\n final String password = \"codecool\";//change accordingly\n\n // Assuming you are sending email through relay.jangosmtp.net\n String host = \"relay.jangosmtp.net\";\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n // Get the Session object.\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n // Create a default MimeMessage object.\n Message message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(\"[email protected]\"));\n\n // Set To: header field of the header.\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n\n // Set Subject: header field\n message.setSubject(\"Webshop Registration\");\n\n // Now set the actual message\n message.setText(\"Welcome to the codecool webshop !!\");\n\n // Send message\n try {\n Transport.send(message);\n } catch (Exception e) {\n System.out.println(e);\n }\n\n System.out.println(\"Sent message successfully....\");\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"public MainMailPage sendMail(String to, String subject, String text) {\n\tLOG.info(\"Start sendMail\\n\");\n\twritterMail(to, subject, text);\n\tsendToMail.click();\n\tcheckDialogBox();\n\treturn new MainMailPage(driver);\n }",
"void sendMail(){\r\n String mailBody = getString(R.string.congratz_message, String.valueOf(playerScore));\r\n mailBody += \" \" + playerRating;\r\n\r\n Intent intent = new Intent(Intent.ACTION_SENDTO);\r\n intent.setData(Uri.parse(\"mailto:\")); //only email apps should handle this\r\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Sports Trivia score for \" + getPlayerName());\r\n intent.putExtra(intent.EXTRA_TEXT, mailBody);\r\n\r\n if(intent.resolveActivity(getPackageManager())!=null){\r\n startActivity(intent);\r\n }\r\n }",
"public void sendMail(String to, String templateName, Object... parameters);",
"public static void sendConfirmationMail(String toMail){\n String confirmationText = \"Welcome as a new user of Household Manager.\" +\n \"\\n You can log in with \"+toMail+ \" and the password you chose.\" +\n \"If you've forgotten your password you can get a new one sent from our Login page.\";\n sendMail(toMail,confirmationText);\n }",
"public void send(String recipientEmail, String ccEmail, String title, String message) throws AddressException, MessagingException {\r\n \tsend(mailUserName, mailPassword, recipientEmail, ccEmail, title, message);\r\n }",
"public void send(String toEmail){\n Session session = Session.getInstance(props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(this.username));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail));\n message.setSubject(\"RWS TICKET SUPPORT\");\n\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(\"Thank you for using the services of our company!\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n messageBodyPart = new MimeBodyPart();\n\n String filename = String.format(\n \"C:/Users/Ozhmegov/Desktop/t-systems/RWS/service/src/main/java/util/tickets/ticket_%s.pdf\", trainNumber\n );\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(String.format(\"ticket_%s.pdf\", trainNumber));\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n LOG.info(\"Message sended on email: {}\", toEmail);\n } catch (MessagingException e) {\n LOG.error(\"Message not sended on email: {}\", toEmail);\n throw new EmailSenderServiceException(String.format(\"Message not sended on email: %s\", toEmail));\n }\n }",
"public UserDTO sendEmail(UserDTO user) {\n\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"holyloch655\";\n\n\t\tUserDTO userdto = new UserDTO();\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\tSession session = Session.getInstance(props,\n\t\t\t\tnew javax.mail.Authenticator() {\n\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\ttry {\n\n\t\t\tMessage message = new MimeMessage(session);\n\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\tInternetAddress.parse(user.getEmail()));\n\t\t\tmessage.setSubject(\"User Profile with PredictEnergy\");\n\t\t\tmessage.setText(\"Dear,\"\n\t\t\t\t\t+ user.getFuserName().concat(\" \")\n\t\t\t\t\t\t\t.concat(user.getLuserName())\n\t\t\t\t\t+ \"\\n\\n your profile has been created with username : \"\n\t\t\t\t\t+ user.getEmail()\n\t\t\t\t\t+ \" and password \"\n\t\t\t\t\t+ user.getPassword()\n\t\t\t\t\t+ \"\\n\\n Should you have any questions regarding your Logon or profile, please contact your Administrator.\"\n\t\t\t\t\t+ \"\\n\\n Best Regards,\" + \"\\n PredictEnergy Admin\");\n\n\t\t\tTransport.send(message);\n\t\t\tSystem.out.println(\"email send\");\n\t\t\tuserdto.setMessage(\"email successfully send to user [\"\n\t\t\t\t\t+ user.getFuserName().concat(\" \")\n\t\t\t\t\t\t\t.concat(user.getLuserName()) + \" ] at \"\n\t\t\t\t\t+ user.getEmail());\n\n\t\t} catch (MessagingException e) {\n\t\t\tuserdto.setErrorMessage(e.getMessage());\n\t\t}\n\t\treturn userdto;\n\t}",
"public void sendEmail(View view) {\n //deckare enauk addresses\n String[] addresses = {\n \"[email protected]\",\n \"[email protected]\"\n };\n String subject = \"Coffee Order\";\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, addresses);\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, message);\n// if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n// }\n }",
"public void sendNotificaitoin(User user) throws MailException, InterruptedException {\n\n\n System.out.println(\"Sending email...\");\n\n SimpleMailMessage mail = new SimpleMailMessage();\n mail.setTo(\"[email protected]\");\n mail.setFrom(\"[email protected]\");\n mail.setSubject(\"notification\");\n mail.setText(\"time is running out\");\n javaMailSender.send(mail);\n\n System.out.println(\"Email Sent!\");\n }",
"@Override\n public void send(Contact from, Contact to, Message message) {\n\n //- Create e-mail -//\n SimpleMailMessage email = new SimpleMailMessage();\n\n //- Set e-mail content -//\n email.setFrom(from.getAddress());\n email.setTo(to.getAddress());\n email.setSubject(message.getSubject());\n email.setText(message.getText());\n //TODO: add additional params\n\n this.sender.send(email);\n }",
"public void crunchifyReadyToSendEmail(String toAddress, String fromAddress, String subject, String msgBody) {\r\n \r\n\t\tSimpleMailMessage msg = new SimpleMailMessage();\r\n\t\tmsg.setFrom(fromAddress);\r\n\t\tmsg.setTo(toAddress);\r\n\t\tmsg.setSubject(subject);\r\n\t\tmsg.setText(msgBody);\r\n\t\treviewymail.send(msg);\r\n\t}",
"private void SendEmail(String password, String emailTo, String staffNames)\n {\n String to = emailTo;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"smtp.upcmail.ie\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n \n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password Change From Help Manager\");\n\n // Now set the actual message\n message.setText(\"Hello \"+staffNames +\", \\n\\n Your new Password is: \"+ password +\".\\n\\n Regards \\n Help Manager Team\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }",
"public void sendEmail(String recipient, String subject, String message) { \r\n\t\t\r\n\t Properties props = new Properties();\r\n\t props.put(mailHost, mailHostname);\r\n\t Session session = Session.getInstance(props, null);\r\n\r\n\t try {\r\n\t MimeMessage msg = new MimeMessage(session);\r\n\t msg.setFrom(username);\r\n\t msg.setRecipients(Message.RecipientType.TO,\r\n\t recipient);\r\n\t msg.setSubject(subject);\r\n\t msg.setSentDate(new Date());\r\n\t msg.setText(message);\r\n\t Transport.send(msg, username, password);\r\n\t System.out.println(\"Email has been sent\");\r\n\t } catch (MessagingException mex) {\r\n\t \tSystem.out.println(recipient);\r\n\t System.out.println(\" send failed, exception: \" + mex);\r\n\t }\r\n\r\n\t\t\r\n\t}",
"public void send(String recipientEmail, String title, String message) throws AddressException, MessagingException {\r\n \tsend(mailUserName, mailPassword, recipientEmail, \"\", title, message);\r\n }",
"public String sendEmail() {\n String to = theModel.getEmail();\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject( subject, \"text/html\");\n\n // Send the actual HTML message, as big as you like\n message.setContent( text , \"text/html\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n return \"UniLog.xhtml\";\n }",
"public void writterMail(String to, String subject, String text) {\n\tLOG.info(\"Start writterMail\\n\");\n\ttoMail.sendKeys(to);\n\tsubjectMail.sendKeys(subject);\n\ttextMail.sendKeys(text);\n }",
"public void sendMail(String address, String content) {\n }",
"public void sendregisteruser(registerDTO register) {\n MimeMessagePreparator preparator = new MimeMessagePreparator()\n {\n public void prepare(MimeMessage mimeMessage) throws Exception\n {\n mimeMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(register.getEmail()));\n mimeMessage.setSubject(\"Welcome to The Indian Bus Service\");\n\n MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true);\n\n helper.setText(\"<html><body>\"\n + \"<br>\"\n + \"<h2>Hello \"+register.getFirstname()+\" \"+register.getLastname()+\"</h2>\"\n + \"<p>Welcome to <b>Indian Bus Service</b></p>\"\n + \"<br>\"\n + \"<p>Username:- \"+register.getEmail()+\"</p>\"\n + \"<p>Hope you are doing well in this lockdown.</b></p>\"\n + \"<p>Date your login : </p>'\"+new Date()+\"'</body></html>\", true);\n }\n };\n\n try {\n mailSender.send(preparator);\n }\n catch (MailException ex) {\n // simply log it and go on...\n System.err.println(ex.getMessage());\n }\n }",
"private void enviarCorreo(Soda soda){\n String[] TO = {soda.getEmail()};\n Uri uri = Uri.parse(\"mailto:\" + soda.getEmail())\n .buildUpon()\n .appendQueryParameter(\"subject\", \"Consulta Soda Universitaria\")\n .appendQueryParameter(\"body\", \"Enviado desde SodaUniversitaria.\")\n .build();\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, uri);\n emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);\n startActivity(Intent.createChooser(emailIntent, \"Enviar vía correo\"));\n }",
"public void sendMailAction(View view) {\n String name = getPlayerName();\n String message = createShortQuizSummary(finalScore, name);\n String mailto = \"mailto:\" + getPlayerMail() +\n \"?cc=\" + \"\" +\n \"&subject=\" + Uri.encode(name + getResources().getString(R.string.score_in_quiz)) +\n \"&body=\" + Uri.encode(message);\n\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n emailIntent.setData(Uri.parse(mailto));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n }\n\n }",
"public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }",
"@Override\n\tpublic void sendMail(String to, String from, String subject, String text)\n\t\t\tthrows MessagingException {\n\t\t MimeMessage msg = sender.createMimeMessage();\n\t\t \n\t\t // true�� ���������ν� ���� ������ �پ�ȭ�� �����ϰڴٴ°��� ��������� �������ش�.\n\t\t MimeMessageHelper helper = new MimeMessageHelper(msg, true, \"utf-8\");\n\t\t \n\t\t helper.setTo(to);\n\t\t helper.setFrom(from);\n\t\t helper.setSubject(subject);\n\t\t helper.setText(text, true);\n\t\t \n\t\t sender.send(msg);\n\t}",
"public void emailResult(View view) {\n // Getting username only\n Intent myIntent = getIntent();\n String nameOfUser = myIntent.getStringExtra(\"EditTextValue\");\n\n String result = \"Name: \" + nameOfUser;\n result += \"\\nMy score: \" + score;\n\n // Create a new intent to send information to any mailing app\n Intent myResult = new Intent(Intent.ACTION_SENDTO);\n myResult.setData(Uri.parse(\"mailto:\"));\n myResult.putExtra(Intent.EXTRA_SUBJECT, \"Quiz result for \" + nameOfUser);\n myResult.putExtra(Intent.EXTRA_TEXT, result);\n if (myResult.resolveActivity(getPackageManager()) != null) {\n startActivity(myResult);\n }\n }",
"SendEmail() {\t\n\t}",
"public void send(final String username, final String password, String recipientEmail, String ccEmail, String title, String message) throws AddressException, MessagingException {\r\n Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());\r\n \r\n LOG.debug(\"Prepare to send email with parameters: username = \" + username + \", password=\" +password+ \", recipientEmail=\" +recipientEmail+ \", ccEmail=\" +ccEmail+ \", title=\" +title+ \", message=\" + message);\r\n \r\n Session session = Session.getInstance(props, null);\r\n\r\n // -- Create a new message --\r\n final MimeMessage msg = new MimeMessage(session);\r\n\r\n // -- Set the FROM and TO fields --\r\n msg.setFrom(new InternetAddress(username));\r\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipientEmail, false));\r\n\r\n if (ccEmail.length() > 0) {\r\n msg.setRecipients(Message.RecipientType.CC, InternetAddress.parse(ccEmail, false));\r\n }\r\n\r\n msg.setSubject(title);\r\n msg.setText(message, Config.getInstance().getProperty(Config.SMTP_ENCODING));\r\n msg.setSentDate(new Date());\r\n\r\n SMTPTransport t = (SMTPTransport)session.getTransport(Config.getInstance().getProperty(Config.SMTPS_TRANSPORT));\r\n\r\n t.connect(Config.getInstance().getProperty(Config.SMTP_HOST), username, password);\r\n t.sendMessage(msg, msg.getAllRecipients()); \r\n t.close();\r\n \r\n LOG.debug(\"Message successfully sent\");\r\n }",
"public void EnvoyerEmailSurveillant(Utilisateur user) {\n\t\t\t\t MimeMessage mimeMessage = mailSender.createMimeMessage(); \n\t\t\t try {\n\t\t\t MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(mimeMessage, true);\n\t\t\t mimeMessageHelper.setSubject(\"Compte Surveillant \");\n\t\t\t mimeMessageHelper.setFrom(\"[email protected]\");\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t\t String url =\"scolarity.dpc.com.tn\";\n\t\t String content = \"Bonjour Mr ( Mmme), \" + user.getNom()+\" + \" + user.getPrenom()\n\t\t + \", votre nom d'utilisateur par la platforme scolarity est : \\n \" + user.getUsername() +\" \\n\"+\"et votre mot de passe est : \\n\"+ user.getPassword()+\"\\n\"+\"vous pouvez accéder au espace surveillant via l'adresse suivante : \\n\"+url+\"\\n\"+\" \\n Cordialement.\";\n\t\t System.out.println(content);\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t mimeMessageHelper.setText(content);\n\t\t // Add a resource as an attachment\n\t\t mimeMessageHelper.setText(\"<html><body><p>\" + content + \"</p> <img src=\\\"http://207.180.211.158:/logodpc.bmp\\\" width=\\\"50\\\" alt=\\\"Apen\\\"></body></html>\", true);\n\n\t\t\t \n\t\t\t \n\t\t\t mailSender.send(mimeMessageHelper.getMimeMessage());\n\t\t\t } catch (MessagingException e) {\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t\t\t\t\n\t\t\t}",
"public static void SendEmailConfirmation(String toEmail, String content)\r\n {\r\n try\r\n {\r\n System.out.println(\"Se pregateste email-ul.\");\r\n\r\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\r\n Authenticator auth = new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(fromEmail, password);\r\n }\r\n };\r\n\r\n Session session = Session.getInstance(properties, auth);\r\n\r\n sendEmail(session, toEmail, \"[INFORMATII PERSONALE] Credentiale pentru aplicatia UVT StudentApp\", content);\r\n }\r\n catch ( Exception e)\r\n {\r\n System.out.println(\"Nu s-a putut trimite mail-ul.\");\r\n return;\r\n }\r\n }",
"public static void sendMessage(Gmail service, String userId, MimeMessage\n email) throws MessagingException, IOException {\n Message message = createMessageWithEmail(email);\n message = service.users().messages().send(userId, message).execute();\n// System.out.println(\"Message id: \" + message.getId());\n// System.out.println(message.toPrettyString());\n }",
"public void sendFromTo(String from, String emailTo, String subject, String message) {\n try {\n MimeMessage mimeMessage = mailSender.createMimeMessage();\n MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, false, \"utf-8\");\n\n mimeMessage.setContent(message, \"text/html; charset=UTF-8\");\n helper.setFrom(from);\n helper.setTo(emailTo);\n helper.setSubject(subject);\n mailSender.send(mimeMessage);\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n }",
"public static void sendAsHtml(String to, String title, String mensagemAEnviar) {\n try{\n System.out.println(\"Enviar email para \" + to);\n System.out.println(\"A criar sessao\");\n Session session = createSession();\n System.out.println(\"Sessao criada\");\n System.out.println(\"Preparar mensagem\");\n MimeMessage message = new MimeMessage(session);\n prepareEmailMessage(message, to, title, mensagemAEnviar);\n System.out.println(\"Mensagem \"+ message.toString() + \" preparada\");\n System.out.println(\"A mandar mensagem\");\n Transport.send(message);\n System.out.println(\"Done\");\n }catch(Exception e){\n e.printStackTrace();\n }\n\n }",
"public void sendsMail(String recipient, String email_address, String subject, String contentMail, String mailType)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into mails (sender, recipient, mailSubject, message, mailType)\" + \r\n\t\t\t\t\t\t\t\"values(?, ?, ?, ?, ?)\";\r\n\t\t\tpreparedStatement = connect.prepareStatement(query);\r\n\t\t\tpreparedStatement.setString(1, email_address);\r\n\t\t\tpreparedStatement.setString(2, recipient);\r\n\t\t\tpreparedStatement.setString(3, subject);\r\n\t\t\tpreparedStatement.setString(4, contentMail);\r\n\t\t\tpreparedStatement.setString(5, mailType);\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendMail(String subject, String text)\r\n {\r\n try\r\n {\r\n Message msg = new MimeMessage(session);\r\n msg.setRecipients(Message.RecipientType.TO, receivers);\r\n msg.setSubject(subject);\r\n msg.setText(text);\r\n Transport.send(msg);\r\n System.out.println(\"Message sent to\");\r\n for(InternetAddress ad: receivers)\r\n {\r\n System.out.println(ad.toUnicodeString());\r\n }\r\n System.out.println(\"Successfully\");\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Exception: \"+ ex);\r\n }\r\n }",
"public void sendUsernameChangeEmail(UserDTO userDTO) {\r\n try {\r\n Map<String, Object> modelObject = null;\r\n\r\n modelObject = ImmutableMap.of(\r\n \"name\", userDTO.getFirstName()\r\n );\r\n\r\n // Send email with required info\r\n sendMimeEmailWithFreemarker(Constants.USERNAME_UPDATE_SUBJECT, Constants.USERNAME_UPDATE_TEMPLATE,\r\n userDTO, modelObject);\r\n } catch (UnsupportedEncodingException | CannotSendEmailException | URISyntaxException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n\tpublic void sendMessage(Gmail service, String userId, MimeMessage email) throws MessagingException, IOException {\n\t\tMessage message = createMessageWithEmail(email);\n\t\tmessage = service.users().messages().send(userId, message).execute();\n\n\t\tSystem.out.println(\"Message id: \" + message.getId());\n\t\tSystem.out.println(message.toPrettyString());\n\n\t}",
"public static void sendEmail(EmailSendable e, String message){\n\t\tSystem.out.println(\"Email-a bidali da: \"+message);\r\n\t}",
"private void sendEmail(String result){\n \t\n \tIntent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n \temailIntent.setType(\"plain/text\");\n \t\n \t//emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n \t/* Fill it with Data */\n \temailIntent.setType(\"plain/text\");\n \t//emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"[email protected]\"});\n \temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Here's the code from FlipSHA\");\n \temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"After the coin is flipped and\" +\n \t\t\t\" you don't believe in your friend, check this hash \"+ result);\n\n \t/* Send it off to the Activity-Chooser */\n \tstartActivity(emailIntent); \n }",
"void send(Email email);",
"void send(String emailName);",
"String send(final String to, final String subject, final String content, final boolean useHtml)\n throws EmailException;",
"public Long sendEmail(String to, String subjectText, String bodyText)\n\t{\n\t\tDestination destination = new Destination().withToAddresses(new String[]{to});\n\n\t\t// Create the subject and body of the message.\n\t\tContent subject = new Content().withData(subjectText);\n\t\tContent textBody = new Content().withData(bodyText);\n\t\tBody body = new Body().withText(textBody);\n\n\t\t// Create a message with the specified subject and body.\n\t\tMessage message = new Message().withSubject(subject).withBody(body);\n\n\t\t// Assemble the email.\n\t\tSendEmailRequest request = new SendEmailRequest().withSource(FROM).withDestination(destination).withMessage(message);\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Attempting to send an email through Amazon SES by using the AWS SDK for Java...\");\n\n\t\t\t/*\n\t\t\t * The ProfileCredentialsProvider will return your [default]\n\t\t\t * credential profile by reading from the credentials file located at\n\t\t\t * (~/.aws/credentials).\n\t\t\t *\n\t\t\t * TransferManager manages a pool of threads, so we create a\n\t\t\t * single instance and share it throughout our application.\n\t\t\t */\n\t\t\tAWSCredentials credentials = null;\n\t\t\ttry {\n\t\t\t\t//credentials = new ProfileCredentialsProvider().getCredentials();\n\t\t\t\tcredentials=new BasicAWSCredentials(Constants.aws_access_key_id, Constants.aws_secret_access_key);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new AmazonClientException(\n\t\t\t\t\t\t\"Cannot load the credentials from the credential profiles file. \" +\n\t\t\t\t\t\t\t\t\"Please make sure that your credentials file is at the correct \" +\n\t\t\t\t\t\t\t\t\"location (~/.aws/credentials), and is in valid format.\",\n\t\t\t\t\t\t\t\te);\n\t\t\t}\n\n\t\t\t// Instantiate an Amazon SES client, which will make the service call with the supplied AWS credentials.\n\t\t\tAmazonSimpleEmailServiceClient client = new AmazonSimpleEmailServiceClient(credentials);\n\n\t\t\t// Choose the AWS region of the Amazon SES endpoint you want to connect to. Note that your production\n\t\t\t// access status, sending limits, and Amazon SES identity-related settings are specific to a given\n\t\t\t// AWS region, so be sure to select an AWS region in which you set up Amazon SES. Here, we are using\n\t\t\t// the US East (N. Virginia) region. Examples of other regions that Amazon SES supports are US_WEST_2\n\t\t\t// and EU_WEST_1. For a complete list, see http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html\n\t\t\tRegion REGION = Region.getRegion(Regions.US_WEST_2);\n\t\t\tclient.setRegion(REGION);\n\n\t\t\t// Send the email.\n\t\t\tclient.sendEmail(request);\n\t\t\tSystem.out.println(\"Email sent!\");\n\t\t\treturn 1L;\n\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The email was not sent.\");\n\t\t\tSystem.out.println(\"Error message: \" + ex.getMessage());\n\t\t\treturn 0L;\n\t\t}\n\t}",
"public void contact(View view){\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse(\"mailto:\" + \"[email protected]\"));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Complaint: MLS App\");\n\n//emailIntent.putExtra(Intent.EXTRA_HTML_TEXT, body); //If you are using HTML in your body text\n\n startActivity(Intent.createChooser(emailIntent, \"What App would you like?\"));\n }",
"public void sendEmail(String username, String password) throws Throwable {\r\n\t\tString emailSubject = \"Test Report on \" + new Date();\r\n\t\tString emailMsg = \"This is an automatically generated email for test run\";\r\n\t\tEmailAttachment attachment = new EmailAttachment();\r\n\t\tattachment.setPath(\"test-output/emailable-report.html\");\r\n\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\tattachment.setDescription(\"Test Report\");\r\n\t\tMultiPartEmail email = new MultiPartEmail();\r\n\t\temail.setHostName(\"imap.gmail.com\");\r\n\t\temail.setSmtpPort(465);\r\n\t\temail.setAuthenticator(new DefaultAuthenticator(username, password));\r\n\t\temail.setSSLCheckServerIdentity(true);\r\n\t\temail.setSSLOnConnect(true);\r\n\t\tSystem.out.println(\"Connected to gmail..\");\r\n\t\tSystem.out.println(\"Sending mail to: \" + toEmails);\r\n\t\tSystem.out.println(\"Subject: \" + emailSubject + \"\\nEmail Body: \" + emailMsg);\r\n\t\temail.setFrom(username);\r\n\t\temail.setSubject(emailSubject);\r\n\t\temail.setMsg(emailMsg);\r\n\t\tString[] emails = toEmails.split(\",\");\r\n\t\temail.addTo(emails);\r\n\t\temail.attach(attachment);\r\n\t\temail.send();\r\n\t\tSystem.out.println(\"Email Sent..\");\r\n\t}",
"public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }",
"private static void sendMail(String text) {\n Properties properties = System.getProperties();\n Session session = Session.getDefaultInstance(properties);\n\n //compose the message\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n message.setSubject(\"RAZER - AVAILABILITYT\");\n message.setText(text);\n\n // Send message\n Transport t = session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", from, \"Shutting123\");\n t.sendMessage(message, message.getAllRecipients());\n log.error(\"message sent successfully....\");\n\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }",
"public void sendnotification_emailtome(String sender,String to,String pass,String subject_to_me, String message_to_me,JDialog dialog){\n final String username = sender;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", true);\n props.put(\"mail.smtp.starttls.enable\", true);\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected javax.mail.PasswordAuthentication getPasswordAuthentication() {\n return new javax.mail.PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n message.setSubject(subject_to_me);//email subject\n message.setText(message_to_me);//email message\n \n System.out.println(\"Sending...\");\n \n Transport.send(message);\n \n System.out.println(\"Done!\");\n } catch (MessagingException e) {\n dialog.dispose();\n JOptionPane.showMessageDialog(null,\" Check on internet connection...Email was unable to be sent...\");\n }\n }",
"public void sendEmail(String aFromEmailAddr, String aToEmailAddr, String aSubject, String aBody) {\n\n // Here, no Authenticator argument is used (it is null).\n // Authenticators are used to prompt the user for user\n // name and password.\n Session session = Session.getDefaultInstance(getMailServerConfig(), null);\n MimeMessage message = new MimeMessage(session);\n try {\n // the \"from\" address may be set in code, or set in the\n // config file under \"mail.from\" ; here, the latter style is used\n message.setFrom(new InternetAddress(aFromEmailAddr));\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(aToEmailAddr));\n message.setSubject(aSubject);\n message.setText(aBody);\n Transport.send(message);\n } catch (MessagingException ex) {\n System.err.println(\"Cannot send email. \" + ex);\n }\n\n }",
"public void send(final String username, final String password, String recipientEmail, String title, String message) throws AddressException, MessagingException {\r\n \tsend(username, password, recipientEmail, \"\", title, message);\r\n }",
"@Override\n public void sendEmail(String emailBody) {\n }",
"private void sendFeedback() {\n final String technicalInfo = commonsLogSender.getExtraInfo();\n\n final Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);\n feedbackIntent.setType(\"message/rfc822\");\n feedbackIntent.setData(Uri.parse(\"mailto:\"));\n feedbackIntent.putExtra(Intent.EXTRA_EMAIL,\n new String[]{CommonsApplication.FEEDBACK_EMAIL});\n feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,\n CommonsApplication.FEEDBACK_EMAIL_SUBJECT);\n feedbackIntent.putExtra(Intent.EXTRA_TEXT, String.format(\n \"\\n\\n%s\\n%s\", CommonsApplication.FEEDBACK_EMAIL_TEMPLATE_HEADER, technicalInfo));\n try {\n startActivity(feedbackIntent);\n } catch (final ActivityNotFoundException e) {\n Toast.makeText(getActivity(), R.string.no_email_client, Toast.LENGTH_SHORT).show();\n }\n }",
"private void sendEmail() {\n String email = emailInput.getText().toString();\n String title = titleInput.getText().toString();\n String message = messageInput.getText().toString();\n\n if(email.isEmpty() ||title.isEmpty() ||message.isEmpty()){\n Toast.makeText(this, R.string.field_not_empty, Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(!checkEmailPattern(email)){\n Toast.makeText(this,R.string.invalid_email,Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});\n emailIntent.putExtra(Intent.EXTRA_CC, new String[]{CC_CUPIC, CC_BAOTIC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, title);\n emailIntent.putExtra(Intent.EXTRA_TEXT, message);\n\n emailIntent.setType(\"message/rfc822\");\n\n try{\n startActivity(Intent.createChooser(emailIntent,\"\"));\n finish();\n }catch(ActivityNotFoundException ex){\n Toast.makeText(this,R.string.cant_send,Toast.LENGTH_SHORT).show();\n }\n }",
"public static void sendInvitationMail(String toMail, Group group){\n String invitationText = \"Hello!\\n\\n You have been invited to join a group on Household Manager. \" +\n \"Login to accept the invitation \\n\" +\n \"Invited to group: \"+group.getName()+ \"\\n Invited by: \"+group.getAdmin();\n sendMail(toMail,invitationText);\n }",
"public static ClientResponse sendSimpleMail(String from, String[] to, String subject, String body) throws Exception{\n\t\t\n\t if(from == null || from == \"\"){\n\t\t throw new Exception(\"Please set email sender properly.\");\n\t }\n\t \n\t if(to == null || to.length == 0){\n\t\t throw new Exception(\"Please set email recipients properly.\");\n\t }\n\t \n Client client = Client.create();\n client.addFilter(new HTTPBasicAuthFilter(\"api\",\n \"key-1xigy8-dpzbuy6euywdr2se-6yiu88d3\"));\n WebResource webResource =\n client.resource(\"https://api.mailgun.net/v2/tchat.mailgun.org/messages\");\n MultivaluedMapImpl formData = new MultivaluedMapImpl();\n // Set email sender\n formData.add(\"from\", from);\n // Set email recipients.\n for(int i = 0; i < to.length; i ++){\n \t formData.add(\"to\", to[i]);\n }\n // Set email subject\n formData.add(\"subject\", subject);\n // Set email body\n formData.add(\"text\", body);\n return webResource.type(MediaType.APPLICATION_FORM_URLENCODED).post(ClientResponse.class, formData);\n\t}",
"public void sendEmail(String[] to, String subject, String body, MailMimeType mailMimeType) throws EmailNotSendedException {\n if(emailConfig == null){\n throw new EmailNotSendedException(\"Servidor de email não está configurado\");\n }\n // Validar configuracoes de email\n ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();\n Validator validator = validatorFactory.getValidator();\n Set<ConstraintViolation<EmailConfig>> violations = validator.validate(emailConfig);\n if(violations.size() > 0){\n throw new EmailNotSendedException(\"Configurações de Email Incorretas ao tentar enviar\");\n }\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", emailConfig.getHost());\n props.put(\"mail.smtp.port\", emailConfig.getPort());\n if (emailConfig.getProtocol() == Protocol.TLS) {\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n }else if(emailConfig.getProtocol() == Protocol.SMTPS){\n props.put(\"mail.smtp.ssl.enable\", \"true\");\n }\n final String username = emailConfig.getLogin();\n final String password = emailConfig.getPassword();\n final String from = emailConfig.getSender();\n Authenticator authenticator = null;\n if(emailConfig.getNeedAuthentication()){\n\n props.put(\"mail.smtp.auth\", \"true\");\n authenticator = new Authenticator() {\n private PasswordAuthentication pa = new PasswordAuthentication(username, password);\n\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return pa;\n }\n };\n }\n\n Session session = Session.getInstance(props, authenticator);\n session.setDebug(emailConfig.getDebug());\n MimeMessage message = new MimeMessage(session);\n try {\n message.setFrom(new InternetAddress(from));\n InternetAddress[] address = new InternetAddress[to.length];\n\n for (int i = 0; i < to.length; i++) {\n try {\n address[i] = new InternetAddress(to[i]);\n } catch (Exception e) {\n throw new EmailNotSendedException(\"Endereço de email inválido\");\n }\n }\n message.setRecipients(Message.RecipientType.TO, address);\n message.setSubject(subject);\n message.setSentDate(new Date());\n\n Multipart multipart = new MimeMultipart(\"alternative\");\n\n MimeBodyPart bodyPart = new MimeBodyPart();\n\n switch (mailMimeType){\n case TXT:\n bodyPart.setText(body);\n break;\n case HTML:\n bodyPart.setContent(body, \"text/html\");\n break;\n default:\n bodyPart.setText(body);\n\n }\n\n multipart.addBodyPart(bodyPart);\n message.setContent(multipart);\n Transport.send(message);\n\n } catch (MessagingException ex) {\n throw new EmailNotSendedException(\"Não foi possível enviar email: \" + ex.getMessage());\n\n }\n\n }",
"private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"public boolean send(String subject, String body,\n\n String sender, String recipients) throws Exception {\n\n if(!sender.equals(\"\") && !recipients.equals(\"\") && !subject.equals(\"\") && !body.equals(\"\")) {\n// Session session = Session.getInstance(props, this);\n\n MimeMessage msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(sender));\n\n// InternetAddress[] addressTo = new InternetAddress[recipients.length];\n// for (int i = 0; i < recipients.length; i++) {\n// addressTo[i] = new InternetAddress(_to[i]);\n// }\n// InternetAddress addressTo = new InternetAddress();\n// addressTo = new InternetAddress(recipients);\n msg.setRecipients(MimeMessage.RecipientType.TO, InternetAddress.parse(recipients));\n Log.d(\"&&&&&\",subject);\n msg.setSubject(subject);\n msg.setSentDate(new Date());\n\n // setup message body\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(body);\n _multipart.addBodyPart(messageBodyPart);\n\n // Put parts in message\n msg.setContent(_multipart);\n\n // send email\n Log.w(\"$#@msg\",msg.toString());\n Transport.send(msg);\n\n return true;\n } else {\n return false;\n }\n }",
"private static void sendAttachmentEmail(Session session, String toEmail, String subject, String body) {\n try {\n MimeMessage msg = new MimeMessage(session);\n msg.addHeader(\"Content-type\", \"text/HTML; charset=UTF-8\");\n msg.addHeader(\"format\", \"flowed\");\n msg.addHeader(\"Content-Transfer-Encoding\", \"8bit\");\n msg.setFrom(new InternetAddress(\"[email protected]\", \"NoReply-JD\"));\n msg.setReplyTo(InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(subject, \"UTF-8\");\n msg.setSentDate(new Date());\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail, false));\n // Create the message body part\n BodyPart messageBodyPart = new MimeBodyPart();\n // Fill the message\n messageBodyPart.setText(body);\n // Create a multipart message for attachment\n Multipart multipart = new MimeMultipart();\n // Set text message part\n multipart.addBodyPart(messageBodyPart);\n // Second part is attachment\n messageBodyPart = new MimeBodyPart();\n String filename = \"abc.txt\";\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n multipart.addBodyPart(messageBodyPart);\n // Send the complete message parts\n msg.setContent(multipart);\n // Send message\n Transport.send(msg);\n System.out.println(\"EMail Sent Successfully with attachment!!\");\n } catch (MessagingException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"public ResponseEntity<String> sendMail(User user, String uuid) {\n try {\n String server = InetAddress.getLoopbackAddress().getHostName();\n\n int port = Integer.parseInt(Objects.requireNonNull(environment.getProperty(\"server.port\")));\n if (port != 80)\n server += \":\" + port;\n\n Context context = new Context();\n context.setVariable(\"user\", user);\n context.setVariable(\"uuid\", uuid);\n context.setVariable(\"server\", server);\n\n String process = templateEngine.process(\"emailTemplates/resetPassword\", context);\n javax.mail.internet.MimeMessage mimeMessage = javaMailSender.createMimeMessage();\n MimeMessageHelper helper = new MimeMessageHelper(mimeMessage);\n helper.setSubject(\"Reset Password Link for \" + user.getUserName());\n helper.setText(process, true);\n helper.setTo(user.getEmail());\n javaMailSender.send(mimeMessage);\n\n LOGGER.info(\"Reset Password Email Sent to \" + user.getEmail());\n return ResponseEntity.ok().body(\"Sent\");\n } catch (MessagingException e) {\n LOGGER.error(\"Failed To send Reset Password Email to \" + user.getEmail() + \". Cause: \" + e.getMessage());\n }\n LOGGER.warn(\"Failed To send Reset Password Email to \" + user.getEmail());\n return ResponseEntity.status(500).body(\"error\");\n }",
"void sendEmail(Job job, String email);",
"private void sendmailuserregister(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, ClassNotFoundException {\n String email = request.getParameter(\"email\");\n\n String to = \"yevhen@yevhen-Lenovo-ideapad-320-15ISK\";\n String from = \"wwwwnewbob@localhost\";\n String host = \"localhost\";\n\n Properties properties = System.getProperties();\n properties.setProperty(\"yevhen-Lenovo-ideapad-320-15ISK\", host);\n\n Session session = Session.getDefaultInstance(properties);\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipients(Message.RecipientType.TO, String.valueOf(new InternetAddress(to)));\n message.setSubject(\"This is the Subject Line!\");\n message.setText(\"This is actual message from \" + email);\n\n logger.info(\" user.getEmail() \" + email);\n\n Transport.send(message);\n String title = \"Send Email\";\n String res = \"Sent message successfully....<a href='/bookstore/shop'>Back</a>\";\n String docType = \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n\n out.println(docType +\n \"<html>\\n\" +\n \"<head><title>\" + title + \"</title><head>\\n\" +\n \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \"<p align = \\\"center\\\">\" + res + \"</p>\\n\" +\n \"</body>\\n\" +\n \"</html>\"\n );\n\n } catch (MessagingException mex){\n mex.printStackTrace();\n }\n\n\n }",
"public static void sendMail (String email, String name, String surname) throws AddressException,MessagingException {\n \n Properties props = new Properties();\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n\n Session session = Session.getDefaultInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\",\"progettoweb2018\");\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(email));\n message.setSubject(\"Benvenuto in Friday!\");\n message.setText(name+\" \"+surname+\", Benvenuto in Friday!\"+\n \"\\n\\n link di conferma : http://localhost:8080/Friday/confirmRegistrationServlet?email=\"+email);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }",
"public void sendEmail(String emailFrom, String emailRecipients, String subject, String body)\n throws Exception {\n try {\n MimeMessage msg = new MimeMessage(getSession());\n // set message headers\n msg.addHeader(\"Content-type\", \"text/HTML; charset=UTF-8\");\n msg.addHeader(\"format\", \"flowed\");\n msg.addHeader(\"Content-Transfer-Encoding\", \"8bit\");\n\n msg.setFrom(new InternetAddress(emailFrom));\n\n msg.setReplyTo(InternetAddress.parse(\"[email protected]\", false));\n\n msg.setSubject(subject, \"UTF-8\");\n\n msg.setText(body, \"UTF-8\");\n\n msg.setSentDate(new Date());\n msg.setRecipients(Message.RecipientType.CC, InternetAddress.parse(emailRecipients, false));\n Transport.send(msg);\n } catch (Exception e) {\n LOGGER.error(\"Error while sending an email.\", e);\n throw e;\n }\n }",
"public void sendEmail(String toAddr,String subject,String text,final CommonsMultipartFile cmf){\n\t\ttry {\n\t\t\tMimeMessage message=mailSender.createMimeMessage();\n\t\t\t//use helper class to compose email\n\t\t\tMimeMessageHelper helper=new MimeMessageHelper(message, true);\n\n\t\t\thelper.setFrom(\"[email protected]\");\n\n\t\t\thelper.setTo(toAddr);\n\t\t\thelper.setSubject(subject);\n\t\t\thelper.setText(text);\n\n\t\t\t//add any attachements\n\t\t\tif(cmf!=null){\n\t\t\t\thelper.addAttachment(cmf.getOriginalFilename(), \n\t\t\t\t\t\tnew InputStreamSource() {\n\n\t\t\t\t\tpublic InputStream getInputStream() throws IOException {\n\t\t\t\t\t\treturn cmf.getInputStream();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t//click on send button\n\t\t\tmailSender.send(message);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public EmailResponse sendMail(String toEmail, String subject, String message) {\n EmailResponse response = new EmailResponse();\n response.setEmailId(toEmail);\n try {\n javaMailSender.send(composeMail(toEmail, subject, message));\n response.setDelivered(Boolean.TRUE);\n } catch (Exception e) {\n response.setDelivered(Boolean.FALSE);\n }\n return response;\n }",
"void send(String email, Locale locale);",
"private void startEmailActivity(String email, String subject, String text) {\n try {\n StringBuilder builder = new StringBuilder();\n builder.append(\"mailto:\");\n builder.append(email);\n\n Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse(builder.toString()));\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, text);\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n } catch (ActivityNotFoundException e) {\n // can't start activity\n }\n }",
"public void sendHtmlEmail(String host, String port, final String userName,\r\n\t\t\tfinal String password, String toAddress, String subject,\r\n\t\t\tString message) throws AddressException, MessagingException {\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"mail.smtp.host\", host);\r\n\t\tproperties.put(\"mail.smtp.port\", port);\r\n\t\tproperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\r\n\t\t// creates a new session with an authenticator\r\n\t\tAuthenticator auth = new Authenticator() {\r\n\t\t\tpublic PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\treturn new PasswordAuthentication(userName, password);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSession session = Session.getInstance(properties, auth);\r\n\r\n\t\t// creates a new e-mail message\r\n\t\tMessage msg = new MimeMessage(session);\r\n\r\n\t\tmsg.setFrom(new InternetAddress(userName));\r\n\t\tInternetAddress[] toAddresses = { new InternetAddress(toAddress) };\r\n\t\tmsg.setRecipients(Message.RecipientType.TO, toAddresses);\r\n\t\tmsg.setSubject(subject);\r\n\t\tmsg.setSentDate(new Date());\r\n\t\t// set plain text message\r\n\t\tmsg.setContent(message, \"text/html\");\r\n\r\n\t\t// sends the e-mail\r\n\t\tTransport.send(msg);\r\n\r\n\t}",
"public void onClick(View arg0) {\n\t\t\t\tString emailAddress = \"[email protected]\";\r\n\t\t\t\tString emailSubject = edittextEmailSubject.getText().toString();\r\n\t\t\t\tString emailText = edittextEmailText.getText().toString();\r\n\t\t\t\tString emailAddressList[] = {emailAddress};\r\n\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SEND); \r\n\t\t\t\tintent.setType(\"plain/text\");\r\n\t\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, emailAddressList); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, emailSubject); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_TEXT, emailText); \r\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Choice App to send email:\"));\r\n\t\t\t}",
"public boolean enviarMailConfirmacion(Agente agente, Usuario usuario){\n\n try {\n\n //seteamos el asunto\n// message.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n//\n// //seteamos el mensaje que vamos a enviar\n// message.setContent(\"<html>\\n\" +\n// \"<body>\\n\" +\n// \"\\n Hola, para poder activar la cuenta haga click en el siguiente link ----> \" +\n// \"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\n// \"\\\">\\n\" +\n// \"Activar cuenta</a>\\n\" +\n// \"\\n\" +\n// \"En caso de no poder pegue en el browser lo siguiente\\n \"+\n// new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\"\\n\"+\n// \"Muchas Gracias\"+\n// \"</body>\\n\" +\n// \"</html>\", \"text/html\");\n// //colocamos la direccion de donde enviamos el correo\n// Address address = new InternetAddress(agente.getEmail());\n// message.setFrom(address);\n// //Colocamos la direccion de la persona a enviar\n// Address send = new InternetAddress(agente.getOtroemail(),false);\n// message.addRecipient(Message.RecipientType.TO,send);\n// message.addRecipient(Message.RecipientType.BCC, new InternetAddress( agente.getOtroemail()));\n// //la persona que envia con la validacion de su cuenta.\n// Transport trans = session.getTransport(\"smtp\");\n// //Aca se autentifica que la direccion de la persona que envia sea válida\n// //trans.connect();\n// trans.connect(\"[email protected]\",\"sgap*9812\");\n// trans.sendMessage(message,message.getAllRecipients());\n// trans.close();\n Email email = new Email();\n email.setFromAddress(\"Nortia UNDEC\", \"[email protected]\");\n email.addRecipient(agente.getApellido(), agente.getEmail(), RecipientType.TO);\n email.addRecipient(agente.getApellido(), agente.getOtroemail(), RecipientType.BCC);\n email.setTextHTML(\"Hola \"+usuario.getUsuarionombre()+\", <br /> para poder activar la cuenta haga click en el siguiente link ----> \" +\n\"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n \"&hash=\"+usuario.getUsuarioclave() +\n\"\\\"> Activar cuenta </a> <br />\"+\n \n\"En caso de no poder pegue en el browser lo siguiente \" +\n new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n\"&hash=\"+usuario.getUsuarioclave()+\"<br />\" +\n\"Muchas Gracias\");\n email.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n \n // or:\n new Mailer(\"localhost\", 25, \"[email protected]\", \"sgap*9812\").sendMail(email);\n } catch (Exception ex) {\n\n ex.printStackTrace();\n //Si el correo tiene algun error lo retornaremos aca\n JsfUtil.addErrorMessage(ex,\"No se pudo crear el Usuario\");\n\n return false;\n\n// } catch (MalformedURLException ex) {\n// Logger.getLogger(EnviarMail.class.getName()).log(Level.SEVERE, null, ex);\n// return false;\n }\n //Correo tuvo exito dara una salida en este punto indicando que si se envio\n return true;\n \n }",
"public void sendRegistrationEmail(User user, HttpServletRequest request) {\r\n try {\r\n VerificationToken token = new VerificationToken(user);\r\n verificationTokenRepo.save(token);\r\n\r\n String appUrl = request.getScheme() + Constants.SERVER_URL + \"register/confirm/\" + token.getToken();\r\n\r\n UserDTO userDTO = new UserDTO();\r\n userDTO.setFirstName(user.getFirstName());\r\n userDTO.setUsername(user.getUsername());\r\n\r\n // Build message body\r\n String subject = \"\";\r\n String template = \"\";\r\n Map<String, Object> modelObject = null;\r\n\r\n subject = Constants.REGISTRATIONSUBJECT;\r\n template = Constants.REGISTRATIONTEMPLATE;\r\n modelObject = ImmutableMap.of(\r\n \"name\", userDTO.getFirstName(),\r\n \"appUrl\", appUrl\r\n );\r\n\r\n // Send email with required info\r\n sendMimeEmailWithFreemarker(subject, template, userDTO, modelObject);\r\n } catch (UnsupportedEncodingException | CannotSendEmailException | URISyntaxException e) {\r\n e.printStackTrace();\r\n }\r\n }"
] |
[
"0.7592175",
"0.75897694",
"0.7546647",
"0.7280971",
"0.71108603",
"0.7096636",
"0.70208883",
"0.69309556",
"0.68991774",
"0.6898145",
"0.6874368",
"0.6836658",
"0.6796777",
"0.6781832",
"0.67706984",
"0.67627114",
"0.67602915",
"0.67162955",
"0.6712585",
"0.6706946",
"0.66838765",
"0.6683589",
"0.6674595",
"0.6665742",
"0.6651599",
"0.6650385",
"0.66384083",
"0.6609419",
"0.6592769",
"0.65748876",
"0.6569293",
"0.6533244",
"0.65204626",
"0.6484216",
"0.6474626",
"0.64741015",
"0.64740396",
"0.6471142",
"0.6470674",
"0.64690685",
"0.6425633",
"0.64207107",
"0.64101803",
"0.63905776",
"0.63553447",
"0.6353233",
"0.6346356",
"0.6344594",
"0.6335978",
"0.63335395",
"0.6305001",
"0.63007754",
"0.6296808",
"0.62965864",
"0.6283672",
"0.6277172",
"0.62770706",
"0.6274646",
"0.6261997",
"0.62580884",
"0.6257951",
"0.6241214",
"0.62356514",
"0.6230789",
"0.6227739",
"0.62247986",
"0.62241274",
"0.6217538",
"0.621313",
"0.62043464",
"0.6192408",
"0.61904603",
"0.61875826",
"0.6177626",
"0.616999",
"0.61622816",
"0.61536074",
"0.61508423",
"0.61449265",
"0.6143434",
"0.61333644",
"0.6110596",
"0.61095357",
"0.610519",
"0.61045223",
"0.61026484",
"0.61018145",
"0.6098379",
"0.60968363",
"0.6095052",
"0.60908645",
"0.60697055",
"0.60669893",
"0.6066386",
"0.6064249",
"0.60627633",
"0.6035703",
"0.60212934",
"0.6021011",
"0.6019979"
] |
0.64752936
|
34
|
Print the message to console
|
@Override
public String toString() {
StringBuilder stringBuilder = new StringBuilder();
try {
stringBuilder.append("\n").append("From : ").append("\n");
for (Address address : this.getFrom())
stringBuilder.append(address).append("\n");
stringBuilder.append("\n").append("To : ").append("\n");
for (Address address : this.getRecipients(Message.RecipientType.TO))
stringBuilder.append(address).append("\n");
stringBuilder.append("Subject : ").append("\n").append(this.getSubject());
stringBuilder.append("\n").append("Sent Date : ").append(this.getSentDate());
} catch (MessagingException e) {
e.printStackTrace();
}
return stringBuilder.toString();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void print(String message)\n {\n System.out.println(message);\n }",
"public void printMessage() {\n printMessage(System.out::print);\n }",
"private void print(String message) {\n\n //System.out.println(LocalDateTime.now() + \" \" + message);\n System.out.println(message);\n }",
"public void print(String message);",
"public void print(String message){\n if (this.okToPrint){\n System.out.print(message);\n }\n }",
"public void print(String message) {\n System.out.println(message);\n }",
"public void print(String message) {\n System.out.println(message);\n }",
"public void println(String message){\n if (this.okToPrint){\n System.out.println(message);\n }\n }",
"public static void print(String message)\n {\n\tSystem.out.println(message);\n }",
"public static void print(String message) {\n System.out.print(message);\n }",
"public void printMessage() {\n\t\tSystem.out.println(this.greeting + \" \" + this.message);\n\t}",
"public static void print(String message) {\n\t\tSystem.out.print(message);\n\t}",
"void print(String message);",
"private static void println(String message) {// metodo imprimir\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.println(threadName + \": \" + message);\r\n\t}",
"private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }",
"void println(String message);",
"public void printMsg(String msg) {\n\t\tSystem.out.println(msg);\n\t}",
"public void printMessage(String message) {\n\r\n\t}",
"public void print(Object msg)\n {\n print(msg, 1);\n }",
"protected void PRINT(String message)\n\t{\n\t\tSystem.out.println(message);\n\t}",
"public void print(String msg) {\n this.print(msg, false);\n }",
"@Override\r\n\tpublic void printPlain(String message) {\n\t\tSystem.out.println(message);\r\n\t}",
"public void displayTextToConsole();",
"public void print() {\n System.out.println(\"Command: \" + command);\n }",
"public static void printMessage(String message) {\n printDashLines();\n System.out.println(message);\n printDashLines();\n }",
"protected void output(String message) {\n \t\tSystem.out.print(message);\n \t}",
"void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}",
"public static void println(String message) {\n System.out.println(message);\n }",
"private static void printLine(String message){\n\t\tSystem.out.println(message);\n\t}",
"private static void println(String message, SimpleAttributeSet settings) {print(message + \"\\n\", settings);}",
"private void print(String msg)\n {\n m_log.log(msg);\n m_vbox.write(\" \" + msg);\n }",
"public static void print(String message) {\n if (outputEnabled)\n out.print(message);\n }",
"private void printConsole(String text) {\n\t\tMessage msg = getHandler().obtainMessage(MESSAGE_CONSOLE_CHANGED);\n\t\tmsg.obj = \"\\n\" + text ;\n\t\tmsg.sendToTarget();\t\t\n\t}",
"public static void write(String message) {\n System.out.println(message);\n }",
"public static void println(String message) {\n\t\tSystem.out.println(message);\n\t}",
"public void println(String message) {\r\n chatFrame.println(message);\r\n }",
"public void printMsg() {\n System.out.println(\"This is an example RMI program\");\n }",
"public void print(){\t\t\r\n\t\tSystem.out.println(\"===\\nCommit \" + id +\"\\n\"+ Time + \"\\n\" + message + \"\\n\");\r\n\t}",
"private void display(String msg) {\n\t\tString msgF = \"\\tClient- \" + msg + \"\\n\\n >> \";\n System.out.print(msgF);\n }",
"public void console(String message){\n\t\tactivity.append(message + \"\\n\");\n\t\tactivity.selectAll();\n\t}",
"public void println();",
"public static void echo(String msg)\n {\n System.out.println(msg);\n }",
"private static void echo(String msg) {\n assert msg != null;\n\n System.out.println(msg);\n }",
"private void println(final String msg) {\n if (!mTestStop) {\n CUIOutputStream.println(msg);\n }\n }",
"private void display(String msg) {\n cg.append(msg + \"\\n\");\n }",
"public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}",
"public void printToUser(String message){\n System.out.println(message);\n }",
"private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }",
"public void print()\n {\n chatarea.append(\"Sender:(\"+port.getText()+\")\"+System.lineSeparator()+msgarea.getText()+System.lineSeparator());\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"public static void print(Object message) {\r\n if (!isDisabled()) {\r\n print(String.valueOf(message));\r\n }\r\n }",
"@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}",
"public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }",
"private static void displayMessage(String message) {\n\t\toutput.append(message);\n\t}",
"public String print() {\r\n System.out.println(\"TEST_MESSAGE: \" + message);\r\n return this.message;\r\n }",
"public static void print() {\r\n System.out.println();\r\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"public static void println(String message) {\n if (outputEnabled) {\n synchronized (out) {\n out.println(message);\n }\n }\n }",
"private void display(String msg) {\n\t\tif(cg == null)\n\t\t\tSystem.out.println(msg); // println for Console mode\n\t\telse\n\t\t\tcg.append(msg + \"\\n\"); // Append to, for example, JTextArea in the ClientGUI\n\t}",
"private static void log(String message) {\n System.out.println(message);\n }",
"public void outputMessage(String gameMessage){\n System.out.println(gameMessage);\n }",
"public void print() {\r\n\t\t System.out.println(toString());\r\n\t }",
"public void println()\n\t{\n\t\tSystem.out.println();\n\t}",
"private synchronized void display(String msg) {\n\n\t\t//guiConversation.append(msg);\n\t\tSystem.out.println(msg);\n\t}",
"public void print()\r\n {\r\n System.out.println(\"From: \" + from);\r\n System.out.println(\"To: \" + to);\r\n System.out.println(\"Subject: \" + subject);\r\n System.out.println(\"Message: \" + message);\r\n }",
"public void print() {\n System.out.println(toString());\n }",
"private void printMessage(String s) {\n if (PRINTTRACE) {\r\n System.out.println(s);\r\n }\r\n }",
"protected void echo(String msg){\n\tSystem.out.println(\"*ECHO*: \" + msg);\n }",
"private void print(String msg) {\r\n\t\tSystem.out.printf(\"[%tT] %s\\n\", Calendar.getInstance(), msg);\r\n\t}",
"public void printMsg(String msg)\n\t{\n\t\tmsgArea.append(msg);\n\t}",
"void showInConsole();",
"private void println(String message) {\n Log.println(level, tag, message);\n }",
"public static void displayMsg() {\n\t}",
"void printMsg(){\n\tdisplay();\n }",
"public void println(String msg) {\n\t\tif (null == pwr) {\n\t\t\tinitialize();\n\t\t} else {\n\t\t\tpwr.println(msg);\n\t\t}\n\t}",
"public void println(char owner, String msg) {\n\t}",
"static void print (){\n \t\tSystem.out.println();\r\n \t}",
"public String printMessage() {\r\n\t\tSystem.out.println(message);\r\n\t\treturn message;\r\n\t}",
"public void print(){\r\n System.out.println(toString());\r\n }",
"public void print(String msg, boolean reallyPrint) {\n if (reallyPrint) {\n // System.out.println(msg);\n }\n\n }",
"private void print(String text) {\n\t\tSystem.out.println(text);\n\t}",
"@VisibleForTesting\n void print();",
"private void debugPrint(String msg) {\n if (debug) {\n System.out.println(toString() + \": \" + msg);\n }\n }",
"public static void printInstruction(String msg) {\n out.println(msg);\n }",
"public void printTerminal(String message)\n\t{\n\t\tterminal.printTerminal(message);\n\t}",
"@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}",
"public void logs(Object message) {\n System.out.println(message.toString());\n }",
"public String printMsg() {\n System.out.println(MESSAGE);\n return MESSAGE;\n }",
"@Override\n\tpublic void print() {\n\t\tSystem.out.print(\"MsgOwner\");\n\t}",
"public void print() {\n\t\tSystem.out.println(toString());\n\t}",
"void print(String message) throws IOException;",
"public void writeln () {\n pw.println();\n }",
"public void printToViewConsole(String arg);",
"public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }",
"void printTextToConsole(String content){\n }",
"private static void log(String msg) {\n System.out.println(msg);\n }",
"protected void displayMessage() {\n \n System.out.print (\"Message:\\n\");\n userMessage = message.toString();\n\n for(int i = 0; i < userMessage.length(); i++) \n System.out.format (\"%3d\", i);\n System.out.format (\"\\n\");\n for (char c : userMessage.toCharArray()) \n System.out.format(\"%3c\",c);\n System.out.format (\"\\n\");\n }",
"abstract void consoleMessage(String message);",
"private void alert(String msg) {\r\n\t\tSystem.out.print(msg);\r\n\t }",
"public void print(String message) {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm:ss.S\");\n\t\tSystem.out.println(sdf.format(date) + \"\t: \" + message);\n\t}",
"public void printToConsole(Object data){\r\n\t\tSystem.out.println(data);\r\n\t}"
] |
[
"0.8009816",
"0.800197",
"0.7862081",
"0.77791387",
"0.77771926",
"0.7751557",
"0.7751557",
"0.77298176",
"0.76681936",
"0.76176786",
"0.75608754",
"0.7516935",
"0.7475318",
"0.74493366",
"0.74483776",
"0.7432988",
"0.74283093",
"0.7382962",
"0.73567486",
"0.7356204",
"0.7340757",
"0.73402077",
"0.7337414",
"0.73347783",
"0.7332592",
"0.73285127",
"0.7313365",
"0.7307162",
"0.73013794",
"0.7301283",
"0.72774374",
"0.72573286",
"0.72476774",
"0.7243683",
"0.72318125",
"0.72001916",
"0.71929544",
"0.71547735",
"0.71469206",
"0.7145635",
"0.7138557",
"0.7136156",
"0.7130233",
"0.7112942",
"0.7106677",
"0.71012735",
"0.70961356",
"0.70877945",
"0.7076869",
"0.7042848",
"0.7036155",
"0.7005047",
"0.69701654",
"0.6965755",
"0.6959268",
"0.69584394",
"0.695623",
"0.6942572",
"0.6941008",
"0.6940909",
"0.6934645",
"0.69180053",
"0.6914062",
"0.6909861",
"0.69061214",
"0.69058603",
"0.6893896",
"0.6888126",
"0.68818796",
"0.6880212",
"0.68736863",
"0.6871611",
"0.6870155",
"0.6866195",
"0.68524534",
"0.68461704",
"0.6844204",
"0.68398523",
"0.68359864",
"0.68358254",
"0.68153596",
"0.6814116",
"0.68093336",
"0.68029934",
"0.6802223",
"0.67983806",
"0.6784873",
"0.6781314",
"0.6774762",
"0.6771422",
"0.6765908",
"0.67652583",
"0.6764863",
"0.67534477",
"0.67479277",
"0.67470837",
"0.67445403",
"0.67342794",
"0.6730451",
"0.6722224",
"0.6717392"
] |
0.0
|
-1
|
Return user input as String for the given text message
|
public String getUserInput(String userMessage) {
System.out.println(userMessage);
return sc.nextLine();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void createMessage()\n {\n System.out.println( user + \", type the message you want to send:\" );\n String userInput = sysin.nextLine();\n if( userInput.length() <= MAXLEN )\n msg = userInput;\n else\n msg = userInput.substring( 0, MAXLEN );\n\n }",
"private static String inputString() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Insert text: \");\n String inputText = userInput.nextLine();\n return inputText;\n }",
"private static String getUserText()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(optionReader.readLine());\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(null);\n\t }\n }",
"public String getInput()\t\n\t{\t//start of getInput method\n\t\treturn inputMsg;\n\t}",
"String userInputFromTextArea();",
"String getUserInput();",
"String getInput();",
"String userInput(String question);",
"protected String inputLine(String message) {\n System.out.println(\"\\n\\n\" + message + \" \");\n return new Scanner(System.in).nextLine();\n }",
"private static String getUserTextTyped () {\n\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tBoolean loop = true;\n\t\tString text = \"\";\n\t\tdo {\n\t\t\ttry {\n\t\t\t\ttext = myReader.readLine();\n\n\t\t\t\tif ((text.length() < 3)) {\n\t\t\t\t\tshowMessage(\"Please type a minimum of 3 characters: \\n\");\n\t\t\t\t} else {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid.\");\n\t\t\t}\n\t\t} while (loop);\n\n\n\t\treturn text;\n\n\t}",
"public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"public static String readMessage() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.print(\"Enter the message :: \");\n\t\tSystem.out.println();\n\t\tString s = br.readLine();\n\t\treturn s;\n\t}",
"public String promptString(String message) {\n ui.say(message);\n return ui.readString();\n }",
"private String askForLine(String message) {\r\n System.out.print(message);\r\n return sc.nextLine();\r\n }",
"public String readString(String message) {\r\n\t\tString answer = null;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\talert(message);\r\n\t\tanswer = scan.next();\r\n\t\treturn answer;\r\n\t}",
"public String getOutput(String input)\n\t{\n\t\tString outPutString;\n\t\tboolean memeExists;\n\t\tboolean conversationExists;\n\t\tboolean musicExists;\n\t\tboolean fruitExists;\n\t\tString previousAnswer;\n\n\t\tif ((input == null) || (input.equals(\"\")))\n\t\t{\n\t\t\treturn \"Hello, my name is ChatBot-tle. Ask me a question.\";\n\t\t}\n\t\toutPutString = input.toLowerCase();\n\n\t\tif (outPutString.equals(\"let's talk about math.\"))\n\t\t{\n\t\t\ttalkAboutMath();\n\t\t}\n\t\t\n\t\tpreviousAnswer = answerChecker(outPutString);\n\t\tif (!previousAnswer.equals(\"\"))\n\t\t{\n\t\t\treturn previousAnswer;\n\t\t}\n\t\t\n\t\tfruitExists = fruitChecker(outPutString);\n\t\tif (fruitExists == true)\n\t\t{\n\t\t\treturn \"Mmmm, I love eating fruit. \" + outPutString + \" is very yummy.\";\n\t\t}\n\t\t\n\t\tmemeExists = memeChecker(outPutString);\n\t\tif (memeExists == true) // check if it is a meme that was inputted.\n\t\t{\n\t\t\treturn \"Ahh, I see you are aware of a popular meme! \"\n\t\t\t\t\t+ outPutString + \" is a good meme.\";\n\t\t}\n\t\tmusicExists = musicChecker(outPutString);\n\t\tif (musicExists == true)\n\t\t{\n\t\t\treturn \"Oh, I see you are a fan of music. \" + outPutString\n\t\t\t\t\t+ \" is an awesome instrument!\";\n\t\t}\n\t\tconversationExists = conversationChecker(outPutString);\n\t\tif (conversationExists == true) // check if it is a conversation starter\n\t\t\t\t\t\t\t\t\t\t// that was inputted.\n\t\t{\n\t\t\treturn \"I'm doing well. How are you?\";\n\t\t}\n\t\toutPutString = getRandomTopic();\n\t\treturn outPutString;\n\t}",
"public String onInputMessage(String userInput) throws QuitException{\n if (!userInput.equals(\"\"))\n System.out.println(userInput);\n\n //Enter data using BufferReader \n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n \n // Reading data using readLine\n String input; \n try {\n input = reader.readLine();\n } catch (IOException e) {\n return null;\n }\n if (input.equals(\"sortir\"))\n throw new QuitException();\n\n // Printing the read line \n return input;\n }",
"String promptString();",
"public static String getString (String ask)\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.print(ask + \" -> \");\r\n String input = keyboard.nextLine();\r\n return input;\r\n }",
"protected String getFromUser(String message) {\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tBufferedReader userReader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\tSystem.out.print(message);\n\t\t\t\tString fromUser = userReader.readLine().toLowerCase();\n\t\t\t\tif (fromUser.trim().length() > 0){\n\t\t\t\t\treturn fromUser;\t\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Sorry empty strings are not valid input\");\n\t\t\t\t\tSystem.out.print(\"Please try again: \");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public String GetInput(JTextField textField, String text)\r\n {\r\n textField.selectAll();\r\n text = textField.getText();\r\n JOptionPane.showMessageDialog(this,\"<html><font size = 5>You enter: \\\"\"+ text+\"\\\"! \"\r\n +\"Please press \\\"OK\\\" to continue or press \\\"x\\\"\"\r\n + \" to exit</font></html>\");\r\n textField.setText(\"\");\r\n return text;\r\n }",
"public static String getString(String message) {\r\n final Stage dialog = new Stage();\r\n Window owner = Main.getStage().getOwner();\r\n dialog.setTitle(message);\r\n dialog.initOwner(owner);\r\n dialog.initStyle(StageStyle.UTILITY);\r\n dialog.initModality(Modality.WINDOW_MODAL);\r\n dialog.setX(owner.getX());\r\n dialog.setY(owner.getY());\r\n\r\n final TextField textField = new TextField();\r\n final Button submitButton = new Button(\"Submit\");\r\n submitButton.setDefaultButton(true);\r\n submitButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent t) {\r\n dialog.close();\r\n }\r\n });\r\n textField.setMinHeight(TextField.USE_PREF_SIZE);\r\n\r\n final VBox layout = new VBox(10);\r\n layout.setAlignment(Pos.CENTER_RIGHT);\r\n layout.setStyle(\"-fx-background-color: azure; -fx-padding: 10;\");\r\n layout.getChildren().setAll(\r\n textField,\r\n submitButton\r\n );\r\n\r\n dialog.setScene(new Scene(layout));\r\n dialog.showAndWait();\r\n\r\n return textField.getText();\r\n }",
"private static String receiveInput(String message) {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n try {\n System.out.printf(\"%s: \", message);\n return buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occured\");\n return null;\n }\n }",
"public static String readLine(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.nextLine();\n }",
"public String getInput(String message) throws IOException {\n\t\tSystem.out.print(\">> \"+message+\" \");\n\t\treturn consoleIn.readLine();\n\t}",
"public static String lireMessageAuClavier() throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString messa = sc.nextLine();\n\t\treturn messa;\n\t}",
"public String userStringInput(String text, Scanner inputReader) {\n\t\tSystem.out.println(text);\n\t\treturn inputReader.next();\n\t}",
"private String getSearchString(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString phrase = null;\n\t\t\n\t\tSystem.out.print(\"Please enter the search phrase: \");\n\t\tphrase = scanner.nextLine();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\treturn phrase;\n\t}",
"private static String getInput(String message, Scanner sc) {\n String result = \"\";\n while (result.equals(\"\")) {\n System.out.println(message);\n result = sc.nextLine();\n }\n return result;\n }",
"private String stringKeyBoardInput() {\n\t\tString input = \"\";\n\t\tboolean tryAgain = true;\n\t\twhile (tryAgain) {\n\t\t\ttry {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tinput = scanner.nextLine();\n\t\t\t\ttryAgain = false;\n\t\t\t} catch (InputMismatchException ime) {\n\t\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}",
"public static String readWindowString(Object messageToUser) {\n\t\tFont fontMonospaced = new Font(\"Consolas\", Font.BOLD, 18);\n\n\t\t//Preparing the text message\n\t\tJTextArea textMessage = new JTextArea();\n\t\ttextMessage.setEditable(false);\n\t\ttextMessage.setBackground(Color.decode(\"0x3c3f41\"));\n\t\ttextMessage.setForeground(Color.decode(\"0xdee4e5\"));\n\t\ttextMessage.setFont(fontMonospaced);\n\t\ttextMessage.setText(messageToUser.toString());\n\n\t\t//Changing JOptionPane colors\n\t\tUIManager.put(\"OptionPane.background\", textMessage.getBackground());\n\t\tUIManager.put(\"Panel.background\", textMessage.getBackground());\n\t\tUIManager.put(\"Button.background\", Color.decode(\"0x727A7C\"));\n\t\tUIManager.put(\"Button.foreground\", textMessage.getForeground());\n\t\tUIManager.put(\"Button.font\", fontMonospaced);\n\n\t\tBorder inputBorder = BorderFactory.createMatteBorder(0, 0, 2, 0, Color.gray);\n\t\tUIManager.put(\"TextField.background\", textMessage.getBackground());\n\t\tUIManager.put(\"TextField.foreground\", Color.white);\n\t\tUIManager.put(\"TextField.border\", inputBorder);\n\t\tUIManager.put(\"TextField.font\", fontMonospaced);\n\n\t\t//Changin JOptionPane OK button\n\t\tUIManager.put(\"OptionPane.okButtonText\", \"Insert\");\n\t\tUIManager.put(\"OptionPane.cancelButtonText\", \"Cancel\");\n\t\t// </editor-fold>\n\n\t\tString readValue = null;\n\t\ttry {\n\t\t\treadValue = JOptionPane.showInputDialog(null, textMessage, \"Read Operation\", JOptionPane.PLAIN_MESSAGE);\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn readValue;\n\t}",
"public static String prompt(String message, Scanner keyboard) {\n\t\t\n\t\tSystem.out.println(message);\n\t\t\n\t\tString userInput = keyboard.nextLine();\n\t\t\n\t\treturn userInput;\t\t\n\t\t\n\t}",
"public static String getInputText(){\n\t\treturn textArea.getText();\n\t}",
"private String getMessage(){\n\t\t\treturn textArea.getText();\n\t}",
"java.lang.String getUserMessage();",
"public String sendTextToChatBot(String userInput)\n\t{\n\t\tString respondText = \"\";\n\t\t\n\t\trespondText = mySillyChatbot.processText(userInput);\n\t\t\n\t\treturn respondText;\n\t}",
"public static String inputBox(String promptMsg) {\n return JOptionPane.showInputDialog(promptMsg);\n }",
"public static String getStringInput() {\n Scanner in = new Scanner(System.in);\n return in.next();\n }",
"public static String readUserInput() {\n return in.nextLine();\n }",
"String consoleInput();",
"private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}",
"public String getPromptText(){\n\t\tString textPrev = text.substring(0, pointerPos);\n\t\tString textAfter =\"\";\n\t\tif(pointerPos < text.length() -1)\n\t\t\ttextAfter = text.substring(pointerPos+1,text.length());\n\t\tString str = textPrev.concat(textAfter);\n\t\tstr = str.trim().replaceAll(\" +\", \" \");\n\t\treturn (str);\n\t}",
"public abstract void promptForInput(final String msg);",
"public String keyboardReadString() {\n BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n String stringItem = \"\";\n try {\n stringItem = myReader.readLine();\n } // try\n catch (IOException IOError) {\n System.out.println(\"Read Error in Termio.KeyboardReadString method\");\n } // catch\n return stringItem;\n }",
"public static String sLlegirText(String Text){\r\n Scanner sc = new Scanner(System.in);\r\n \r\n String sLectura;\r\n \r\n System.out.print(Text);\r\n sLectura = sc.nextLine();\r\n \r\n return sLectura;\r\n }",
"private String getInputStrings(int choice) {\n //a base string to add your choice to\n String baseInput = \"You chose option \";\n //the negative is for the introductory turn\n switch (choice) {\n case -1: return \"type 1, 2, or 3, then enter. \";\n case 0: return \"\";\n case 1: return baseInput + \"1.\";\n case 2: return baseInput + \"2.\";\n case 3: return baseInput + \"3.\";\n }\n //if value given is not found above\n return \"Error\";\n }",
"public String getChatbotDialog(String input)\n\t{\n\t\tString result =\"\";\n\t\t\n\t\tif(myFreemanBot.quitChecker(input))\n\t\t{\n\t\t\tquit();\n\t\t}\n\t\t\n\t\tresult = myFreemanBot.processText(input);\n\t\t\n\t\t\n\t\treturn result;\n\t}",
"public String getAnswer(String input)\n\t{\n\t\tString answer = \"\";\n\t\t\n\t\tanswer = JOptionPane.showInputDialog(null, input);\n\t\t\n\t\treturn answer;\n\t}",
"public String getInput() {\r\n return getText();\r\n }",
"public String getString(String pPrompt) {\r\n\t\tSystem.out.println(pPrompt + \"\");\r\n\t\treturn input.nextLine();\r\n\t}",
"private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }",
"public static String showStringInputDialog(String title, String message) {\n\t\treturn showInputDialog(null, message, title, PLAIN_MESSAGE);\n\t}",
"public static String getString(){\n Scanner in = new Scanner(System.in); //scanner variable to take input\n return in.nextLine().trim();\n }",
"public String getMessageText();",
"public static String getString(String inputDialog) {\n return(JOptionPane.showInputDialog(inputDialog));\n }",
"String getUsersInput(String outForUser) throws IOException;",
"private static String getInputQuery() throws IOException {\n\n String inputQuery = \"\";\n\n System.out.print(\"Please enter a search term: \");\n BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));\n inputQuery = bReader.readLine();\n\n if (inputQuery.length() < 1) {\n // Use the string \"YouTube Developers Live\" as a default.\n inputQuery = \"YouTube Developers Live\";\n }\n return inputQuery;\n }",
"public String getUserStringInput(String tips)\n {\n Scanner console = new Scanner(System.in);\n System.out.println(tips);\n return console.nextLine();\n }",
"public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\n\t}",
"public void processInput(String text);",
"String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"private String getClientInput() {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = null;\n try {\n input = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return input;\n }",
"public static String inputString(String p) {\n String s = \"\";\n\n do {\n System.out.print(p);\n s = in.nextLine();\n if (!s.isEmpty()) {\n break;\n } else {\n System.err.print(\"\\nCan't be left blank, enter again.\\n\");\n }\n } while (true);\n return s;\n }",
"String getFromText();",
"public void DisplayMessage(String massage);",
"private static String getResponseTo(String s) { // get user input as a string\r\n\t\tSystem.out.print(s);\r\n\t\treturn (scan.nextLine());\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"public static String getUserInput() {\n\t\tif (testType == null) {\n\t\t\tuserInput = inputScanner.nextLine();\n\t\t} else if (testType.equalsIgnoreCase(\"makeReady\")) {\n\t\t\tcreateEnterTestSet();\n\t\t\tif (enterTestCount < enterCount)\n\t\t\t\tuserInput = (String) makeReadyEnters.get(enterTestCount++);\n\t\t}else if (testType.equalsIgnoreCase(\"sequenceTest\")) {\n\t\t\tcreateWrongSequenceTestSet();\n\t\t\tif (sequenceTestCount<wrongSeqCount)\n\t\t\t\tuserInput = (String) wrongSequenceAnswers.get(sequenceTestCount++);\n\t\t}\n\t\telse if (testType.equalsIgnoreCase(\"randomKeyPress\")) {\n\t\t\tcreatePlayfulSet();\n\t\t\tif (randomTestCount<randomCount)\n\t\t\t\tuserInput = (String) randomKeys.get(randomTestCount++);\n\t\t}\n\n\t\treturn userInput;\n\t}",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"public static void getString()\n\t{\n\t\t\n\t\tScanner s=new Scanner(System.in);\n\t\t\n\t\t//Here Scanner is the class name, a is the name of object, \n\t\t//new keyword is used to allocate the memory and System.in is the input stream. \n\t\t\n\t\tSystem.out.println(\"Entered a string \");\n\t\tString inputString = s.nextLine();\n\t\tSystem.out.println(\"You entered a string \" + inputString );\n\t\tSystem.out.println();\n\t}",
"private String buildMessage(String message) {\n\t\tif(message != null && message.contains(\"@record\")) {\n\t\t\tmessage = message.replaceAll(\"@record\", answerUser);\n\t\t\trecorded.put(owner.id(), answerUser);\n\t\t}\n\t\t//o sistema substitui o texto !id pelo id do usuário da conversa\n\t\tif(message != null && message.contains(\"!id\")) {\n\t\t\tmessage = message.replaceAll(\"!id\", owner.id() + \"\");\n\t\t}\n\t\t//o sistema verifica se tem alguma gravacao para o código recebido\n\t\tif(message != null && message.contains(\"#find\")) {\n\t\t\tString gravacao = recorded.get(Integer.parseInt(userLatestAnswer.get(owner.id())));\n\t\t\t//se houver gravacao, o sistema informa qual o desejo do amigo secreto\n\t\t\tif(gravacao != null)\n\t\t\t\tmessage = message.replaceAll(\"#find\", gravacao);\n\t\t\t//caso nao haja gravacao, o sistema notifica o usuário da situacao\n\t\t\telse\n\t\t\t\tmessage = \"O código informado não corresponde ao desejo de um amigo secreto... por favor tente novamente\";\n\t\t}\n\n\t\treturn message;\n\t}",
"public String getTextInput(){\r\n\t\treturn textInput.getText();\r\n\t}",
"public static String getString() {\n // Variable declarations\n String str = \"\"; // String object to hold user input\n\n // Prompt user to enter str\n str = scnr.nextLine();\n\n // Return the string\n return str;\n }",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public static String SPgetMessageText(Context context){\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n StringBuilder sb = new StringBuilder();\n for(int i = 0 ; i<list.size(); i++){\n sb.append(list.get(i).getFunCharacter());\n }\n return sb.toString();\n }else{\n return InitialOutfit.startingText();\n }\n\n\n }",
"private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}",
"@Override\n public void onClick(View v) {\n String inputText = inputEditText.getText().toString();\n\n // Show the user's input text\n messageTextView.setText(inputText);\n\n }",
"public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }",
"void msgDisplay(String s);",
"private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }",
"String prompt(String message) throws IOException;",
"private static String getRoomCodeOrQ() {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter room code for more details \"\n\t + \"(or (q)uit to exit): \");\n String roomCode = input.next();\n return roomCode;\n }",
"public void sayText(String msg);",
"public static String readString(){\n\t\tstringInput = readInput();\n\t\treturn stringInput; \n\t}"
] |
[
"0.7298383",
"0.7241034",
"0.7168096",
"0.7132983",
"0.7067113",
"0.7053988",
"0.6989221",
"0.6937312",
"0.6904989",
"0.69008344",
"0.6866862",
"0.6851577",
"0.6827784",
"0.68019253",
"0.67775255",
"0.6641696",
"0.6591662",
"0.6563456",
"0.6556445",
"0.65532595",
"0.6540189",
"0.6536813",
"0.65231806",
"0.652165",
"0.65175736",
"0.65076774",
"0.6474393",
"0.6428388",
"0.64270353",
"0.6422711",
"0.6403086",
"0.6402129",
"0.6380849",
"0.6377269",
"0.6373033",
"0.63663095",
"0.63221425",
"0.6315948",
"0.6301271",
"0.6289507",
"0.62730646",
"0.6272728",
"0.62517995",
"0.62188697",
"0.6210637",
"0.6207519",
"0.6193068",
"0.6184096",
"0.6182232",
"0.6180829",
"0.6170619",
"0.61542416",
"0.614282",
"0.61407447",
"0.61363727",
"0.6134376",
"0.6127684",
"0.61243194",
"0.61077124",
"0.6106346",
"0.61001563",
"0.60826683",
"0.60826683",
"0.60826683",
"0.60826683",
"0.60826683",
"0.60826683",
"0.60826683",
"0.60826683",
"0.6074445",
"0.6069238",
"0.606258",
"0.6052289",
"0.60520977",
"0.60454166",
"0.60454166",
"0.60454166",
"0.60219425",
"0.60182613",
"0.60182613",
"0.60182613",
"0.60182613",
"0.60182613",
"0.60182613",
"0.60182613",
"0.60087943",
"0.6006371",
"0.6005608",
"0.600071",
"0.599807",
"0.5981246",
"0.5970277",
"0.5963181",
"0.59615475",
"0.594969",
"0.5948021",
"0.59476537",
"0.5942115",
"0.593097",
"0.5930096"
] |
0.7050632
|
6
|
Fetch all mails from the given folder and print first 30 of them
|
public void checkMails(String folderName) {
try {
Store store = getStore();
if (folderName.isBlank() || folderName.isEmpty())
folderName = "INBOX";
// create the folder object and open it
Folder emailFolder = store.getFolder(folderName);
emailFolder.open(Folder.READ_ONLY);
// retrieve the messages from the folder in an array and print it
Message[] messages = emailFolder.getMessages();
System.out.println("messages.length---" + messages.length);
for (int i = 0, n = messages.length; i < n && i < 30; i++) {
Message message = messages[i];
System.out.println("---------------------------------");
System.out.println("Email Number " + (i + 1));
System.out.println("Subject: " + message.getSubject());
System.out.println(
"From: " + ((message.getFrom() != null && message.getFrom().length != 0) ? message.getFrom()[0]
: "NULL"));
System.out.println("Text: " + message.getContent().toString());
}
// close the store and folder objects
emailFolder.close(false);
store.close();
} catch (Exception e) {
e.printStackTrace();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public LinkedList<Message> getAllEmails() {\r\n\t\t// Iterate over all folders in the IMAP account\r\n\t\ttry {\r\n\t\t\tf = store.getDefaultFolder().list();\r\n\t\t} catch (MessagingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tLinkedList<Message> messages = new LinkedList<Message>();\r\n\t\tfor (Folder fd : f) {\r\n\t\t\ttry {\r\n\t\t\t\t// Only open a folder if there are messages in it and if the\r\n\t\t\t\t// folder can be selected\r\n\t\t\t\tif (fd.getType() != 2) {\r\n\t\t\t\t\tif (fd.getMessageCount() != 0) {\r\n\t\t\t\t\t\tfd.open(Folder.READ_ONLY);\r\n\t\t\t\t\t\tmessages.addAll(Arrays.asList(receiveEmails(fd)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (MessagingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn messages;\r\n\t}",
"private Collection<Message> fetchMessages(Folder folder, Date minDate, Matcher matcher)\n\t\tthrows MessagingException {\n\t\t// Search term not fully implemented on mail servers, but can prevent fetching all email\n\t\tSearchTerm searchTerm = new SentDateTerm(ComparisonTerm.GT, minDate);\n\t\tMessage[] messages = folder.search(searchTerm);\n\t\tlogger.info(\"{} email(s) returned\", messages.length);\n\t\tbulkFetchMessageEnvelopes(folder, messages);\n\t\tList<Message> filteredMessages = new ArrayList<>();\n\t\tfor (Message message : messages) {\n\t\t\tDate sentDate = message.getSentDate();\n\t\t\tif (minDate.after(sentDate)) continue;\n\t\t\tif (!matcher.matches(message)) continue;\n\t\t\tfilteredMessages.add(message);\n\t\t}\n\t\treturn filteredMessages;\n\t}",
"private List<Email> fetchFromStore(Date minDate, Matcher matcher, Store store)\n\t\tthrows MessagingException {\n\t\tFolder folder = null;\n\t\ttry {\n\t\t\tlogger.debug(\"Opening folder\");\n\t\t\tfolder = openFolder(store);\n\t\t\tlogger.info(\"Fetching emails sent from {}\", minDate);\n\t\t\tCollection<Message> messages = fetchMessages(folder, minDate, matcher);\n\t\t\tlogger.debug(\"{} email(s) to process\", messages.size());\n\t\t\tList<Email> emails = createFromMessages(messages);\n\t\t\tlogger.debug(\"{} email(s) converted\", messages.size());\n\t\t\treturn emails;\n\t\t} finally {\n\t\t\tif (folder != null) folder.close(false);\n\t\t}\n\t}",
"private void bulkFetchMessageEnvelopes(Folder folder, Message[] messages)\n\t\tthrows MessagingException {\n\t\tFetchProfile fp = new FetchProfile();\n\t\tfp.add(FetchProfile.Item.ENVELOPE);\n\t\tfolder.fetch(messages, fp);\n\t}",
"Iterable<MailFolderDO> findAllByFolderId(long folderId);",
"public String downloadEmails(String protocol, String host, String port,\n String userName, String password) {\n\n Properties properties = getServerProperties(protocol, host, port);\n Properties props = getServerProperties(protocol, host, port);\n\n\n\n Session session = Session.getDefaultInstance(properties);\n\n try {\n\n\n //Setting IMAP session\n Session imapSession = Session.getInstance(props);\n\n Store store = imapSession.getStore(\"imap\");\n\n\n//Connect to server by sending username and password.\n//Example mailServer = imap.gmail.com, username = abc, password = abc\n //store.connect(mailServer, account.username, account.password);\n//Get all mails in Inbox Forlder\n //inbox = store.getFolder(\"Inbox\");\n //inbox.open(Folder.READ_ONLY);\n //Return result to array of message\n //Message[] result = inbox.getMessages();\n\n\n // connects to the message store\n //Store store = session.getStore(protocol);\n store.connect(\"imap.gmail.com\", 993, userName, password);\n\n // opens the inbox folder\n Folder folderInbox = store.getFolder(\"INBOX\");\n folderInbox.open(Folder.READ_ONLY);\n\n // fetches new messages from server\n Message[] messages = folderInbox.getMessages();\n\n for (int i = 0; i < messages.length; i++) {\n Message msg = messages[i];\n Address[] fromAddress = msg.getFrom();\n String from = fromAddress[0].toString();\n String subject = msg.getSubject();\n String toList = parseAddresses(msg\n .getRecipients(Message.RecipientType.TO));\n String ccList = parseAddresses(msg\n .getRecipients(Message.RecipientType.CC));\n String sentDate = msg.getSentDate().toString();\n\n String contentType = msg.getContentType();\n String messageContent = \"\";\n\n if (contentType.contains(\"text/plain\")\n || contentType.contains(\"text/html\")) {\n try {\n Object content = msg.getContent();\n if (content != null) {\n messageContent = content.toString();\n }\n } catch (Exception ex) {\n messageContent = \"[Error downloading content]\";\n ex.printStackTrace();\n }\n }\n\n // print out details of each message\n System.out.println(\"Message #\" + (i + 1) + \":\");\n System.out.println(\"\\t From: \" + from);\n System.out.println(\"\\t To: \" + toList);\n System.out.println(\"\\t CC: \" + ccList);\n System.out.println(\"\\t Subject: \" + subject);\n System.out.println(\"\\t Sent Date: \" + sentDate);\n System.out.println(\"\\t Message: \" + messageContent);\n\n return \"lista messaggi\";\n }\n\n // disconnect\n folderInbox.close(false);\n store.close();\n\n } catch (NoSuchProviderException ex) {\n System.out.println(\"No provider for protocol: \" + protocol);\n ex.printStackTrace();\n } catch (MessagingException ex) {\n System.out.println(\"Could not connect to the message store\");\n ex.printStackTrace();\n return ex.getMessage();\n }\n return \"default\";\n }",
"public void mailList() {\n for (int index = 0; index < emails.size(); index++) {\n Mensagem mensagem = emails.get(index);\n System.out.println(\"Email \" + index + \": \");\n System.out.println(\"De: \" + mensagem.remetente);\n System.out.println(\"Para: \" + mensagem.destinatario + \"\\n\");\n }\n }",
"private static JSONArray getMailMessageList(String tokenId) {\n\n /*\n url for get message list of DevServiceUpdate using filter label from GmailAPI\n maxResults parameter value can be changed\n */\n String url = \"https://www.googleapis.com/gmail/v1/users/me/messages?labelIds=Label_28&maxResults=10\";\n\n JSONArray jsonArray = null;/* to store the data to return */\n try {\n CloseableHttpClient httpClient = HttpClientBuilder.create().build();\n\n HttpGet request = new HttpGet(url);/* make request for the url to get message list */\n request.addHeader(\"content-type\", \"application/json\");\n request.addHeader(\"Authorization\", \"Bearer \" + tokenId);/* give access to request the API */\n\n HttpResponse response = httpClient.execute(request);\n String responseBody = EntityUtils.toString(response.getEntity(), \"UTF-8\");\n JSONObject jsonObject = new JSONObject(responseBody);/* change the request as a json object */\n\n jsonArray = new JSONArray();\n int index = 0;\n jsonArray.put(index, jsonObject);/* store the response body as json object into the json array */\n\n logger.log(Level.INFO,response.getStatusLine().toString());\n logger.log(Level.INFO,response.toString());\n\n String nextPageToken = \"\";/*get nextPageTokenId from response body for pagination purpose*/\n if (!jsonObject.isNull(\"nextPageToken\")) {\n nextPageToken = jsonObject.get(\"nextPageToken\").toString();\n }\n\n /*pagination to get all results*/\n while (!jsonObject.isNull(\"nextPageToken\")) {\n index++;\n String urlNext = \"https://www.googleapis.com/gmail/v1/users/me/messages?labelIds=Label_28&\" +\n \"maxResults=10&pageToken=\" + nextPageToken;\n\n HttpGet requestNext = new HttpGet(urlNext);/* make request to get next page of message list */\n requestNext.addHeader(\"content-type\", \"application/json\");\n requestNext.addHeader(\"Authorization\", \"Bearer \" + tokenId);\n\n HttpResponse responseNext = httpClient.execute(requestNext);\n String responseBodyNext = EntityUtils.toString(responseNext.getEntity(), \"UTF-8\");\n jsonObject = new JSONObject(responseBodyNext);/* change the request as a json object */\n jsonArray.put(index, jsonObject);/* store the response body as json object into the json array */\n\n logger.log(Level.INFO,responseNext.getStatusLine().toString());\n logger.log(Level.INFO,responseNext.toString());\n\n if (!jsonObject.isNull(\"nextPageToken\")) {\n nextPageToken = jsonObject.get(\"nextPageToken\").toString();\n }\n }\n\n } catch (IOException exception) {\n logger.log(Level.WARNING,exception.getMessage());\n }\n\n return jsonArray;\n }",
"protected List getMessagesInFolder(String pathKey) throws Throwable\n {\n \tFile folder = FileUtil.getFile(pathKey, \"\"); //NSL20051027 Get folder from FileUtil\n File files[]=folder.listFiles();\n if(files!=null && files.length>0)\n return Arrays.asList(files);\n return Collections.EMPTY_LIST;\n }",
"public void processMail() {\n\t\tmessageList.clear();\n\t\tSession session = null;\n\t\tStore store = null;\n\t\tMessage message = null;\n\t\tMessage[] messages = null;\n\t\tObject messagecontentObject = null;\n\t\tString sender = null;\n\t\tString replyTo = null;\n\t\tString subject = null;\n\t\tMultipart multipart = null;\n\t\tPart part = null;\n\t\tString contentType = null;\n\t\tProperties properties = System.getProperties();\n\t\tsession = Session.getDefaultInstance(properties, new javax.mail.Authenticator(){\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication(){\n\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t}\n\t\t});\n\t\t\n\t\ttry {\n\t\t\tstore = session.getStore(\"imaps\");\n\t\t\t\n\t\t\tstore.connect(\"imap.gmail.com\", username,\n\t\t\t\t\tpassword);\n\t\t\tSystem.out.println(\"Login Successful\");\n\n\t\t\t// Get a handle on the default folder\n\t\t\tfolder = store.getDefaultFolder();\n\n\t\t\t//printData(\"Getting the Inbox folder.\");\n\n\t\t\t// Retrieve the \"Inbox\"\n\t\t\tfolder = folder.getFolder(\"inbox\");\n\n\t\t\t// Reading the Email Index in Read / Write Mode\n\t\t\tfolder.open(Folder.READ_WRITE);\n\n\t\t\t// Retrieve the messages\n\t\t\tmessages = folder.getMessages();\n\n\t\t\t// Loop over all of the messages\n\t\t\tfor (int messageNumber = 0; messageNumber < messages.length; messageNumber++) {\n\t\t\t\t// Retrieve the next message to be read\n\t\t\t\tmessage = messages[messageNumber];\n\n\t\t\t\t// Retrieve the message content\n\t\t\t\tmessagecontentObject = message.getContent();\n\t\t\t\tDate messageDate = message.getReceivedDate();\n\n\t\t\t\t// Determine email type\n\t\t\t\tif (messagecontentObject instanceof Multipart) {\n\t\t\t\t\t//printData(\"Found Email with Attachment\");\n\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t.getPersonal();\n\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\n\t\t\t\t\t// If the \"personal\" information has no entry, check the\n\t\t\t\t\t// address for the sender information\n\t\t\t\t\t//printData(\"If the personal information has no entry, check the address for the sender information.\");\n\n\t\t\t\t\tif (sender == null) {\n\t\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t\t.getAddress();\n\t\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\t\t\t\t\t\t//printData(\"sender in NULL. Printing Address:\" + sender);\n\t\t\t\t\t}\n\t\t\t\t\t//printData(\"Sender:\" + sender);\n\n\t\t\t\t\t// Get the subject information\n\t\t\t\t\tsubject = message.getSubject();\n\n\t\t\t\t\t//printData(\"Subject:\" + subject);\n\n\t\t\t\t\t// Retrieve the Multipart object from the message\n\t\t\t\t\tmultipart = (Multipart) message.getContent();\n\n\t\t\t\t\t// printData(\"Retrieve the Multipart object from the message\");\n\t\t\t\t\tString text = \"\";\n\t\t\t\t\t// Loop over the parts of the email\n\t\t\t\t\tfor (int i = 0; i < multipart.getCount(); i++) {\n\t\t\t\t\t\t// Retrieve the next part\n\t\t\t\t\t\tpart = multipart.getBodyPart(i);\n\n\t\t\t\t\t\t// Get the content type\n\t\t\t\t\t\tcontentType = part.getContentType();\n\n\t\t\t\t\t\t// Display the content type\n\t\t\t\t\t\t// printData(\"Content: \" + contentType);\n\n\t\t\t\t\t\tif (contentType.startsWith(\"TEXT/PLAIN\")) {\n\t\t\t\t\t\t\ttext = part.getContent().toString();\n\t\t\t\t\t\t\t// printData(\"---------reading content type text/plain mail -------------\");\n\t\t\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Retrieve the file name\n\t\t\t\t\t\t\tString fileName = part.getFileName();\n\t\t\t\t\t\t\t// printData(\"retrive the fileName=\"+ fileName);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmessageList.add(new MyMessage(message, sender, replyTo, subject, text, messageDate));\n\t\t\t\t} else {\n\t\t\t\t\t//printData(\"Found Mail Without Attachment\");\n\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t.getPersonal();\n\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\n\t\t\t\t\t// If the \"personal\" information has no entry, check the\n\t\t\t\t\t// address for the sender information\n\t\t\t\t\t//printData(\"If the personal information has no entry, check the address for the sender information.\");\n\n\t\t\t\t\tif (sender == null) {\n\t\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t\t.getAddress();\n\t\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\t\t\t\t\t\t//printData(\"sender in NULL. Printing Address:\" + sender);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get the subject information\n\t\t\t\t\tsubject = message.getSubject();\n\t\t\t\t\t//printData(\"subject=\" + subject);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Close the folder\n\t\t\tfolder.close(true);\n\n\t\t\t// Close the message store\n\t\t\tstore.close();\n\t\t} catch (AuthenticationFailedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (FolderClosedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (FolderNotFoundException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchProviderException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (ReadOnlyFolderException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (StoreClosedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"java.util.List<com.message.MailProto.MailInboxMsg> \n getInboxPageListList();",
"private Collection<String> searchMessagesIntoViewFile(String folderName, String viewName){\r\n\t\tCollection<String> res = new HashSet<String>();\r\n\t\tFileManager fileMngr = new FileManager(viewsFoldersPath+\"/\"+folderName+\"/\"+viewName);\r\n\t\tString content;\r\n\t\tint codeBeginIndex, codeEndIndex; //i18n&l10n start and end indexes\r\n\t\t\r\n\t\t//code=codigoi18n&l10n\r\n\t\tcontent = fileMngr.readFile();\r\n\t\tcodeBeginIndex = content.indexOf(\"code=\")+6;\r\n\t\twhile(true){\r\n\t\t\tcodeEndIndex = content.indexOf(\"\\\"\", codeBeginIndex);\r\n\t\t\tres.add(content.substring(codeBeginIndex, codeEndIndex));\r\n\t\t\tcodeBeginIndex = content.indexOf(\"code=\", codeEndIndex)+6;\r\n\t\t\t\r\n\t\t\tif(codeBeginIndex<codeEndIndex) break;\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}",
"protected void loadCachedFolderMessages() {\r\n boolean dispOrder = MailSettings.getInstance().getGlobalConfig().getDispOrder();\r\n FolderMessage[] messages = folderMessageCache.getFolderMessages(folderTreeItem);\r\n if(messages.length > 0) {\r\n // Add all the messages that have been loaded from the\r\n // cache. Server-side messages will be removed from the\r\n // set later on.\r\n for(int i=0; i<messages.length; i++) {\r\n orphanedMessageSet.put(messages[i].getMessageToken().getMessageUid(), messages[i]);\r\n }\r\n \r\n // If the cached messages have already been loaded, then we can\r\n // skip notifying mail store listeners. However, we still have to\r\n // add them to the orphan set, as seen above.\r\n if(!cacheLoaded) {\r\n if(dispOrder) {\r\n for(int i=0; i<messages.length; i+=5) {\r\n int endIndex = Math.min(i + 5, messages.length);\r\n FolderMessage[] subset = new FolderMessage[endIndex - i];\r\n for(int j=0; j<subset.length; j++) {\r\n subset[j] = messages[i + j];\r\n }\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, subset, false, false);\r\n }\r\n }\r\n else {\r\n for(int i=messages.length-1; i >= 0; i-=5) {\r\n int startIndex = Math.max(i - 4, 0);\r\n FolderMessage[] subset = new FolderMessage[i - startIndex + 1];\r\n for(int j=0; j<subset.length; j++) {\r\n subset[j] = messages[i - j];\r\n }\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, subset, false, false);\r\n }\r\n }\r\n cacheLoaded = true;\r\n }\r\n }\r\n }",
"@GetMapping(FilePathConstants.MAIL_PENDING_LIST)\n\t@ResponseBody\n\tpublic ResponseEntity<JSONResponse> getAllMailList() {\n\t\t\n\t\tJSONResponse jsonResponse = new JSONResponse();\n\n\t\ttry {\n\n\t\t\tmailSenderService.getAllMailList();\n\t\t\t\n\t\t\tjsonResponse.setResponseCode(CommonConstant.SUCCESS_CODE);\n\t\t\treturn new ResponseEntity<>(jsonResponse, HttpStatus.OK);\n\t\t} catch (CommonException e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.error(\"error\", e);\n\t\t\tjsonResponse.setResponseCode(CommonConstant.FAILURE_CODE);\n\t\t\tjsonResponse.setResponseMessage(e.getMessage());\n\t\t\tjsonResponse.setSuccesObject(CommonConstant.NULL);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.error(\"error\", e);\n\t\t\tjsonResponse.setResponseCode(CommonConstant.ERROR_CODE);\n\t\t\tjsonResponse.setSuccesObject(CommonConstant.NULL);\n\t\t}\n\t\treturn new ResponseEntity<>(jsonResponse, HttpStatus.OK);\n\n\t}",
"public Message[] getMessages() throws MessagingException, FileNotFoundException, IOException {\n\n\n\t\ttry {\n\t\t\tmessages = folder.getMessages();\n\t\t} catch (MessagingException e) {\n\t\t\tSystem.err.println(e.getMessage());\n\n\t\t}\n\t\t\n\t\tObject content;\n\t\tString type; // type of messages contant\n\t\tfor (int i = 0; i < messages.length; i++) {\n\n\t\t\tArrayList<String> toAddress = new ArrayList();\n\t\t\tAddress addressTO[] = messages[i].getRecipients(Message.RecipientType.TO);\n\t\t\tfor (int j = 0; j < addressTO.length; j++) {\n\n\t\t\t\ttoAddress.add(addressTO[j].toString());\n\t\t\t}\n\n\t\t\tArrayList<String> copyOnAddress = new ArrayList();\n\t\t\tif (messages[i].getRecipients(Message.RecipientType.CC) != null) {\n\t\t\t\tAddress addressCC[] = messages[i].getRecipients(Message.RecipientType.CC);\n\t\t\t\tif (addressCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressCC.length; j++) {\n\n\t\t\t\t\t\tcopyOnAddress.add(addressCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> copyHideAddress = new ArrayList();\n\t\t\tif ((messages[i].getRecipients(Message.RecipientType.BCC)) != null) {\n\t\t\t\tAddress addressBCC[] = messages[i].getRecipients(Message.RecipientType.BCC);\n\n\t\t\t\tif (addressBCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressBCC.length; j++) {\n\n\t\t\t\t\t\tcopyHideAddress.add(addressBCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<String> fromAddress = new ArrayList();\n\t\t\tif (messages[i].getFrom() != null) {\n\t\t\t\tAddress addressFrom[] = messages[i].getFrom();\n\n\t\t\t\tif (addressFrom.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressFrom.length; j++) {\n\t\t\t\t\t\tfromAddress.add(addressFrom[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontent = messages[i].getContent();\n\t\t\tif (content instanceof String) {\n\t\t\t\ttype = \"text\"; // set message type text\n\t\t\t\t\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, content.toString()));\n\t\t\t}\n\t\t\tif (content instanceof Multipart) {\n\t\t\t\tMultipart mp;\n\t\t\t\tBodyPart bodyPart = null;\n\t\t\t\ttype = \"html\";\n\t\t\t\tfor (int j = 0; j < ((Multipart) content).getCount(); j++) {\n\t\t\t\t\tmp = (Multipart) content;\n\t\t\t\t\tbodyPart = mp.getBodyPart(j);\n\t\t\t\t}\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, bodyPart.getContent().toString()));\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\n\t\tnew SaveReadFile().saveMessages(messagesListInbox, \"Inbox\");\n\t\treturn messages;\n\t}",
"private void getDriveContents() {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n // get only the folders in the root directory of drive account\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }\n });\n t.start();\n }",
"public String syncEmail() throws MessagingException, IOException, InterruptedException {\n int num = 0;\n String folderName = \"inbox\";\n List<String> listEmailUIDDatabase = emailDao.getAllUIDByUserID(getUserId(), folderName);\n // get all UID from mail server storing in a list\n\n List<String> listEmailUIDServer = new ArrayList<String>();\n\n Store store = getStore();\n if (store != null) {\n POP3Folder fol = (POP3Folder) store.getFolder(folderName);\n fol.open(Folder.READ_WRITE);\n FetchProfile profile = new FetchProfile();\n profile.add(UIDFolder.FetchProfileItem.UID);\n Message[] messages = fol.getMessages();\n fol.fetch(messages, profile);\n int messNum = fol.getMessageCount();\n for (int i = 1; i <= messNum; i++) {\n// if ((i % 30) == 0) {\n// fol.close(true);\n// store.close();\n// // Thread.sleep(2000);\n// store = getStore();\n// fol = (POP3Folder) store.getFolder(folderName);\n// fol.open(Folder.READ_WRITE);\n// fol.fetch(fol.getMessages(), profile);\n// }\n try {\n Message me = fol.getMessage(i);\n String uid = fol.getUID(me);\n if (uid != null) {\n listEmailUIDServer.add(uid);\n if (!listEmailUIDDatabase.contains(uid)) {\n emailDao.insert(transformEmail(me, uid, null));\n num++;\n }\n }\n } catch (Exception ex) {\n LogUtil.addLog(ex);//binhnt sonar a160901\n //System.out.println(en.getMessage());\n// log.error(ex.getMessage());\n }\n if (i != messNum) {\n jsonDataGrid.setCustomInfo(\"still have\");\n } else {\n jsonDataGrid.setCustomInfo(\"finish\");\n }\n if (num == 5) {\n break;\n }\n }\n// for (int i = 0; i < messages.length; i++) {\n// String uid = fol.getUID(messages[i]);\n// listEmailUIDServer.add(uid);\n// //find a new mail\n// if (!listEmailUIDDatabase.contains(uid)) {\n//\n// emailDao.insert(transformEmail(messages[i], uid));\n//\n// }\n// }\n // find deleted mail\n for (int i = 0; i < listEmailUIDDatabase.size(); i++) {\n String st = listEmailUIDDatabase.get(i);\n if (!listEmailUIDServer.contains(st)) {\n // neu uid ko co tren server --> deleted\n emailDao.deleteByUid(getUserId(), st, folderName);\n }\n }\n fol.close(true);\n store.close();\n } else {\n jsonDataGrid.setCustomInfo(\"fail connect to server\");\n }\n onSearch();\n return GRID_DATA;\n }",
"void listingFiles(String remoteFolder);",
"public static void main(String[] args) throws Exception\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\mahesh251\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//SWD code can use browser driver software to give required effect in browser\n\t\tChromeDriver driver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\t//lunch site under testing(SUT)\n\t\tdriver.get(\"http://www.gmail.com\");\n\t\tThread.sleep(5000);\n\t\t//locate and fill userid\n\t\tdriver.findElement(By.name(\"identifier\")).sendKeys(\"chanikyareddy231\");\n\t\t//locate and click \"Next\" button\n\t\tdriver.findElement(By.xpath(\"//button[@type='button']/child::div[2]\")).click();\n\t\tThread.sleep(5000);\n\t\t//locate and fill password\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Chanikya231\");\n\t\t//locate and click \"Next\" button\n\t driver.findElement(By.xpath(\"//div[@id='passwordNext']/descendant::div[3]\")).click();\n\t Thread.sleep(15000);\n\t //mailbox testing via pagenation\n\t int eamc=0;\n\t int eurmc=0;\n\t int ermc=0;\n\t while(true)\n\t {\n\t \tWebElement mailbox=driver.findElement(By.xpath(\"(//table)[7]/tbody\"));\n\t \tList<WebElement> mails=mailbox.findElements(By.xpath(\"child::tr\"));\n\t \teamc=eamc+mails.size();\n\t \tfor(WebElement mail:mails)\n\t \t{\n\t \t\tWebElement e=mail.findElement(By.xpath(\"child::td[4]/div[1]\"));\n\t \t\tString op=(String) driver.executeScript(\"return(arguments[0].textContent);\", e); \n\t \t if(op.startsWith(\"unread\"))\n\t \t\t{\n\t \t\t\teurmc++;\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\termc++;\n\t \t\t}\n\t \t}\t\n\t \t//Go to next page\n\t \ttry\n\t \t{\n\t \t\tif(driver.findElement(By.xpath(\"//div[@aria-label='Older']\")).getAttribute(\"aria-disabled\").equals(\"true\"))\n\t \t\t{\n\t \t\t\tbreak; //terminate from loop,bcz we are in last page\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tdriver.findElement(By.xpath(\"//div[@aria-label='Older']\")).click();\n\t \t\t\tThread.sleep(5000);\n\t \t\t}\n\t \t}\n\t \tcatch(NullPointerException ex)\n\t \t{\n\t \t\tdriver.findElement(By.xpath(\"//div[@aria-label='Older']\")).click();\n\t \t\tThread.sleep(5000);\n\t \t}\n\t }\n\t System.out.println(\"Total count of all mails is \"+eamc);\n\t System.out.println(\"Total count of unread mails is \"+eurmc);\n\t System.out.println(\"Total count of read mails is \"+ermc);\n\t //do logout\n\t driver.findElement(By.xpath(\"//a[starts-with(@aria-label,'Google Account')]/child::*\")).click();\n\t Thread.sleep(5000);\n\t driver.findElement(By.linkText(\"Sign out\")).click();\n\t Thread.sleep(5000);\n\t //close site\n\t driver.close();\n\t}",
"private List<Email> fetchEmail(Date minDate, Matcher matcher) throws MessagingException {\n\t\tStore store = null;\n\t\ttry {\n\t\t\tlogger.debug(\"Opening store\");\n\t\t\tstore = openStore();\n\t\t\treturn fetchFromStore(minDate, matcher, store);\n\t\t} finally {\n\t\t\tif (store != null) store.close();\n\t\t}\n\t}",
"public void crawl(String dir, String domain, int limit, IProgressMonitor monitor, boolean[] jsonFilter){\n\t\tint downloadCount = 0;\n\t\tjsonFactory = new JsonFactory();\n\t\tthis.monitor = monitor;\n\t\tFile streamFile = new File(dir+File.separator+domain+\".json\");\n\t\ttry {\n\t\t\tjsonGenerator = jsonFactory.createGenerator(streamFile, JsonEncoding.UTF8);\n\t\t\tjsonGenerator.useDefaultPrettyPrinter();\n\t\t\tjsonGenerator.writeStartArray();\n\t\t} catch (IOException e2) {\n\t\t\te2.printStackTrace();\n\t\t}\n\t\tint count = 1;\n\t\tint year = 2016;\n\t\tFile f=null;\n\t\twhile(true){\n\t\t\tif(limit!=-1 && count>limit)\n\t\t\t\tbreak;\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString name = FrontierConstants.site2Link.get(domain)+\".\"+year+\".\"+String.format(\"%05d\", count);\n\t\t\t\tf = new File(dir+File.separator+name+\".txt\");\n\t\t\t\tString site = IFrontierConstants.BASE_URL+name+\"/full\";\n\t\t\t\tDocument d = Jsoup.connect(site).get();\n\t\t\t\t//Document docJournalAbstract = Jsoup.parse(d.body().child(2).child(4).child(0).child(1).child(1).child(0).child(0).child(0).child(1).toString());\n\t\t\t\tElements docJournalAbstract = d.select(\"div.JournalAbstract\");\n\t\t\t\tElements title = docJournalAbstract.select(\"h1\");\n\t\t\t\tElements abs = docJournalAbstract.select(\"p\");\n\t\t\t\tConsoleView.printlInConsoleln(\"Writing topic: \"+ Jsoup.parse(title.toString()).text());\n\t\t\t\tjsonGenerator.writeStartObject();\n\t\t\t\tif(jsonFilter[0])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"title\", Jsoup.parse(title.toString()).text());\n\t\t\t\tif(jsonFilter[1])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"abstract_body\", Jsoup.parse(abs.toString()).text());\n\t\t\t\t//String abstractBody = d.body().child(2).child(4).child(0).child(1).child(1).child(0).child(0).child(0).child(2).toString();\n\t\t\t\tString abstractBody = d.select(\"div.JournalFullText\").toString();\n\t\t\t\tint i = abstractBody.indexOf(\"References\");\n\t\t\t\tif(i != -1){\n\t\t\t\tString journalBody = abstractBody.substring(0, i);\n\t\t\t\tif(jsonFilter[2])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"journal_body\", Jsoup.parse(journalBody).text());\n\t\t\t\tif(jsonFilter[3])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"references\", Jsoup.parse(abstractBody.substring(i+10)).text());\n\t\t\t\t}else{\n\t\t\t\t\tif(jsonFilter[2])\n\t\t\t\t\t\tjsonGenerator.writeObjectField(\"journal_body\", Jsoup.parse(abstractBody).text());\n\t\t\t\t}\n\t\t\t\tjsonGenerator.writeEndObject();\n\t\t\t\tcount++;\n\t\t\t\tdownloadCount++;\n\t\t\t\tmonitor.worked(1);\n\t}catch(HttpStatusException e1){\n\t\tf.delete();\n\t\tif(e1.getStatusCode() == 412){\n\t\t\tcount++;\n\t\t\tcontinue;\n\t\t}\n\t\telse if(count != 1){\n\t\t\tyear--;\n\t\t\tcount = 1; \n\t\t\tcontinue;\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n\t}\n\t\ttry {\n\t\t\tjsonGenerator.writeEndArray();\n\t\t\tjsonGenerator.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConsoleView.printlInConsoleln(downloadCount+\" file(s) downloaded for \"+domain);\n}",
"private C_GetMailPageList(Builder builder) {\n super(builder);\n }",
"@RequestMapping(\"/allEmails.html\")\n\tpublic String MailList() {\n\t\t\n\t\tif(Email.Email() > 0) {\n\t\t\t//opens the newly created html file\n\t\t\treturn \"allEmails.html\";\n\t\t}\n\t\telse {\n\t\t\treturn \"noEmail.html\";\n\t\t}\n\t}",
"public void pullingEmails() {\n new Thread(() -> {\n mySqlConn sql = new mySqlConn();\n EMAILS_LIST = sql.getAllEmailIDs(null);\n\n TextFields.bindAutoCompletion(txt_to, EMAILS_LIST);\n TextFields.bindAutoCompletion(txt_cc, EMAILS_LIST);\n TextFields.bindAutoCompletion(txt_bcc, EMAILS_LIST);\n }).start();\n }",
"private static void ReadDWH_mail()throws Exception {\n List<String> l_url_mail = new ArrayList<String>();\n l_url_mail.add(\"http://nifi01s.cyberservices.local:8080/nifi-api/process-groups/ef7825d2-015f-1000-51ab-1024c6250f6e/processors\");//Mail_dint\n\n String inputLine;\n int i_x = 1000;\n int j_y = 1000;\n\n BufferedReader in = null;\n Locations loc= new Locations();\n List<String> l_loc = new ArrayList<String>();\n l_loc=loc.getLocations();\n for (int k = 0; k < l_url_mail.size(); k++) {\n URL oracle = new URL(\"http://dwh-schemaservice-stage.cyberservices.local:2876/schema-repo\");\n in = new BufferedReader(new InputStreamReader(oracle.openStream()));\n while ((inputLine = in.readLine()) != null) {\n if (inputLine.contains(\"mail_\")) {\n SendConsumer(\"Consumer_\" + inputLine, \"stg_\" + inputLine+\"_batch\", 10, (10) + i_x, l_url_mail.get(k), l_loc.get(k));\n SendMerge(\"MergeContent_\" + inputLine + \"_hour\", 600.0, (10) + i_x, \"* 04 * * * ?\", \"CRON_DRIVEN\", l_url_mail.get(k));\n SendMerge(\"MergeContent_\" + inputLine + \"_day\", 600.0, 400 + i_x, \"10 sec\", \"TIMER_DRIVEN\", l_url_mail.get(k));\n SendPutHdfs(\"PutHdfs_\" + inputLine + \"_hour\", 1200, (10) + i_x, \"/user/talend/staging/\" + inputLine+\"\"+l_loc.get(k)+\"/merge\", l_url_mail.get(k));\n SendPutHdfs(\"PutHdfs_\" + inputLine + \"_error\", 600.0, (200) + i_x, \"/user/talend/logging/nifi/\" + inputLine + \"_batch\"+\"\"+l_loc.get(k), l_url_mail.get(k));\n SendPutHdfs(\"PutHdfs_\" + inputLine + \"_failure\", 1200, (200) + i_x, \"/user/talend/logging/nifi/\" + inputLine + \"_batch\"+\"\"+l_loc.get(k), l_url_mail.get(k));\n SendPutHdfs(\"PutHdfs_\" + inputLine + \"_day\", 1200, (400) + i_x, \"/user/talend/staging/\" + inputLine+\"\"+l_loc.get(k)+\"/merge\", l_url_mail.get(k));\n SendGetHdfsDay(\"GetHdfs_\" + inputLine + \"_day\", 10, (400) + i_x, \"/user/talend/staging/\" + inputLine+\"\"+l_loc.get(k)+\"/merge\", \"* 14 23 * * ?\", \"CRON_DRIVEN\", l_url_mail.get(k));\n\n SendGetHdfsDay(\"GetHdfs_\" + inputLine + \"_base\", -600, (10) + i_x, \"/user/talend/staging/\" + inputLine+\"\"+l_loc.get(k)+\"/merge\", \"0 14 0 ? * MON *\", \"CRON_DRIVEN\", l_url_mail.get(k));\n SendMerge(\"MergeContent_\" + inputLine + \"_base\", -600.0, 200 + i_x, \"10 sec\", \"TIMER_DRIVEN\", l_url_mail.get(k));\n SendPutHdfs(\"PutHdfs_\" + inputLine + \"_base\", -600, (400) + i_x, \"/user/talend/staging/\" + inputLine+\"\"+l_loc.get(k)+\"/base/\"+\"${now():format('yyyy-ww')}\", l_url_mail.get(k));\n i_x = i_x + 1000;\n j_y = j_y + 1000;\n }\n }\n }\n in.close();\n }",
"public List<Long> retrieveFolderContents(long folderId, PageParameters pageParameters, boolean visibleOnly) {\n try {\n String sortString;\n switch (pageParameters.getSortField()) {\n default:\n case CREATED:\n sortString = \"id\";\n break;\n\n case STATUS:\n sortString = \"status\";\n break;\n\n case NAME:\n sortString = \"name\";\n break;\n\n case PART_ID:\n sortString = \"partNumber\";\n break;\n\n case TYPE:\n sortString = \"recordType\";\n break;\n }\n\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n List<Predicate> predicates = getPredicates(entry, pageParameters.getFilter());\n predicates.add(getBuilder().equal(from.get(\"id\"), folderId));\n\n if (visibleOnly) {\n predicates.add(entry.get(\"visibility\").in(Arrays.asList(Visibility.OK.getValue(),\n Visibility.REMOTE.getValue())));\n }\n query.select(entry.get(\"id\")).where(predicates.toArray(new Predicate[0]));\n query.orderBy(pageParameters.isAscending() ? getBuilder().asc(entry.get(sortString)) :\n getBuilder().desc(entry.get(sortString)));\n return currentSession().createQuery(query).setFirstResult(pageParameters.getOffset())\n .setMaxResults(pageParameters.getLimit()).list();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }",
"@Bugs( ids = \"57468\")\n\t@Test(\tdescription = \"Verify collapsed folders remain collapsed when getting mail\",\n\t\t\tgroups = { \"functional\" })\n\tpublic void Bug57468_01() throws HarnessException {\n\t\tFolderItem inbox = FolderItem.importFromSOAP(app.zGetActiveAccount(), SystemFolder.Inbox);\n\t\tZAssert.assertNotNull(inbox, \"Verify the inbox is available\");\n\n\t\tString foldername = \"folder\" + ZmailSeleniumProperties.getUniqueString();\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\"<CreateFolderRequest xmlns='urn:zmailMail'>\" +\n \t\"<folder name='\"+ foldername +\"' l='\"+ inbox.getId() +\"'/>\" +\n \"</CreateFolderRequest>\");\n\n\t\tGeneralUtility.syncDesktopToZcsWithSoap(app.zGetActiveAccount());\n\t\tapp.zPageMain.zWaitForDesktopLoadingSpinner(5000);\n\n\t\t// Collapse all the mail folder trees\n\t\tapp.zTreeMail.zCollapseAll();\n\n\t\t// Send a message to the test account\n\t\tZmailAccount.AccountA().soapSend(\n\t\t\t\t\t\"<SendMsgRequest xmlns='urn:zmailMail'>\" +\n\t\t\t\t\t\t\"<m>\" +\n\t\t\t\t\t\t\t\"<e t='t' a='\"+ app.zGetActiveAccount().EmailAddress +\"'/>\" +\n\t\t\t\t\t\t\t\"<su>\"+ \"subject\" + ZmailSeleniumProperties.getUniqueString() +\"</su>\" +\n\t\t\t\t\t\t\t\"<mp ct='text/plain'>\" +\n\t\t\t\t\t\t\t\t\"<content>content\" + ZmailSeleniumProperties.getUniqueString() +\"</content>\" +\n\t\t\t\t\t\t\t\"</mp>\" +\n\t\t\t\t\t\t\"</m>\" +\n\t\t\t\t\t\"</SendMsgRequest>\");\n\n\t\t// Click Get Mail button\n\t\tapp.zPageMail.zToolbarPressButton(Button.B_GETMAIL);\n\n\t\t// Verify the inbox remains collapsed\n\t\tList<FolderItem> folders = app.zTreeMail.zListGetFolders();\n\t\tFolderItem found = null;\n\n\t\tfor (FolderItem f : folders) {\n\t\t // FolderItem id is in this format: b79df08f-e04e-4645-957b-4d773562f509:2\n\t\t // Thus, need to split the String with \";\" and pick the second item to compare\n\t\t // with the folder Item ID obtained from SOAP\n\t\t if ( f.getId().split(\":\")[1].equals(inbox.getId()) ) {\n\t\t\t\tfound = f;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tZAssert.assertNotNull(found, \"Verify the inbox is in the folder tree\");\n\t\t\n\t\tZAssert.assertTrue(app.zTreeMail.isCollapsed(),\n\t\t \"Verify that the mail folder tree is collapsed\");\n\t\t\n\t\t\n\t}",
"private S_GetMailPageList(Builder builder) {\n super(builder);\n }",
"public List<BarrioCovid> readAll(String email);",
"private List<File> getContents(String whichFiles) {\n List<File> result = new ArrayList<File>();\n Files f1 = mService.files();\n Files.List request = null;\n\n do {\n try { \n request = f1.list();\n // get the language folders from drive\n request.setQ(whichFiles);\n FileList fileList = request.execute();\n \n result.addAll(fileList.getItems());\n request.setPageToken(fileList.getNextPageToken());\n } catch (UserRecoverableAuthIOException e) {\n startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);\n } catch (IOException e) {\n e.printStackTrace();\n if (request != null) \n request.setPageToken(null);\n }\n } while ((request.getPageToken() != null) \n && (request.getPageToken().length() > 0));\n \n return result;\n }",
"private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }",
"public void getUsersByMonth() throws IOException, SystemException {\n\n List<UserSubscribeDTO> usersList = planReminderService\n .getUsersByMonth();\n LOGGER.info(\"userLIst Recievecd:\" + usersList);\n shootReminderMails(usersList);\n\n }",
"public static void main(String[] args) throws IOException, ParseException, MessagingException, ClassNotFoundException {\n Gmail service = getGmailService();\n \n // Fetch all COL Trading Confirmation Messages\n String user = \"me\";\n String pageToken = \"\";\n List<Message> messages = new ArrayList<>();\n do {\n \tif (pageToken == null || pageToken.isEmpty()) {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \n \t} else {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).setPageToken(pageToken).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \t}\n } while (pageToken != null && !pageToken.isEmpty());\n \n if (messages.size() == 0) {\n System.out.println(\"No COL Trading Confirmation email found\");\n } else {\n \t\n \t// Read last processed\n \tDate lastProcessed = null;\n \tif (LAST_PROCESSED.exists()) {\n \ttry (ObjectInputStream in = new ObjectInputStream(new FileInputStream(LAST_PROCESSED))) {\n lastProcessed = (Date) in.readObject();\n \t}\n \t}\n \t\n \tDate latest = null;\n \t\n for (Message message : messages) {\n \t// Fetch raw email\n message = service.users().messages().get(\"me\", message.getId()).setFormat(\"raw\").execute();\n \n byte[] emailBytes = Base64.decodeBase64(message.getRaw());\n\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session, new ByteArrayInputStream(emailBytes));\n \n \n // Write only if email is COL Trading Confirmation\n if (email.getSubject().startsWith(\"COL Trading Confirmation\")) {\n\n \t// Compose file name\n \tSimpleDateFormat readDf = new SimpleDateFormat(\"MM/dd/yyyy\");\n \treadDf.setLenient(false);\n Date tradeDate = readDf.parse(email.getSubject().substring(email.getSubject().length()-10));\n \n // Skip if current message was previously processed\n if (lastProcessed != null && !tradeDate.after(lastProcessed)) {\n \tbreak;\n }\n \n \tSimpleDateFormat writeDf = new SimpleDateFormat(\"yyyy-MM-dd\");\n \tString fileName = writeDf.format(tradeDate) + \" COL Trading Confirmation\";\n \n \tif (!TRADING_CONFIRMATION.exists()) {\n \t\tTRADING_CONFIRMATION.mkdir();\n \t}\n \t\n \t// Write to file\n \ttry (FileWriter fw = new FileWriter(TRADING_CONFIRMATION.getAbsolutePath()+\"/\"+fileName+\".txt\")) {\n \tfw.write(new String(emailBytes));\n\n \tSystem.out.printf(\"Added %s\\n\", fileName + \".txt\");\n\n \tif (latest == null || latest.before(tradeDate)) {\n \tlatest = tradeDate;\n \t}\n }\n \t\n }\n }\n \n // Store last processed\n if (latest != null) {\n try (ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(LAST_PROCESSED))) {\n out.writeObject(latest);\n }\n }\n System.out.printf(\"Done processing\");\n }\n }",
"public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}",
"@RequestMapping(value=\"/display\", method=RequestMethod.GET)\n\tpublic ModelAndView displayMessages(@RequestParam int folderId){\n\t\t\n\t\tModelAndView resul;\n\t\tCollection<Message> messages;\n\t\t\n\t\tmessages = messageService.findByFolder(folderId);\n\t\tresul = new ModelAndView(\"message/display\");\n\t\tresul.addObject(\"messages\", messages);\n\t\tresul.addObject(\"requestURI\", \"message/display.do\");\n\t\t\n\t\treturn resul;\n\t}",
"public List queryAllMailDir(String userId) throws DefaultException {\n\t\tList mailDirList = new ArrayList();\r\n\t\tStringBuffer queryMailDirSql = new StringBuffer();\r\n\t\tinitQueryMailDirSql(queryMailDirSql);\r\n\t\tif (!StringUtils.isNull(this.condition)) {\r\n\t\t\tqueryMailDirSql.append(this.getCondition());\r\n\t\t} else {\r\n\t\t\tqueryMailDirSql\r\n\t\t\t\t\t.append(\" and (a.user_code = '000000' or a.user_code = ?) order by cast(a.user_code as int),a.serial_num\");\r\n\t\t}\r\n\t\t// System.out.println(\"--- queryMailDirSql : \" + queryMailDirSql);\r\n\t\tSQLHelper helper = new DefaultSQLHelper(super.dbData);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\tconn = helper.getConnection();\r\n\t\ttry {\r\n\t\t\tpstmt = conn.prepareStatement(queryMailDirSql.toString());\r\n\t\t\t\tlog.console(this.getClass(),\"queryAllMailDir:SQL-\",queryMailDirSql.toString());\r\n\t\t\tpstmt.setInt(1, Integer.parseInt(userId));\r\n\t\t\tpstmt.setInt(2, Integer.parseInt(userId));\r\n\t\t\t\tlog.console(this.getClass(),\"queryAllMailDir:SQL\",condition);\r\n\r\n\t\t\tif (StringUtils.nullToString(this.condition).equals(\"\")) {\r\n\t\t\t\tpstmt.setString(3, userId);\r\n\t\t\t}\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\tint sizeCount = 0; // 邮件字节总统计数\r\n\t\t\tint yjCount = 0; // 邮件总统计数\r\n\t\t\tint notYjCount = 0; // 已读邮件总统计数\r\n\t\t\tint iTmpYjCNT = 0; // 临时邮件统计数\r\n\t\t\tint iTmpNotYjCNT = 0; // 临时未读邮件\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint i = 1;\r\n\t\t\t\tMailDirectoryVO mailDirectoryVO = new MailDirectoryVO();\r\n\t\t\t\tmailDirectoryVO.setSerial_num(rs.getString(i++));\r\n\t\t\t\tmailDirectoryVO.setUser_code(rs.getString(i++));\r\n\t\t\t\tmailDirectoryVO.setMail_dir_name(rs.getString(i++));\r\n\t\t\t\tmailDirectoryVO.setFlag(rs.getString(i++));\r\n\t\t\t\tmailDirectoryVO.setMemo(rs.getString(i++));\r\n\t\t\t\tsizeCount += Integer.parseInt(StringUtils.emptyStringToZero(rs\r\n\t\t\t\t\t\t.getString(\"totalmailsize\")));\r\n\t\t\t\tiTmpYjCNT = Integer.parseInt(StringUtils.emptyStringToZero(rs\r\n\t\t\t\t\t\t.getString(\"totalmailnum\")));\r\n\t\t\t\tyjCount += Integer.parseInt(StringUtils.emptyStringToZero(rs\r\n\t\t\t\t\t\t.getString(\"totalmailnum\")));\r\n\t\t\t\tnotYjCount += Integer.parseInt(StringUtils.emptyStringToZero(rs\r\n\t\t\t\t\t\t.getString(\"unreadmailnum\")));\r\n\t\t\t\tiTmpNotYjCNT = iTmpYjCNT\r\n\t\t\t\t\t\t- Integer.parseInt(StringUtils.emptyStringToZero(rs\r\n\t\t\t\t\t\t\t\t.getString(\"unreadmailnum\")));\r\n\t\t\t\tmailDirectoryVO.setTotalmailsize(this.sizeToKB(rs\r\n\t\t\t\t\t\t.getString(\"totalmailsize\")));\r\n\t\t\t\tmailDirectoryVO.setTotalmailnum(String.valueOf(iTmpYjCNT));\r\n\t\t\t\tmailDirectoryVO.setUnreadmailnum(String.valueOf(iTmpNotYjCNT));\r\n\t\t\t\tmailDirList.add(mailDirectoryVO);\r\n\t\t\t}\r\n\t\t\tMailDirectoryVO mailDirectoryVO = new MailDirectoryVO();\r\n\r\n\t\t\tmailDirectoryVO.setUser_code(\"COUNT\");\r\n\t\t\tmailDirectoryVO.setMail_dir_name(\"邮件总数:\");\r\n\t\t\tmailDirectoryVO.setFlag(\"1\");\r\n\t\t\tmailDirectoryVO\r\n\t\t\t\t\t.setTotalmailsize(sizeToKB(String.valueOf(sizeCount)));\r\n\t\t\tmailDirectoryVO.setTotalmailnum(String.valueOf(yjCount));\r\n\t\t\tmailDirectoryVO.setUnreadmailnum(\"已占用空间:\");\r\n\r\n\t\t\tmailDirList.add(mailDirectoryVO);\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\thelper.close(conn);\r\n\t\t}\r\n\t\treturn mailDirList;\r\n\t}",
"public static ArrayList<String> showInboxMail(String user, Database data) {\n Gson gson = new Gson();\n ArrayList<String> mailList = data.showMail(user, \"Recipient\");//Will also show trash\n ArrayList<Mail> List1 = new ArrayList<>();\n for (int i = 0; i < mailList.size(); i++) {\n if (!(gson.fromJson(mailList.get(i), Mail.class).isTrash())) {\n List1.add(gson.fromJson(mailList.get(i), Mail.class));\n }\n }\n mailList.clear();\n for (int i = List1.size() - 1; i >= 0; i--) {\n mailList.add(gson.toJson(List1.get(i)));\n }\n return mailList;\n }",
"public Message[] readUnseenMessages(EmailReceivingParameters emailReceivingParameters)\r\n\t{\r\n\t\t Message[] messages=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t Properties properties = new Properties();\r\n\r\n\t properties.put(\"mail.pop3.host\", emailReceivingParameters.getHostName());\r\n\t properties.put(\"mail.pop3.port\", \"995\");\r\n\t properties.put(\"mail.pop3.starttls.enable\", \"true\");\r\n\t Session emailSession = Session.getDefaultInstance(properties);\r\n\t \r\n\t //create the POP3 store object and connect with the pop server\r\n\t Store store = emailSession.getStore(\"pop3s\");\r\n\r\n\t store.connect(emailReceivingParameters.getHostName(), emailReceivingParameters.getUserName(), emailReceivingParameters.getPassword());\r\n\r\n\t //create the folder object and open it\r\n\t Folder emailFolder = store.getFolder(\"INBOX\");\r\n\t emailFolder.open(Folder.READ_ONLY);\r\n\r\n\t // retrieve the messages from the folder in an array and print it\r\n\t messages = emailFolder.getMessages();\r\n\t System.out.println(\"messages.length---\" + messages.length);\r\n\r\n\t for (int i = 0, n = messages.length; i < n; i++) \r\n\t {\r\n\t Message message = messages[i];\r\n\t System.out.println(\"---------------------------------\");\r\n\t System.out.println(\"Email Number \" + (i + 1));\r\n\t System.out.println(\"Subject: \" + message.getSubject());\r\n\t System.out.println(\"From: \" + message.getFrom()[0]);\r\n\t System.out.println(\"Text: \" + message.getContent().toString());\r\n\r\n\t }\r\n\r\n\t emailFolder.close(false);\r\n\t store.close();\r\n\r\n\t } \r\n\t\t catch (NoSuchProviderException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (MessagingException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (Exception e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\treturn messages;\r\n\t}",
"void getAllMessages(final String channel, Long start, final int count, final CallbackSkeleton callback) {\n pubnub.history()\n .channel(channel)\n .count(count)\n .start(start)\n .includeTimetoken(true)\n .async(new PNCallback<PNHistoryResult>() {\n @Override\n public void onResponse(PNHistoryResult result, PNStatus status) {\n if (!status.isError() && !result.getMessages().isEmpty()) {\n callback.handleResponse(result);\n getAllMessages(channel, result.getMessages().get(0).getTimetoken(), count, callback);\n if(result.getMessages().size() < 100)\n finished = true;\n }\n }\n });\n }",
"public void read() {\r\n\t\tProperties props = new Properties();\r\n\t\ttry {\r\n\t\t\t// Read smtp.\r\n\t\t\tprops.load(new FileInputStream(\r\n\t\t\t\t\t\"C:\\\\Users\\\\danielnistreanu\\\\git\\\\t3bluecircles\\\\src\\\\test\\\\resources\\\\smtpZimbra.properties\"));\r\n\t\t\tSession session = Session.getDefaultInstance(props, null);\r\n\t\t\t// Login.\r\n\t\t\tStore store = session.getStore(\"imaps\");\r\n\t\t\tstore.connect(\"mail.evozon.com\", \"[email protected]\", \"Asdf1234!@#$\");\r\n\t\t\t// Get messages number.\r\n\t\t\tFolder inbox = store.getFolder(\"inbox\");\r\n\t\t\tinbox.open(Folder.READ_ONLY);\r\n\t\t\tint messageCount = inbox.getMessageCount();\r\n\r\n\t\t\t// Part where using for loop we check messages list and print\r\n\t\t\t// content.\r\n\r\n\t\t\tSystem.out.println(\"Total Messages:- \" + messageCount);\r\n\t\t\tMessage[] messages = inbox.getMessages();\r\n\t\t\tfor (int i = 0; i < messages.length; i++) {\r\n\t\t\t\tMessage message = messages[i];\r\n\t\t\t\tSystem.out.println(\"---------------------------------\");\r\n\t\t\t\tSystem.out.println(\"Email Number \" + (i + 1));\r\n\t\t\t\tSystem.out.println(\"Subject: \" + message.getSubject());\r\n\t\t\t\tSystem.out.println(\"From: \" + message.getFrom()[0]);\r\n\t\t\t\tSystem.out.println(\"Text: \" + getTextFromMessage(message));\r\n\t\t\t\twriteToFile(getTextFromMessage(message));\r\n\t\t\t}\r\n\t\t\tinbox.close(true);\r\n\t\t\tstore.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public List<Entry> show10MostRecentEntries() {\n\t\tList<Entry> subList;\n\t\tif (entries.isEmpty()){\n\t\t\tSystem.out.println(\"The blog doesn't have any entries yet\");\n\t\t\treturn entries.getList();\n\t\t}\n\t\telse {\n\t\t\tif (entries.getSize()>= 10){\n\t\t\t\tsubList= entries.getSubList(0,10);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsubList= entries.getSubList(0,entries.getSize());\n\t\t\t}\n\t\t\tIterator<Entry> it = subList.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEntry entry = it.next();\n\t\t\t\tSystem.out.println(\"Entry Title: \" + entry.getTitle());\n\t\t\t\tSystem.out.println(\"Entry Content: \" + entry.getContent());\n\t\t\t}\n\t\t\t\n\t\t\treturn subList;\n\t\t}\n\t}",
"public javax.mail.Message[] getNewMessages(javax.mail.Folder folder)\n throws ResourceException {\n try {\n return store.getNewMessages(folder);\n } catch (Exception e) {\n logger.warning(\"ManagedConnectionImpl::getNewMessages threw exception: \"\n + e);\n throw new ResourceException(e.getMessage());\n }\n }",
"public static void findMoreEmails(Contact[] myContacts, int low, String find)\n {\n int i = low;\n int start = -1;\n int end = -1;\n int counter = -1;\n while((i >= 0)&&(myContacts[i].getEmail().compareTo(find) == 0))\n {\n start = i;\n i--;\n counter++;\n }\n \n i = low;\n while((i<myContacts.length)&&(myContacts[i].getEmail().compareTo(find) == 0))\n {\n end = i;\n i++;\n counter++;\n }\n \n for(i = start; i<= end; i++)\n {\n System.out.println(myContacts[i]);\n }\n \n if(counter > 1)\n {\n System.out.println(\"There were \"+counter+\" listings for \"+find);\n }\n else\n {\n System.out.println(\"There was \"+counter+\" listing for \"+find);\n }\n }",
"private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }",
"public InputStream top(int n) throws MessagingException {\n/* */ try {\n/* 340 */ synchronized (this) {\n/* 341 */ return this.folder.getProtocol().top(this.msgnum, n);\n/* */ } \n/* 343 */ } catch (EOFException eex) {\n/* 344 */ this.folder.close(false);\n/* 345 */ throw new FolderClosedException(this.folder, eex.toString());\n/* 346 */ } catch (IOException ex) {\n/* 347 */ throw new MessagingException(\"error getting size\", ex);\n/* */ } \n/* */ }",
"private void getLanguageContents(final File languageFolder, final java.io.File localLanguageFolder) {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n // gets only the folders in the language folder\n String whichFiles = \"'\" + languageFolder.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET;\n List<File> files = getContents(whichFiles);\n \n prune(localLanguageFolder, files);\n processFolders(files, localLanguageFolder);\n }\n });\n t.start();\n }",
"public static void getAllFiles()\n\t{\n\t\t//Getting the File Name\n\n\t\tList<String> fileNames = FileManager.getAllFiles(folderpath);\n\t\n\t\tfor(String f:fileNames)\n\t\tSystem.out.println(f);\n\t\n\t}",
"public Message[] receiveEmails(Folder currentFolder) throws MessagingException {\r\n\t\tMessage[] allMessages = currentFolder.getMessages();\r\n\t\tcurrentFolder.close(false);\r\n\t\treturn allMessages;\r\n\t}",
"public List<NewsNotifications> getNewsFeed(int limit);",
"@Test\n public void readsInboxPeriodically() throws Exception {\n final GreenMail mail = new GreenMail(\n new ServerSetup(Ports.allocate(), null, \"pop3\")\n );\n mail.start();\n final ServerSetup setup = mail.getPop3().getServerSetup();\n final String login = \"to\";\n // @checkstyle MagicNumberCheck (1 line)\n final String from = \"[email protected]\";\n // @checkstyle LocalFinalVariableNameCheck (1 line)\n final String to = \"[email protected]\";\n final String password = \"soooosecret\";\n final String subject = GreenMailUtil.random();\n final String body = GreenMailUtil.random();\n final GreenMailUser user = mail.setUser(login, password);\n new EmCatch(\n // @checkstyle AnonInnerLengthCheck (22 lines)\n new EmCatch.Action() {\n @Override\n public void run(final Message msg) {\n MatcherAssert.assertThat(msg, Matchers.notNullValue());\n try {\n MatcherAssert.assertThat(\n msg.getSubject(),\n Matchers.equalTo(subject)\n );\n MatcherAssert.assertThat(\n msg.getFrom()[0].toString(),\n Matchers.equalTo(from)\n );\n MatcherAssert.assertThat(\n msg.getAllRecipients()[0].toString(),\n Matchers.equalTo(to)\n );\n } catch (final MessagingException ex) {\n throw new IllegalStateException(ex);\n }\n }\n },\n login,\n password,\n setup.getBindAddress(),\n setup.getPort(),\n // @checkstyle MagicNumberCheck (1 line)\n 500L\n ).start();\n final MimeMessage message = GreenMailUtil.createTextEmail(\n to,\n from,\n subject,\n body,\n setup\n );\n user.deliver(message);\n MatcherAssert.assertThat(\n mail.getReceivedMessages().length,\n Matchers.equalTo(1)\n );\n // @checkstyle MagicNumberCheck (1 line)\n Thread.sleep(1000);\n Ports.release(setup.getPort());\n mail.stop();\n }",
"private boolean tryMail(ApiClient client) throws ApiException {\n try {\n MailApi mailApi = new MailApi(client);\n String inbox = getClient().getValues().getInboxFolder();\n MailsResponse allMails = mailApi.getAllMails(inbox, \"600\", null, FALSE, FALSE, null, null, I(0), I(5), I(5), null);\n return allMails.getError() == null;\n } catch (OXException | IOException | JSONException e) {\n throw new ApiException(e.getMessage());\n }\n }",
"List<ChatMessage> getMessages(int roomId, int count) throws IOException;",
"public void getLIWCTone() throws UnirestException, JSONException, SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetLIWCToneThreadList(splitList);\n\t\t}\n\t}",
"ReadResponseMessage fetchAllMessages();",
"public void getUsersByDays() throws IOException, SystemException {\n List<UserSubscribeDTO> usersList = planReminderService.getUsersByDays();\n LOGGER.info(\"userLIst Recievec:\" + usersList);\n shootReminderMails(usersList);\n }",
"private void extractFirstFivePubsCites() {\r\n try {\r\n List<String> citeMatches = new ArrayList<String>();\r\n // gets all matched objects for extracting publication citations.\r\n Matcher matcherObject = matcher.patternMatcher(\"FivePubsCites\");\r\n\r\n\r\n while (matcherObject.find()) {\r\n citeMatches.add(matcherObject.group(2));\r\n }\r\n\r\n int fiveCiteMatches;\r\n\r\n // adds the total according to if minimum five publications can be found\r\n if (citeMatches.size() < 5) {\r\n fiveCiteMatches = citeMatches.size();\r\n } else {\r\n fiveCiteMatches = 5;\r\n }\r\n\r\n if (citeMatches.size() != 0) {\r\n int count = 0;\r\n int total = 0;\r\n while (count < fiveCiteMatches) {\r\n total += Integer.parseInt(citeMatches.get(count));\r\n count++;\r\n }\r\n\r\n format.Formatter(5, total);\r\n\r\n }\r\n\r\n } catch (Exception e) {\r\n System.out\r\n .println(\"Error has occured in extractFirstFivePubsCites method\");\r\n }\r\n }",
"public void getMessages(String hostname, String username, String password)\r\n\t\t\tthrows PopException, MimeException, IOException {\r\n\t\t// ensure that messages directory is valid\r\n\t\tif (!messagesDir.exists()) {\r\n\t\t\tmessagesDir.mkdir();\r\n\t\t}\r\n\r\n\t\t// ensure that attachments directory is valid\r\n\t\tif (!attachmentsDir.exists()) {\r\n\t\t\tattachmentsDir.mkdir();\r\n\t\t}\r\n\r\n\t\t// connect and login\r\n//\t\tPop pop = new Pop(hostname, username, password);\r\n//\t\tpop.setDelete(false);\r\n//\t\tpop.connect();\r\n\t\tPopSsl ssl = new PopSsl(hostname,995,username,password);\r\n\t\tssl.setDebug(true);\r\n\t\tssl.setDelete(false);\r\n\t\tssl.connect();\r\n\r\n\t\tSystem.out.println(\"Retrieving messsages...\");\r\n\r\n\t\t// get messages\r\n\t\tEnumeration<EmailMessage> messages = ssl.getMessages();\r\n\t\tif (!messages.hasMoreElements()) {\r\n\t\t\tSystem.out.println(\"No messages found\");\r\n\t\t}\r\n\r\n\t\t// write messages to disk\r\n\t\tint msgnum = 0;\r\n\t\twhile (messages.hasMoreElements()) {\r\n\t\t\t++msgnum;\r\n\t\t\tEmailMessage msg = (EmailMessage) messages.nextElement();\r\n\t\t\tFile f = new File(messagesDir, \"msg\" + msgnum + \".txt\");\r\n\t\t\tFileOutputStream fout = new FileOutputStream(f);\r\n//\t\t\tfout.write(msg.getMessage());\r\n\t\t\tfout.write(msg.getBodyData());\r\n\t\t\tfout.close();\r\n\t\t\tSystem.out.println(\"Retrieved message: \" + f.getAbsoluteFile());\r\n\r\n\t\t\t// write attachments to disk\r\n\t\t\tint attachnum = 0;\r\n\t\t\tEnumeration<Attachment> attachments = msg.getAttachments();\r\n\t\t\twhile (attachments.hasMoreElements()) {\r\n\t\t\t\t++attachnum;\r\n\t\t\t\tAttachment attach = (Attachment) attachments.nextElement();\r\n\t\t\t\tString attachmentFileName = attach.getFilename();\r\n\t\t\t\tif (attachmentFileName == null) {\r\n\t\t\t\t\tattachmentFileName = \"attachment\" + msgnum + \"-\"\r\n\t\t\t\t\t\t\t+ attachnum;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString fileName = attach.getFilename();\r\n\t\t\t\tif (fileName == null) {\r\n\t\t\t\t\tfileName = System.currentTimeMillis() + \".txt\";\r\n\t\t\t\t}\r\n\t\t\t\tFile attFile = new File(attachmentsDir, fileName);\r\n\t\t\t\tFileOutputStream attOut = new FileOutputStream(attFile);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tattOut.write(attach.getFileData());\r\n\t\t\t\t\tattOut.close();\r\n\t\t\t\t\tSystem.out.println(\"Retrieved attachment: \"\r\n\t\t\t\t\t\t\t+ attFile.getAbsoluteFile());\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tthrow new PopException(\"unable to decode file attachment\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tssl.disconnect();\r\n\t}",
"public void getUsersByWeek() throws IOException, SystemException {\n List<UserSubscribeDTO> usersList = planReminderService\n .getUsersByWeeks();\n LOGGER.info(\"userLIst Recievec:\" + usersList);\n shootReminderMails(usersList);\n }",
"@RequestMapping(value = \"list\", method = RequestMethod.GET)\n public Iterable<UserMessage> listByPage(@RequestParam(\"page\") Integer page,\n @RequestParam(\"size\") Integer size,\n @RequestParam(value = \"sortby\", required = false) String sortby,\n @RequestParam(value = \"dir\", required = false) Sort.Direction direction) {\n\n log.debug(String.format(\"Begin listAll (page:%s, size:%s, sortby:%s, dir:%s):\",page,size,sortby,direction));\n\n // DEFAULT Sort property\n if (sortby == null) {\n sortby = \"id\";\n }\n\n // DEFAULT Sort direction\n if (direction == null) {\n direction = Sort.Direction.DESC;\n }\n Sort s = new Sort(direction, sortby);\n PageRequest pr = new PageRequest(page, size, s);\n Iterable<UserMessage> found = messageRepository.findAll(pr);\n log.debug(String.format(\"End listAll: %s\", found));\n\n return found;\n }",
"public static List<String> getUsernames(int threshold) {\n List<String> userNames = new ArrayList<>();\n\n\n int startPage = 0;\n int totalPages = Integer.MAX_VALUE;\n String url = \"https://jsonmock.hackerrank.com/api/article_users?page=\" + startPage;\n String response;\n\n // Break condition in processing.\n while (startPage <= totalPages) {\n try {\n LOGGER.info(\"Processing Page: {}\", startPage);\n URL obj = new URL(url);\n // Setup HTTP GET Request\n HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setRequestProperty(\"Content-Type\", \"application/json; utf-8\");\n\n // Read from open connection.\n InputStreamReader inputStreamReader = new InputStreamReader(connection.getInputStream());\n BufferedReader buffy = new BufferedReader(inputStreamReader);\n\n // Read response from the BufferedReader.\n while ((response = buffy.readLine()) != null) {\n // Process using GSON to convert String JSON response into JsonResponse POJO.\n totalPages = processResponseWithGson(response, totalPages, userNames, threshold);\n }\n\n // Close open connection\n buffy.close();\n\n // Increment page.\n startPage++;\n } catch (Exception exception) {\n LOGGER.error(\"Exception found: {0}\", exception);\n }\n }\n\n return userNames;\n }",
"public List getAll() throws FileNotFoundException, IOException;",
"public String getAllFilles(int n) throws IOException {\n\t\tString x = \"\";\n\t\tString path = \"C:/JEE/workspace/Server/Upload\";\n\t\tString path2 = \"C:/JEE/workspace/Server/Upload/\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tArrayList listOfPathFiles = new ArrayList();\n\n\t\t// for (int i = 0; i < listOfFiles.length; i++) {\n\t\tif (listOfFiles[n].isFile()) {\n\n\t\t\tInputStream inputStream2 = new FileInputStream(path2 + listOfFiles[n].getName());\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesRead = 0;\n\t\t\tBASE64Encoder encoder = new BASE64Encoder();\n\t\t\tByteArrayOutputStream buffer2 = new ByteArrayOutputStream();\n\t\t\twhile (true) {\n\t\t\t\tbytesRead = inputStream2.read(buffer); \n\t\t\t\tif (bytesRead > 0) {\n\t\t\t\t\tbuffer2.write(buffer, 0, bytesRead);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuffer2.flush(); \n\t\t\tString codec;\n\t\t\tcodec = encoder.encode(buffer2.toByteArray());\n\t\t\tif (n >= 0) {\n\t\t\t\t// listOfPathFiles.add(\"data:image/png;base64,\"+codec);\n\t\t\t\tx = codec;\n\t\t\t}\n\t\t}\n\t\tif (listOfFiles[n].isDirectory()) {\n\t\t\tSystem.out.println(\"Directory \" + listOfFiles[n].getName());\n\t\t}\n\t\t// }\n\t\treturn x;\n\t\t// return listOfPathFiles;\n\t}",
"@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }",
"private static List<String> loadDocuments(String path) throws Exception {\n\t\tFile folder = new File(path);\n\t\tArrayList<String> documents = new ArrayList<String>();\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tSystem.out.println(fileEntry.getName());\n\t\t\tif (fileEntry.isFile() && !fileEntry.isHidden()) {\n\t\t\t\tString content = getTextFromHtml(fileEntry);\n\t\t\t\tdocuments.add(content);\n\t\t\t}\n\t\t}\n\t\treturn documents;\n\t}",
"@Override\n\tpublic List<Message> findAll() {\n\t\tSystem.err.println(\"Vao dây\" + url);\n\t\tfor (Message massage : messRepository.findAll()) {\n\t\t\tSystem.err.println(\"massage ==>\" + massage.getUsername());\n\t\t}\n\t\treturn (List<Message>) messRepository.findAll();\n\t}",
"protected abstract NotificationResult fetchNotifications(long sequence, int maxNumber, long timeout) throws IOException;",
"private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}",
"private void getFolderContents(final File f, final java.io.File targetFolder) {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n // list of contents in f that are directories\n List<File> mFolderList = getContents(\"'\" + f.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n // check if there is a folder\n if (!mFolderList.isEmpty()) {\n prune(targetFolder, mFolderList, false);\n processFolders(mFolderList, targetFolder);\n }\n \n // list of contents in f that are files\n List<File> mFileList = getContents(\"'\" + f.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + NOT_FOLDER + \" and \" + SUPPORTED_FILES);\n \n prune(targetFolder, mFileList, true);\n processFiles(mFileList, targetFolder);\n }\n });\n t.start();\n }",
"public void listTasks() {\n try {\n File file = new File(filePath);\n Scanner sc = new Scanner(file);\n Ui.viewTasks();\n while (sc.hasNextLine()) {\n System.out.println(sc.nextLine());\n }\n } catch (FileNotFoundException e) {\n Ui.printFileNotFound();\n }\n }",
"public List<GridData> getFolderData(String dir, boolean refresh, boolean listComments) throws GRIDAClientException {\n\n try {\n Communication communication = getCommunication();\n\n int messageType = listComments ? ExecutorConstants.COM_LIST_FILES_AND_FOLDERS_WITH_COMMENTS : ExecutorConstants.COM_LIST_FILES_AND_FOLDERS;\n \n communication.sendMessage(\n messageType + Constants.MSG_SEP_1\n + proxyPath + Constants.MSG_SEP_1\n + Util.removeLfnFromPath(dir) + Constants.MSG_SEP_1\n + refresh);\n communication.sendEndOfMessage();\n\n String filesAndFolders = communication.getMessage();\n communication.close();\n\n List<GridData> filesList = new ArrayList<GridData>();\n\n if (!filesAndFolders.isEmpty()) {\n for (String data : filesAndFolders.split(Constants.MSG_SEP_1)) {\n String[] d = data.split(Constants.MSG_SEP_2);\n if (d[1].equals(GridData.Type.Folder.name())) {\n filesList.add(new GridData(d[0], GridData.Type.Folder, d[2]));\n\n } else {\n if(d.length == 7)\n filesList.add(new GridData(d[0], GridData.Type.File, new Long(d[2]), d[3], d[4], d[5],d[6]));\n else\n filesList.add(new GridData(d[0], GridData.Type.File, new Long(d[2]), d[3], d[4], d[5],\"\"));\n }\n }\n }\n return filesList;\n\n } catch (ArrayIndexOutOfBoundsException ex) {\n throw new GRIDAClientException(\"Wrong number of parameters from server response.\");\n } catch (IOException ex) {\n throw new GRIDAClientException(ex);\n }\n }",
"public void listMyFiles(){\n\t\tpeer.removeFiles();\n\t\tint count = localModel.getRowCount();\n\t\tif (count > 0){\n\t\t\tfor (int i = count-1; i >= 0; i--){\n\t\t\t\tlocalModel.removeRow(i);\n\t\t\t}\n\t\t}\n\t\tFile folder = fileChooser.getSelectedFile();\n\t\tpeer.setFolder(folder.getAbsolutePath());\n shareFolder = folder.getAbsolutePath();\n\t\tconsole(\"\\\"\" + folder.getAbsolutePath() + \"\\\" set as Shared Directory.\");\n\t\tmyFiles = folder.listFiles();\n\t\tfor(File file : myFiles){\n\t\t\tlocalModel.addRow(new Object[]{file.getName(),file.length()});\n\t\t\ttry {\n\t\t\t\tpeer.addFile(file.getName(),file.length());\n\t\t\t} catch (UnknownHostException e1) {e1.printStackTrace();}\n\t\t}\n\t}",
"public LinkedList<MailObject> buildMailObjectsFromMessages(LinkedList<Message> messages) {\r\n\t\tLinkedList<MailObject> mailObjects = new LinkedList<MailObject>();\r\n\t\ttry {\r\n\t\t\tfor (Message message : messages) {\r\n\t\t\t\tmailObjects.add(buildMailObjectFromMessage(message));\r\n\t\t\t}\r\n\t\t\t// Close the message store\r\n\t\t\tstore.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn mailObjects;\r\n\t}",
"public void searchAllFiles() {\n\t\t/**\n\t\t * Realizamos un pequeño algoritmo de recorrido de árboles en preorden para listar todos los\n\t\t * ebooks con un coste de 2n+1 donde n es el número de nodos.\n\t\t */\n\t\tArrayList<Entry> booksEntry = null;\n\t\ttry {\n\t\t\tString auxPath;\n\t\t\tbooksEntry = new ArrayList<DropboxAPI.Entry>();\n\t\t\tLinkedList<Entry> fifo = new LinkedList<DropboxAPI.Entry>();\n\t\t\tEntry nodo = _mApi.metadata(\"/\", 0, null, true, null);\n\t\t\tfifo.addAll(nodo.contents);\n\t\t\twhile (!fifo.isEmpty()) {\n\t\t\t\tSystem.out.println(fifo);\n\t\t\t\tnodo = fifo.getFirst();\n\t\t\t\tfifo.removeFirst();\n\t\t\t\tauxPath = nodo.path;\n\t\t\t\tif (nodo.isDir) {\n\t\t\t\t\tfifo.addAll(_mApi.metadata(auxPath, 0, null, true, null).contents);\n\t\t\t\t} else {\n\t\t\t\t\tif (isEbook(nodo))\n\t\t\t\t\t\tbooksEntry.add(nodo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"parar\");\n\t\t} catch (DropboxUnlinkedException e) {\n\t\t\t// The AuthSession wasn't properly authenticated or user unlinked.\n\t\t} catch (DropboxPartialFileException e) {\n\t\t\t// We canceled the operation\n\t\t\t_mErrorMsg = \"Download canceled\";\n\t\t} catch (DropboxServerException e) {\n\t\t\t// Server-side exception. These are examples of what could happen,\n\t\t\t// but we don't do anything special with them here.\n\t\t\tif (e.error == DropboxServerException._304_NOT_MODIFIED) {\n\t\t\t\t// won't happen since we don't pass in revision with metadata\n\t\t\t} else if (e.error == DropboxServerException._401_UNAUTHORIZED) {\n\t\t\t\t// Unauthorized, so we should unlink them. You may want to\n\t\t\t\t// automatically log the user out in this case.\n\t\t\t} else if (e.error == DropboxServerException._403_FORBIDDEN) {\n\t\t\t\t// Not allowed to access this\n\t\t\t} else if (e.error == DropboxServerException._404_NOT_FOUND) {\n\t\t\t\t// path not found (or if it was the thumbnail, can't be\n\t\t\t\t// thumbnailed)\n\t\t\t} else if (e.error == DropboxServerException._406_NOT_ACCEPTABLE) {\n\t\t\t\t// too many entries to return\n\t\t\t} else if (e.error == DropboxServerException._415_UNSUPPORTED_MEDIA) {\n\t\t\t\t// can't be thumbnailed\n\t\t\t} else if (e.error == DropboxServerException._507_INSUFFICIENT_STORAGE) {\n\t\t\t\t// user is over quota\n\t\t\t} else {\n\t\t\t\t// Something else\n\t\t\t}\n\t\t\t// This gets the Dropbox error, translated into the user's language\n\t\t\t_mErrorMsg = e.body.userError;\n\t\t\tif (_mErrorMsg == null) {\n\t\t\t\t_mErrorMsg = e.body.error;\n\t\t\t}\n\t\t} catch (DropboxIOException e) {\n\t\t\t// Happens all the time, probably want to retry automatically.\n\t\t\t_mErrorMsg = \"Network error. Try again.\";\n\t\t} catch (DropboxParseException e) {\n\t\t\t// Probably due to Dropbox server restarting, should retry\n\t\t\t_mErrorMsg = \"Dropbox error. Try again.\";\n\t\t} catch (DropboxException e) {\n\t\t\t// Unknown error\n\t\t\t_mErrorMsg = \"Unknown error. Try again.\";\n\t\t}\n\t\t_booksListEntry = booksEntry;\n\t\tcreateListBooks();\n\t}",
"public String top10Filmes() {\r\n\t\tString top10 = \"Nenhum ingresso vendido ate o momento\";\r\n\t\tint contador = 0;\r\n\t\tif (listaIngresso.isEmpty() == false) {\r\n\t\tfor (int i = 0; i < listaIngresso.size(); i++) {\r\n\t\tcontador = 0;\r\n\t\tfor(int j = 0; j < listaIngresso.size() - 1; j++){\r\n\t\tif(listaIngresso.get(i).getSessao().getFilme() == listaIngresso.get(j).getSessao().getFilme()){\r\n\t\tcontador++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t}\r\n\t\treturn top10;\r\n\t}",
"@Override\n\tpublic List<Email> retrieve(Date minDate, Matcher matcher) throws IOException {\n\t\tif (minDate == null) throw new IllegalArgumentException(\"Minimum date must be specified\");\n\t\tif (matcher == null) matcher = DEFAULT_MATCHER;\n\t\ttry {\n\t\t\tList<Email> emails = fetchEmail(minDate, matcher);\n\t\t\tCollections.sort(emails, EmailComparators.SENT_DATE);\n\t\t\treturn emails;\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new IOException(e);\n\t\t}\n\t}",
"public static void readAllMsgs(String name){\n\t\tmsgs = \"\";\n\t\tposts.clear();\n\t\tBufferedReader reader=null;\n\n\t\ttry {\n\t\t\tString loc = \".\\\\\" + name + \".csv\";\n\t\t\treader = new BufferedReader(new FileReader(loc));\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString line = \"\";\n\t\t\n\t\ttry{\n\t\t\t//Gender\n\t\t\tline = reader.readLine();\n\t\t\t//Age\n\t\t\tline = reader.readLine();\n\t\t\t//No. of friends\n\t\t\tline = reader.readLine();\n\t\t\t//Faltu heading line\n\t\t\tline = reader.readLine();\n\t\t\twhile( (line=reader.readLine())!=null ){\n\t\t\t\tString[] parts = line.split(\"~\");\n\t\t\t\tmsgs += parts[5] + \"\\n\";\n\t\t\t\tposts.add(parts[5]);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\treader.close();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void processFolder(File folder) {\n \t\tFile[] subFolders = folder.listFiles(new FileFilter() {\n \t\t\t@Override\n \t\t\tpublic boolean accept(File pathname) {\n \t\t\t\treturn pathname.isDirectory();\n \t\t\t}\n \t\t});\n \t\tfor (File subFolder : subFolders){\n \t\t\tprocessFolder(subFolder); \n \t\t}\n \t\tPattern nameRegex = Pattern.compile(\"([\\\\d-]+)\\\\.(pdf|epub)\", Pattern.CANON_EQ | Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);\n \t\tFile[] files = folder.listFiles();\n \t\tfor (File file : files) {\n \t\t\tlogger.info(\"Processing file \" + file.getName());\n \t\t\tprocessLog.addNote(\"Processing file \" + file.getName());\n \t\t\tif (file.isDirectory()) {\n \t\t\t\t//TODO: Determine how to deal with nested folders?\n \t\t\t\t//processFolder(file);\n \t\t\t} else {\n \t\t\t\t// File check to see if it is of a known type\n \t\t\t\tMatcher nameMatcher = nameRegex.matcher(file.getName());\n \t\t\t\tif (nameMatcher.matches()) {\n \t\t\t\t\tImportResult importResult = new ImportResult();\n \t\t\t\t\tString isbn = nameMatcher.group(1);\n \t\t\t\t\tString fileType = nameMatcher.group(2).toLowerCase();\n \t\t\t\t\timportResult.setBaseFilename(isbn);\n \t\t\t\t\tisbn = isbn.replaceAll(\"-\", \"\");\n \t\t\t\t\timportResult.setISBN(isbn);\n \t\t\t\t\timportResult.setCoverImported(\"\");\n \t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Get the record for the isbn\n \t\t\t\t\t\tgetRelatedRecords.setString(1, \"%\" + isbn + \"%\");\n \t\t\t\t\t\tResultSet existingRecords = getRelatedRecords.executeQuery();\n \t\t\t\t\t\tif (!existingRecords.next()){\n \t\t\t\t\t\t\t//No record found \n \t\t\t\t\t\t\tlogger.info(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\tprocessLog.addNote(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t}else{\n \t\t\t\t\t\t\tlogger.info(\"Found at least one record for \" + isbn);\n \t\t\t\t\t\t\tif (existingRecords.last()){\n \t\t\t\t\t\t\t\tif (existingRecords.getRow() >= 2){\n \t\t\t\t\t\t\t\t\tlogger.info(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t//We have an existing record\n \t\t\t\t\t\t\t\t\texistingRecords.first();\n \t\t\t\t\t\t\t\t\tString recordId = existingRecords.getString(\"id\");\n \t\t\t\t\t\t\t\t\tString accessType = existingRecords.getString(\"accessType\");\n \t\t\t\t\t\t\t\t\tString source = existingRecords.getString(\"source\");\n \t\t\t\t\t\t\t\t\tlogger.info(\" Attaching file to \" + recordId + \" accessType = \" + accessType + \" source=\" + source);\n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t// Copy the file to the library if it does not exist already\n \t\t\t\t\t\t\t\t\tFile resultsFile = new File(libraryDirectory + source + \"_\" + file.getName());\n \t\t\t\t\t\t\t\t\tif (resultsFile.exists()) {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Skipping file because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"File has already been copied to library\");\n \t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Importing file \" + file.getName());\n \t\t\t\t\t\t\t\t\t\t//Check to see if the file has already been added to the library.\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(1, file.getName());\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(2, recordId);\n \t\t\t\t\t\t\t\t\t\tResultSet existingItems = doesItemExist.executeQuery();\n \t\t\t\t\t\t\t\t\t\tif (existingItems.next()){\n \t\t\t\t\t\t\t\t\t\t\t//The item already exists\n \t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"The file has already been aded as an eContent Item\");\n \t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" copying the file to library source=\" + file + \" dest=\" + resultsFile);\n \t\t\t\t\t\t\t\t\t\t\t\t//Copy the pdf file to the library\n \t\t\t\t\t\t\t\t\t\t\t\tUtil.copyFile(file, resultsFile);\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\t//Add file to acs server\n \t\t\t\t\t\t\t\t\t\t\t\tboolean addedToAcs = true;\n \t\t\t\t\t\t\t\t\t\t\t\tif (accessType.equals(\"acs\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Adding file to the ACS server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\taddedToAcs = addFileToAcsServer(fileType, resultsFile, importResult);\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (addedToAcs){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//filename, acsId, recordId, item_type, addedBy, date_added, date_updated\n \t\t\t\t\t\t\t\t\t\t\t\t\tlong curTimeSec = new Date().getTime() / 1000;\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(1, resultsFile.getName());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(2, importResult.getAcsId());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(3, recordId);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(4, fileType);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(5, -1);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(6, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(7, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\tint rowsInserted = addEContentItem.executeUpdate();\n \t\t\t\t\t\t\t\t\t\t\t\t\tif (rowsInserted == 1){\n \t\t\t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"success\", \"\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" file could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (importResult.getSatus(fileType).equals(\"failed\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//If we weren't able to add the file correctly, remove it so it will be processed next time. \n \t\t\t\t\t\t\t\t\t\t\t\t\tresultsFile.delete();\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.error(\"Error copying file to record\", e);\n \t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Error copying file \" + e.toString());\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error finding related records\", e);\n \t\t\t\t\t\timportResult.setStatus(\"pdf\", \"failed\", \"SQL error processing file \" + e.toString());\n \t\t\t\t\t}\n \t\t\t\t\timportResults.add(importResult);\n \t\t\t\t\t//Update that another file has been processed.\n \t\t\t\t\tprocessLog.incUpdated();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(1, processLog.getNumUpdates());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(2, processLog.getNumErrors());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(3, logEntryId);\n \t\t\t\t\t\tupdateRecordsProcessed.executeUpdate();\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error updating number of records processed.\", e);\n \t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tprocessLog.addNote(\" Skipping because the name is not an ISBN\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t}",
"private void showInbox(){\n getInbox();\n //display persons\n MainActivity.instance().displayPersonsRunnable = new DisplayPersonsRunnable(MainActivity.instance());\n this.thread = new Thread(MainActivity.instance().displayPersonsRunnable);\n this.thread.start();\n }",
"public void run() {\n orphanedMessageSet.clear();\r\n \r\n // Commit the folder message cache\r\n folderMessageCache.commit();\r\n \r\n // Clear the flag indicating that a refresh operation is in progress\r\n refreshInProgress.set(false);\r\n \r\n // Notify listeners of the end of the operation\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, null, false, false);\r\n \r\n // Enqueue any folder-related requests that arrived during the refresh\r\n invokePostRefreshTasks(success);\r\n }",
"public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }",
"@RequestMapping(value = \"/show-ids\", \n\t\t\t\t\tmethod = RequestMethod.GET)\n\tpublic ResponseEntity<List<File>> showIds(@RequestParam(value = \"total\", required = true) int total) throws IOException {\n\t\t\n\t\t FileList result = DriveConnection.driveService.files().list() // listamos archivos\n\t .setPageSize(total) // \n\t .setFields(\"nextPageToken, files(id, name)\")\n\t .execute();\n\t \n\t\t List<File> files = result.getFiles(); // almacenamos en una lista\n\t \n\t return new ResponseEntity<List<File>>(files, HttpStatus.OK); // devolvemos\n\t}",
"public synchronized void loadAll(LoadListener ll) throws IOException {\n\t\tll.loadStarted(\"\");\n\n\t\t// Scan all its valid subdirectories.\n\t\tFile[] subdirs = baseDir.listFiles(new FileFilter() {\n\n\t\t\tpublic boolean accept(File f) {\n\t\t\t\treturn f.isDirectory() && f.getName().startsWith(RECEIVER_PREFIX);\n\t\t\t}\n\n\t\t});\n\t\tfor(int i = 0; i < subdirs.length; i++) {\n\n\t\t\tFile subdir = subdirs[i];\n\n\t\t\t// Scan all its valid files.\n\t\t\tFile[] files = subdir.listFiles(new FileFilter() {\n\n\t\t\t\tpublic boolean accept(File f) {\n\t\t\t\t\treturn !f.isDirectory() && f.getName().startsWith(MESSAGE_PREFIX);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfor(int j = 0; j < files.length; j++) {\n\n\t\t\t\tFile toRead = files[j];\n\n\t\t\t\t// Read the file content\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(toRead));\n\n\t\t\t\t// Read the number of copies\n\t\t\t\tString strHowMany = in.readLine();\n\n\t\t\t\tlong howMany = 1;\n\t\t\t\ttry {\n\t\t\t\t\thowMany = Long.parseLong(strHowMany);\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nfe) {\n\t\t\t\t\t// Do nothing; the default value will be used\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\t// NL (23/01/04) GenericMessage are now stored using Java serialization\n\t\t\t\t\tString encodedMsg = in.readLine();\n\t\t\t\t\t// String.getBytes is, in general, an irreversible operation. However, in this case, because\n\t\t\t\t\t// the content was previously encoded Base64, we can expect that we will have only valid Base64 chars. \n\t\t\t\t\tByteArrayInputStream istream = new ByteArrayInputStream(Base64.decodeBase64(encodedMsg.getBytes(\"US-ASCII\"))); \n\t\t\t\t\tObjectInputStream p = new ObjectInputStream(istream);\n\t\t\t\t\tGenericMessage message = (GenericMessage) p.readObject();\n\t\t\t\t\tistream.close(); \n\n\t\t\t\t\t// Use an ACL codec to read in the receiver AID\n\t\t\t\t\tStringACLCodec codec = new StringACLCodec(in, null);\n\t\t\t\t\t// Read the receiver AID\n\t\t\t\t\tAID receiver = codec.decodeAID();\n\n\t\t\t\t\t// Notify the listener that a new item was loaded\n\t\t\t\t\tfor(int k = 0; k < howMany; k++) {\n\t\t\t\t\t\tll.itemLoaded(toRead.getName(), message, receiver);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(ACLCodec.CodecException ce) {\n\t\t\t\t\tSystem.err.println(\"Error reading file \" + toRead.getName() + \" [\" + ce.getMessage() + \"]\");\n\t\t\t\t}\n\t\t\t\tcatch(ClassNotFoundException cnfe) {\n\t\t\t\t\tSystem.err.println(\"Error reading file \" + toRead.getName() + \" [\" + cnfe.getMessage() + \"]\");\n\t\t\t\t}\n\t\t\t\tfinally {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\n\t\t// Notify the listener that the load process ended\n\t\tll.loadEnded(\"\");\n\n\t}",
"@Test\n public void testLoadMessageListFromFolder() {\n System.out.println(\"loadMessageListFromFolder\");\n String folder = \"\";\n ArrayList<String> expResult = new ArrayList<String>();\n ArrayList<String> result = instance.loadMessageListFromFolder(folder);\n assertEquals(expResult, result);\n }",
"private void generateEmails(List<EmailAccount> emailAccounts, int count) {\n \t\t\n \t}",
"private List<Mail> getNewEmails(long time) throws IOException {\n\t\tList<Message> allMsgList = (jciEmail.users().messages().list(\"me\").execute().getMessages());\n\n\t\tList<Mail> newMsgList = new ArrayList<Mail>();\n\n\t\t// Get all the messages in the inbox, and run through them. Check if\n\t\t// they are after the last email receiver. If they are, ensure that they\n\t\t// are valid, and they have not already been added to the old emails. If\n\t\t// that is all true, add them to the list of new messages. If they are\n\t\t// the same time or before the last email, break the loop so it doesn't\n\t\t// go through every single message\n\n\t\tfor (Message m : allMsgList) {\n\t\t\tMessage use = usable(m);\n\t\t\tif (use.getInternalDate().compareTo(time) == 1) {\n\n\t\t\t\tif (isValid(use) == true) {\n\t\t\t\t\tSystem.out.println(\"\\n\\n\\n\\nemail at: \" + use.getInternalDate());\n\t\t\t\t\tnewMsgList.add(convert(use));\n\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn newMsgList;\n\t}",
"public List<NewsletterQueue> select(int maxResult);",
"public List<File> query(List<Group> groups) throws Exception {\n \tList<File> ret = new ArrayList<File>();\n \tInputStream reader = getClass().getResourceAsStream(\"/resources/query-template.json\");\n \tString json = new String();\n \tbyte[] bbuf = new byte[1024];\n \tint count = reader.read(bbuf);\n \twhile(count > 0) { \n \t\tjson += new String(bbuf);\n \t\tcount = reader.read(bbuf);\n \t}\n \treader.close();\n \tArrayList<String> queries = new ArrayList<String>();\n \tfor(Group g: groups) {\n \t\tqueries.add(g.getKey()+\": \\\"\"+g.getValue()+\"\\\"\");\n \t}\n \tString query = StringUtils.join(queries.iterator(), \" \");\n \tjson.replace(\"@@QUERY@@\", query);\n \tHttpResponse resp = client.post(new StringEntity(json), new URI(config.queryurl()), \"application/json\");\n \tString outputJson = this.read_http_entity(resp.getEntity());\n \tJsonParser jsonParser = new JsonParser();\n \tJsonElement firstHits = jsonParser.parse(outputJson);\n \tassert firstHits.isJsonObject();\n \tJsonElement nextHits = firstHits.getAsJsonObject().get(\"hits\");\n \tassert firstHits.getAsJsonObject().get(\"myemsl_auth_token\").isJsonPrimitive();\n \tString authtoken = firstHits.getAsJsonObject().get(\"myemsl_auth_token\").getAsString();\n \tJsonElement lastHits = nextHits.getAsJsonObject().get(\"hits\");\n \tclass ItemIDComparator implements Comparator<File> {\n \t @Override\n \t public int compare(File a, File b) {\n \t \tInteger x = null;\n \t \tInteger y = null;\n \t \ttry {\n \t \t\tx = ((gov.pnnl.emsl.PacificaLibrary.FileAuthInfo)a.getAuthInfo()).itemID;\n \t \t\ty = ((gov.pnnl.emsl.PacificaLibrary.FileAuthInfo)b.getAuthInfo()).itemID;\n \t \t} catch (Exception ex) {}\n \t \treturn x.compareTo(y);\n \t }\n \t}\n \tfor(JsonElement item: lastHits.getAsJsonArray())\n \t{\n \t\tassert item.isJsonObject();\n \t\tJsonElement source = item.getAsJsonObject().get(\"_source\");\n \t\tif(isSubSet(groups, source.getAsJsonObject())) {\n \t\t\tString filename = source.getAsJsonObject().get(\"filename\").getAsString();\n \t\t\tInteger itemid = Integer.parseInt(item.getAsJsonObject().get(\"_id\").getAsString());\n \t\tret.add(new FileMetaData(filename, null, null, new FileAuthInfo(itemid, filename, authtoken)));\n \t\t}\n \t}\n \tCollections.sort(ret, new ItemIDComparator());\n \treturn ret;\n }",
"public static void main(String[] args) throws IOException {\n\t\tGmailApi api = new GmailApi();\n\t\t\n\t\t//List all messages\n\t\tint pageSize = 5;\n\t\tString nextPageToken = \"-1\";\n\t\t\n\t\tString messages = api.listMessages(pageSize, nextPageToken);\n\t\tSystem.out.println(messages);\n\t\t\n\t\t//List all labels\n\t\tString labels = api.listLabels();\n\t\tSystem.out.println(labels);\n\t\t\n\t\t//Writing labels to csv file\n\t\tCsvWriter csvWriter = new CsvWriter();\n\t\tcsvWriter.writeToCsv(labels);\n\t\t\n\t}",
"@GET(\"user-notification-content?expand=notification,notification.translations,notification.notificationResultType&sort=-time_from\")\n Call<NotificationsResponse> getNotifications(@Query(\"from\") long from,\n @Query(\"to\") long to,\n @Query(\"notification_result_accepted\") int notification_result_accepted,\n @Query(\"per-page\") double per_page);",
"public static BctsJobHeader listFile(final File folder) {\n\t\tBctsXMLReader xmlReader=new BctsXMLReader();\n\t\tBctsJobHeader jobHeader=null;\n\t\tfinal File[] fileEntry1=folder.listFiles();\n\t\tif(fileEntry1!=null && fileEntry1.length>0) {\n\t\t\ttry {\n\t\t\tjobHeader=xmlReader.getJobHeaderDetails(fileEntry1[0].toString());\n\t\t\tif(null!=jobHeader) {\n \t\tmoveFile(fileEntry1[0]);\n\t\t\t}\n\t\t\t}catch(BctsXMLProcessException ex) {\n \t\tLOG.error(\"listFile() BctsXMLProcessException\",ex);\n \t}\n\t\t}\n return jobHeader;\n }",
"protected abstract String[] getFolderList() throws IOException;",
"static public void readServerFiles(DbxClientV2 client) throws Exception\n\t{\n ListFolderResult result = client.files().listFolder(\"\");\n while (true) {\n for (Metadata metadata : result.getEntries()) {\n System.out.println(metadata.getPathLower());\n }\n if (!result.getHasMore()) {\n break;\n }\n result = client.files().listFolderContinue(result.getCursor()); \n }\n\t}",
"@RequestMapping(value = \"/groupDownloadFiles\", method = RequestMethod.GET)\r\n\tpublic ModelAndView groupDownloadFiles(HttpServletRequest request, HttpServletResponse response) throws SystemException {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: groupDownloadFiles()\");\r\n\t\tModelAndView modelAndView = new ModelAndView(\"inors/groupDownloadFiles\");\r\n\t\tString grpList = \"\";\r\n\t\tUserTO loggedinUserTO = (UserTO) request.getSession().getAttribute(IApplicationConstants.LOGGEDIN_USER_DETAILS);\r\n\t\tlong orgLevel = (Long) request.getSession().getAttribute(IApplicationConstants.CURRORGLVL);\r\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\r\n\t\tparamMap.put(\"loggedinUserTO\", loggedinUserTO);\r\n\t\tparamMap.put(\"gdfExpiryTime\", propertyLookup.get(\"gdfExpiryTime\"));\r\n\t\tList<JobTrackingTO> groupList = reportService.getAllGroupDownloadFiles(paramMap);\r\n\t\tif (groupList != null && !groupList.isEmpty()) {\r\n\t\t\tfor (JobTrackingTO to : groupList) {\r\n\t\t\t\tString displayFilename = to.getRequestFilename();\r\n\t\t\t\tif (IApplicationConstants.REQUEST_TYPE.GDF.toString().equals(to.getRequestType())\r\n\t\t\t\t\t\t&& !IApplicationConstants.CONTRACT_NAME.usmo.toString().equals(Utils.getContractName())) {\r\n\t\t\t\t\tif (displayFilename != null && !displayFilename.isEmpty()) {\r\n\t\t\t\t\t\tint length = displayFilename.length();\r\n\t\t\t\t\t\tint u = displayFilename.lastIndexOf(\"_\");\r\n\t\t\t\t\t\tint e = displayFilename.lastIndexOf(\".\");\r\n\t\t\t\t\t\tlogger.log(IAppLogger.INFO, \"length=\" + length + \", u=\" + u + \", e=\" + e);\r\n\t\t\t\t\t\tif (u > -1 && e > -1 && length > u && length > e && e > u) {\r\n\t\t\t\t\t\t\tString prefix = displayFilename.substring(0, u);\r\n\t\t\t\t\t\t\tString suffix = displayFilename.substring(e);\r\n\t\t\t\t\t\t\tdisplayFilename = prefix + suffix;\r\n\t\t\t\t\t\t\tlogger.log(IAppLogger.INFO, \"displayFilename=\" + displayFilename);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(IApplicationConstants.CONTRACT_NAME.usmo.toString().equals(Utils.getContractName())) {\r\n\t\t\t\t\t// this section is for MO\r\n\t\t\t\t\tif (displayFilename != null && !displayFilename.isEmpty()) {\r\n\t\t\t\t\t\tint length = displayFilename.length();\r\n\t\t\t\t\t\tint u = displayFilename.lastIndexOf(\"_\");\r\n\t\t\t\t\t\tint e = displayFilename.lastIndexOf(\".\");\r\n\t\t\t\t\t\tlogger.log(IAppLogger.INFO, \"length=\" + length + \", u=\" + u + \", e=\" + e);\r\n\t\t\t\t\t\tif (u > -1 && e > -1 && length > u && length > e && e > u) {\r\n\t\t\t\t\t\t\tString prefix = displayFilename.substring(0, u);\r\n\t\t\t\t\t\t\tString suffix = displayFilename.substring(e);\r\n\t\t\t\t\t\t\tif(!(\".PDF\".equalsIgnoreCase(suffix) || \".ZIP\".equalsIgnoreCase(suffix))) suffix = \"\"; \r\n\t\t\t\t\t\t\tdisplayFilename = prefix + suffix;\r\n\t\t\t\t\t\t\tlogger.log(IAppLogger.INFO, \"displayFilename=\" + displayFilename);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tto.setDisplayFilename(displayFilename);\r\n\t\t\t\tto.setOrgLevel(orgLevel);\r\n\t\t\t}\r\n\t\t\tmodelAndView.addObject(\"groupList\", groupList);\r\n\t\t\tgrpList = JsonUtil.convertToJsonAdmin(groupList);\r\n\t\t}\r\n\t\tparamMap.clear();\r\n\t\tparamMap.put(\"messageNames\", \"GDF Notice,GDF Header Message\");\r\n\t\tMap<String, String> gdfMessages = reportService.getGenericSystemConfigurationMessages(paramMap);\r\n\t\tmodelAndView.addObject(\"gdfMessages\", gdfMessages);\r\n\t\tlogger.log(IAppLogger.INFO, \"gdfMessages: \" + gdfMessages);\r\n\t\tlogger.log(IAppLogger.INFO, \"grpList: \" + grpList);\r\n\t\tlogger.log(IAppLogger.INFO, \"Exit: groupDownloadFiles()\");\r\n\t\treturn modelAndView;\r\n\t}",
"@Test\n\tpublic void resultToPrintLimit25() {\n\t\tResultToPrint.setLimitRead(25);\n\t\t//execute\n\t\tList<ClientEntity> response = ResultToPrint.getSuspiciousClients(mapClients);\n\t\tassertEquals(1, response.size());\n\t\tassertEquals(ID_CLIENT_2, response.get(0).getId());\n\t\tassertEquals(\"2014\", response.get(0).getMonth());\n\t\tassertEquals(ID_CLIENT_READING_2, response.get(0).getReading());\n\t}",
"public static void goThroughFilesForFolder(final File folder) throws Exception {\r\n\r\n\t\t/*\r\n\t\t * char[] filePath;\r\n\t\t// *Files.walk(Paths.get(\"E:/Studying/eclipse/workspace/Thesis/PMIDs\")).\r\n\t\t * Files.walk(Paths.get(\"E:/Studying/Box Sync/workspace/Thesis/PMIDs\")).\r\n\t\t * forEach(filePath -> { if (Files.isRegularFile(filePath)) {\r\n\t\t * System.out.println(filePath); } }\r\n\t\t */\r\n\t\t// /*\r\n\t\tfor (final File fileEntry : folder.listFiles()) {\r\n\t\t\tif (fileEntry.isDirectory()) {\r\n\t\t\t\tgoThroughFilesForFolder(fileEntry);\r\n\t\t\t} else {\r\n\t\t\t\tprocessFile(fileEntry);\r\n\t\t\t\t// System.out.println(fileEntry.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\t// */\r\n\t}",
"public void getCache(int docid){\n try {\n FileReader fr;\n String file_name = ServerThread.collection_path+docid+\".html\";\n fr = new FileReader(file_name);\n BufferedReader file_input = new BufferedReader(fr);\n String line;\n String file_content=\"\";\n while ((line = file_input.readLine()) != null) {\n file_content += line;\n }\n fr.close(); \n send(file_content);\n //System.out.println(file_content); \n } \n catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Could not access file: \"+docid);\n } \n }",
"public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }",
"public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);",
"@Override\r\n\tpublic void downloadEmailAttachments(String host, String port, String userName, String password) {\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\t// server setting\r\n\t\tproperties.put(\"mail.pop3.host\", host);\r\n\t\tproperties.put(\"mail.pop3.port\", port);\r\n\r\n\t\t// SSL setting\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.fallback\", \"false\");\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.port\", String.valueOf(port));\r\n\r\n\t\tSession session = Session.getDefaultInstance(properties);\r\n\r\n\t\ttry {\r\n\t\t\t// connects to the message store\r\n\t\t\tStore store = session.getStore(\"pop3\");\r\n\t\t\tstore.connect(userName, password);\r\n\r\n\t\t\t// opens the inbox folder\r\n\t\t\tFolder folderInbox = store.getFolder(\"INBOX\");\r\n\t\t\tfolderInbox.open(Folder.READ_ONLY);\r\n\r\n\t\t\t// fetches new messages from server\r\n\t\t\tMessage[] arrayMessages = folderInbox.getMessages();\r\n\r\n\t\t\tfor (int i = 0; i < arrayMessages.length; i++) {\r\n\t\t\t\tMessage message = arrayMessages[i];\r\n\t\t\t\tAddress[] fromAddress = message.getFrom();\r\n\t\t\t\tString from = fromAddress[0].toString();\r\n\t\t\t\tString subject = message.getSubject();\r\n\t\t\t\tString sentDate = message.getSentDate().toString();\r\n\r\n\t\t\t\tString contentType = message.getContentType();\r\n\t\t\t\tString messageContent = \"\";\r\n\r\n\t\t\t\t// store attachment file name, separated by comma\r\n\t\t\t\tString attachFiles = \"\";\r\n\r\n\t\t\t\tif (contentType.contains(\"multipart\")) {\r\n\t\t\t\t\t// content may contain attachments\r\n\t\t\t\t\tMultipart multiPart = (Multipart) message.getContent();\r\n\t\t\t\t\tint numberOfParts = multiPart.getCount();\r\n\t\t\t\t\tfor (int partCount = 0; partCount < numberOfParts; partCount++) {\r\n\t\t\t\t\t\tMimeBodyPart part = (MimeBodyPart) multiPart.getBodyPart(partCount);\r\n\t\t\t\t\t\tif (Part.ATTACHMENT.equalsIgnoreCase(part.getDisposition())) {\r\n\t\t\t\t\t\t\t// this part is attachment\r\n\t\t\t\t\t\t\tString fileName = part.getFileName();\r\n\t\t\t\t\t\t\tattachFiles += fileName + \", \";\r\n\t\t\t\t\t\t\tpart.saveFile(saveDirectory + File.separator + fileName);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// this part may be the message content\r\n\t\t\t\t\t\t\tmessageContent = part.getContent().toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (attachFiles.length() > 1) {\r\n\t\t\t\t\t\tattachFiles = attachFiles.substring(0, attachFiles.length() - 2);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (contentType.contains(\"text/plain\") || contentType.contains(\"text/html\")) {\r\n\t\t\t\t\tObject content = message.getContent();\r\n\t\t\t\t\tif (content != null) {\r\n\t\t\t\t\t\tmessageContent = content.toString();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t//print out details of each message\r\n\t\t\t\t System.out.println(\"Message #\" + (i + 1) + \":\");\r\n\t System.out.println(\"\\t From: \" + from);\r\n\t System.out.println(\"\\t Subject: \" + subject);\r\n\t System.out.println(\"\\t Sent Date: \" + sentDate);\r\n\t System.out.println(\"\\t Message: \" + messageContent);\r\n\t System.out.println(\"\\t Attachments: \" + attachFiles);\r\n\t\t\t}\r\n\r\n\t\t\t// disconnect\r\n\t\t\tfolderInbox.close(false);\r\n\t\t\tstore.close();\r\n\t\t} catch (NoSuchProviderException ex) {\r\n\t\t\tSystem.out.println(\"No provider for pop3.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t} catch (MessagingException ex) {\r\n\t\t\tSystem.out.println(\"Could not connect to the message store\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t}\r\n\t}",
"public void getFolderData(View view) {\n if (mDriveServiceHelper != null) {\n Intent intent = new Intent(this, ListActivity.class);\n\n mDriveServiceHelper.getFolderFileList()\n .addOnSuccessListener(new OnSuccessListener<ArrayList<GoogleDriveFileHolder>>() {\n @Override\n public void onSuccess(ArrayList<GoogleDriveFileHolder> result) {\n Log.e(TAG, \"onSuccess: result: \"+result.size() );\n intent.putParcelableArrayListExtra(\"fileList\", result);\n startActivity(intent);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n showMessage(\"Not able to access Folder data.\");\n Log.e(TAG, \"Not able to access Folder data.\", e);\n }\n });\n }\n }"
] |
[
"0.6193701",
"0.6142947",
"0.59115624",
"0.5844683",
"0.5742718",
"0.56708956",
"0.5643371",
"0.56135446",
"0.55486125",
"0.5430377",
"0.5362858",
"0.5362009",
"0.5360944",
"0.5332744",
"0.5295104",
"0.52905303",
"0.5241488",
"0.52289236",
"0.5205708",
"0.51594865",
"0.5145231",
"0.51117784",
"0.51086205",
"0.50992805",
"0.5093893",
"0.5083255",
"0.5076917",
"0.5035883",
"0.500951",
"0.5008146",
"0.49967587",
"0.49894044",
"0.49835548",
"0.4973954",
"0.4971317",
"0.4956296",
"0.4941724",
"0.4925686",
"0.49145263",
"0.4909475",
"0.49073422",
"0.4904412",
"0.49007353",
"0.4898084",
"0.4888001",
"0.48760727",
"0.48661354",
"0.48542735",
"0.484426",
"0.4836692",
"0.48330203",
"0.4819476",
"0.4816713",
"0.47973916",
"0.47891217",
"0.47868302",
"0.47773793",
"0.47764367",
"0.47677234",
"0.47666642",
"0.47658464",
"0.4763401",
"0.4760957",
"0.47502607",
"0.47412068",
"0.47379002",
"0.4715712",
"0.47125897",
"0.47025993",
"0.46960488",
"0.46931815",
"0.46897537",
"0.468954",
"0.4681917",
"0.46784714",
"0.46775907",
"0.46768758",
"0.46760342",
"0.46617663",
"0.46550852",
"0.46509433",
"0.4650341",
"0.46488953",
"0.46476158",
"0.4644765",
"0.46436366",
"0.463669",
"0.46297464",
"0.46251595",
"0.46248087",
"0.46233433",
"0.46150818",
"0.46137425",
"0.4612201",
"0.46087542",
"0.4608053",
"0.46076292",
"0.46050236",
"0.4600654",
"0.45986122"
] |
0.6340529
|
0
|
Create a Store Object for Mail Recieve. Following steps are followed 1. Fetch all Receive protocol details and construct a properties object 2. Create a new Session with the properties 3. Return the created Store object from Session
|
private Store getStore() throws MessagingException {
// create properties field
Properties properties = getProtocolProporties(PROTOCOL_RECEIVE);
Session emailSession = Session.getDefaultInstance(properties);
return connectSessionStore(emailSession);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void createStore() {\n\n try {\n\n MailboxProtocolEnum curMbPrtcl = this.loginData.getMailboxProtocol();\n\n // Get a Properties and Session object\n Properties props = JavamailUtils.getProperties();\n\n // Trustmanager needed?\n if(curMbPrtcl.isUseOfSsl()) {\n\n MailSSLSocketFactory socketFactory = new MailSSLSocketFactory();\n socketFactory.setTrustManagers(new TrustManager[]\n { this.trustManager });\n\n props.put((\"mail.\" + curMbPrtcl.getProtocolId() + \".ssl.socketFactory\"),\n socketFactory);\n }\n\n Session session = Session.getInstance(props, null);\n session.setDebug(false);\n\n this.store = session.getStore(curMbPrtcl.getProtocolId());\n }\n catch(NoSuchProviderException e) {\n\n throw(new RuntimeException((\"Unknown Protocol: \" +\n this.loginData.getMailboxProtocol()), e));\n }\n catch(GeneralSecurityException gse) {\n\n throw(new RuntimeException((\"Security-problem: \" + gse.getMessage()),\n gse));\n }\n }",
"private Store connectSessionStore(Session emailSession) throws MessagingException {\n\t\tStore store = null;\n\t\tswitch (getProperty(PROTOCOL_RECEIVE)) {\n\t\tcase POP3:\n\t\t\t// create the POP3 store object and connect with the pop server\n\t\t\tstore = emailSession.getStore(POP3);\n\t\t\t// Connect to the store\n\t\t\tstore.connect(getProperty(\"POP3_HOST\"), getProperty(\"username\"), getPassword());\n\t\t\tbreak;\n\t\tcase IMAP:\n\t\t\t// create the IMAP store object and connect with the imap server\n\t\t\tstore = emailSession.getStore(IMAP);\n\t\t\t// Connect to the store\n\t\t\tstore.connect(getProperty(\"IMAP4_HOST\"), getProperty(\"username\"), getPassword());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn null;\t\n\t\t}\n\t\treturn store;\n\t}",
"private Session createSession(final String protocol, final Properties additionalProperties, final boolean isGmail,\n final boolean autoTrustSsl)\n {\n Properties props = new Properties(additionalProperties);\n // necessary to work with Gmail\n if (isGmail && !props.containsKey(\"mail.imap.partialfetch\") && !props.containsKey(\"mail.imaps.partialfetch\")) {\n props.put(\"mail.imap.partialfetch\", \"false\");\n props.put(\"mail.imaps.partialfetch\", \"false\");\n }\n props.put(\"mail.store.protocol\", protocol);\n // TODO set this as an option (auto-trust certificates for SSL)\n props.put(\"mail.imap.ssl.checkserveridentity\", \"false\");\n props.put(\"mail.imaps.ssl.trust\", \"*\");\n /*\n * MailSSLSocketFactory socketFactory = new MailSSLSocketFactory(); socketFactory.setTrustAllHosts(true);\n * props.put(\"mail.imaps.ssl.socketFactory\", socketFactory);\n */\n Session session = Session.getInstance(props, null);\n session.setDebug(true);\n\n return session;\n }",
"private Session setUpEmailSession() throws MessagingException {\n Authenticator auth = new SimpleAuthenticator(mailUsername, mailPassword);\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtp.host\", mailHost);\r\n Session session = Session.getDefaultInstance(props, auth);\r\n Store store = session.getStore(\"pop3\");\r\n store.connect(mailHost, mailUsername, mailPassword); \r\n return session;\r\n }",
"protected Store getStore() throws MessagingException {\n\t\tSession session = EmailUtil.createSession(protocol, timeoutMs);\n\t\treturn session.getStore();\n\t}",
"private Store openStore() throws MessagingException {\n\t\tStore store = getStore();\n\t\tstore.connect(host, port, name, password);\n\t\treturn store;\n\t}",
"public ObjectStore getCEObjectStore()\r\n\t{\r\n\t\tString Uri = ReadProperty.getProperty(\"URI\");\r\n\t\tConnection conn = Factory.Connection.getConnection(Uri); \r\n\t\t//String decryptpassword = encrypt.decrypt(ReadProperty.getProperty(\"PASSWORD\"));\r\n\t\tString decryptedpassword = encrypt.getDeMes(ReadProperty.getProperty(\"USER_NAME\"), ReadProperty.getProperty(\"PASSWORD\"));\r\n\t\tSubject subject = UserContext.createSubject(conn, ReadProperty.getProperty(\"USER_NAME\"),decryptedpassword,null);\r\n\t\tUserContext.get().pushSubject(subject);\r\n\t\tDomain domain = Factory.Domain.fetchInstance(conn, ReadProperty.getProperty(\"DOMAIN\"), null);\r\n\t\tobjstore=Factory.ObjectStore.fetchInstance(domain, ReadProperty.getProperty(\"OBJECTSTORE\"), null);\r\n\t\t\r\n\t\t\r\n\r\n\t\tlogger.info(\"In getCESession\");\r\n\r\n\r\n\t\tlogger.info(\"Connected To CE Succesfully \" + objstore.get_Name());\r\n\r\n\r\n\r\n\t\treturn objstore;\r\n\t}",
"private static Properties init(){\n // Get a Properties object\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\n props.setProperty(\"mail.smtp.port\", \"465\");\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.auth\", \"true\");\n //props.put(\"mail.debug\", \"true\");\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n\n return props;\n }",
"private Session createMailingSession() {\n final String username = \"EMAIL\";\r\n final String password = \"PASSWORD\";\r\n Properties prop = new Properties();\r\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n prop.put(\"mail.smtp.port\", \"587\");\r\n prop.put(\"mail.smtp.auth\", \"true\");\r\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\r\n return Session.getInstance(prop,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }\r\n });\r\n }",
"private Store connectMailServer(String sslConnection) {\r\n\r\n\t\t// connect to mail server\r\n\t\tStore store;\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.setProperty(\"mail.store.protocol\", \"imap\");\r\n\t\t\tif (sslConnection.equalsIgnoreCase(\"true\")) {\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.class\",\r\n\t\t\t\t\t\t\"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.fallback\", \"false\");\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.port\", sslPort);\r\n\t\t\t}\r\n\t\t\tSession session = Session.getDefaultInstance(props);\r\n\t\t\tstore = session.getStore(\"imap\");\r\n\r\n\t\t\tif (port != 0)\r\n\t\t\t\tstore.connect(mailServer, port, userName, password);\r\n\t\t\telse\r\n\t\t\t\tstore.connect(mailServer, userName, password);\r\n\r\n\t\t} catch (NoSuchProviderException e) {\r\n\t\t\tthrow new IQserRuntimeException(e);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\tthrow new IQserRuntimeException(e);\r\n\t\t}\r\n\t\treturn store;\r\n\t}",
"public boolean connect() throws MessagingException {\r\n\r\n // check if authentication is needed\r\n MailAuthenticator authenticator = null;\r\n\r\n // if authentication needed, create an authenticator\r\n if (mReceiverInfo.isValidate()) {\r\n authenticator = new MailAuthenticator(mReceiverInfo.getUserName(), mReceiverInfo.getPassword());\r\n }\r\n\r\n // create a session\r\n Session session = Session.getInstance(mReceiverInfo.getProperties(), authenticator);\r\n\r\n // create a store, establish the connection\r\n try {\r\n mStore = session.getStore(mReceiverInfo.getProtocal());\r\n }\r\n catch (NoSuchProviderException e) {\r\n return false;\r\n }\r\n\r\n try {\r\n mStore.connect();\r\n }\r\n catch (MessagingException e) {\r\n // Connect to pop3 server failed!\r\n throw e;\r\n }\r\n\r\n return true;\r\n }",
"private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }",
"public interface RemoteStore extends Remote {\n \n /**\n * Get a description of this store\n * @return\n */\n public StoreDescription getDescription() throws RemoteException;\n\n /**\n * Get a catalog of products available through this store.\n * @return ProductCatalog\n */\n public ProductCatalog getCatalog() throws RemoteException;\n \n /**\n * Record the specified transaction. Note that this method is responsible\n * for issuing a Receipt object (this may be null in cases where errors\n * have occurred.)\n * @return Receipt a receipt for the transaction\n * @param transaction the transaction to record\n */\n public Receipt recordTransaction(Transaction t) throws RemoteException;\n}",
"public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }",
"private Session session(Properties props) {\n return Session.getInstance(props,\n new Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"happinessbarometer2014\");\n }\n }\n );\n }",
"private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }",
"public alluxio.proto.journal.KeyValue.CreateStoreEntryOrBuilder getCreateStoreOrBuilder() {\n if (createStoreBuilder_ != null) {\n return createStoreBuilder_.getMessageOrBuilder();\n } else {\n return createStore_;\n }\n }",
"public void establishConnection() {\r\n\t\t// Load IMAP-Account credentials from the property file\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\"server_resources/IMAPAccountCredentials.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\thost = prop.getProperty(\"imapHost\");\r\n\t\tuser = prop.getProperty(\"imapUsername\");\r\n\t\tpassword = prop.getProperty(\"imapPassword\");\r\n\t\tuseSSL = Boolean.parseBoolean(prop.getProperty(\"useSSL\"));\r\n\r\n\t\t// Create session for account\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(\"mail.imap.host\", host);\r\n\t\tif (useSSL) {\r\n\t\t\tprops.put(\"mail.imap.socketFactory.port\", \"993\");\r\n\t\t\tprops.put(\"mail.imap.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\tprops.put(\"mail.imap.auth\", \"true\");\r\n\t\t\tprops.put(\"mail.imap.port\", \"993\");\r\n\t\t}\r\n\t\tSession session = Session.getDefaultInstance(props, new javax.mail.Authenticator() {\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\treturn new PasswordAuthentication(user, password);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal URLName unusedUrlName = null;\r\n\t\tif (useSSL) {\r\n\t\t\tstore = new IMAPSSLStore(session, unusedUrlName);\r\n\t\t} else {\r\n\t\t\tstore = new IMAPStore(session, unusedUrlName);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tstore.connect(host, user, password);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"Delivery createDelivery();",
"@Override\n\tpublic Session createSession(SessionBasicInfo sessionBasicInfo) {\n\t\tSession session = sessionStore.createSession( sessionBasicInfo);\n\t\tif(session == null)\n\t\t\treturn null;\n\t\tsession._setSessionStore(this);\n\t\tsession.putNewStatus();\n\t\t\n\t\treturn session;\n\t}",
"protected void populateExtranInfoAndCreateFactory() throws MessageBusException {\n\t\tString filePath = null;\n\n\t\tfilePath = locateFile(\"MessageBus.properties\");\n\t\tif (filePath != null) {\n\t\t\tFile propertyFile = new File(filePath);\n\t\t\tif (propertyFile.exists()) {\n\t\t\t\tProperties mbProperty = loadPropertiesFile(filePath);\n\t\t\t\tconnectionType = mbProperty.getProperty(\"connectionType\");\n\t\t\t\t// If not found in the property file then assume Queue\n\t\t\t\tif (null == connectionType) {\n\t\t\t\t\tconnectionType = IMessageBusConnection.DEFAULT_CONNECTION_TYPE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserName = mbProperty.getProperty(\"userName\");\n\t\t\t\tpassword = mbProperty.getProperty(\"password\");\n\t\t\t\tcertPath = mbProperty.getProperty(\"certPath\");\n\t\t\t\tcertPassword = mbProperty.getProperty(\"certPassword\");\n\n\t\t\t\tif(certPath == null || certPassword == null){\n\t\t\t\t\tthrow new MessageBusException(\"ERROR :: certPath or certPassword is missing from MessageBus.properties\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthrow new MessageBusException(\"ERROR :: MessageBus.properties is missing from Classapth\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new MessageBusException(\"ERROR :: MessageBus.properties is missing from Classapth\");\n\t\t}\n\t\tcreateFactory();\n\t}",
"public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session);\n\t\treturn session;\n\t}",
"public SimpleDataStore () {\n\t\tmessageMap = new HashMap<String , List<Message>>() ;\n\t}",
"public Mail() {\n this.login();\n this.setMessages();\n }",
"public interface IncomingSmsStore extends IdentifiableObjectStore<IncomingSms>\n{\n String ID = IncomingSmsStore.class.getName();\n\n List<IncomingSms> getSmsByStatus(SmsMessageStatus status, String originator);\n\n List<IncomingSms> getAll(Integer min, Integer max, boolean hasPagination);\n\n List<IncomingSms> getSmsByStatus(SmsMessageStatus status, String keyword, Integer min,\n Integer max, boolean hasPagination);\n\n List<IncomingSms> getSmsByOriginator(String originator);\n\n List<IncomingSms> getAllUnparsedMessages();\n}",
"public TycoAgent() {\n\n\t\t// Initialize the Gmail, clear its emails via initialize(), initialize\n\t\t// the whole map with the init message, then initialize the new map,\n\t\t// dummy databse, auth users, and auth threads\n\t\tjciEmail = GmailAuthorize.getGmailService();\n\t\t// initialize();\n\t\trecentMailMap = new HashMap<String, Mail>();\n\n\t}",
"private Properties getMailProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"mail.transport.protocol\", \"smtp\");\n properties.setProperty(\"mail.smtps.auth\", \"true\");\n properties.setProperty(\"mail.smtp.starttls.required\", \"true\");\n properties.setProperty(\"mail.smpt.starttls.enable\", \"true\");\n properties.setProperty(\"mail.debug\", \"false\"); // set to true for debugging information\n \n return properties;\n }",
"public NotificationStore(){}",
"public AposGsm (Properties props) throws IOException {\n\t\t\n\t\tphoneNumber = props.getProperty (PROP_PHONE_NUMBER);\n\t\t\n\t\tconnectionProperties = new Properties ();\n\t\tconnectionProperties.putAll (props);\n\t\tconnectionProperties.setProperty (ObjectFactory.PROP_CLASS_NAME, props.getProperty (PROP_CONNECTOR_CLASS_NAME));\n\t\tconnectionProperties.remove (PROP_CONNECTOR_CLASS_NAME);\n\t}",
"protected Session createSession (ServerChannel channel) {\n return new Session (channel);\n }",
"public alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore() {\n if (createStoreBuilder_ == null) {\n return createStore_;\n } else {\n return createStoreBuilder_.getMessage();\n }\n }",
"public Session createSession() {\n\t\treturn this.session;\n\t}",
"public void createDataStore (){\n\t\tcloseActiveStoreData ();\n\t\tif (_usablePersistenceManager){\n\t\t\tclosePersistence ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tthis.pm = DataStoreUtil.createDataStore (getDataStoreEnvironment (), true);\n\t\t_usablePersistenceManager = true;\n\t}",
"public alluxio.proto.journal.KeyValue.CreateStoreEntryOrBuilder getCreateStoreOrBuilder() {\n return createStore_;\n }",
"public MailSendObj() {\n\t\t// TODO Auto-generated constructor stub\n\t\tprops.setProperty(\"mail.transport.protocol\", \"smtp\"); // 使用的协议(JavaMail规范要求) \n props.put(\"mail.smtp.host\", \"smtp.office365.com\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\",\"true\");\n props.put(\"mail.smtp.auth\", \"true\"); \n\t\t\n\t}",
"public Store() {\r\n\t\tsuper();\r\n\t}",
"public synchronized static Store getInstance(String uri, Application application) throws MessagingException {\n Store store = mStores.get(uri);\n if (store == null) {\n if (uri.startsWith(STORE_SCHEME_IMAP)) {\n store = new ImapStore(uri);\n } else if (uri.startsWith(STORE_SCHEME_POP3)) {\n store = new Pop3Store(uri);\n } else if (uri.startsWith(STORE_SCHEME_LOCAL)) {\n store = new LocalStore(uri, application);\n }\n\n if (store != null) {\n mStores.put(uri, store);\n }\n }\n\n if (store == null) {\n throw new MessagingException(\"Unable to locate an applicable Store for \" + uri);\n }\n\n return store;\n }",
"InputStream readStreamFromStore(String locator, Mailbox mbox) throws IOException;",
"protected abstract SESSION newSessionObject() throws EX;",
"public interface ETLPersistableMessage {\n\n /**\n * Setter for Parts\n * \n * @param theParts for the container\n */\n public void addPart(String partName, Object partValue);\n\n /**\n * GETs part from name\n * \n * @param partName\n * @return Object\n */\n public Object getPart(String partName);\n\n /**\n * getter for Parts\n * \n * @return theParts for the container\n */\n public Map getParts();\n\n /**\n * Persists (serialize) this message.\n * \n * @param dos The DataOutputStream to which the Java Bean message is persisted.\n * @throws Exception upon error.\n */\n public void persist(DataOutputStream dos) throws Exception;\n\n /**\n * Restore (deserialize) this message.\n * \n * @param version The version of the message read from persistent store.\n * @param dis The DataInputStream from which the Java Bean message is restored.\n * @throws Exception upon error.\n */\n public void restore(DataInputStream dis) throws Exception;\n\n /**\n * Setter for Parts\n * \n * @param theParts for the container\n */\n public void setParts(Map theParts);\n\n}",
"DatastoreSession createSession();",
"public QueueSenderSession ()\r\n {\r\n\r\n\r\n }",
"public MessageDestinationFactory() {\n this.properties = new ConfigMap();\n }",
"public WebSession(){\n\tstartmodel = new StartModel();\n\tgraphmodel = new GraphModel();\n\treportmodel = new ReportModel();\n\tsetupmodel = new SetupModel();\n }",
"private Properties getProtocolProporties(String protocol) {\n\t\tProperties properties = new Properties();\n\t\tswitch (getProperty(protocol)) {\n\t\tcase POP3:\n\t\t\tproperties.put(\"mail.pop3.host\", getProperty(\"POP3_HOST\"));\n\t\t\tproperties.put(\"mail.pop3.port\", getProperty(\"POP3_PORT\"));\n\t\t\tproperties.put(\"mail.pop3.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase SMTP:\n\t\t\tproperties.put(\"mail.smtp.port\", getProperty(\"SMTP_PORT\"));\n\t\t\tproperties.put(\"mail.smtp.host\", getProperty(\"SMTP_HOST\"));\n\t\t\t// properties.put(\"mail.smtp.ssl.enable\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.auth\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase IMAP:\n\t\t\tproperties.put(\"mail.imap.user\", getProperty(\"username\"));\n\t\t\tproperties.put(\"mail.imap.host\", getProperty(\"IMAP4_HOST\"));\n\t\t\tproperties.put(\"mail.imap.port\", getProperty(\"IMAP4_PORT\"));\n\t\t\tproperties.put(\"mail.imap.ssl.enable\", \"true\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t\treturn properties;\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t\tsubscribeBroadcast(TickBroadcast.class, tick_msg -> { //subscribe to timer\n\t\t\tif (!tick_msg.isRunning()){ //if reached duration time \n\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" is terminating \");\n\t\t\t\tterminate();\n\t\t\t}\n\t\t\tsetTick(tick_msg.getTick());\n\t\t\t\n\t\t\tif (curr_request!=null){\n\t\t\t\tif (curr_amount>0){\n\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" created a pair of \" +curr_request.getShoeType());\n\t\t\t\t\tcurr_amount--;\n\t\t\t\t}\n\t\t\t\telse if (curr_amount==0){\n\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" finished producing the restock request for \"+curr_request.getAmount()+\" \"+curr_request.getShoeType());\n\t\t\t\t\tReceipt r= new Receipt(getName(),\"store\",curr_request.getShoeType(),false,curr_tick,curr_request.getCurr_tick(),curr_request.getAmount());\n\t\t\t\t\tcomplete(curr_request,r);\n\t\t\t\t\tif (!restock_orders.isEmpty()){\n\t\t\t\t\t\tcurr_request = restock_orders.remove();\n\t\t\t\t\t\tcurr_amount = curr_request.getAmount();\n\t\t\t\t\t\tif (curr_amount>0){\n\t\t\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" created a pair of \" +curr_request.getShoeType());\n\t\t\t\t\t\t\tcurr_amount--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcurr_request=null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (!restock_orders.isEmpty()){\n\t\t\t\t\tsetRequest(restock_orders.remove());\n\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" created 1 pair of \"+curr_request.getShoeType());\n\t\t\t\t\tcurr_request.setAmount(curr_request.getAmount()-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsubscribeRequest(ManufacturingOrderRequest.class, man_req -> {\n\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" was asked from the store to produce \"+man_req.getAmount()+\" \"+man_req.getShoeType());\n\t\t\tif (curr_request==null){\n\t\t\t\tsetRequest(man_req);\n\t\t\t\tcurr_amount=man_req.getAmount();\n\t\t\t}\n\t\t\telse\n\t\t\t\ttry {\n\t\t\t\t\trestock_orders.put(man_req);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t});\n\t\t\n\t\tlatchObject.countDown();\n\t}",
"public MessagingSystem()\r\n\t{ \r\n\t\ttopics= new HashMap <String, Topic>(); //the name of the user is the key and the mailbox is its value\r\n\t\tusers= new HashMap <String, User>(); \r\n\t\ttopics.put(\"Commits\", new Topic(\"Commits\"));\r\n\t\ttopics.put(\"Issues\", new Topic(\"Issues\"));\r\n\t\ttopics.put(\"Discussion\", new Topic(\"Discussion\"));\r\n\t\ttopics.put(\"Tasks\", new Topic(\"Tasks\"));\r\n\t\t\r\n\t}",
"protected abstract Message createMessage(Object object, MessageProperties messageProperties);",
"public String fetchProfile() throws Exception {\n\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\t\tMerchantStore profile = null;\n\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tprofile = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\tString user = super.getPrincipal().getRemoteUser();\n\t\t\tMerchantUserInformation userInfo = mservice.getMerchantUserInformation(user);\n\n\t\t\t//MerchantUserInformation userInfo = mservice\n\t\t\t//\t\t.getMerchantUserInfo(merchantid.intValue());\n\n\t\t\tif (profile == null) {// should be created from the original\n\t\t\t\t\t\t\t\t\t// subscribtion process\n\t\t\t\tprofile = new MerchantStore();\n\t\t\t\tString serverName = super.getServletRequest().getServerName();\n\t\t\t\tint serverPort = super.getServletRequest().getServerPort();\n\t\t\t\t\n\t\t\t\tif(serverPort>0) {\n\t\t\t\t\tserverName = serverName + \":\" + String.valueOf(serverPort);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprofile.setDomainName(serverName);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tprofile.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\n\t\t\t}\n\n\t\t\tif (profile.getSupportedlanguages() != null\n\t\t\t\t\t&& !profile.getSupportedlanguages().equals(\"\")) {\n\n\t\t\t\tLanguageHelper.setLanguages(profile.getSupportedlanguages(),\n\t\t\t\t\t\tctx);\n\t\t\t\tMap m = ctx.getSupportedlang();\n\t\t\t\tif (m != null && m.size() > 0) {\n\t\t\t\t\tSet s = m.keySet();\n\t\t\t\t\tIterator i = s.iterator();\n\t\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\t\tString key = (String) i.next();\n\t\t\t\t\t\tsupportedLanguages.add(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set at least the user country code\n\t\t\tif (profile.getCountry() == 0) {\n\t\t\t\tprofile.setCountry(userInfo.getUsercountrycode());\n\t\t\t}\n\t\t\t// set a default background\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(1);\n\t\t\t}\n\n\t\t\tif (profile.getStoreaddress() == null) {\n\t\t\t\tprofile.setStoreaddress(userInfo.getUseraddress());\n\t\t\t}\n\n\t\t\tif (profile.getStorecity() == null) {\n\t\t\t\tprofile.setStorecity(userInfo.getUsercity());\n\t\t\t}\n\n\t\t\tif (profile.getStorepostalcode() == null) {\n\t\t\t\tprofile.setStorepostalcode(userInfo.getUserpostalcode());\n\t\t\t}\n\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(new Integer(1));// set to white\n\t\t\t}\n\n\t\t\tprofile.setTemplateModule(profile.getTemplateModule());\n\n\t\t\tDate businessDate = profile.getInBusinessSince();\n\t\t\tif (businessDate == null) {\n\t\t\t\tbusinessDate = new Date();\n\t\t\t}\n\t\t\tthis.setInBusinessSince(DateUtil.formatDate(businessDate));\n\n\t\t\tsuper.prepareSelections(profile.getCountry());\n\n\t\t\tthis.merchantProfile = profile;\n\t\t\treturn SUCCESS;\n\n\t\t} catch (Exception e) {\n\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"errors.technical\"));\n\t\t\tlog.error(e);\n\t\t\treturn ERROR;\n\t\t}\n\t}",
"MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException;",
"private void selfCheck()\n {\n createSession();\n\n // Verify that we can create a mail body\n ImmutableNotification notification = Notification.builder(Instant.now(), \"message\")\n .siteId(1)\n .projectName(\"project\")\n .projectId(2)\n .workflowName(\"workflow\")\n .revision(\"revision\")\n .attemptId(3)\n .sessionId(4)\n .taskName(\"task\")\n .timeZone(ZoneOffset.UTC)\n .sessionUuid(UUID.randomUUID())\n .sessionTime(OffsetDateTime.now())\n .workflowDefinitionId(5L)\n .build();\n try {\n body(notification);\n }\n catch (Exception e) {\n throw ThrowablesUtil.propagate(e);\n }\n }",
"public interface SessionManager {\n\n /**\n * Return the distributable flag for the sessions supported by\n * this SessionManager.\n */\n public boolean getDistributable();\n\n\n /**\n * Set the distributable flag for the sessions supported by this\n * SessionManager. If this flag is set, all user data objects added to\n * sessions associated with this manager must implement Serializable.\n *\n * @param distributable The new distributable flag\n */\n public void setDistributable(boolean distributable);\n\n /**\n * Return the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n */\n public int getMaxInactiveInterval();\n\n /**\n * Set the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n *\n * @param interval The new default value\n */\n public void setMaxInactiveInterval(int interval);\n\n /**\n * Returns the total number of sessions created by this manager.\n *\n * @return Total number of sessions created by this manager.\n */\n public long getSessionCounter();\n\n\n /**\n * Sets the total number of sessions created by this manager.\n *\n * @param sessionCounter Total number of sessions created by this manager.\n */\n public void setSessionCounter(long sessionCounter);\n\n\n /**\n * Gets the maximum number of sessions that have been active at the same\n * time.\n *\n * @return Maximum number of sessions that have been active at the same\n * time\n */\n public int getMaxActive();\n\n\n /**\n * (Re)sets the maximum number of sessions that have been active at the\n * same time.\n *\n * @param maxActive Maximum number of sessions that have been active at\n * the same time.\n */\n public void setMaxActive(int maxActive);\n\n\n /**\n * Gets the number of currently active sessions.\n *\n * @return Number of currently active sessions\n */\n public int getActiveSessions();\n\n\n /**\n * Gets the number of sessions that have expired.\n *\n * @return Number of sessions that have expired\n */\n public long getExpiredSessions();\n\n\n /**\n * Sets the number of sessions that have expired.\n *\n * @param expiredSessions Number of sessions that have expired\n */\n public void setExpiredSessions(long expiredSessions);\n\n\n /**\n * Gets the number of sessions that were not created because the maximum\n * number of active sessions was reached.\n *\n * @return Number of rejected sessions\n */\n public int getRejectedSessions();\n\n\n /**\n * Gets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @return Longest time (in seconds) that an expired session had been\n * alive.\n */\n public int getSessionMaxAliveTime();\n\n\n /**\n * Sets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @param sessionMaxAliveTime Longest time (in seconds) that an expired\n * session had been alive.\n */\n public void setSessionMaxAliveTime(int sessionMaxAliveTime);\n\n\n /**\n * Gets the average time (in seconds) that expired sessions had been\n * alive. This may be based on sample data.\n *\n * @return Average time (in seconds) that expired sessions had been\n * alive.\n */\n public int getSessionAverageAliveTime();\n\n\n /**\n * Gets the current rate of session creation (in session per minute). This\n * may be based on sample data.\n *\n * @return The current rate (in sessions per minute) of session creation\n */\n public int getSessionCreateRate();\n\n\n /**\n * Gets the current rate of session expiration (in session per minute). This\n * may be based on sample data\n *\n * @return The current rate (in sessions per minute) of session expiration\n */\n public int getSessionExpireRate();\n // --------------------------------------------------------- Public Methods\n\n\n /**\n * Add this Session to the set of active Sessions for this SessionManager.\n *\n * @param session Session to be added\n */\n public void add(Session session);\n\n /**\n * Change the session ID of the current session to a new randomly generated\n * session ID.\n *\n * @param session The session to change the session ID for\n */\n public void changeSessionId(Session session);\n\n\n /**\n * Get a session from the recycled ones or create a new empty one.\n * The PersistentManager manager does not need to create session data\n * because it reads it from the Store.\n */\n public Session createEmptySession();\n\n\n /**\n * Construct and return a new session object, based on the default\n * settings specified by this SessionManager's properties. The session\n * id specified will be used as the session id.\n * If a new session cannot be created for any reason, return\n * <code>null</code>.\n *\n * @param sessionId The session id which should be used to create the\n * new session; if <code>null</code>, the session\n * id will be assigned by this method, and available via the getId()\n * method of the returned session.\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n */\n public Session createSession(String sessionId);\n\n\n /**\n * Return the active Session, associated with this SessionManager, with the\n * specified session id (if any); otherwise return <code>null</code>.\n *\n * @param id The session id for the session to be returned\n *\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n * @exception IOException if an input/output error occurs while\n * processing this request\n */\n public Session findSession(String id) throws IOException;\n\n\n /**\n * Return the set of active Sessions associated with this SessionManager.\n * If this SessionManager has no active Sessions, a zero-length array is returned.\n */\n public Session[] findSessions();\n\n\n /**\n * Load any currently active sessions that were previously unloaded\n * to the appropriate persistence mechanism, if any. If persistence is not\n * supported, this method returns without doing anything.\n *\n * @exception ClassNotFoundException if a serialized class cannot be\n * found during the reload\n * @exception IOException if an input/output error occurs\n */\n public void load() throws ClassNotFoundException, IOException;\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n */\n public void remove(Session session);\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n * @param update Should the expiration statistics be updated\n */\n public void remove(Session session, boolean update);\n\n /**\n * Save any currently active sessions in the appropriate persistence\n * mechanism, if any. If persistence is not supported, this method\n * returns without doing anything.\n *\n * @exception IOException if an input/output error occurs\n */\n public void unload() throws IOException;\n\n /**\n * This method will be invoked by the context/container on a periodic\n * basis and allows the manager to implement\n * a method that executes periodic tasks, such as expiring sessions etc.\n */\n public void backgroundProcess();\n\n}",
"public Store() {\n }",
"protected final Folder openFolder(String mailbox, int mode) throws NoSuchProviderException, MessagingException {\r\n logger.debug(\"Requires mail session.....\");\r\n Session session = Session.getInstance(this.getAccount().toProperties());\r\n\r\n logger.debug(\"Requires URL account for getting mail.....\");\r\n URLName urlName = new URLName(\r\n this.getAccount().getProtocol(),\r\n this.getAccount().getHost(),\r\n this.getAccount().getPort(),\r\n \"\",\r\n this.getAccount().getUser(),\r\n this.getAccount().getPassword());\r\n\r\n logger.debug(\"Connecting to email acount.....\");\r\n Store store = session.getStore(urlName);\r\n store.connect();\r\n\r\n logger.debug(\"Requires email account inbox.....\");\r\n Folder folder = store.getFolder(mailbox);\r\n folder.open(mode);\r\n\r\n return folder;\r\n }",
"public LocalOrpheusMessageDataStore(String namespace) throws InstantiationException {\n super(namespace);\n\n messageEJB = ObjectFactoryHelpers.resolveLocalEjbReference(namespace);\n }",
"private Store() {\n\t}",
"public String saveStore() {\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\n\t\tMerchantStore store = null;\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tstore = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\t//validation\n/*\t\t\tif (StringUtils.isBlank(merchantProfile.getTemplateModule())) {\n\t\t\t\tsuper.setErrorMessage(\"errors.store.emptytemplate\");\n\t\t\t\treturn INPUT;\n\t\t\t} */\n\n\t\t\tif (store == null) {\n\t\t\t\tstore = new MerchantStore();\n\t\t\t\tstore.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\t\t\t}else {\n\t\t\t\tstore.setTemplateModule(merchantProfile.getTemplateModule());\n\t\t\t}\n\t\t\t\n\n\n\t\t\tjava.util.Date dt = new java.util.Date();\n\n\t\t\tStringBuffer languages = new StringBuffer();\n\t\t\tList langs = this.getSupportedLanguages();\n\t\t\tif (langs != null && langs.size() > 0) {\n\t\t\t\tint sz = 0;\n\t\t\t\tIterator i = langs.iterator();\n\n\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\tString lang = (String) i.next();\n\t\t\t\t\tlanguages.append(lang);\n\n\t\t\t\t\tif (sz < langs.size() - 1) {\n\t\t\t\t\t\tlanguages.append(\";\");\n\t\t\t\t\t}\n\t\t\t\t\tsz++;\n\n\t\t\t\t}\n\t\t\t\tstore.setSupportedlanguages(languages.toString());\n\t\t\t} else {\n\t\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(),\n\t\t\t\t\t\tLabelUtil.getInstance().getText(\n\t\t\t\t\t\t\t\t\"message.confirmation.languagerequired\"));\n\t\t\t\tstore.setSupportedlanguages(Constants.ENGLISH_CODE);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\tstore.setStorename(merchantProfile.getStorename());\n\t\t\tstore.setStoreemailaddress(merchantProfile.getStoreemailaddress());\n\t\t\tstore.setStoreaddress(merchantProfile.getStoreaddress());\n\t\t\tstore.setStorecity(merchantProfile.getStorecity());\n\t\t\tstore.setStorepostalcode(merchantProfile.getStorepostalcode());\n\t\t\tstore.setCountry(merchantProfile.getCountry());\n\t\t\tstore.setZone(merchantProfile.getZone());\n\t\t\tstore.setCurrency(merchantProfile.getCurrency());\n\t\t\t\n\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getWeightunitcode())) {\n\t\t\t\tstore.setWeightunitcode(merchantProfile.getWeightunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getSeizeunitcode())) {\n\t\t\t\tstore.setSeizeunitcode(merchantProfile.getSeizeunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tstore.setStorelogo(merchantProfile.getStorelogo());\n\t\t\tstore.setStorephone(merchantProfile.getStorephone());\n\t\t\tstore.setBgcolorcode(merchantProfile.getBgcolorcode());\n\t\t\tstore.setContinueshoppingurl(merchantProfile\n\t\t\t\t\t.getContinueshoppingurl());\n\t\t\tstore.setUseCache(merchantProfile.isUseCache());\n\t\t\tstore.setDomainName(merchantProfile.getDomainName());\n\n\t\t\tstore.setMerchantId(merchantid.intValue());\n\t\t\tstore.setLastModified(new java.util.Date(dt.getTime()));\n\n\t\t\tif (!StringUtils.isNumeric(merchantProfile.getZone())) {\n\t\t\t\tstore.setStorestateprovince(merchantProfile\n\t\t\t\t\t\t.getStorestateprovince());\n\t\t\t\tctx.setZoneid(0);\n\t\t\t} else {// get the value from zone\n\t\t\t\tctx.setZoneid(Integer.parseInt(merchantProfile.getZone()));\n\t\t\t\tMap zones = RefCache.getInstance().getAllZonesmap(\n\t\t\t\t\t\tLanguageUtil.getLanguageNumberCode(ctx.getLang()));\n\t\t\t\tZone z = (Zone) zones.get(Integer.parseInt(merchantProfile\n\t\t\t\t\t\t.getZone()));\n\t\t\t\tif (z != null) {\n\t\t\t\t\tstore.setStorestateprovince(z.getZoneName());// @todo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// localization\n\t\t\t\t} else {\n\t\t\t\t\tstore.setStorestateprovince(\"N/A\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!StringUtils.isBlank(this.getInBusinessSince())) {\n\t\t\t\tDate businessDate = DateUtil.getDate(this.getInBusinessSince());\n\t\t\t\tstore.setInBusinessSince(businessDate);\n\t\t\t}\n\n\t\t\tsuper.prepareSelections(store.getCountry());\n\t\t\tmservice.saveOrUpdateMerchantStore(store);\n\n\t\t\tsuper.getContext().setExistingStore(true);\n\n\t\t\t// refresh context\n\n\t\t\tctx.setCountryid(merchantProfile.getCountry());\n\t\t\tctx.setSizeunit(merchantProfile.getSeizeunitcode());\n\t\t\tctx.setWeightunit(merchantProfile.getWeightunitcode());\n\t\t\tLanguageHelper.setLanguages(languages.toString(), ctx);\n\t\t\tctx.setCurrency(merchantProfile.getCurrency());\n\n\t\t\t// refresh the locale\n\t\t\tMap countries = RefCache.getAllcountriesmap(LanguageUtil\n\t\t\t\t\t.getLanguageNumberCode(ctx.getLang()));\n\t\t\tCountry c = (Country) countries.get(merchantProfile.getCountry());\n\t\t\tLocale locale = new Locale(\"en\", c.getCountryIsoCode2());\n\t\t\tActionContext.getContext().setLocale(locale);\n\t\t\tMap sessions = ActionContext.getContext().getSession();\n\t\t\tsessions.put(\"WW_TRANS_I18N_LOCALE\", locale);\n\n\n\t\t\tMessageUtil.addMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"message.confirmation.success\"));\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t\tsuper.setTechnicalMessage();\n\t\t}\n\n\t\treturn SUCCESS;\n\n\t}",
"public static DynaStoreSession getDynaStoreSession(RequestContext req,Map mapData){\r\n\t\tDynaStoreSession dynaSession=new DynaStoreSession(req,mapData);\r\n\t\treturn dynaSession;\r\n\t}",
"public Room getRoom(IMXStore store, String roomId, boolean create) {\n if (!isAlive()) {\n Log.e(LOG_TAG, \"getRoom : the session is not anymore active\");\n return null;\n }\n\n // sanity check\n if (TextUtils.isEmpty(roomId)) {\n return null;\n }\n\n Room room;\n\n synchronized (this) {\n room = store.getRoom(roomId);\n if ((room == null) && create) {\n Log.d(LOG_TAG, \"## getRoom() : create the room \" + roomId);\n room = new Room(this, store, roomId);\n store.storeRoom(room);\n } else if ((null != room) && (null == room.getDataHandler())) {\n // GA reports that some rooms have no data handler\n // so ensure that it is not properly set\n Log.e(LOG_TAG, \"getRoom \" + roomId + \" was not initialized\");\n store.storeRoom(room);\n }\n }\n\n return room;\n }",
"SessionManager get();",
"public Mail make() {\n\n MailerMail mail = null;\n if(mailInstance != null) {\n mail = new MailerMail(mailInstance);\n } else {\n mail = new MailerMail();\n }\n\n if(mailer.getUser() != null) {\n mail.setFrom(mailer.getUser());\n }\n if(this.from != null) {\n mail.setFrom(this.from);\n }\n\n if(this.toList.size() == 0 || mail.getFrom() == null) {\n return new NullMail();\n }\n\n mail.setToList(toList);\n mail.setCcList(ccList);\n mail.setBccList(bccList);\n mail.setSubject(subject);\n mail.setBody(body);\n mail.setAttachments(attachments);\n mail.setMailer(mailer);\n\n return mail;\n }",
"public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}",
"private HashMap createSendProperties(MessageContext context)\n {\n HashMap props = createApplicationProperties(context);\n\n if(context.containsProperty(JMSConstants.PRIORITY))\n props.put(JMSConstants.PRIORITY,\n context.getProperty(JMSConstants.PRIORITY));\n if(context.containsProperty(JMSConstants.DELIVERY_MODE))\n props.put(JMSConstants.DELIVERY_MODE,\n context.getProperty(JMSConstants.DELIVERY_MODE));\n if(context.containsProperty(JMSConstants.TIME_TO_LIVE))\n props.put(JMSConstants.TIME_TO_LIVE,\n context.getProperty(JMSConstants.TIME_TO_LIVE));\n if(context.containsProperty(JMSConstants.JMS_CORRELATION_ID))\n props.put(JMSConstants.JMS_CORRELATION_ID,\n context.getProperty(JMSConstants.JMS_CORRELATION_ID));\n return props;\n }",
"private MessageDetails generateMessageDtls(EmailDetails emailDtls, MessageProperties msgProp, String subject){\n\n\t\tMessageDetails msgDtls = new MessageDetails();\n\t\tmsgDtls.getEmailDetails().add(emailDtls);\n\t\tmsgDtls.setMessageProperties(msgProp);\n\t\tmsgDtls.setSubject(subject);\n\t\treturn msgDtls;\n\t}",
"public void setMessages() {\n try {\n __logger.info(\"Getting store...\");\n Store store = session.getStore(\"imaps\");\n store.connect(this.imapHost, this.username, this.password);\n\n __logger.info(\"Getting inbox...\");\n IMAPFolder folder = (IMAPFolder) store.getFolder(\"inbox\");\n\n if (!folder.isOpen()) {\n folder.open(Folder.READ_WRITE);\n }\n\n this.messages = folder.getMessages();\n\n __logger.info(\"Set messages\");\n } catch (MessagingException e) {\n __logger.error(\"Couldn't get messages\", e);\n }\n }",
"public Messaging getMessaging(){\n return new DefaultMessaging();\n }",
"public KVCommInterface getStore();",
"private static Properties getMailServerConfig() {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host);\n properties.put(\"mail.smtp.port\", \"2525\");\n\n return properties;\n }",
"ShipmentContactMech createShipmentContactMech();",
"@Override\n public CreateSessionResponse createSession()\n throws EwalletException {\n return null;\n }",
"Context createContext( Properties properties ) throws NamingException;",
"public Session create() {\n // Attempt to generate a random session 5 times then fail\n final int MAX_ATTEMPTS = 5; \n \n // Loop until we have outdone our max attempts\n for(int x = 0; x < MAX_ATTEMPTS; x++) {\n String sessionKey = randomString(SESSION_KEY_SIZE); // SESSION_KEY_SIZE characters\n\n // The session key exists\n if (exists(sessionKey))\n continue;\n\n // Create the new session\n Session session = new Session(sessionKey);\n sessions.put(sessionKey, session, POLICY, EXPIRATION_TIME, EXPIRATION_UNIT); \n return session;\n }\n\n // Failed to generate new session key\n return null;\n }",
"public void initiateStore() {\r\n\t\tURLConnection urlConnection = null;\r\n\t\tBufferedReader in = null;\r\n\t\tURL dataUrl = null;\r\n\t\ttry {\r\n\t\t\tdataUrl = new URL(URL_STRING);\r\n\t\t\turlConnection = dataUrl.openConnection();\r\n\t\t\tin = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] splittedLine = inputLine.split(\";\");\r\n\t\t\t\t// an array of 4 elements, the fourth element\r\n\t\t\t\t// the first three elements are the properties of the book.\r\n\t\t\t\t// last element is the quantity.\r\n\t\t\t\tBook book = new Book();\r\n\t\t\t\tbook.setTitle(splittedLine[0]);\r\n\t\t\t\tbook.setAuthor(splittedLine[1]);\r\n\t\t\t\tBigDecimal decimalPrice = new BigDecimal(splittedLine[2].replaceAll(\",\", \"\"));\r\n\t\t\t\tbook.setPrice(decimalPrice);\r\n\t\t\t\tfor(int i=0; i<Integer.parseInt(splittedLine[3]); i++)\r\n\t\t\t\t\tthis.addBook(book);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(!in.equals(null)) in.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean store(CProtocol protocol) {\n long idPackage = protocol.getIdPackage();\n int concentratorId = protocol.getIdConcentrator();\n IMessage umessage = protocol.getMessage();\n SessionFactory factory = HibernateUtil.getFactory();\n Session session = factory.openSession();\n session.beginTransaction();\n \n boolean res = false;\n if (umessage instanceof CMonitorData) {\n // dane z czujnikow\n CMonitorData monitor = (CMonitorData) umessage;\n res = storeMonitorData(session, idPackage, concentratorId, monitor);\n }\n else if (umessage instanceof CConfigurationResponse) {\n // potwierdzenie konfiguracji\n CConfigurationResponse configurationResponse = (CConfigurationResponse) umessage;\n if (configurationResponse.getStatus() == EReceiveStatus.OK)\n {\n res = storeConfigurationResponse(session, concentratorId);\n }\n }\n else if (umessage instanceof CServerRequest) {\n // prosba o przeslanie konfiguracji\n CServerRequest configRequest = (CServerRequest) umessage;\n res = storeServerRequest(session, idPackage, concentratorId,\n configRequest);\n }\n else if (umessage instanceof CServerResponse) {\n // wyslane potwierdzenie odebrania pakietow, ktore nie jest zapisywane w\n // bazie.\n // W potwierdzeniu jedynie jest wysylyna konfiguracja, ale to jest\n // obslugiwane przez inna metode.\n \n }\n if (res) {\n session.getTransaction().commit();\n }\n else {\n session.getTransaction().rollback();\n }\n session.close();\n return res;\n \n }",
"public interface Store {\n\n}",
"public MessageSession startSession(MessageExchange root) {\n\t\t// logger.info(\"Start a session by the root MessageExchange: \" +\n\t\t// root.getExchangeId());\n\t\tif (root.getStatus() == ExchangeStatus.ACTIVE) {\n\t\t\tMessageSession session = MessageSessionFactory\n\t\t\t\t\t.createMessageSession();\n\t\t\tsession.setRootExchange(root);\n\t\t\t// add the session to the list\n\t\t\tsessions.add(session);\n\t\t\treturn session;\n\t\t}\n\t\tif (root.getStatus() == ExchangeStatus.DONE) {\n\t\t\t// the session has ended\n\t\t\tcloseSession(root);\n\t\t}\n\t\treturn null;\n\t}",
"alluxio.proto.journal.KeyValue.CreateStoreEntryOrBuilder getCreateStoreOrBuilder();",
"Message create(MessageInvoice invoice);",
"public interface MailPropertiesProvider\n{\n /**获取Mail参数\n * @return\n */\n MailProperties getMailProperties();\n}",
"public void sendReceipt(String fName, String customerEmail,int bookingNo, int numTicks,String movieTitle, String date, String timeslot){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"[email protected]\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t\t Session session = Session.getDefaultInstance(props, \r\n\t\t\t\t new Authenticator(){\r\n\t\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t \t\t\treturn new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t String slot;\r\n\t if(timeslot.equals(\"A\")) {\r\n\t\t slot = \"1 PM\";\r\n\t }else if(timeslot.equals(\"B\")) {\r\n\t\t slot = \"4 PM\";\r\n\t }else if(timeslot.equals(\"C\")) {\r\n\t\t slot = \"7 PM\";\r\n\t }else if(timeslot.equals(\"D\")) {\r\n\t\t slot = \"10 PM\";\r\n\t }else {\r\n\t\t slot = slot = \"Houston, we have a problem.\";\r\n\t }\r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"Order Confirmation - Receipt\");\r\n \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \\t\"+fName + \"!\\n\\nHere's your most recent booking for:\\t\"+movieTitle\r\n\t\t\t +\"\\nOrder Number:\\t\" + bookingNo\r\n\t\t\t +\"\\nNumber of tickets purchased:\\t\"+numTicks\r\n\t\t\t +\"\\nDate of showing:\\t\"+ date +\" at:\"+ slot\r\n\t\t\t +\"\\n\\n\\nThank you for choosing :^U\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t\t System.out.println(\"Error: \" + e);\r\n\t }\r\n }",
"@Test\n\tpublic void testSessionStateMsg_1()\n\t\tthrows Exception {\n\t\tint type = 1;\n\n\t\tSessionStateMsg result = new SessionStateMsg(type);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public void initialiseSession() {\n LOGGER.info(\"Initialising session...\");\n if (this.mKsession == null) {\n for (String ruleFile : mRuleFiles) {\n mKbuilder.add(ResourceFactory.newClassPathResource(ruleFile,\n IronSyslogDrools.class), ResourceType.DRL);\n }\n if (mKbuilder.hasErrors()) {\n LOGGER.error(mKbuilder.getErrors().toString());\n throw new RuntimeException(\"Unable to compile drl\\\".\");\n }\n mPkgs = mKbuilder.getKnowledgePackages();\n\n KnowledgeBaseConfiguration config = KnowledgeBaseFactory\n .newKnowledgeBaseConfiguration();\n config.setOption(EventProcessingOption.STREAM);\n mKbase = KnowledgeBaseFactory.newKnowledgeBase(config);\n\n mKbase.addKnowledgePackages(mPkgs);\n\n // KnowledgeSessionConfiguration conf = KnowledgeBaseFactory\n // .newKnowledgeSessionConfiguration();\n // conf.setOption(ClockTypeOption.get(\"pseudo\"));\n // ksession = kbase.newStatefulKnowledgeSession(conf, null);\n mKsession = mKbase.newStatefulKnowledgeSession();\n // entryPoint1 = ksession.getWorkingMemoryEntryPoint(\"entryone\");\n\n Thread ruleFire = new Thread() {\n\n @Override\n public void run() {\n mKsession.fireUntilHalt();\n }\n };\n ruleFire.start();\n } else {\n retractAll();\n }\n }",
"com.weizhu.proto.WeizhuProtos.Session getSession();",
"private void createApplicationProperties()\n {\n _applicationPropertiesMap = new HashMap<String,Object>();\n _message.setApplicationProperties(new ApplicationProperties(_applicationPropertiesMap));\n }",
"public ProtocolServerSession(Socket conn, File destinationFolder, MessageDelegate delegate) throws AtmException\n\t{\n\t\tsuper(conn, \"Server Session\");\n\n\t\ttrace(\"Server protocol session initialized\");\n\t}",
"private Folder openFolder(Store store) throws MessagingException {\n\t\tFolder f = folder == null ? store.getDefaultFolder() : store.getFolder(folder);\n\t\tf.open(Folder.READ_ONLY);\n\t\treturn f;\n\t}",
"@Override\n\t\t\tpublic Message createMessage(Session session) throws JMSException {\n\t\t\t\tMessage m = session.createTextMessage(s);\n\t\t\t\treturn m;\n\t\t\t}",
"public static Store getStore(final StoreDto _store){\n\t\tStore store = new Store();\n\t\tstore.setStoreAddress(_store.getStoreAddress());\n\t\t//store.setStoreCity(Integer.parseInt(_store.getStoreCity()));\n\t\t//store.setStoreId(Integer.parseInt(_store.getStoreId()));\n\t\t//store.setStoreLocality(Integer.parseInt(_store.getStoreLocality()));\n\t\tstore.setStoreMobNo(Integer.parseInt(_store.getStoreMobNo()));\n\t\tstore.setStoreName(_store.getStoreName());\n\t\t//store.setStoreType(Integer.parseInt(_store.getStoreType()));\n\t\t//store.setOwnerName(_store.getOwnerName());\n\t\t//store.setEmailAddress(_store.getEmailAddress());\n\t\t//store.setStorePincode(Integer.parseInt(_store.getStorePincode()));\n\t\t//store.setServiceArea(_store.getServiceArea());\n\t\treturn store;\n\t}",
"private void setupCustomerSession() {\n CustomerSession.initCustomerSession(\n new SampleStoreEphemeralKeyProvider(\n new SampleStoreEphemeralKeyProvider.ProgressListener() {\n @Override\n public void onStringResponse(String string) {\n if (string.startsWith(\"Error: \")) {\n new AlertDialog.Builder(StoreActivity.this).setMessage(string).show();\n }\n }\n }));\n }",
"private void createObject(JSONObject delivery) {\n\t\t//TODO: create the Object\n\t}",
"public interface StoreService {\n\n void registerOrder(Order order);\n Order getRecievedOrder(String id);\n\n}",
"@Create\n public void create()\n {\n \n log.debug(\"Creating users and mailboxes\");\n //MailboxService ms = MMJMXUtil.getMBean(\"meldware.mail:type=MailboxManager,name=MailboxManager\", MailboxService.class);\n AdminTool at = MMJMXUtil.getMBean(\"meldware.mail:type=MailServices,name=AdminTool\", AdminTool.class);\n \n for (MeldwareUser meldwareUser : getUsers())\n {\n at.createUser(meldwareUser.getUsername(), meldwareUser.getPassword(), meldwareUser.getRoles());\n // TODO This won't work on AS 4.2\n /*Mailbox mbox = ms.createMailbox(meldwareUser.getUsername());\n for (String alias : meldwareUser.getAliases())\n {\n ms.createAlias(mbox.getId(), alias);\n }*/\n log.debug(\"Created #0 #1 #2\", meldwareUser.isAdministrator() ? \"administrator\" : \"user\", meldwareUser.getUsername(), meldwareUser.getAliases() == null || meldwareUser.getAliases().size() == 0 ? \"\" : \"with aliases \" + meldwareUser.getAliases());\n }\n }",
"private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }",
"@Override\n public Receive<Command> createReceive() {\n return newReceiveBuilder()\n .onMessageEquals(Start.INSTANCE, this::onStart) //Call onStart when Start.INSTANCE is received\n .onMessage(SendPrimesFound.class, this::onSendPrimesFound) //Call onSendPrimesFound when SendPrimesFound class is received\n .onMessage(SetNumbersToSearchAndNumberOfWorkers.class, this::onSetNumbersToSearchAndNumberOfWorkers) //Call onSetNumbersToSearchAndNumberOfWorkers when SetNumbersToSearchAndNumberOfWorkers is received\n .build();\n\n }",
"public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}",
"public ReceiverEntity crearReceiver(ReceiverEntity receiverCrear){\r\n persistence.create(receiverCrear);\r\n return receiverCrear;\r\n }",
"private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }",
"public Store attemptConnectionMailServer(String sslConnection) {\r\n\r\n\t\t// if connection failure try to connect 3 times\r\n\t\tint count = 0;\r\n\t\tboolean isConnected = false;\r\n\r\n\t\tif (store == null || !store.isConnected()) {\r\n\t\t\tThrowable throwable = null;\r\n\t\t\twhile (!isConnected && count < 3) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstore = connectMailServer(sslConnection);\r\n\t\t\t\t\tisConnected = store.isConnected();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tthrowable = e;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t// wait 1 sec\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e1) {\r\n\t\t\t\t\t\tthrow new IQserRuntimeException(e1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count == 3 && !isConnected) {\r\n\t\t\t\tthrowable.printStackTrace();\r\n\t\t\t\tthrow new IQserRuntimeException(throwable);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn store;\r\n\t}",
"private Entity createReceiptEntity(\n double price, String store, long timestamp, String[] categories) {\n Entity receipt = new Entity(\"Receipt\");\n receipt.setProperty(\"categories\", Arrays.asList(categories));\n receipt.setProperty(\"timestamp\", timestamp);\n receipt.setProperty(\"store\", store);\n receipt.setProperty(\"price\", price);\n\n return receipt;\n }",
"@Override\n\tprotected Serializable doCreate(Session session) {\n\t\treturn null;\n\t}"
] |
[
"0.7459535",
"0.67554706",
"0.65287113",
"0.6226424",
"0.6176375",
"0.6078378",
"0.5911816",
"0.5833285",
"0.5810588",
"0.55712944",
"0.5568024",
"0.5317507",
"0.52381766",
"0.5218047",
"0.51828134",
"0.51604736",
"0.51246464",
"0.51151156",
"0.50985616",
"0.50626",
"0.50348294",
"0.49310791",
"0.49096808",
"0.49052468",
"0.48872405",
"0.4878992",
"0.48560384",
"0.48453",
"0.48298374",
"0.48188344",
"0.48058516",
"0.4805174",
"0.4787231",
"0.4785085",
"0.4780876",
"0.4764172",
"0.47625116",
"0.4739392",
"0.47276083",
"0.4721174",
"0.47097352",
"0.47005144",
"0.46956962",
"0.46830186",
"0.4679806",
"0.46750095",
"0.46658358",
"0.46653372",
"0.46541578",
"0.46467483",
"0.4643985",
"0.46439636",
"0.46406096",
"0.462432",
"0.46123683",
"0.46062765",
"0.46010152",
"0.4594015",
"0.45835865",
"0.45811766",
"0.4581144",
"0.45767048",
"0.45630056",
"0.4556471",
"0.45549402",
"0.45396376",
"0.45390442",
"0.45371473",
"0.45346662",
"0.4532157",
"0.45321435",
"0.45305166",
"0.45280245",
"0.45271358",
"0.45256066",
"0.45243245",
"0.4518225",
"0.45154393",
"0.45110196",
"0.45064405",
"0.45051575",
"0.45021784",
"0.44951412",
"0.4489713",
"0.44859645",
"0.4481904",
"0.44815865",
"0.44778773",
"0.4473794",
"0.44704428",
"0.44690132",
"0.44685593",
"0.44636232",
"0.4463006",
"0.44597808",
"0.44593915",
"0.4452289",
"0.44464272",
"0.4446127",
"0.44449306"
] |
0.692451
|
1
|
Create store object from the Session object and connect with user credentials. Only POP3 and IMAP can be provided as Receive protocol in proporties file, otherwise it would return null.
|
private Store connectSessionStore(Session emailSession) throws MessagingException {
Store store = null;
switch (getProperty(PROTOCOL_RECEIVE)) {
case POP3:
// create the POP3 store object and connect with the pop server
store = emailSession.getStore(POP3);
// Connect to the store
store.connect(getProperty("POP3_HOST"), getProperty("username"), getPassword());
break;
case IMAP:
// create the IMAP store object and connect with the imap server
store = emailSession.getStore(IMAP);
// Connect to the store
store.connect(getProperty("IMAP4_HOST"), getProperty("username"), getPassword());
break;
default:
return null;
}
return store;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private Session setUpEmailSession() throws MessagingException {\n Authenticator auth = new SimpleAuthenticator(mailUsername, mailPassword);\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtp.host\", mailHost);\r\n Session session = Session.getDefaultInstance(props, auth);\r\n Store store = session.getStore(\"pop3\");\r\n store.connect(mailHost, mailUsername, mailPassword); \r\n return session;\r\n }",
"private Session createSession(final String protocol, final Properties additionalProperties, final boolean isGmail,\n final boolean autoTrustSsl)\n {\n Properties props = new Properties(additionalProperties);\n // necessary to work with Gmail\n if (isGmail && !props.containsKey(\"mail.imap.partialfetch\") && !props.containsKey(\"mail.imaps.partialfetch\")) {\n props.put(\"mail.imap.partialfetch\", \"false\");\n props.put(\"mail.imaps.partialfetch\", \"false\");\n }\n props.put(\"mail.store.protocol\", protocol);\n // TODO set this as an option (auto-trust certificates for SSL)\n props.put(\"mail.imap.ssl.checkserveridentity\", \"false\");\n props.put(\"mail.imaps.ssl.trust\", \"*\");\n /*\n * MailSSLSocketFactory socketFactory = new MailSSLSocketFactory(); socketFactory.setTrustAllHosts(true);\n * props.put(\"mail.imaps.ssl.socketFactory\", socketFactory);\n */\n Session session = Session.getInstance(props, null);\n session.setDebug(true);\n\n return session;\n }",
"private void createStore() {\n\n try {\n\n MailboxProtocolEnum curMbPrtcl = this.loginData.getMailboxProtocol();\n\n // Get a Properties and Session object\n Properties props = JavamailUtils.getProperties();\n\n // Trustmanager needed?\n if(curMbPrtcl.isUseOfSsl()) {\n\n MailSSLSocketFactory socketFactory = new MailSSLSocketFactory();\n socketFactory.setTrustManagers(new TrustManager[]\n { this.trustManager });\n\n props.put((\"mail.\" + curMbPrtcl.getProtocolId() + \".ssl.socketFactory\"),\n socketFactory);\n }\n\n Session session = Session.getInstance(props, null);\n session.setDebug(false);\n\n this.store = session.getStore(curMbPrtcl.getProtocolId());\n }\n catch(NoSuchProviderException e) {\n\n throw(new RuntimeException((\"Unknown Protocol: \" +\n this.loginData.getMailboxProtocol()), e));\n }\n catch(GeneralSecurityException gse) {\n\n throw(new RuntimeException((\"Security-problem: \" + gse.getMessage()),\n gse));\n }\n }",
"public boolean connect() throws MessagingException {\r\n\r\n // check if authentication is needed\r\n MailAuthenticator authenticator = null;\r\n\r\n // if authentication needed, create an authenticator\r\n if (mReceiverInfo.isValidate()) {\r\n authenticator = new MailAuthenticator(mReceiverInfo.getUserName(), mReceiverInfo.getPassword());\r\n }\r\n\r\n // create a session\r\n Session session = Session.getInstance(mReceiverInfo.getProperties(), authenticator);\r\n\r\n // create a store, establish the connection\r\n try {\r\n mStore = session.getStore(mReceiverInfo.getProtocal());\r\n }\r\n catch (NoSuchProviderException e) {\r\n return false;\r\n }\r\n\r\n try {\r\n mStore.connect();\r\n }\r\n catch (MessagingException e) {\r\n // Connect to pop3 server failed!\r\n throw e;\r\n }\r\n\r\n return true;\r\n }",
"private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }",
"public void establishConnection() {\r\n\t\t// Load IMAP-Account credentials from the property file\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\"server_resources/IMAPAccountCredentials.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\thost = prop.getProperty(\"imapHost\");\r\n\t\tuser = prop.getProperty(\"imapUsername\");\r\n\t\tpassword = prop.getProperty(\"imapPassword\");\r\n\t\tuseSSL = Boolean.parseBoolean(prop.getProperty(\"useSSL\"));\r\n\r\n\t\t// Create session for account\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(\"mail.imap.host\", host);\r\n\t\tif (useSSL) {\r\n\t\t\tprops.put(\"mail.imap.socketFactory.port\", \"993\");\r\n\t\t\tprops.put(\"mail.imap.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\tprops.put(\"mail.imap.auth\", \"true\");\r\n\t\t\tprops.put(\"mail.imap.port\", \"993\");\r\n\t\t}\r\n\t\tSession session = Session.getDefaultInstance(props, new javax.mail.Authenticator() {\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\treturn new PasswordAuthentication(user, password);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal URLName unusedUrlName = null;\r\n\t\tif (useSSL) {\r\n\t\t\tstore = new IMAPSSLStore(session, unusedUrlName);\r\n\t\t} else {\r\n\t\t\tstore = new IMAPStore(session, unusedUrlName);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tstore.connect(host, user, password);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private Store getStore() throws MessagingException {\n\t\t// create properties field\n\t\tProperties properties = getProtocolProporties(PROTOCOL_RECEIVE);\n\t\tSession emailSession = Session.getDefaultInstance(properties);\n\t\treturn connectSessionStore(emailSession);\n\t}",
"private Store openStore() throws MessagingException {\n\t\tStore store = getStore();\n\t\tstore.connect(host, port, name, password);\n\t\treturn store;\n\t}",
"private Store connectMailServer(String sslConnection) {\r\n\r\n\t\t// connect to mail server\r\n\t\tStore store;\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.setProperty(\"mail.store.protocol\", \"imap\");\r\n\t\t\tif (sslConnection.equalsIgnoreCase(\"true\")) {\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.class\",\r\n\t\t\t\t\t\t\"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.fallback\", \"false\");\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.port\", sslPort);\r\n\t\t\t}\r\n\t\t\tSession session = Session.getDefaultInstance(props);\r\n\t\t\tstore = session.getStore(\"imap\");\r\n\r\n\t\t\tif (port != 0)\r\n\t\t\t\tstore.connect(mailServer, port, userName, password);\r\n\t\t\telse\r\n\t\t\t\tstore.connect(mailServer, userName, password);\r\n\r\n\t\t} catch (NoSuchProviderException e) {\r\n\t\t\tthrow new IQserRuntimeException(e);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\tthrow new IQserRuntimeException(e);\r\n\t\t}\r\n\t\treturn store;\r\n\t}",
"public ObjectStore getCEObjectStore()\r\n\t{\r\n\t\tString Uri = ReadProperty.getProperty(\"URI\");\r\n\t\tConnection conn = Factory.Connection.getConnection(Uri); \r\n\t\t//String decryptpassword = encrypt.decrypt(ReadProperty.getProperty(\"PASSWORD\"));\r\n\t\tString decryptedpassword = encrypt.getDeMes(ReadProperty.getProperty(\"USER_NAME\"), ReadProperty.getProperty(\"PASSWORD\"));\r\n\t\tSubject subject = UserContext.createSubject(conn, ReadProperty.getProperty(\"USER_NAME\"),decryptedpassword,null);\r\n\t\tUserContext.get().pushSubject(subject);\r\n\t\tDomain domain = Factory.Domain.fetchInstance(conn, ReadProperty.getProperty(\"DOMAIN\"), null);\r\n\t\tobjstore=Factory.ObjectStore.fetchInstance(domain, ReadProperty.getProperty(\"OBJECTSTORE\"), null);\r\n\t\t\r\n\t\t\r\n\r\n\t\tlogger.info(\"In getCESession\");\r\n\r\n\r\n\t\tlogger.info(\"Connected To CE Succesfully \" + objstore.get_Name());\r\n\r\n\r\n\r\n\t\treturn objstore;\r\n\t}",
"private Session createMailingSession() {\n final String username = \"EMAIL\";\r\n final String password = \"PASSWORD\";\r\n Properties prop = new Properties();\r\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n prop.put(\"mail.smtp.port\", \"587\");\r\n prop.put(\"mail.smtp.auth\", \"true\");\r\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\r\n return Session.getInstance(prop,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }\r\n });\r\n }",
"private Session session(Properties props) {\n return Session.getInstance(props,\n new Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"happinessbarometer2014\");\n }\n }\n );\n }",
"private Session getSession(String type) {\n String hostUrl = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_HOST_URL);\n String user = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_USER);\n String password = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_PASSWORD);\n String cmisUrl = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_CMIS_URL);\n logger.info(\"Getting session \" + type + \": \" + hostUrl + \", user: \" + user);\n\n return CmisHelper.getSession(hostUrl, user, password, cmisUrl);\n }",
"public StoredSession(Properties conf, String url, String username,\n\t\t\tString pass, int port) {\n\t\tjsch = new JSch();\n\t\tconfig = conf;\n\t\tserverUrl = url;\n\t\tuserName = username;\n\t\tpassword = pass;\n\t\tportNumber = port;\n\t}",
"private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }",
"protected Store getStore() throws MessagingException {\n\t\tSession session = EmailUtil.createSession(protocol, timeoutMs);\n\t\treturn session.getStore();\n\t}",
"com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();",
"public void ConnectToMail(String username, String password, String server, int serverPort)\n {\n Properties props = System.getProperties();\n\n props.setProperty(\"mail.imap.ssl.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\",\"true\");\n\n Session session = Session.getInstance(props);\n try {\n store = session.getStore(\"imap\");\n\n store.connect(server, serverPort, username, password);\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n failStep(e.getMessage());\n } catch (MessagingException e) {\n e.printStackTrace();\n failStep(e.getMessage());\n }\n }",
"com.weizhu.proto.WeizhuProtos.Session getSession();",
"public static CustomSession get() {\r\n\t\treturn (CustomSession) Session.get();\r\n\t}",
"private static Properties init(){\n // Get a Properties object\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\n props.setProperty(\"mail.smtp.port\", \"465\");\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.auth\", \"true\");\n //props.put(\"mail.debug\", \"true\");\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n\n return props;\n }",
"public ProtocolServerSession(Socket conn, File destinationFolder, MessageDelegate delegate) throws AtmException\n\t{\n\t\tsuper(conn, \"Server Session\");\n\n\t\ttrace(\"Server protocol session initialized\");\n\t}",
"Object getNativeSession();",
"SessionManager get();",
"public XmlRpcSession createXmlRpcSession(String url);",
"private TunaFacadeRemote getRemoteSession() {\n TunaFacadeRemote session = null;\n \n // CORBA properties and values and lookup taken after earlier work provided by\n // Todd Kelley (2016) Personal Communication\n System.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"127.0.0.1\");\n System.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n try {\n JOptionPane.showMessageDialog(this, \"Trying for a session...\");\n InitialContext ic = new InitialContext();\n session = (TunaFacadeRemote) ic.lookup(\"java:global/Assignment4/Assignment4-ejb/TunaFacade\");\n JOptionPane.showMessageDialog(this, \"Got a session :) \");\n\n } catch (NamingException e) {\n JOptionPane.showMessageDialog(this, \"Problem. \\n Cause: \\n\" + e.getMessage());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Problem. \\n Cause: \\n\" + e.getMessage());\n }\n return session;\n }",
"protected abstract SESSION newSessionObject() throws EX;",
"public PSUserSession getSession();",
"public Store attemptConnectionMailServer(String sslConnection) {\r\n\r\n\t\t// if connection failure try to connect 3 times\r\n\t\tint count = 0;\r\n\t\tboolean isConnected = false;\r\n\r\n\t\tif (store == null || !store.isConnected()) {\r\n\t\t\tThrowable throwable = null;\r\n\t\t\twhile (!isConnected && count < 3) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstore = connectMailServer(sslConnection);\r\n\t\t\t\t\tisConnected = store.isConnected();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tthrowable = e;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t// wait 1 sec\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e1) {\r\n\t\t\t\t\t\tthrow new IQserRuntimeException(e1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count == 3 && !isConnected) {\r\n\t\t\t\tthrowable.printStackTrace();\r\n\t\t\t\tthrow new IQserRuntimeException(throwable);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn store;\r\n\t}",
"@Override\n\tpublic Session createSession(SessionBasicInfo sessionBasicInfo) {\n\t\tSession session = sessionStore.createSession( sessionBasicInfo);\n\t\tif(session == null)\n\t\t\treturn null;\n\t\tsession._setSessionStore(this);\n\t\tsession.putNewStatus();\n\t\t\n\t\treturn session;\n\t}",
"public void connect() throws IOException {\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t // Parse url (rsuite:/http://host/user/session/moId)\r\n\t\t\t\t log.println(\"INCOMING URL IS: \" + url);\r\n\t\t\t\t log.println(\"PARSING URL TO GET PARAMETERS...\");\r\n\t\t\t\t \r\n\t\t\t\t // url initially comes through with extension to avoid dialog window\r\n\t\t\t\t docURL = RSuiteProtocolUtils.parseRSuiteProtocolURL(url);\r\n\t\t\t\t host = docURL.getHost();\r\n\t\t\t\t protocol = docURL.getProtocol().concat(\"//\");\r\n\t\t\t\t username = docURL.getUserName();\r\n\t\t\t\t sessionKey = docURL.getSessionKey();\r\n\t\t\t\t moId = docURL.getMoId();\r\n\t\t\t\t // set the connection so we have it later\r\n\t\t\t\t _connection = this;\r\n\r\n\t\t\t\t log.println(\"HOST: \" + host);\r\n\t\t\t\t log.println(\"USERNAME: \" + username);\r\n\t\t\t\t log.println(\"SESSION KEY: \" + sessionKey);\r\n\t\t\t\t log.println(\"MOID: \" + moId);\r\n\t\t\t\t \r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t // CONNECT TO RSUITE IF SESSION NOT PRESENT\t\t\t\t \r\n\t\t\t\t log.println(\"CONNECTION TO RSUITE...\");\r\n\t\t\t\t if(sessionKey == null){\r\n\t\t\t\t\t log.println(\"SESSION DOES NOT EXIST, PROMPT FOR LOGIN\");\r\n\t\t\t\t\t RSuiteLoginDialog login = new RSuiteLoginDialog();\r\n\t\t\t\t\t login.setLocationRelativeTo(null);\r\n\t\t\t\t\t login.setVisible(true);\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t // SESSION WAS PASSED IN, INITIALIZE REPOSITORY\r\n\t\t\t\t if(repository == null){\r\n\t\t\t\t\t log.println(\"SESSION PASSED IN BY URL, INITIALIZE REPOSITORY\");\r\n\t\t\t\t\t repository = new RsuiteRepositoryImpl(username, \"\", host);\r\n\t\t\t\t\t log.println(\"REPOSITORY INITIALIZED.\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t // NO NEED TO LOGIN SINCE WE HAVE SESSION KEY ALREADY\r\n\t\t\t\t\t log.println(\"SETTING THE REPOSITORY SESSION KEY...\");\r\n\t\t\t\t\t repository.sessionKey = sessionKey;\r\n\t\t\t\t\t log.println(\"SESSION KEY SET. NO NEED FOR LOGIN\");\r\n\t\t\t\t }\t\t\t\t \r\n\t\t\t}\r\n\t\t\tcatch (Throwable t) {\r\n\t\t\t if (log != null) {\r\n\t\t\t t.printStackTrace(log);\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t}",
"public Object getDelegateSession() throws UMOException\n {\n return null;\n }",
"public abstract I_SessionInfo getSession(I_SessionName sessionName);",
"@Override\n public synchronized SessionImpl getConnection() {\n if (Framework.getRuntime().isShuttingDown()) {\n throw new IllegalStateException(\"Cannot open connection, runtime is shutting down\");\n }\n SessionPathResolver pathResolver = new SessionPathResolver();\n Mapper mapper = newMapper(pathResolver, true);\n SessionImpl session = newSession(model, mapper);\n pathResolver.setSession(session);\n sessions.add(session);\n sessionCount.inc();\n return session;\n }",
"private Properties getProtocolProporties(String protocol) {\n\t\tProperties properties = new Properties();\n\t\tswitch (getProperty(protocol)) {\n\t\tcase POP3:\n\t\t\tproperties.put(\"mail.pop3.host\", getProperty(\"POP3_HOST\"));\n\t\t\tproperties.put(\"mail.pop3.port\", getProperty(\"POP3_PORT\"));\n\t\t\tproperties.put(\"mail.pop3.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase SMTP:\n\t\t\tproperties.put(\"mail.smtp.port\", getProperty(\"SMTP_PORT\"));\n\t\t\tproperties.put(\"mail.smtp.host\", getProperty(\"SMTP_HOST\"));\n\t\t\t// properties.put(\"mail.smtp.ssl.enable\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.auth\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase IMAP:\n\t\t\tproperties.put(\"mail.imap.user\", getProperty(\"username\"));\n\t\t\tproperties.put(\"mail.imap.host\", getProperty(\"IMAP4_HOST\"));\n\t\t\tproperties.put(\"mail.imap.port\", getProperty(\"IMAP4_PORT\"));\n\t\t\tproperties.put(\"mail.imap.ssl.enable\", \"true\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t\treturn properties;\n\t}",
"public Session(String username, String pwd, String hostname){\n this.username = username;\n this.pwd = pwd;\n this.hostname = hostname;\n }",
"DefaultSession createSession(String id);",
"public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }",
"DatastoreSession createSession();",
"public com.weizhu.proto.WeizhuProtos.Session getSession() {\n return session_;\n }",
"public MUCTransportSession(TransportSession<B> session, String roomname, String nickname, BaseMUCTransport<B> transport) {\n this.session = session;\n this.roomname = roomname;\n this.nickname = nickname;\n this.transport = transport;\n }",
"protected Session createSession (ServerChannel channel) {\n return new Session (channel);\n }",
"public SSLSession mo2014k() {\n return this.f2343d instanceof SSLSocket ? ((SSLSocket) this.f2343d).getSession() : null;\n }",
"public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session);\n\t\treturn session;\n\t}",
"public PppoeSessionInfo() {\n }",
"public static Session openSession() {\n \treturn sessionFactory.openSession();\n }",
"public ShoppingSessionClient() {\n\t\t/* TODO: instantiate the proxy using the EJBProxyFactory (see the other client classes) */\n\t}",
"public com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder() {\n return session_;\n }",
"public com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder() {\n if (sessionBuilder_ != null) {\n return sessionBuilder_.getMessageOrBuilder();\n } else {\n return session_;\n }\n }",
"public synchronized Session getSession() throws JmsException {\n try {\n if (session == null) {\n Connection conToUse;\n if (connection == null) {\n if (sharedConnectionEnabled()) {\n conToUse = getSharedConnection();\n } else {\n connection = createConnection();\n connection.start();\n conToUse = connection;\n }\n } else {\n conToUse = connection;\n }\n session = createSession(conToUse);\n }\n return session;\n } catch (JMSException e) {\n throw convertJmsAccessException(e);\n }\n }",
"public Session createSession() {\n\t\treturn this.session;\n\t}",
"@Override\n\tpublic Session getObject() throws LoginException, RepositoryException\n\t{\n\t\tif ( session == null )\n\t\t{\n\t\t\tsession = repository.login();\n\t\t}\n\t\t\n\t\treturn session;\n\t}",
"InternalSession createSession(String sessionId);",
"public synchronized static Store getInstance(String uri, Application application) throws MessagingException {\n Store store = mStores.get(uri);\n if (store == null) {\n if (uri.startsWith(STORE_SCHEME_IMAP)) {\n store = new ImapStore(uri);\n } else if (uri.startsWith(STORE_SCHEME_POP3)) {\n store = new Pop3Store(uri);\n } else if (uri.startsWith(STORE_SCHEME_LOCAL)) {\n store = new LocalStore(uri, application);\n }\n\n if (store != null) {\n mStores.put(uri, store);\n }\n }\n\n if (store == null) {\n throw new MessagingException(\"Unable to locate an applicable Store for \" + uri);\n }\n\n return store;\n }",
"Observable<Session> initSession(RelyingParty relyingParty, Map<String, Object> userInfo, Set<String> scopes, AcrValues acrValues, String redirectUrl);",
"protected final Folder openFolder(String mailbox, int mode) throws NoSuchProviderException, MessagingException {\r\n logger.debug(\"Requires mail session.....\");\r\n Session session = Session.getInstance(this.getAccount().toProperties());\r\n\r\n logger.debug(\"Requires URL account for getting mail.....\");\r\n URLName urlName = new URLName(\r\n this.getAccount().getProtocol(),\r\n this.getAccount().getHost(),\r\n this.getAccount().getPort(),\r\n \"\",\r\n this.getAccount().getUser(),\r\n this.getAccount().getPassword());\r\n\r\n logger.debug(\"Connecting to email acount.....\");\r\n Store store = session.getStore(urlName);\r\n store.connect();\r\n\r\n logger.debug(\"Requires email account inbox.....\");\r\n Folder folder = store.getFolder(mailbox);\r\n folder.open(mode);\r\n\r\n return folder;\r\n }",
"protected Session getSession() {\n\n return (Session) getExtraData().get(ProcessListener.EXTRA_DATA_SESSION);\n }",
"protected Session buildOrObtainSession() {\r\n\t\tLOGGER.fine(\"Opening a new Session\");\r\n\t\tSession s = super.buildOrObtainSession();\r\n\r\n\t\tLOGGER.fine(\"Disabling automatic flushing of the Session\");\r\n\t\ts.setFlushMode(FlushMode.MANUAL);\r\n\r\n\t\treturn s;\r\n\t}",
"protected final void openSession() {\n openSessionForRead(null, null);\n }",
"private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}",
"public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}",
"public static Session getSession() {\n if(sesh == null) {\n return sesh = sf.openSession();\n }\n\n return sesh;\n }",
"public abstract I_SessionInfo getSessionInfo(I_SessionName sessionName);",
"SessionManagerImpl() {\n }",
"public Session create() {\n // Attempt to generate a random session 5 times then fail\n final int MAX_ATTEMPTS = 5; \n \n // Loop until we have outdone our max attempts\n for(int x = 0; x < MAX_ATTEMPTS; x++) {\n String sessionKey = randomString(SESSION_KEY_SIZE); // SESSION_KEY_SIZE characters\n\n // The session key exists\n if (exists(sessionKey))\n continue;\n\n // Create the new session\n Session session = new Session(sessionKey);\n sessions.put(sessionKey, session, POLICY, EXPIRATION_TIME, EXPIRATION_UNIT); \n return session;\n }\n\n // Failed to generate new session key\n return null;\n }",
"public static DynaStoreSession getDynaStoreSession(RequestContext req,Map mapData){\r\n\t\tDynaStoreSession dynaSession=new DynaStoreSession(req,mapData);\r\n\t\treturn dynaSession;\r\n\t}",
"protected Map<String, String> startSession() throws IOException {\n return startSession(null);\n }",
"public Session createSession(String sessionId);",
"public abstract void initialize(ISession session);",
"public String fetchProfile() throws Exception {\n\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\t\tMerchantStore profile = null;\n\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tprofile = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\tString user = super.getPrincipal().getRemoteUser();\n\t\t\tMerchantUserInformation userInfo = mservice.getMerchantUserInformation(user);\n\n\t\t\t//MerchantUserInformation userInfo = mservice\n\t\t\t//\t\t.getMerchantUserInfo(merchantid.intValue());\n\n\t\t\tif (profile == null) {// should be created from the original\n\t\t\t\t\t\t\t\t\t// subscribtion process\n\t\t\t\tprofile = new MerchantStore();\n\t\t\t\tString serverName = super.getServletRequest().getServerName();\n\t\t\t\tint serverPort = super.getServletRequest().getServerPort();\n\t\t\t\t\n\t\t\t\tif(serverPort>0) {\n\t\t\t\t\tserverName = serverName + \":\" + String.valueOf(serverPort);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprofile.setDomainName(serverName);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tprofile.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\n\t\t\t}\n\n\t\t\tif (profile.getSupportedlanguages() != null\n\t\t\t\t\t&& !profile.getSupportedlanguages().equals(\"\")) {\n\n\t\t\t\tLanguageHelper.setLanguages(profile.getSupportedlanguages(),\n\t\t\t\t\t\tctx);\n\t\t\t\tMap m = ctx.getSupportedlang();\n\t\t\t\tif (m != null && m.size() > 0) {\n\t\t\t\t\tSet s = m.keySet();\n\t\t\t\t\tIterator i = s.iterator();\n\t\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\t\tString key = (String) i.next();\n\t\t\t\t\t\tsupportedLanguages.add(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set at least the user country code\n\t\t\tif (profile.getCountry() == 0) {\n\t\t\t\tprofile.setCountry(userInfo.getUsercountrycode());\n\t\t\t}\n\t\t\t// set a default background\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(1);\n\t\t\t}\n\n\t\t\tif (profile.getStoreaddress() == null) {\n\t\t\t\tprofile.setStoreaddress(userInfo.getUseraddress());\n\t\t\t}\n\n\t\t\tif (profile.getStorecity() == null) {\n\t\t\t\tprofile.setStorecity(userInfo.getUsercity());\n\t\t\t}\n\n\t\t\tif (profile.getStorepostalcode() == null) {\n\t\t\t\tprofile.setStorepostalcode(userInfo.getUserpostalcode());\n\t\t\t}\n\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(new Integer(1));// set to white\n\t\t\t}\n\n\t\t\tprofile.setTemplateModule(profile.getTemplateModule());\n\n\t\t\tDate businessDate = profile.getInBusinessSince();\n\t\t\tif (businessDate == null) {\n\t\t\t\tbusinessDate = new Date();\n\t\t\t}\n\t\t\tthis.setInBusinessSince(DateUtil.formatDate(businessDate));\n\n\t\t\tsuper.prepareSelections(profile.getCountry());\n\n\t\t\tthis.merchantProfile = profile;\n\t\t\treturn SUCCESS;\n\n\t\t} catch (Exception e) {\n\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"errors.technical\"));\n\t\t\tlog.error(e);\n\t\t\treturn ERROR;\n\t\t}\n\t}",
"private DefaultSession createDefaultSession(CommandHandler commandHandler) {\n stubSocket = createTestSocket(COMMAND.getName());\n commandHandlerMap.put(commandToRegister, commandHandler);\n initializeConnectCommandHandler();\n return new DefaultSession(stubSocket, commandHandlerMap);\n }",
"public boolean onOpenSession() throws java.io.IOException {\n ForwardingClient fwd = manager.getForwardingClient();\r\n\r\n // Now lets setup the forwarding configurations from the profile if\r\n // they dont exist already\r\n pf.setClient(fwd);\r\n\r\n return true;\r\n }",
"public com.weizhu.proto.WeizhuProtos.Session getSession() {\n if (sessionBuilder_ == null) {\n return session_;\n } else {\n return sessionBuilder_.getMessage();\n }\n }",
"private void setupCustomerSession() {\n CustomerSession.initCustomerSession(\n new SampleStoreEphemeralKeyProvider(\n new SampleStoreEphemeralKeyProvider.ProgressListener() {\n @Override\n public void onStringResponse(String string) {\n if (string.startsWith(\"Error: \")) {\n new AlertDialog.Builder(StoreActivity.this).setMessage(string).show();\n }\n }\n }));\n }",
"Observable<Session> createSession(RelyingParty relyingParty, Map<String, Object> userInfo, Set<String> scopes, AcrValues acrValues, String redirectUrl);",
"protected Session newSession(URI serverUri) throws QueryException {\n try {\n // The factory won't be in the cache, as a corresponding session would have already been created.\n SessionFactory sessionFactory = SessionFactoryFinder.newSessionFactory(serverUri, true);\n factoryCache.add(sessionFactory);\n // now create the session\n Session session = sessionFactory.newSession();\n sessionCache.put(serverUri, session);\n return session;\n } catch (NonRemoteSessionException nrse) {\n throw new QueryException(\"State Error: non-local URI was mapped to a local session\", nrse);\n } catch (SessionFactoryFinderException sffe) {\n throw new QueryException(\"Unable to get a session to the server\", sffe);\n }\n }",
"private void _login() throws SessionException {\n\n \n String servergroup = (String) this._argTable.get(CMD.SERVERGROUP);\n String filetype = (String) this._argTable.get(CMD.FILETYPE);\n String user = (String) this._argTable.get(CMD.USER);\n String password = (String) this._argTable.get(CMD.PASSWORD);\n this._client = new Client(this._domainFile);\n \n //if (servergroup == null) {\n // servergroup = this._client.getDefaultGroup();\n // if (servergroup != null)\n // this._argTable.put(CMD.SERVERGROUP, servergroup);\n //}\n if (servergroup != null)\n {\n if (!this._client.isGroupDefined(servergroup))\n throw new SessionException(\"Group \" + servergroup\n + \" not found in domain!\", Constants.DOMAINLOOKUPERR); \n }\n \n //if (servergroup != null && !l.contains(servergroup))\n // throw new SessionException(\"Group \" + servergroup\n // + \" not found in domain!\", Constants.DOMAINLOOKUPERR);\n if (filetype != null)\n {\n \t this._client.login(user, password, servergroup, filetype);\n }\n else\n {\n \t this._client.login(user, password);\n \t if (servergroup != null)\n \t this._client.setDefaultGroup(servergroup);\n }\n \n if (this._argTable.get(CMD.SERVERGROUP) == null)\n \t this._argTable.put(CMD.SERVERGROUP, \n \t this._client.getDefaultGroup());\n \n }",
"public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }",
"public MessageSession startSession(MessageExchange root) {\n\t\t// logger.info(\"Start a session by the root MessageExchange: \" +\n\t\t// root.getExchangeId());\n\t\tif (root.getStatus() == ExchangeStatus.ACTIVE) {\n\t\t\tMessageSession session = MessageSessionFactory\n\t\t\t\t\t.createMessageSession();\n\t\t\tsession.setRootExchange(root);\n\t\t\t// add the session to the list\n\t\t\tsessions.add(session);\n\t\t\treturn session;\n\t\t}\n\t\tif (root.getStatus() == ExchangeStatus.DONE) {\n\t\t\t// the session has ended\n\t\t\tcloseSession(root);\n\t\t}\n\t\treturn null;\n\t}",
"public void connect() throws OOBException {\n \t\tlog.debug(\"enter to connect \");\n \t\tJSch jsch = new JSch();\n \t\ttry {\n\t\t\tjsch.addIdentity(PRIVATE_KEY, PASSPHRASE);\n \t\t\tjsch.setKnownHosts(KNOWN_HOSTS);\n \t\t\tlog.debug(\"user \" + user + \"host : \" + host);\n \t\t\tsession = jsch.getSession(user, host, 22);\n \t\t\tsession.connect();\n \t\t} catch (JSchException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}",
"public static void initialise()\n\t{\n\t\tServerConfigurationManager theSCM = ServerConfigurationManager.getInstance();\n\t\tString timeoutMinutes = theSCM.getProperty(theSCM.MAUI_SESSION_TIMEOUT);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tlong minutes = Long.parseLong(timeoutMinutes);\n\t\t\t\n\t\t\tHTTPSession.kDefaultSessionTimeout = minutes * 60 * 1000;\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.err.println(\"[HTTPSession] Bad value for session timeout : \" + timeoutMinutes + \" Defaulting to 5 minutes.\");\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.getProperty (theSCM.MAUI_SESSION_MAXIMUM));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.MAUI_SESSION_MAXIMUM_VALUE);\n\t\t}\n\t}",
"public IEvolizerSession getEvolizerSession() throws EvolizerException {\n // IEvolizerSession session = EvolizerSessionHandler.getHandler().getCurrentSession(fDbUrl);\n // return session;\n\n return fSession;\n }",
"protected synchronized static HTTPSession retrieveSession (HTTPRequest request)\n\t\tthrows SessionMaximumException\n\t{\n\t\t\n\t HTTPSession session = null;\n\t int theReference = Profiler.start (MauiRuntimeEngine.SOURCE_SESSION,\n\t \t\t\t\t\t\t\t\t\t MauiRuntimeEngine.ACTION_GET);\n\t boolean theHasCookie = false;\n\t boolean theGet = true;\n\t String sessionID = HTTPSession.getSessionIDFromRequest (request);\n\t if (sessionID != null && sessionID.startsWith (\"MA_\"))\n\t {\n\t \tsessionID = sessionID.substring (3);\n\t }\n\n\t String theSessionCookie = request.cookieMonster ();\n\t if ((theHasCookie = (theSessionCookie != null)))\n\t {\n\t \tsessionID = theSessionCookie;\n\t }\n\t \n\t if ((session = retrieveSessionFromTable (sessionID)) == null)\n\t {\n\t \t if (sessionMaximum != -1 &&\n\t \t \t getSessionCount () >= sessionMaximum)\n\t \t {\n\t \t \tthrow new SessionMaximumException (sessionMaximum);\n\t \t }\n\t \t \n\t session = new HTTPSession( request.getClientName (),\n\t \t\t\t\t\t\t\t request.isServletBased (),\n\t \t\t\t\t\t\t\t request.getServletURL ());\n\t if (sessionID != null)\n\t {\n\t \tcrossReferences.put (sessionID, session);\n\t \tsession.setCrossReference (sessionID);\n\t }\n\t theGet = false;\n\t addSession (session);\n\t // System.out.println(\"[HTTPSession] - Created new HTTPSession with ID '\" + session.sessionID + \"'.\");\n\t }\n\n \t session.touchTimeoutCounter();\n \t session.setHasCookie (theHasCookie);\n Profiler.finish (theReference,\n \t\t\t\t MauiRuntimeEngine.SOURCE_SESSION,\n \t\t\t\t (theGet ? MauiRuntimeEngine.ACTION_GET :\n \t\t\t\t\t \t\t MauiRuntimeEngine.ACTION_CREATE),\n \t\t\t\t \"Session: \" + sessionID);\n\t return session;\n\t}",
"public AuthStorageSession() { \n }",
"public Connection connect(Properties properties, Session session) throws DatabaseException, ValidationException {\n String user = properties.getProperty(\"user\");\n DataSource dataSource = getDataSource();\n if (dataSource == null) {\n try {\n int type = lookupType;\n // If lookupType is != UNDEFINED_LOOKUP that means that a user is using the deprecated method yet so\n // we need to honor that value.\n if(lookupType == UNDEFINED_LOOKUP) {\n type = session.getServerPlatform().getJNDIConnectorLookupType();\n }\n\n //bug#2761428 and 4405389 JBoss needs to look up datasources based on a string not a composite or compound name\n if (type == STRING_LOOKUP) {\n dataSource = (DataSource)getContext().lookup(getName());\n } else if (type == COMPOSITE_NAME_LOOKUP) {\n dataSource = (DataSource)getContext().lookup(new CompositeName(name));\n } else {\n dataSource = (DataSource)getContext().lookup(new CompoundName(name, new Properties()));\n }\n this.setDataSource(dataSource);\n } catch (NamingException exception) {\n throw ValidationException.cannotAcquireDataSource(getName(), exception);\n }\n }\n\n if (!this.isCallbackRegistered && session.getPlatform().hasPartitioningCallback()) {\n session.getPlatform().getPartitioningCallback().register(dataSource, session);\n this.isCallbackRegistered = true;\n }\n try {\n // WebLogic connection pools do not require a user name and password.\n // JDBCLogin usually initializes these values with an empty string.\n // WebLogic data source does not support the getConnection() call with arguments\n // it only supports the zero argument call. DM 26/07/2000\n if ((user == null) || (user.length() == 0)) {\n return dataSource.getConnection();\n } else {\n Object passwordObject = properties.get(\"password\");\n String password = null;\n if (passwordObject instanceof char[]) {\n password = new String((char[])passwordObject);\n } else if (passwordObject instanceof String) {\n password = (String) passwordObject;\n }\n return dataSource.getConnection(user, password);\n }\n } catch (SQLException exception) {\n throw DatabaseException.sqlException(exception, true);\n }\n }",
"protected abstract SESSION getThisAsSession();",
"Session getSession();",
"Session getSession();",
"private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }",
"public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }",
"protected Session getSession() {\n return sessionUtility.getSession();\n }",
"InputStream readStreamFromStore(String locator, Mailbox mbox) throws IOException;",
"public void init() {\n\t\tXMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()\r\n//\t\t .setUsernameAndPassword(\"pwf\", \"123456\")\r\n//\t\t\t\t .setServiceName(\"bdht-2016051604\")\r\n\t\t\t\t .setServiceName(\"bdht-2016051604\")\r\n\t\t\t\t .setHost(\"bdht-2016051604\")\r\n\t\t\t\t .setSecurityMode(SecurityMode.disabled)\r\n//\t\t\t\t .setCustomSSLContext(context)\r\n\t\t\t\t \r\n//\t\t .setHost(\"bdht-2016051604\")\r\n//\t\t .setPort(5222)\r\n\t\t .build();\r\n\r\n\t\tAbstractXMPPConnection connection = new XMPPTCPConnection(config);\r\n\t\t\r\n\r\n//\t\tAbstractXMPPConnection conn = new XMPPTCPConnection(\"pwf\", \"123456\", \"BDHT-2016051604\");\r\n//\t\tAbstractXMPPConnection conn = new XMPPTCPConnection(\"pwf\", \"123456\", \"192.168.1.121\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconnection.connect();\r\n\t\t\t\r\n\t\t\tconnection.login(\"pwf1\", \"123456\");\r\n\t\t\t\r\n\t\t} catch (SmackException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t} catch (XMPPException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(connection.getUser());\r\n\t\t\r\n\t\tChatManager chatmanager = ChatManager.getInstanceFor(connection);\r\n\t\tChat newChat = chatmanager.createChat(\"admin\");\r\n\t\t\r\n//\t\tChat newChat = chatmanager.createChat(\"[email protected]\", new MessageListener() {\r\n//\t\t\tpublic void processMessage(Chat chat, Message message) {\r\n//\t\t\t\tSystem.out.println(\"Received message: \" + message);\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\ttry {\r\n\t\t\tnewChat.sendMessage(\"hello!!\");\r\n\t\t} catch (NotConnectedException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t\t\t\r\n\t\t}\r\n//\t\tconnection.get\r\n//\t\tconnection.getChatManager().createChat(\"[email protected]\",null).sendMessage(\"Hello word!\");\r\n\t\t\r\n\t\tconnection.disconnect();\r\n\t\t\r\n\t\tSystem.out.println(\"end\");\r\n\t}",
"public static DynaStoreSession getDynaStoreSession(RequestContext req,String sessionId,Map mapData){\r\n\t\tDynaStoreSession dynaSession=new DynaStoreSession(req,sessionId,mapData);\r\n\t\treturn dynaSession;\r\n\t}",
"public POP3 parse(String s) {\n\n\n POP3 msg = new POP3();\n msg.setData(s);\n if (s.getBytes().length > 255) {\n if (s.contains(\"\\r\\n.\\r\\n\")) {\n msg.setDone();\n }\n } else if (!s.equals(\"+OK\\r\\n\")) {\n msg.setDone();\n }\n\n\n return msg;\n }",
"public static Session getSFTPSession() throws Exception {\r\n\r\n\t\ttry {\r\n\t\t\tJSch jsch = new JSch();\r\n\t\t\tSession session = null;\r\n\t\t\t/*\r\n\t\t\t * Key authentication\r\n\t\t\t */\r\n\t\t\tjsch.addIdentity(Configuration.getClientPrivateKeyPath(),\r\n\t\t\t\t\t\"engrade-auth\");\r\n\t\t\tsession = jsch.getSession(Configuration.getFtpUser(),\r\n\t\t\t\t\tConfiguration.getFtpHost(),\r\n\t\t\t\t\tInteger.parseInt(Configuration.getFtpPort()));\r\n\t\t\tsession.setConfig(\"StrictHostKeyChecking\", \"no\");\r\n\t\t\tsession.connect();\r\n\t\t\treturn session;\r\n\t\t} catch (JSchException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new Exception();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception();\r\n\t\t}\r\n\t}",
"public static DefaultSessionIdentityMaker newInstance() { return new DefaultSessionIdentityMaker(); }",
"Session getCurrentSession();",
"Session getCurrentSession();"
] |
[
"0.66487545",
"0.6641761",
"0.6448269",
"0.62887084",
"0.6248965",
"0.6216161",
"0.61957306",
"0.609092",
"0.58287907",
"0.5721639",
"0.56789386",
"0.5643985",
"0.55301696",
"0.551323",
"0.54589236",
"0.53953415",
"0.51360554",
"0.5077169",
"0.50761706",
"0.5059801",
"0.50154096",
"0.5004694",
"0.5002285",
"0.4996539",
"0.49447456",
"0.49418262",
"0.4933286",
"0.49189407",
"0.49114624",
"0.48714435",
"0.4831988",
"0.48298427",
"0.48276412",
"0.48208478",
"0.4811807",
"0.4808126",
"0.48013374",
"0.47844943",
"0.4781431",
"0.47733578",
"0.47691306",
"0.47577402",
"0.4752073",
"0.47266135",
"0.47174743",
"0.47081724",
"0.4702986",
"0.46916586",
"0.4690039",
"0.46892238",
"0.46858826",
"0.46576458",
"0.46491802",
"0.4648119",
"0.46191582",
"0.46121496",
"0.459832",
"0.4593785",
"0.45867792",
"0.4584528",
"0.45740876",
"0.456901",
"0.45663586",
"0.4535419",
"0.45049065",
"0.44895333",
"0.44817144",
"0.4471778",
"0.4468407",
"0.4459522",
"0.44557163",
"0.445044",
"0.4438233",
"0.44349658",
"0.4429836",
"0.44202253",
"0.4406072",
"0.44025367",
"0.44005024",
"0.43947744",
"0.43806362",
"0.43720144",
"0.43674082",
"0.435875",
"0.43547934",
"0.43543062",
"0.43540412",
"0.43462896",
"0.43462896",
"0.4336409",
"0.43289077",
"0.43282926",
"0.43271554",
"0.4317091",
"0.4314282",
"0.43121243",
"0.42996696",
"0.42905486",
"0.42898113",
"0.42898113"
] |
0.76087236
|
0
|
Create Properties object for the requested protocol from initialized properties files. Only POP3, IMAP and SMTP can be provided as protocol, otherwise it would return null.
|
private Properties getProtocolProporties(String protocol) {
Properties properties = new Properties();
switch (getProperty(protocol)) {
case POP3:
properties.put("mail.pop3.host", getProperty("POP3_HOST"));
properties.put("mail.pop3.port", getProperty("POP3_PORT"));
properties.put("mail.pop3.starttls.enable", "true");
break;
case SMTP:
properties.put("mail.smtp.port", getProperty("SMTP_PORT"));
properties.put("mail.smtp.host", getProperty("SMTP_HOST"));
// properties.put("mail.smtp.ssl.enable", "true");
properties.put("mail.smtp.auth", "true");
properties.put("mail.smtp.starttls.enable", "true");
break;
case IMAP:
properties.put("mail.imap.user", getProperty("username"));
properties.put("mail.imap.host", getProperty("IMAP4_HOST"));
properties.put("mail.imap.port", getProperty("IMAP4_PORT"));
properties.put("mail.imap.ssl.enable", "true");
break;
default:
return null;
}
return properties;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static Properties init(){\n // Get a Properties object\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\n props.setProperty(\"mail.smtp.port\", \"465\");\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.auth\", \"true\");\n //props.put(\"mail.debug\", \"true\");\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n\n return props;\n }",
"private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"private Properties getMailProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"mail.transport.protocol\", \"smtp\");\n properties.setProperty(\"mail.smtps.auth\", \"true\");\n properties.setProperty(\"mail.smtp.starttls.required\", \"true\");\n properties.setProperty(\"mail.smpt.starttls.enable\", \"true\");\n properties.setProperty(\"mail.debug\", \"false\"); // set to true for debugging information\n \n return properties;\n }",
"public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }",
"protected Properties getMailProperties() {\n Properties props = System.getProperties();\n props.put(\"mail.smtp.host\", mailHost);\n props.put(\"mail.smtp.sendpartial\", \"true\");\n if (mailPort != null) {\n props.put(\"mail.smtp.port\", mailPort);\n }\n LOG.debug(\n \"mailHost is \" + mailHost + \", mailPort is \" + mailPort == null ? \"default\" : mailPort);\n if (userName != null && password != null) {\n props.put(\"mail.smtp.auth\", \"true\");\n }\n return props;\n }",
"private Properties loadProperties(URL url, String suffix) throws IOException {\n \t\tif (suffix != null && !suffix.equals(\"\")) //$NON-NLS-1$\n \t\t\turl = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile() + suffix);\n \n \t\t// try to load saved configuration file\n \t\tProperties props = new Properties();\n \t\tInputStream is = null;\n \t\ttry {\n \t\t\tis = url.openStream();\n \t\t\tprops.load(is);\n \t\t\t// check to see if we have complete config file\n \t\t\tif (!EOF.equals(props.getProperty(EOF))) {\n \t\t\t\tthrow new IOException(Policy.bind(\"cfig.unableToLoad.incomplete\", url.toString())); //$NON-NLS-1$\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t// ignore ...\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn props;\n \t}",
"private Session createSession(final String protocol, final Properties additionalProperties, final boolean isGmail,\n final boolean autoTrustSsl)\n {\n Properties props = new Properties(additionalProperties);\n // necessary to work with Gmail\n if (isGmail && !props.containsKey(\"mail.imap.partialfetch\") && !props.containsKey(\"mail.imaps.partialfetch\")) {\n props.put(\"mail.imap.partialfetch\", \"false\");\n props.put(\"mail.imaps.partialfetch\", \"false\");\n }\n props.put(\"mail.store.protocol\", protocol);\n // TODO set this as an option (auto-trust certificates for SSL)\n props.put(\"mail.imap.ssl.checkserveridentity\", \"false\");\n props.put(\"mail.imaps.ssl.trust\", \"*\");\n /*\n * MailSSLSocketFactory socketFactory = new MailSSLSocketFactory(); socketFactory.setTrustAllHosts(true);\n * props.put(\"mail.imaps.ssl.socketFactory\", socketFactory);\n */\n Session session = Session.getInstance(props, null);\n session.setDebug(true);\n\n return session;\n }",
"public static ConnectInfo fromProperties(final Properties authConfig) {\n\t\tif(authConfig==null) throw new IllegalArgumentException(\"The passed authConfig was null\");\n\t\t\n\t\tfinal ConnectInfo a = new ConnectInfo();\n\t\tif(authConfig.containsKey(\"relayhost\")) a.relayHost = authConfig.getProperty(\"relayhost\");\n\t\tif(authConfig.containsKey(\"relayport\")) a.relayPort = Integer.parseInt(authConfig.getProperty(\"relayport\", \"22\"));\n\t\tif(authConfig.containsKey(\"sshusername\")) a.userName = authConfig.getProperty(\"sshusername\");\n\t\tif(authConfig.containsKey(\"connecttimeout\")) a.connectTimeout = Integer.parseInt(authConfig.getProperty(\"connecttimeout\"));\n\t\tif(authConfig.containsKey(\"kextimeout\")) a.kexTimeout = Integer.parseInt(authConfig.getProperty(\"kextimeout\"));\t\t\n\t\tif(authConfig.containsKey(\"sshpassword\")) a.userPassword = authConfig.getProperty(\"sshpassword\");\n\t\tif(authConfig.containsKey(\"privatekey\")) { \n\t\t\ta.privateKey = authConfig.getProperty(\"privatekey\").toCharArray();\n\t\t} else if(authConfig.containsKey(\"privatekeyf\")) {\n\t\t\ta.setPrivateKey(new File(authConfig.getProperty(\"privatekeyf\")));\n\t\t}\n\t\tif(authConfig.containsKey(\"pkpassword\")) {\n\t\t\ta.privateKeyPassword = authConfig.getProperty(\"pkpassword\");\n\t\t} else {\n\t\t\tif(authConfig.containsKey(\"pkpasswordf\")) {\n\t\t\t\ta.privateKeyPasswordFile = authConfig.getProperty(\"pkpasswordf\");\n\t\t\t\ta.privateKeyPassword = URLHelper.getTextFromURL(URLHelper.toURL(authConfig.getProperty(\"pkpasswordf\")));\n\t\t\t\tif(a.privateKeyPassword!=null) a.privateKeyPassword = a.privateKeyPassword.trim();\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(authConfig.containsKey(\"knownhosts\")) {\n\t\t\ta.knownHosts = KnownHostsRepo.getInstance().getKnownHosts(authConfig.getProperty(\"knownhosts\"));\n\t\t\ta.verifier = a;\n\t\t}\n\t\tif(authConfig.containsKey(\"noverifier\")) {\n\t\t\tif(a.verifier!=null) throw new RuntimeException(\"Option [noverifier] specified but KnownHosts verifier already set\");\n\t\t\ta.verifier = YesManHostKeyVerifier.INSTANCE;\n\t\t}\n\t\tif(a.verifier==null && DEFAULT_KNOWN_HOSTS!=null) {\n\t\t\ta.verifier = a;\n\t\t}\t\t\n\t\treturn a;\n\t}",
"public static Properties getProperties(){\n properties=new Properties();\n // properties.setProperty(\"selectBindDefaults\",selectBindDefaults);\n properties.setProperty(\"urlString\",urlString);\n properties.setProperty(\"userName\",userName);\n properties.setProperty(\"password\",password);\n properties.setProperty(\"packageName\",packageName);\n properties.setProperty(\"outputDirectory\",outputDirectory);\n properties.setProperty(\"taglibName\",TagLibName);\n properties.setProperty(\"jarFilename\",jarFilename);\n properties.setProperty(\"whereToPlaceJar\",whereToPlaceJar);\n properties.setProperty(\"tmpWorkDir\",tmpWorkDir);\n properties.setProperty(\"aitworksPackageBase\",aitworksPackageBase);\n properties.setProperty(\"databaseDriver\",databaseDriver);\n \n if(includeSource)\n properties.setProperty(\"includeSource\",\"true\");\n else\n properties.setProperty(\"includeSource\",\"false\");\n \n if(includeClasses)\n properties.setProperty(\"includeClasses\",\"true\");\n else\n properties.setProperty(\"includeClasses\",\"false\");\n \n if(generatedClasses)\n properties.setProperty(\"generatedClasses\",\"true\");\n else\n properties.setProperty(\"generatedClasses\",\"false\");\n\n return properties;\n }",
"private static Properties getMailServerConfig() {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host);\n properties.put(\"mail.smtp.port\", \"2525\");\n\n return properties;\n }",
"public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}",
"static Map<String, Object> mergeProperties(String url, Properties info)\n {\n final Map<String, Object> properties = new HashMap<>();\n\n // first deal with url\n int queryParamsIndex = url.indexOf(\"?\");\n\n String serverUrl = queryParamsIndex > 0 ? url.substring(0, queryParamsIndex)\n : url;\n String queryParams = queryParamsIndex > 0 ? url.substring(queryParamsIndex + 1)\n : null;\n\n if (queryParams != null && !queryParams.isEmpty())\n {\n String[] entries = queryParams.split(\"&\");\n\n for (String entry : entries)\n {\n int sep = entry.indexOf(\"=\");\n if (sep > 0)\n {\n String key = entry.substring(0, sep).toUpperCase();\n properties.put(key, entry.substring(sep + 1));\n }\n }\n }\n\n for (Map.Entry<Object, Object> entry : info.entrySet())\n {\n properties.put(entry.getKey().toString().toUpperCase(), entry.getValue());\n }\n\n boolean sslOn = getBooleanTrueByDefault(properties.get(\"SSL\"));\n\n serverUrl = serverUrl.replace(JDBC_PROTOCOL_PREFIX,\n sslOn ? SSL_NATIVE_PROTOCOL : NATIVE_PROTOCOL);\n\n properties.put(\"SERVERURL\", serverUrl);\n properties.remove(\"SSL\");\n\n if (properties.get(\"ACCOUNT\") == null && serverUrl != null &&\n serverUrl.indexOf(\".\") > 0 &&\n serverUrl.indexOf(\"://\") > 0)\n {\n String accountName = serverUrl.substring(serverUrl.indexOf(\"://\") + 3,\n serverUrl.indexOf(\".\"));\n\n logger.debug(\"set account name to {}\", accountName);\n properties.put(\"ACCOUNT\", accountName);\n }\n\n return properties;\n }",
"private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}",
"public static Properties getProperties() {\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"user\", \"root\");\n\t\tproperties.setProperty(\"password\", \"password1\");\n\t\tproperties.setProperty(\"useSSL\", \"false\");\n\n\t\treturn properties;\n\t}",
"@Override\n public Properties settingProperties(MailSettings mailSettings) {\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", mailSettings.getAddressSmtp());\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", mailSettings.getPortSmtp());\n props.put(\"mail.smtp.socketFactory.port\", mailSettings.getPortSmtp());\n props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\n props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\n return props;\n }",
"@Override\n public Configuration parseProperties(String fileUrlToProperties) throws Exception {\n fileUrlToProperties = resolvePropertiesSources(fileUrlToProperties);\n if (fileUrlToProperties != null) {\n for (String fileUrl : fileUrlToProperties.split(\",\")) {\n Properties brokerProperties = new InsertionOrderedProperties();\n if (fileUrl.endsWith(\"/\")) {\n // treat as a directory and parse every property file in alphabetical order\n File dir = new File(fileUrl);\n if (dir.exists()) {\n String[] files = dir.list(new FilenameFilter() {\n @Override\n public boolean accept(File file, String s) {\n return s.endsWith(\".properties\");\n }\n });\n if (files != null && files.length > 0) {\n Arrays.sort(files);\n for (String fileName : files) {\n try (FileInputStream fileInputStream = new FileInputStream(new File(dir, fileName));\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.clear();\n brokerProperties.load(reader);\n parsePrefixedProperties(this, fileName, brokerProperties, null);\n }\n }\n }\n }\n } else {\n File file = new File(fileUrl);\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.load(reader);\n parsePrefixedProperties(this, file.getName(), brokerProperties, null);\n }\n }\n }\n }\n parsePrefixedProperties(System.getProperties(), systemPropertyPrefix);\n return this;\n }",
"private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }",
"public FileServicePropertiesProperties withProtocolSettings(ProtocolSettings protocolSettings) {\n this.protocolSettings = protocolSettings;\n return this;\n }",
"private void createStore() {\n\n try {\n\n MailboxProtocolEnum curMbPrtcl = this.loginData.getMailboxProtocol();\n\n // Get a Properties and Session object\n Properties props = JavamailUtils.getProperties();\n\n // Trustmanager needed?\n if(curMbPrtcl.isUseOfSsl()) {\n\n MailSSLSocketFactory socketFactory = new MailSSLSocketFactory();\n socketFactory.setTrustManagers(new TrustManager[]\n { this.trustManager });\n\n props.put((\"mail.\" + curMbPrtcl.getProtocolId() + \".ssl.socketFactory\"),\n socketFactory);\n }\n\n Session session = Session.getInstance(props, null);\n session.setDebug(false);\n\n this.store = session.getStore(curMbPrtcl.getProtocolId());\n }\n catch(NoSuchProviderException e) {\n\n throw(new RuntimeException((\"Unknown Protocol: \" +\n this.loginData.getMailboxProtocol()), e));\n }\n catch(GeneralSecurityException gse) {\n\n throw(new RuntimeException((\"Security-problem: \" + gse.getMessage()),\n gse));\n }\n }",
"private Properties getSettings(String username, String password) {\n\t\tProperties p = new Properties();\n\t\n\t\tp.setProperty(\"mail.user\", username);\n\t\tp.setProperty(\"mail.address\", username + \"@bham.ac.uk\");\n\t\tp.setProperty(\"mail.password\", password);\n\t\tp.setProperty(\"mail.smtp.host\", \"auth-smtp.bham.ac.uk\");\n\t\tp.setProperty(\"mail.smtp.auth\", \"true\");\n\t\tp.setProperty(\"mail.smtp.port\", \"465\");\n\t\tp.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n\t\tp.setProperty(\"mail.smtp.socketFactory.class\",\n\t \"javax.net.ssl.SSLSocketFactory\");\n\t\treturn p;\n\t}",
"protected void buildProtocols() {\n\n if (httpProtocol == null) {\n\n RESTProtocol p = new RESTProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n httpProtocol = p;\n\n }\n\n if (legacyProtocol == null) {\n\n LegacyProtocol p = new LegacyProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n legacyProtocol = p;\n\n }\n }",
"public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0 ) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test\n public void resolveSslProperties() throws Exception {\n properties.setProperty(ConfigurationProperties.SSL_KEYSTORE, \"keystore\");\n properties = connectCommand.resolveSslProperties(gfsh, false, null, null);\n assertThat(properties).hasSize(9);\n properties.clear();\n properties.setProperty(ConfigurationProperties.SSL_KEYSTORE, \"keystore\");\n properties = connectCommand.resolveSslProperties(gfsh, false, null, null, \"keystore2\", \"password\");\n assertThat(properties).hasSize(9);\n assertThat(properties.getProperty(ConfigurationProperties.SSL_KEYSTORE)).isEqualTo(\"keystore2\");\n assertThat(properties.getProperty(ConfigurationProperties.SSL_KEYSTORE_PASSWORD)).isEqualTo(\"password\");\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"public static ConnectionProperties load() throws Throwable\n {\n Configuration config = ConfigurationManager.getInstance().getConfig(\n IConnectionConfig.CONFIG_NAME);\n if (config == null)\n throw new Exception(\"Connection configuration file not found!\");\n\n File file = FileUtil.getFile(\n IConnectionConfig.PATH_CONNECTION,\n config.getString(IConnectionConfig.CONN_PROPERTIES_ENTITY));\n\n return (ConnectionProperties)new ConnectionProperties().deserialize(\n file.getAbsolutePath());\n }",
"public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }",
"public String getTransportProtocolProperty() {\n\n return EmailConnectionConstants.PROPERTY_TRANSPORT_NAME;\n }",
"private Session setUpEmailSession() throws MessagingException {\n Authenticator auth = new SimpleAuthenticator(mailUsername, mailPassword);\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtp.host\", mailHost);\r\n Session session = Session.getDefaultInstance(props, auth);\r\n Store store = session.getStore(\"pop3\");\r\n store.connect(mailHost, mailUsername, mailPassword); \r\n return session;\r\n }",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"Protocol(String var1_1, int var2_2, boolean var3_3, PrintStream var4_4, Properties var5_5, String var6_6, boolean var7_7) throws IOException {\n super();\n this.debug = var3_3;\n this.out = var4_4;\n var8_8 = var5_5.getProperty(String.valueOf((Object)var6_6) + \".apop.enable\");\n var9_9 = var8_8 != null && var8_8.equalsIgnoreCase(\"true\") != false;\n if (var2_2 == -1) {\n var2_2 = 110;\n }\n if (!var3_3) ** GOTO lbl13\n try {\n var4_4.println(\"DEBUG POP3: connecting to host \\\"\" + var1_1 + \"\\\", port \" + var2_2 + \", isSSL \" + var7_7);\nlbl13: // 2 sources:\n this.socket = SocketFetcher.getSocket(var1_1, var2_2, var5_5, var6_6, var7_7);\n this.input = new DataInputStream((InputStream)new BufferedInputStream(this.socket.getInputStream()));\n this.output = new PrintWriter((Writer)new BufferedWriter((Writer)new OutputStreamWriter(this.socket.getOutputStream(), \"iso-8859-1\")));\n var12_10 = this.simpleCommand(null);\n ** if (var12_10.ok) goto lbl20\n }\n catch (IOException var10_11) {\n this.socket.close();\nlbl24: // 1 sources:\n if (var9_9 == false) return;\n var13_12 = var12_10.data.indexOf(60);\n var14_13 = var12_10.data.indexOf(62, var13_12);\n if (var13_12 != -1 && var14_13 != -1) {\n this.apopChallenge = var12_10.data.substring(var13_12, var14_13 + 1);\n }\n if (var3_3 == false) return;\n var4_4.println(\"DEBUG POP3: APOP challenge: \" + this.apopChallenge);\n return;\n }\n finally {\n throw new IOException(\"Connect failed\");\n }\nlbl-1000: // 1 sources:\n {\n this.socket.close();\n }\nlbl20: // 1 sources:\n ** GOTO lbl24\n {\n finally {\n throw var10_11;\n }\n }\n }",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"protected void populateExtranInfoAndCreateFactory() throws MessageBusException {\n\t\tString filePath = null;\n\n\t\tfilePath = locateFile(\"MessageBus.properties\");\n\t\tif (filePath != null) {\n\t\t\tFile propertyFile = new File(filePath);\n\t\t\tif (propertyFile.exists()) {\n\t\t\t\tProperties mbProperty = loadPropertiesFile(filePath);\n\t\t\t\tconnectionType = mbProperty.getProperty(\"connectionType\");\n\t\t\t\t// If not found in the property file then assume Queue\n\t\t\t\tif (null == connectionType) {\n\t\t\t\t\tconnectionType = IMessageBusConnection.DEFAULT_CONNECTION_TYPE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserName = mbProperty.getProperty(\"userName\");\n\t\t\t\tpassword = mbProperty.getProperty(\"password\");\n\t\t\t\tcertPath = mbProperty.getProperty(\"certPath\");\n\t\t\t\tcertPassword = mbProperty.getProperty(\"certPassword\");\n\n\t\t\t\tif(certPath == null || certPassword == null){\n\t\t\t\t\tthrow new MessageBusException(\"ERROR :: certPath or certPassword is missing from MessageBus.properties\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthrow new MessageBusException(\"ERROR :: MessageBus.properties is missing from Classapth\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new MessageBusException(\"ERROR :: MessageBus.properties is missing from Classapth\");\n\t\t}\n\t\tcreateFactory();\n\t}",
"private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }",
"private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }",
"public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }",
"public static ConnectInfo fromProperties(final String authConfig) {\n\t\tif(authConfig==null || authConfig.trim().isEmpty()) throw new IllegalArgumentException(\"The passed authConfig was null or empty\");\n\t\ttry {\n\t\t\tProperties p = new Properties();\n\t\t\tp.load(new StringReader(authConfig));\n\t\t\treturn fromProperties(p);\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t}",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"public static Properties getProperties(URL configUrl) {\n if(null == configUrl) {\n return null;\n }\n\n InputStream in = null;\n Properties properties = new Properties();\n\n try {\n in = configUrl.openStream();\n properties.load(in);\n } catch(IOException ex) {\n LOGGER.error(\"config failed, configURL = \" + configUrl, ex);\n throw new IllegalArgumentException(ex);\n } finally {\n if(null != in) {\n try {\n in.close();\n } catch(IOException ex) {\n LOGGER.info(\"close stream failed\", ex);\n }\n }\n }\n\n return properties;\n }",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"public Properties getProps(String input) {\r\n\t\tInputStream fstream = null;\r\n\t\ttry {\r\n\t\t\tprops = new Properties();\r\n\t\t\tfstream = Thread.currentThread().getContextClassLoader().getResourceAsStream(input);\r\n\t\t\tprops.load(fstream);\r\n\t\t\t\r\n\t\t\tfstream.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tprops = null;\r\n\t\t} \r\n\t\t\r\n\t\treturn props;\r\n\t}",
"public static Properties getProperties() {\n \tif (!propertiesLoaded)\n \t\tSystem.err.println(\"Warning: Default properties loaded\");\n \t\n \t\n \tif (properties == null)\n \t\tproperties = new Properties();\n \t\n \t\n \treturn properties;\n }",
"public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}",
"private static void init()\n {\n long nTimeOut = 12 * 60 * 60 * 1000; // Default == 12 hrs\n \n // Loading values from properties file\n Properties props = new Properties();\n \n try\n {\n ClassLoader classLoader = Constant.class.getClassLoader();\n InputStream is = classLoader.getResourceAsStream(\"joing-server.properties\");\n props.load( is );\n is.close();\n }\n catch( Exception exc )\n {\n // If can not read the file, create a file with default values\n String sHome = System.getProperty( \"user.home\" );\n char cDir = File.separatorChar;\n \n if( sHome.charAt( sHome.length() - 1 ) != cDir )\n sHome += cDir;\n \n // Initialise properties instance with default values\n props.setProperty( sSYSTEM_NAME , \"joing.org\" );\n props.setProperty( sBASE_DIR , cDir +\"joing\" );\n props.setProperty( sEMAIL_SRV , \"localhost\" );\n props.setProperty( sSESSION_TIMEOUT, Long.toString( nTimeOut ));\n }\n \n // Read properties from created props\n sVersion = \"0.1\"; // It's better to hardcode this property than to store it in a file\n sSysName = props.getProperty( sSYSTEM_NAME );\n fBaseDir = new File( props.getProperty( sBASE_DIR ) );\n fUserDir = new File( fBaseDir, \"users\" );\n fAppDir = new File( fBaseDir, \"apps\" );\n \n if( ! fBaseDir.exists() )\n fBaseDir.mkdirs();\n \n if( ! fAppDir.exists() )\n fAppDir.mkdirs();\n \n if( ! fUserDir.exists() )\n fUserDir.mkdirs();\n \n try\n {\n emailServer = new URL( props.getProperty( sEMAIL_SRV ) );\n }\n catch( MalformedURLException exc )\n {\n emailServer = null;\n }\n \n try\n { // From minutes (in file) to milliseconds\n nSessionTimeOut = Long.parseLong( props.getProperty( sSESSION_TIMEOUT ) ) * 60 * 1000;\n }\n catch( NumberFormatException exc )\n {\n nSessionTimeOut = nTimeOut;\n }\n }",
"private Protocol getProtocol(String scheme) {\r\n Protocol protocol = Protocol.valueOf(scheme);\r\n if (protocol == null) {\r\n protocol = new Protocol(scheme);\r\n }\r\n return protocol;\r\n }",
"protected void readProperties() {\n\t\tproperties = new HashMap<>();\n\t\tproperties.put(MQTT_PROP_CLIENT_ID, id);\n\t\tproperties.put(MQTT_PROP_BROKER_URL, brokerUrl);\n\t\tproperties.put(MQTT_PROP_KEEP_ALIVE, 30);\n\t\tproperties.put(MQTT_PROP_CONNECTION_TIMEOUT, 30);\n\t\tproperties.put(MQTT_PROP_CLEAN_SESSION, true);\n\t\tproperties.put(MQTT_PROP_USERNAME, user);\n\t\tproperties.put(MQTT_PROP_PASSWORD, password.toCharArray());\n\t\tproperties.put(MQTT_PROP_MQTT_VERSION, MqttConnectOptions.MQTT_VERSION_3_1_1);\n\t}",
"public static Properties loadProperties() throws IOException {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(\"..\" + File.separator + \"commons\" + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator + \"framework.properties\"));\r\n return properties;\r\n }",
"public void init(Properties properties) throws IOException;",
"public synchronized Properties getProperties() {\n if (properties != null) {\n return properties;\n }\n Properties p = new Properties();\n if (propertiesFile != null && propertiesFile.isFile()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n p.load(in);\n } catch (Exception e) {\n e.printStackTrace();\n // oh well!\n }\n }\n properties = p;\n return p;\n }",
"public static AuthenticatorConfig createFromProperties(final InputStream is)\n {\n final AuthenticatorConfig authConfig = new AuthenticatorConfig();\n LdapProperties properties = null;\n if (is != null) {\n properties = new LdapProperties(authConfig, is);\n } else {\n properties = new LdapProperties(authConfig);\n properties.useDefaultPropertiesFile();\n }\n properties.configure();\n return authConfig;\n }",
"public static AuthenticatorConfig createFromProperties(final InputStream is)\n {\n final AuthenticatorConfig authConfig = new AuthenticatorConfig();\n LdapProperties properties = null;\n if (is != null) {\n properties = new LdapProperties(authConfig, is);\n } else {\n properties = new LdapProperties(authConfig);\n properties.useDefaultPropertiesFile();\n }\n properties.configure();\n return authConfig;\n }",
"private static void loadPropertiesFromURL(String url, Properties properties) {\n \t\tif(url == null) throw new IllegalArgumentException(\"url cannot be null\");\n \t\tif(properties == null) throw new IllegalArgumentException(\"properties cannot be null\");\n \t\tURL propertiesLocation;\n \t\ttry {\n \t\t\tpropertiesLocation = new URL(url);\n \t\t} catch (MalformedURLException e1) {\n \t\t\tthrow new IllegalArgumentException(\"Could not load property file from url: \"+url, e1);\n \t\t}\n \t\ttry {\n \t\t\tproperties.load(propertiesLocation.openStream());\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}",
"public static Properties propsFromJSON(final JSONObject authConfig) {\n\t\tfinal Properties p = new Properties();\n\t\tJSONObject config = authConfig;\n\t\tif(config.has(\"tunnel\")) {\n\t\t\ttry {\n\t\t\t\tJSONObject x = config.getJSONObject(\"tunnel\");\n\t\t\t\tconfig = x;\n\t\t\t} catch (Exception ex) {/* No Op */}\n\t\t} \n\t\tfor(String key: PROPERTY_NAMES) {\n\t\t\tif(config.has(key)) {\n\t\t\t\tif(\"pkpassword\".equals(key)) {\n\t\t\t\t\tp.setProperty(key, \"\" + config.get(key));\n\t\t\t\t} else {\n\t\t\t\t\tp.setProperty(key, \"\" + config.get(key));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn p;\n\t}",
"public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }",
"private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}",
"public abstract Properties getProperties();",
"private URL readURLFromProperties( Properties properties, String propertyName ) {\n\t\tURL url = null;\n\t\tString urlAsString = properties.getProperty(propertyName) ;\n\n\t\tif( urlAsString != null ) {\n\t\t\ttry {\n\t\t\t\turl = new URL( urlAsString);\n\t\t\t} catch( MalformedURLException e ) {\n\t\t\t\tLog.e( getClass( ).getCanonicalName(), \"Invalid URL for \"+propertyName, e);\n\t\t\t}\n\t\t} else {\n\t\t\tLog.e( getClass( ).getCanonicalName(), \"Missing property \"+propertyName);\n\t\t}\n\n\t\treturn url;\n\t}",
"public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }",
"protected String getDefaultProtocols() {\r\n\t\tString sp = System.getProperty(\"transport.client.protocol\");\r\n\t\tif (isEmpty(sp))\r\n\t\t\tsp = \"SSL_TLS,TLS,SSL\";\r\n\t\treturn sp;\r\n\t}",
"public static EthProtocolOptions create() {\n return new EthProtocolOptions();\n }",
"public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static Properties loadOrCreateProperties(String filename, Properties defaultProperties) {\n\n Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(filename));\n } catch (Exception loadException) {\n try {\n FileOutputStream out = new FileOutputStream(filename);\n if (defaultProperties != null) {\n defaultProperties.store(out, null);\n }\n out.close();\n properties.load(new FileInputStream(filename));\n } catch (Exception writeException) {\n // Do nothing\n return null;\n }\n }\n return properties;\n }",
"public CMProps(final Properties p, final String filename) {\n super(p);\n final char c = Thread.currentThread().getThreadGroup().getName().charAt(0);\n if (props[c] == null)\n props[c] = this;\n\n try {\n this.load(new ByteArrayInputStream(new CMFile(filename, null).raw()));\n loaded = true;\n } catch (final IOException e) {\n loaded = false;\n }\n }",
"public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }",
"public static PropertiesUtil getInstance(){\n if (instance == null) {\n synchronized (PropertiesUtil.class){\n instance = new PropertiesUtil();\n instance.loadProperties();\n }\n }\n return instance;\n }",
"private ApplicationProtocolConfig(Protocol protocol, SelectorFailureBehavior selectorBehavior, SelectedListenerFailureBehavior selectedBehavior, List<String> supportedProtocols)\r\n/* 26: */ {\r\n/* 27: 75 */ this.supportedProtocols = Collections.unmodifiableList((List)ObjectUtil.checkNotNull(supportedProtocols, \"supportedProtocols\"));\r\n/* 28: 76 */ this.protocol = ((Protocol)ObjectUtil.checkNotNull(protocol, \"protocol\"));\r\n/* 29: 77 */ this.selectorBehavior = ((SelectorFailureBehavior)ObjectUtil.checkNotNull(selectorBehavior, \"selectorBehavior\"));\r\n/* 30: 78 */ this.selectedBehavior = ((SelectedListenerFailureBehavior)ObjectUtil.checkNotNull(selectedBehavior, \"selectedBehavior\"));\r\n/* 31: 80 */ if (protocol == Protocol.NONE) {\r\n/* 32: 81 */ throw new IllegalArgumentException(\"protocol (\" + Protocol.NONE + \") must not be \" + Protocol.NONE + '.');\r\n/* 33: */ }\r\n/* 34: 83 */ if (supportedProtocols.isEmpty()) {\r\n/* 35: 84 */ throw new IllegalArgumentException(\"supportedProtocols must be not empty\");\r\n/* 36: */ }\r\n/* 37: */ }",
"private DynamicConfiguration getPropertiesConfiguration() throws ConfigurationException,\n MalformedURLException {\n String userHome = System.getProperty(\"user.home\");\n Path properties = Paths.get(userHome, \"config-root\", \"address\", \"address.properties\");\n PolledConfigurationSource polledSource = new URLConfigurationSource(properties.toUri().toURL());\n return new DynamicConfiguration(polledSource, new FixedDelayPollingScheduler());\n }",
"private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"protected Properties newTestProperties() throws IOException\n {\n Properties props = new Properties();\n storeTestConf(props); \n return props;\n }",
"public interface PropertiesFactory {\n\n\t/**\n\t * Creates properties list.\n\t * @param app properties for app\n\t * @param localization localization for properties\n\t * @param onLanguageSetCallback callback when language is set\n\t * @return a list of properties\n\t */\n\tList<PropertiesArray> createProperties(App app, Localization localization,\n\t\t\tLanguageProperty.OnLanguageSetCallback onLanguageSetCallback);\n}",
"public static AbstractSocialConnection createConnection(Properties pProperties){\n AbstractSocialConnection socConn = null;\n String strSocDataSource = pProperties.getProperty(SOCIAL_DATA_SOURCE);\n if (pProperties != null && strSocDataSource != null && !strSocDataSource.equals(\"\")){\n /** Creating a Twitter connection*/\n if (strSocDataSource.equals(UtilsConnection.TWITTER)){\n String tmpStr = pProperties.getProperty(UtilsConnection.DEPTH_LEVEL);\n int pDepthLevel = tmpStr!=null?Integer.parseInt(tmpStr):DEFAULT_DEPTH_LEVEL;\n if (verifyProperties(pProperties)){\n socConn = new TwitterConnection(pDepthLevel,\n pProperties.getProperty(UtilsConnection.CONSUMER_KEY),\n pProperties.getProperty(UtilsConnection.CONSUMER_SECRET),\n pProperties.getProperty(UtilsConnection.ACCESS_TOKEN),\n pProperties.getProperty(UtilsConnection.ACCESS_TOKEN_SECRET));\n socConn.initialize();\n }\n else\n LOGGER.error(\"OAuth connection parameters have not been defined!\");\n }\n else\n LOGGER.error(\"Social netword data source has not been defined!\");\n }\n return socConn;\n }",
"public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"public LoadBalancingRulePropertiesFormat withProtocol(TransportProtocol protocol) {\n this.protocol = protocol;\n return this;\n }",
"private PropertyUtil(){\n\t\ttry{\n\t\t\tloadURL();\n\t\t\tRuntime.getRuntime().addShutdownHook(new UtilShutdownHook());\n\t\t}catch(IOException ioe){\n\t\t\tLOGGER.error(\"Unable to load Property File\\n\"+ioe);\n\t\t}\n\t\tLOGGER.debug(\"INSTANTIATED\");\n\t}",
"public static Properties getInstance() throws IOException {\n if (instance == null) {\n instance = new Properties();\n FileReader in = new FileReader(PROPERTIES_DIR + PROPERTIES_FILE);\n instance.load(in);\n }\n return instance;\n }",
"private PropiedadesComunicacion() throws IOException {\r\n try {\r\n\r\n Properties propiedades = new Properties();\r\n InputStream stream = ClassLoader.getSystemResourceAsStream(RUTA_PROPIEDADES);\r\n propiedades.load(stream);\r\n\r\n puerto = Integer.parseInt(propiedades.getProperty(KEY_PORT));\r\n\r\n stream.close();\r\n\r\n stream.close();\r\n if (!validarPuerto(puerto)) {\r\n throw new IOException(\"Error de direccion ip del servidor\");\r\n }\r\n } catch (IOException ex) {\r\n throw ex;\r\n }\r\n }",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"public static Properties load() throws IOException {\n Properties properties = new Properties();\n\n try (InputStream defaultProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(DEFAULT_PROPERTIES_PATH)) {\n properties.load(defaultProperties);\n }\n\n try (InputStream overwriteProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(OVERWRITE_PROPERTIES_PATH)) {\n if (overwriteProperties != null) {\n properties.load(overwriteProperties);\n }\n }\n\n String systemPropertiesPath = System.getProperty(SYSTEM_PROPERTY);\n if (systemPropertiesPath != null) {\n try (InputStream overwriteProperties = new FileInputStream(systemPropertiesPath)) {\n properties.load(overwriteProperties);\n }\n }\n\n properties.putAll(System.getProperties());\n\n return properties;\n }",
"protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"private void buildNetProperties() {\n\t\tint nofP, nofT, i;\n\t\tString s;\n\n\t\troot.add(netProperties);\n\t\tgetBasicNetProperty(woflan.InfoNofP, woflan.InfoPName, \"Places\",\n\t\t\t\tnetProperties);\n\t\tgetBasicNetProperty(woflan.InfoNofT, woflan.InfoTName, \"Transitions\",\n\t\t\t\tnetProperties);\n\t}",
"private PropertiesUtils() {}",
"public void establishConnection() {\r\n\t\t// Load IMAP-Account credentials from the property file\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\"server_resources/IMAPAccountCredentials.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\thost = prop.getProperty(\"imapHost\");\r\n\t\tuser = prop.getProperty(\"imapUsername\");\r\n\t\tpassword = prop.getProperty(\"imapPassword\");\r\n\t\tuseSSL = Boolean.parseBoolean(prop.getProperty(\"useSSL\"));\r\n\r\n\t\t// Create session for account\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(\"mail.imap.host\", host);\r\n\t\tif (useSSL) {\r\n\t\t\tprops.put(\"mail.imap.socketFactory.port\", \"993\");\r\n\t\t\tprops.put(\"mail.imap.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\tprops.put(\"mail.imap.auth\", \"true\");\r\n\t\t\tprops.put(\"mail.imap.port\", \"993\");\r\n\t\t}\r\n\t\tSession session = Session.getDefaultInstance(props, new javax.mail.Authenticator() {\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\treturn new PasswordAuthentication(user, password);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal URLName unusedUrlName = null;\r\n\t\tif (useSSL) {\r\n\t\t\tstore = new IMAPSSLStore(session, unusedUrlName);\r\n\t\t} else {\r\n\t\t\tstore = new IMAPStore(session, unusedUrlName);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tstore.connect(host, user, password);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public Properties getNiceLabelConnection() throws NiceLabelConnectionLoadingException {\n\t\tString url = null;\n\t\tProperties properties = new Properties();\n\t\tInputStream inStream = NiceLabelConnectionHelper.class.getClassLoader()\n\t\t\t\t.getResourceAsStream(NiceLabelPropertyConstant.NICELABEL_CONNECTION_FILE);\n\t\tif (inStream != null) {\n\t\t\ttry {\n\t\t\t\tproperties.load(inStream);\n\t\t\t\treturn properties;\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new NiceLabelConnectionLoadingException(\n\t\t\t\t\t\t\"Unable to load file : \" + NiceLabelPropertyConstant.NICELABEL_CONNECTION_FILE, e);\n\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new NiceLabelConnectionLoadingException(\n\t\t\t\t\t\"PropertyFile \" + NiceLabelPropertyConstant.NICELABEL_CONNECTION_FILE + \" not found in classpath \");\n\n\t\t}\n\t}",
"public\n YutilProperties()\n {\n super(new Properties());\n }",
"private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }",
"public PropertiesDocument() {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n\t\t\tthis.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Exception with default configuration\n\t\t\te.printStackTrace();\n\t\t}\n this.properties = new Properties();\n\t}",
"private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }",
"private void initializeProperties () throws Exception {\n String userHome = System.getProperty(\"user.home\");\n String userDir = System.getProperty(\"user.dir\");\n String hackyHome = userHome + \"/.hackystat\";\n String sensorBaseHome = hackyHome + \"/sensorbase\"; \n String propFile = userHome + \"/.hackystat/sensorbase/sensorbase.properties\";\n this.properties = new Properties();\n // Set defaults\n properties.setProperty(ADMIN_EMAIL_KEY, \"[email protected]\");\n properties.setProperty(ADMIN_PASSWORD_KEY, \"[email protected]\");\n properties.setProperty(CONTEXT_ROOT_KEY, \"sensorbase\");\n properties.setProperty(DB_DIR_KEY, sensorBaseHome + \"/db\");\n properties.setProperty(DB_IMPL_KEY, \"org.hackystat.sensorbase.db.derby.DerbyImplementation\");\n properties.setProperty(HOSTNAME_KEY, \"localhost\");\n properties.setProperty(LOGGING_LEVEL_KEY, \"INFO\");\n properties.setProperty(SMTP_HOST_KEY, \"mail.hawaii.edu\");\n properties.setProperty(PORT_KEY, \"9876\");\n properties.setProperty(XML_DIR_KEY, userDir + \"/xml\");\n properties.setProperty(TEST_INSTALL_KEY, \"false\");\n properties.setProperty(TEST_DOMAIN_KEY, \"hackystat.org\");\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propFile);\n properties.load(stream);\n System.out.println(\"Loading SensorBase properties from: \" + propFile);\n }\n catch (IOException e) {\n System.out.println(propFile + \" not found. Using default sensorbase properties.\");\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n // Now add to System properties. Since the Mailer class expects to find this stuff on the \n // System Properties, we will add everything to it. In general, however, clients should not\n // use the System Properties to get at these values, since that precludes running several\n // SensorBases in a single JVM. And just is generally bogus. \n Properties systemProperties = System.getProperties();\n systemProperties.putAll(properties);\n System.setProperties(systemProperties);\n }",
"public MessageDestinationFactory() {\n this.properties = new ConfigMap();\n }",
"public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"@Override\n\tpublic Map<String, String> getMessageProperties(String language, String messageType) {\n\t\treturn getMessageProperties(language, messageType, false);\n\t}",
"public String getSslProtocolsProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_SSL_PROTOCOLS);\n }",
"private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"private void initProtocol() {\n\t\tprotocol = new MixingProtocol();\n\n\t\tRectangleMixingStep step1 = new RectangleMixingStep(1.25, true, true);\n\t\tRectangleMixingStep step2 = new RectangleMixingStep(2.50, true, false);\n\t\tRectangleMixingStep step3 = new RectangleMixingStep(3.75, false, true);\n\t\tRectangleMixingStep step4 = new RectangleMixingStep(4.0, false, false);\n\n\t\tprogram = new ArrayList<MixingStep>();\n\t\tprogram.add(step1);\n\t\tprogram.add(step2);\n\t\tprogram.add(step3);\n\t\tprogram.add(step4);\n\n\t\tprotocol.setProgram(program);\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"CommonProperties getProperties();"
] |
[
"0.6809727",
"0.60852665",
"0.55829096",
"0.55299455",
"0.54593915",
"0.5427633",
"0.5375354",
"0.52471054",
"0.52209806",
"0.5214913",
"0.5214114",
"0.5161434",
"0.51563925",
"0.51430994",
"0.5099237",
"0.50905865",
"0.50858164",
"0.50705874",
"0.5044307",
"0.5030809",
"0.50241315",
"0.5021156",
"0.50049907",
"0.4983766",
"0.498049",
"0.49761528",
"0.49757376",
"0.49660683",
"0.49648204",
"0.49548227",
"0.4954451",
"0.4892239",
"0.48919362",
"0.48892418",
"0.48891222",
"0.48857898",
"0.48682272",
"0.48532772",
"0.4845401",
"0.48334566",
"0.4833007",
"0.48260635",
"0.4817196",
"0.48141906",
"0.48042795",
"0.47976682",
"0.4794898",
"0.4794097",
"0.47559893",
"0.47495648",
"0.47379345",
"0.47379345",
"0.4735416",
"0.47323638",
"0.47160128",
"0.4704017",
"0.47033262",
"0.4696979",
"0.46953142",
"0.46936575",
"0.46908337",
"0.46905947",
"0.46899214",
"0.46853516",
"0.46840087",
"0.4679193",
"0.46785522",
"0.46723878",
"0.4669123",
"0.46686107",
"0.46668878",
"0.46647778",
"0.46637705",
"0.46573704",
"0.46537223",
"0.46529472",
"0.46522227",
"0.46507472",
"0.46505383",
"0.4649325",
"0.4642229",
"0.4635529",
"0.46239802",
"0.46194097",
"0.4616471",
"0.46157825",
"0.46146452",
"0.46141815",
"0.46103534",
"0.46079984",
"0.4597335",
"0.45969686",
"0.45955807",
"0.45955065",
"0.4592822",
"0.4590235",
"0.4582856",
"0.4576582",
"0.4572531",
"0.45622188"
] |
0.78310865
|
0
|
Populate properties object by loading properties from the given property file.
|
private Properties loadProperties(String propertyFile) {
oAuthProperties = new Properties();
try {
oAuthProperties.load(App.class.getResourceAsStream(propertyFile));
} catch (IOException e) {
System.err.println("Unable to read " + propertyFile
+ " configuration. Make sure you have a properly formatted " + propertyFile + " file.");
return null;
}
return oAuthProperties;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"private void loadPropertiesFile(String propertiesFile) {\n\n\t\t//open the properties file.\n\t\t_props = new Properties();\n\n\t\t//sanity check the properties file\n\t\tFile f = new File(propertiesFile);\n\t\tif (!f.canRead()) {\n\t\t\t//print an error - can't read the props file.\n\t\t\tSystem.err.println(\"Properties file \" + propertiesFile + \" cannot be read.\");\n\t\t}\n\n\t\ttry {\n\t\t\t_props.load(new FileInputStream(f));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}",
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }",
"private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }",
"public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}",
"public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void populate(java.util.Map properties) throws LexComponentException;",
"public void loadPropertyFile(String filename) {\n try (InputStream is = new FileInputStream(filename)) {\n properties.load(is);\n } catch (IOException x) {\n throw new IllegalArgumentException(x);\n }\n }",
"PropertiesTask setProperties( File propertiesFile );",
"@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}",
"public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.close();\n }",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\n }",
"public void load(Map<String, String> props) {\n if (props != null && props.size() > 0) {\n for (String key : props.keySet()) {\n if (isSupported(key)) {\n String suffix = getSuffix(key);\n String value = props.get(key);\n loadProperty(suffix, value);\n }\n }\n }\n }",
"default void load(Map<String, Object> properties)\r\n {\r\n }",
"private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }",
"void setPropertiesFile(File file);",
"private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}",
"public void init(Properties properties) throws IOException;",
"public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }",
"public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}",
"public abstract void load(Properties props, InputStream in)\n throws IOException, InvalidPropertiesFormatException;",
"protected void fromProperties(Properties properties) {\r\n value = reader.read(properties, key, value);\r\n }",
"public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}",
"public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }",
"public void load(File file)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException \n {\n\t initializeTestProperties(new BufferedInputStream(new FileInputStream(file)));\n\t}",
"public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected static Properties loadFileAsProperty(File file) throws FileNotFoundException, IOException {\r\n\t\tProperties result = new Properties();\r\n\t\tresult.load(new FileReader(file));\r\n\t\treturn result;\r\n\t}",
"private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}",
"private Properties loadPropertiesFile(String file) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tif (fis != null) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\treturn props;\n\t\t\t}\n\t\t\tSystem.err.println(\"Cannot load \" + file\n\t\t\t\t\t+ \" , file input stream object is null\");\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.err.println(\"Cannot load \" + file + \", error reading file\");\n\t\t}\n\t\treturn null;\n\t}",
"public void loadObjectData(String datafile) {\n\t\tProperties databaseAddData = new Properties();\n\t\ttry {\n\t\t\tdatabaseAddData.load(new FileInputStream(langFile));\n\t\t} catch (Exception e) {}\n\t\t//put values from the properties file into hashmap\n\t\tthis.properties.put(\"PROPERTY\", databaseAddData.getProperty(\"PROPERTY\"));\n\t}",
"private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}",
"protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }",
"@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}",
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }",
"public CMProps(final Properties p, final String filename) {\n super(p);\n final char c = Thread.currentThread().getThreadGroup().getName().charAt(0);\n if (props[c] == null)\n props[c] = this;\n\n try {\n this.load(new ByteArrayInputStream(new CMFile(filename, null).raw()));\n loaded = true;\n } catch (final IOException e) {\n loaded = false;\n }\n }",
"private static void loadProperties(final String[] filenames, final Properties props,\n final Properties logProps) {\n\n for(String filename : filenames) {\n\n File f = new File(filename);\n\n if(!f.exists()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" does not exist\");\n System.exit(1);\n }\n\n if(!f.canRead()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" is not readable\");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n Properties currProps = new Properties();\n\n try {\n fis = new FileInputStream(f);\n currProps.load(fis);\n if(f.getName().startsWith(\"log.\")) {\n logProps.putAll(resolveLogFiles(currProps));\n } else {\n props.putAll(currProps);\n }\n } catch(IOException ioe) {\n System.err.println(\"Start-up error: Problem reading configuration file, '\" + f.getAbsolutePath() + \"'\");\n Util.closeQuietly(fis);\n fis = null;\n System.exit(1);\n } finally {\n Util.closeQuietly(fis);\n }\n }\n }",
"public static Properties loadProperties(String file) throws Exception {\n Properties props = new Properties();\n props.load(new FileInputStream(file));\n\n return props;\n }",
"void loadProperties(File propertiesFile) throws IOException\n {\n // Load the properties.\n LOGGER.info(\"Loading properties from \\\"{}\\\" file...\", propertiesFile);\n try (InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(propertiesFile), \"UTF-8\"))\n {\n properties.load(inputStreamReader);\n }\n\n // Log all properties except for password.\n StringBuilder propertiesStringBuilder = new StringBuilder();\n for (Object key : properties.keySet())\n {\n String propertyName = key.toString();\n propertiesStringBuilder.append(propertyName).append('=')\n .append(HERD_PASSWORD_PROPERTY.equalsIgnoreCase(propertyName) ? \"***\" : properties.getProperty(propertyName)).append('\\n');\n }\n LOGGER.info(\"Successfully loaded properties:%n{}\", propertiesStringBuilder.toString());\n }",
"@Override\n public final boolean loadProperties() {\n if (props == null) {\n return false;\n }\n\n if (!loadFile()) {\n return false;\n }\n\n if (!loadFields()) {\n return false;\n }\n\n if (!loadFieldWidths()) {\n return false;\n }\n\n if (!loadTableName()) {\n return false;\n }\n\n if (!loadPkey()) {\n return false;\n }\n\n loadFieldOffsets();\n\n loadBatchSize();\n\n loadColumnTypes();\n\n loadRowValidator();\n // load column names. where they follow a given pattern.\n // load table name.\n\n return true;\n }",
"protected void loadProperties(ClassLoader al, URL url) {\n try (InputStream is = url.openStream()) {\n if (is == null) {\n log(\"Could not load definitions from \" + url,\n Project.MSG_WARN);\n return;\n }\n Properties props = new Properties();\n props.load(is);\n for (String key : props.stringPropertyNames()) {\n name = key;\n classname = props.getProperty(name);\n addDefinition(al, name, classname);\n }\n } catch (IOException ex) {\n throw new BuildException(ex, getLocation());\n }\n }",
"public void load(String fileName)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException\n {\n\t\tinitializeTestProperties(new BufferedInputStream(new FileInputStream(fileName)));\n\t}",
"void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }",
"public Properties loadProps(String propFile) {\n Properties props = new Properties();\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(propFile));\n } catch (FileNotFoundException e) {\n return null;\n }\n try {\n props.load(f);\n } catch (IOException e) {\n System.err.println(\"IO EXception in loadProps in EvalModels class\");\n }\n System.out.println(props.toString());\n return props;\n }",
"public static synchronized void refreshProperties(File file) {\n var prop = new Properties();\n FileInputStream input;\n try {\n input = new FileInputStream(file);\n prop.load(input);\n input.close();\n } catch (IOException e) {\n throw new PropertyReadException(e.getMessage(), e);\n }\n\n prop.forEach((key, value) -> checkSystemPropertyAndFillIfNecessary(valueOf(key),\n nonNull(value) ? valueOf(value) : EMPTY));\n arePropertiesRead = true;\n }",
"public Properties loadPropertiesFromFile(String path) {\n\n\t\ttry {\n\t\t\tInputStream fileInputStream = PropertyUtil.class\n\t\t\t\t\t.getResourceAsStream(path);\n\t\t\tproperties.load(fileInputStream);\n\t\t\tfileInputStream.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn properties;\n\t}",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}",
"public static void init(String propfile) throws Exception\r\n\t{\r\n\t\tinit(propfile, \"Properties\", new String[0]);\r\n\t}",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"public static Properties loadProperties(final String filename) throws IllegalArgumentException {\n final File file = new File(filename);\n final Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(file));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(\"File not found: \" + file, ex);\n } catch (IOException ex) {\n throw new IllegalArgumentException(\"Unable to load properties: \" + file, ex);\n }\n return properties;\n }",
"public static Properties load(String propsFile)\n {\n \tProperties props = new Properties();\n FileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(propsFile));\n\t\t\tprops.load(fis); \n\t\t fis.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n return props;\n }",
"public HistogramConfiguration loadProperties(String propertyFileName)\n {\n HistogramConfiguration histConfig = HistogramConfiguration.getInstance();\n\n try(FileInputStream inputStream = new FileInputStream(propertyFileName))\n {\n properties.load(inputStream);\n\n histConfig.setShouldIgnoreWhiteSpaces(loadShouldIgnoreWhiteSpace());\n histConfig.setIgnoreCharacters(loadIgnoredCharactersProperties());\n\n }catch (IOException e)\n {\n e.printStackTrace();\n }\n\n return histConfig;\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public void loadConfigProperties() {\n Properties properties = new Properties();\n InputStream inputStream = null;\n try {\n String configFile = Constant.CONFIGURATION_PROPERTIES;\n inputStream = RepositoryParser.class.getClassLoader().getResourceAsStream(configFile);\n // Loading the property file\n properties.load(inputStream);\n } catch (FileNotFoundException e) {\n Log.error(\"Property file was not found\");\n } catch (IOException e) {\n Log.error(\"The key was not found in the property file\");\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n Log.error(\"The property file was not closed\");\n }\n }\n }\n\n // Getting the corresponding value of the key in the property file\n configPropertiesMap = new HashMap<String, String>((Map) properties);\n }",
"private static void loadPropertiesFromURL(String url, Properties properties) {\n \t\tif(url == null) throw new IllegalArgumentException(\"url cannot be null\");\n \t\tif(properties == null) throw new IllegalArgumentException(\"properties cannot be null\");\n \t\tURL propertiesLocation;\n \t\ttry {\n \t\t\tpropertiesLocation = new URL(url);\n \t\t} catch (MalformedURLException e1) {\n \t\t\tthrow new IllegalArgumentException(\"Could not load property file from url: \"+url, e1);\n \t\t}\n \t\ttry {\n \t\t\tproperties.load(propertiesLocation.openStream());\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}",
"@Override\n public Configuration parseProperties(String fileUrlToProperties) throws Exception {\n fileUrlToProperties = resolvePropertiesSources(fileUrlToProperties);\n if (fileUrlToProperties != null) {\n for (String fileUrl : fileUrlToProperties.split(\",\")) {\n Properties brokerProperties = new InsertionOrderedProperties();\n if (fileUrl.endsWith(\"/\")) {\n // treat as a directory and parse every property file in alphabetical order\n File dir = new File(fileUrl);\n if (dir.exists()) {\n String[] files = dir.list(new FilenameFilter() {\n @Override\n public boolean accept(File file, String s) {\n return s.endsWith(\".properties\");\n }\n });\n if (files != null && files.length > 0) {\n Arrays.sort(files);\n for (String fileName : files) {\n try (FileInputStream fileInputStream = new FileInputStream(new File(dir, fileName));\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.clear();\n brokerProperties.load(reader);\n parsePrefixedProperties(this, fileName, brokerProperties, null);\n }\n }\n }\n }\n } else {\n File file = new File(fileUrl);\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.load(reader);\n parsePrefixedProperties(this, file.getName(), brokerProperties, null);\n }\n }\n }\n }\n parsePrefixedProperties(System.getProperties(), systemPropertyPrefix);\n return this;\n }",
"public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }",
"public ReadProperties(String filename) {\n\n\t\ttry {\n\t\t\tInputStream in = new FileInputStream(filename);\n\n\t\t\tprop = new Properties();\n\n\t\t\tprop.load(in);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void readProperties(String propFilename){\n\t\tString propertiesFilename = propFilename;\n\t\tProperties properties = new Properties();\n\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(propertiesFilename);\n\t\t\tproperties.load(in);\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading properties \"+propertiesFilename);\n\t\t\tSystem.exit(1);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tString path=\"Not set\";\n\t\tint popSize=0;\n\t\tint features=0;\n\t\tint maxGenerations=0;\n\t\tboolean log=false;\n\t\tboolean debug=false;\n\t\tboolean printbest=false;\n\t\tboolean cwd=false;\n\t\tboolean arrcache=false;\n\t\tdouble addSubRangeH;\n\t\tdouble divMultRangeH;\n\t\tdouble randomThicknessRange;\n\t\tdouble randomVelocityRange;\n\n\t\tdouble addSubRangeVS;\n\t\tdouble divMultRangeVS;\n\n\t\tint zThreshold=0;\n\t\tboolean useThreshold = true;\n\n\tif(properties.containsKey(\"path\")){\n\t\tpath = ((String)properties.get(\"path\"));\n\t\tif(properties.containsKey(\"cwd\")){\n\t\t\tcwd = Boolean.parseBoolean((String)properties.get(\"cwd\"));\n\t\t}\n\t\tc.path=path;\n\t\tc.setPaths(cwd);\n\t}else{\n\t\tSystem.out.println(\"Path : \"+path);\n\t\tSystem.exit(1);\n\t}if(properties.containsKey(\"populationSize\")){\n\t\tpopSize = Integer.parseInt((String)properties.get(\"populationSize\"));\n\t\tc.populationSize =popSize;\n\t}if(properties.containsKey(\"printBest\")){\n\t\tprintbest = Boolean.parseBoolean((String)properties.get(\"printBest\"));\n\t\tc.printBest=printbest;\n\t}if(properties.containsKey(\"maxGenerations\")){\n\t\tmaxGenerations = Integer.parseInt((String)properties.get(\"maxGenerations\"));\n\t\tc.maxGenerations=maxGenerations;\n\t}if(properties.containsKey(\"log\")){\n\t\tlog = Boolean.parseBoolean((String)properties.get(\"log\"));\n\t\tc.log=log;\n\t}if(properties.containsKey(\"debug\")){\n\t\tdebug = Boolean.parseBoolean((String)properties.get(\"debug\"));\n\t\tc.debug=debug;\n\t}if(properties.containsKey(\"features\")){\n\t\tfeatures = Integer.parseInt((String)properties.get(\"features\"));\n\t\tc.features=features;\n\t}if(properties.containsKey(\"addSubRangeH\")){\n\t\taddSubRangeH = Double.parseDouble((String)properties.get(\"addSubRangeH\"));\n\t\tc.addSubRangeH=addSubRangeH;\n\t}if(properties.containsKey(\"addSubRangeVS\")){\n\t\taddSubRangeVS = Double.parseDouble((String)properties.get(\"addSubRangeVS\"));\n\t\tc.addSubRangeVS=addSubRangeVS;\n\t}if(properties.containsKey(\"divMultRangeH\")){\n\t\tdivMultRangeH = Double.parseDouble((String)properties.get(\"divMultRangeH\"));\n\t\tc.divMultRangeH=divMultRangeH;\n\t}if(properties.containsKey(\"divMultRangeVS\")){\n\t\tdivMultRangeVS = Double.parseDouble((String)properties.get(\"divMultRangeVS\"));\n\t\tc.divMultRangeVS=divMultRangeVS;\n\t}if(properties.containsKey(\"randomThicknessRange\")){\n\t\trandomThicknessRange = Double.parseDouble((String)properties.get(\"randomThicknessRange\"));\n\t\tc.randomThicknessRange=randomThicknessRange;\n\t}if(properties.containsKey(\"randomVelocityRange\")){\n\t\trandomVelocityRange = Double.parseDouble((String)properties.get(\"randomVelocityRange\"));\n\t\tc.randomVelocityRange=randomVelocityRange;\n\t}if(properties.containsKey(\"zThreshold\")){\n\t\tzThreshold = Integer.parseInt((String)properties.get(\"zThreshold\"));\n\t\tc.zThreshold=zThreshold;\n\t}if(properties.containsKey(\"useThreshold\")){\n\t\tuseThreshold = Boolean.parseBoolean((String)properties.get(\"useThreshold\"));\n\t\tc.useThreshold=useThreshold;\n\t}\n\n\tSystem.out.println(\" Debug? \"+debug + \" | Log? \"+ log + \" | printBest? \"+ printbest);\n\tSystem.out.println(\"Pop: \"+c.populationSize+\" | Max Gens: \"+ maxGenerations+ \"\\nPath: \"+c.path);\n\tSystem.out.println(\"randomThicknessRange :\"+c.randomThicknessRange+\" randomVelocityRange :\"+c.randomVelocityRange);\n\tSystem.out.println(\"AddSubRange H :\"+c.addSubRangeH+\" VS :\"+c.addSubRangeVS);\n\tSystem.out.println(\"divMultRange H :\"+c.divMultRangeH+\" VS :\"+c.divMultRangeVS);\n\tSystem.out.println(\"Threshold ? \"+c.useThreshold+\" : \"+c.zThreshold);\n\t}",
"@Override\n public void loadFromProperties(PropertiesWrapper properties) {\n\n useForeignKeyPrefix = properties.getBoolean(\"namingConvention.useForeignKeyPrefix\", useForeignKeyPrefix);\n sequenceFormat = properties.get(\"namingConvention.sequenceFormat\", sequenceFormat);\n schema = properties.get(\"namingConvention.schema\", schema);\n }",
"public PSBeanProperties()\n {\n loadProperties();\n }",
"public PropertiesPlus(File propertiesFile) throws IOException\n\t{\n\t\tsuper();\n\t\tpropertyFile = propertiesFile; \n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tload(new FileReader(propertiesFile));\n\t}",
"public static Properties loadProperties(@NonNull File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n Properties properties = new Properties();\n properties.load(fileInputStream);\n return properties;\n }",
"private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void load(Properties props) {\n\n if (props == null)\n return;\n super.load(props);\n StartingFunds = (float)getInt(props, \"StartingFunds\", (int)StartingFunds);\n NumTestTraders = getInt(props, \"NumTestTraders\", NumTestTraders);\n NumSteps = getInt(props, \"NumSteps\", NumSteps);\n try {\n\t\t\tdata = new StockData();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public PropertyManager(String propFileName) {\n if ((propFileName != null) && (propFileName.length() > 0)) {\n this.propFileName = propFileName;\n recentResult = loadPropertyFile(propFileName);\n }\n }",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"public void setPropertiesFile(File propertiesFile) {\n this.propertiesFile = propertiesFile;\n }",
"public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }",
"public Map executeFileLoader(String propertyFile) {\r\n\t\t\r\n\t\tProperties propertyVals = new Properties();\r\n\t\ttry {\r\n\t\t\tInputStream inputStream = getClass().getClassLoader().getResourceAsStream(propertyFile);\r\n\t\t\tpropertyVals.load(inputStream);\r\n\t\t\t\t\r\n\t\t\tString URL =\tpropertyVals.getProperty(\"URL\");\r\n\t\t\tString Depth =\tpropertyVals.getProperty(\"Depth\");\r\n\t\t\tfactorVals = new HashMap<String, String>();\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<2; i++)\r\n\t\t\t{\r\n\t\t\t\tif(i==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfactorVals.put(\"URL\", URL);\r\n\t\t\t\t\t}\t\r\n\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfactorVals.put(\"Depth\", Depth);\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"File not Found.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn factorVals;\t\r\n\t}",
"public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }",
"public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }",
"public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }",
"private ConfigProperties parsePropertiesFile(final String propertiesFile) {\n properties = ConfigFactory.getInstance().getConfigPropertiesFromAbsolutePath(propertiesFile);\n return properties;\n }",
"protected abstract void loadProperty(String key, String value);",
"public static Properties file2Properties(File file) {\r\n Properties props = new Properties();\r\n FileInputStream stream = null;\r\n InputStreamReader streamReader = null;\r\n\r\n\r\n try {\r\n stream = new FileInputStream(file);\r\n streamReader = new InputStreamReader(stream, charSet);\r\n props.load(streamReader);\r\n } catch (IOException ex) {\r\n Logger.getLogger(RunProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return props;\r\n }",
"public void init(Properties props) ;",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static Properties loadProperties(String filePath) throws MnoConfigurationException {\n\t\tProperties properties = new Properties();\n\t\tInputStream input = getInputStreamFromClassPathOrFile(filePath);\n\t\ttry {\n\t\t\tproperties.load(input);\n\t\t} catch (IOException e) {\n\t\t\tthrow new MnoConfigurationException(\"Could not load properties file: \" + filePath, e);\n\t\t}\n\t\treturn properties;\n\t}",
"protected SftpPropertyLoad(final String bundleFileName) {\n\n\t\tthis.bundleFileName = bundleFileName;\n\n\t\tfinal Resource res = new ClassPathResource(StringUtil.replace(bundleFileName, \".\", \"/\") + \".properties\");\n\t\tfinal EncodedResource encodedResource = new EncodedResource(res, \"UTF-8\");\n\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(encodedResource);\n\t\t} catch (IOException e) {\n\t\t\tthrow new WebRuntimeException(e);\n\t\t}\n\t}",
"void readProperties(java.util.Properties p) {\n }"
] |
[
"0.7751273",
"0.7727962",
"0.7387092",
"0.7372421",
"0.7203197",
"0.71836615",
"0.7164355",
"0.71261203",
"0.7092607",
"0.70622295",
"0.6996845",
"0.69842297",
"0.6967695",
"0.69589114",
"0.68629974",
"0.68605363",
"0.6796691",
"0.67738414",
"0.6765722",
"0.6761533",
"0.6756154",
"0.6740898",
"0.6721778",
"0.6688513",
"0.6681457",
"0.66680926",
"0.6666588",
"0.66538304",
"0.6627238",
"0.6624976",
"0.66186076",
"0.6610059",
"0.6609734",
"0.6605161",
"0.6595315",
"0.6587231",
"0.6572678",
"0.65706545",
"0.6564637",
"0.655664",
"0.6550608",
"0.651747",
"0.64653134",
"0.6461941",
"0.64412737",
"0.6414902",
"0.6414646",
"0.6392339",
"0.637871",
"0.6373256",
"0.6346557",
"0.6343516",
"0.633656",
"0.63306206",
"0.6296466",
"0.62802917",
"0.62757844",
"0.6245244",
"0.6243421",
"0.6239629",
"0.6225335",
"0.62168664",
"0.6194344",
"0.61903965",
"0.6172106",
"0.6123308",
"0.6117427",
"0.61126465",
"0.61120135",
"0.6107841",
"0.6106878",
"0.61023575",
"0.6087801",
"0.60801136",
"0.6077573",
"0.60713387",
"0.6067721",
"0.6065162",
"0.6062289",
"0.60499376",
"0.60490155",
"0.6045328",
"0.6042132",
"0.60392475",
"0.60217357",
"0.601767",
"0.6014024",
"0.6010475",
"0.60074276",
"0.5993874",
"0.59874725",
"0.5983566",
"0.59727895",
"0.59651077",
"0.59591985",
"0.5957619",
"0.5942656",
"0.59330374",
"0.59322965",
"0.5928456"
] |
0.64160407
|
45
|
Get a specific property from the properties object.
|
public String getProperty(String propertyName) {
System.out.println(propertyName + " - " + oAuthProperties.getProperty(propertyName));
return oAuthProperties.getProperty(propertyName);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Property getProperty();",
"Property getProperty();",
"String getProperty(String property);",
"Object getProperty(String name);",
"Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }",
"public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }",
"Object getProperty(String key);",
"public Object getProperty(String name) {\n return properties.get(name);\n }",
"public <T> T getProperty(String name) {\n return properties.get(name);\n }",
"String getProperty(String name);",
"java.lang.String getProperty();",
"public String getProperty(Object obj, String key);",
"public Object get(String propertyId)\n {\n return properties.get(propertyId);\n }",
"public Object getProperty(Object key) {\r\n\t\treturn properties.get(key);\r\n\t}",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"Property findProperty(String propertyName);",
"public String getProperty(String name);",
"public PropertyObject getProperty(String name) {\n return this.properties.get(name);\n }",
"public String getProperty();",
"Object getProperty(Long id, String name) throws RemoteException;",
"public String getProperty(String propertyName) throws CoreException;",
"public Object getProperty(String name) {\n if (properties != null) {\n return properties.get(name);\n }\n return null;\n }",
"@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }",
"public Variable getProperty(String propertyName)\r\n\t{\r\n\t\t// search own properties:\r\n\t\tfor (int i=0; i<properties.size(); i++)\r\n\t\t{\r\n\t\t\tif (properties.get(i).name.equals(propertyName))\r\n\t\t\t\treturn properties.get(i);\r\n\t\t}\r\n\t\t// if we have a base class, let it search for properties, or return null\r\n\t\tif (baseClass != null)\r\n\t\t\treturn baseClass.getProperty(propertyName);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"String get(String kind, String name, String property);",
"public String get(String propertyName);",
"public Object getProperty (String index) ;",
"public <T> T getProperty(String name, Class<T> type);",
"public Object getProperty(String name)\n {\n return m_props.get(name);\n }",
"public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}",
"<T> T getValue(Property<T> property);",
"public Object getProperty( Property propertyId ) {\n return nodeProperties != null ? nodeProperties.get(propertyId) : null;\n }",
"@Override\n public Object getProperty(String property) {\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n Object prop = requiredBehaviorEntry.getValue().getProperty(property);\n if (prop != null) {\n return prop;\n }\n }\n return null;\n }",
"public Property getProperty() {\n\t\treturn _property;\n\t}",
"public Optional<Object> getProperty(String name) {\n return Optional.ofNullable(properties.get(name));\n }",
"public Object getProperty(Object object, String property) {\n if (object == null) {\n throw new NullPointerException(\"Cannot get property: \" + property + \" on null object\");\n }\n else if (object instanceof GroovyObject) {\n GroovyObject pogo = (GroovyObject) object;\n return pogo.getProperty(property);\n }\n else if (object instanceof Map) {\n Map map = (Map) object;\n return map.get(property);\n }\n else {\n return metaRegistry.getMetaClass(object.getClass()).getProperty(object, property);\n }\n }",
"public abstract boolean getProperty(String propertyName);",
"public AlertApi.AlertObject getProperty(String prop) \n throws AlertException {\n AlertApi.AlertObject obj = null;\n AlertTreeNodeLeaf leaf = null;\n synchronized(AlertCorrelationEngine.class) {\n leaf = (AlertTreeNodeLeaf) propertiesMap.get(prop);\n }\n if (leaf != null) {\n String [] pathElements = leaf.parsePath();\n try {\n int nodeid = Integer.parseInt(pathElements[0]);\n int index = getIndexFromNodeId(nodeid);\n AlertNode curNode = getNodeFromIndex(index);\n if (curNode != null && curNode.isValid()) {\n obj = leaf.getAlertObject();\n return obj;\n }\n } catch (NumberFormatException nb) {\n logger.severe(\"invalid leaf, nodeid = \" + pathElements[0]);\n }\n }\n if (obj == null) {\n throw (new AlertException(\"property \" + prop + \" does not exist\"));\n }\n // To please compiler.\n return null;\n }",
"@SuppressWarnings(\"unchecked\")\r\n public static <T> T getProperty(String name) {\r\n return (T) propertyMap.get(name);\r\n }",
"public static String getProperty(String property) {\n if (properties == null) {\n loadProperties();\n }\n return properties.getProperty(property);\n }",
"public Object getPropertyValue(Object propertyId) {\n\t\tif (properties.containsKey(propertyId)) {\n\t\t\treturn properties.get(propertyId);\n\t\t}\n\t\tthrow new PropertyNotAvailableException();\n\t}",
"public static String getProperty(String name) {\r\n return properties.getProperty(name);\r\n }",
"private Property extractPropertyFromMetadata(MetadataConverter metadataConverter, Property[] properties,\n String propertyName) throws IdentityProviderManagementException {\n\n Property propertyWithName = null;\n StringBuilder certificate = new StringBuilder();\n try {\n FederatedAuthenticatorConfig metaFederated =\n metadataConverter.getFederatedAuthenticatorConfig(properties, certificate);\n Property[] metadataProperties = metaFederated.getProperties();\n for (Property metadataProperty : metadataProperties) {\n // Searching for the property.\n if (propertyName.equals(metadataProperty.getName())) {\n propertyWithName = metadataProperty;\n break;\n }\n }\n } catch (IdentityProviderManagementException ex) {\n throw new IdentityProviderManagementException(\"Error converting metadata\", ex);\n } catch (XMLStreamException e) {\n throw new IdentityProviderManagementException(\"Error while configuring metadata\", e);\n }\n return propertyWithName;\n }",
"public String getProperty(Class type, String key);",
"public static String getProperty(String propertyName){\r\n String val = userProps.getProperty(propertyName);\r\n\r\n if (val == null)\r\n return jinProps.getProperty(propertyName);\r\n else\r\n return val;\r\n }",
"public String getProperty(String name)\n {\n return _propertyEntries.get(name);\n }",
"public String getProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getProperty(null, propertyName);\n }",
"public String getProperty(String key) {\n String value = properties.getProperty(key);\n return value;\n }",
"public java.lang.String getProperty(java.lang.String propertyName) {\n return properties.getProperty(propertyName);\n }",
"String fetchProperty(String property)\n\t{\n\t\tif(configProp==null)\n\t\t\tloadPropertiesFile();\n\t\t\n\t\treturn(configProp.getProperty(property));\n\t}",
"public static String getProperty( Object object, String property )\r\n {\r\n try\r\n {\r\n property = property.substring( 0, 1 ).toUpperCase() + property.substring( 1, property.length() );\r\n\r\n Method method = object.getClass().getMethod( \"get\" + property );\r\n\r\n return (String) method.invoke( object );\r\n }\r\n catch ( NoSuchMethodException ex )\r\n {\r\n return null;\r\n }\r\n catch ( InvocationTargetException ex )\r\n {\r\n return null;\r\n }\r\n catch ( IllegalAccessException ex )\r\n {\r\n return null;\r\n }\r\n }",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public Properties getProperty() {\r\n return properties;\r\n }",
"public static Prop lookup(String propName) {\n Prop prop = BY_NAME.get(propName);\n if (prop == null) {\n throw new RuntimeException(\"property \" + propName + \" not found\");\n }\n return prop;\n }",
"public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }",
"public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }",
"public String getProperty( String name )\n {\n return getProperty( name, false );\n }",
"public String getPropValue(String propertyName){\n\n return pro.getProperty(propertyName);\n\n }",
"public String getProperty(String key) {\n\t\treturn this.properties.get(key);\n\t}",
"public String getPropertyValue(String propertyName){\n\t\treturn (String) properties.get(propertyName);\n\t}",
"public Object getProperty(String name) {\n\t\treturn beanMap.get(name);\n\t}",
"public static Object getObject(String property) {\n\t\treturn getObject(null, property);\n\t}",
"private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }",
"public String getProperty( String key )\n {\n List<Props.Entry> props = this.props.getEntry();\n Props.Entry keyObj = new Props.Entry();\n keyObj.setKey( key );\n\n String value = null;\n int indx = props.indexOf( keyObj );\n if ( indx != -1 )\n {\n Props.Entry entry = props.get( props.indexOf( keyObj ) );\n value = entry.getValue();\n }\n\n return value;\n }",
"private Object getPropertyValue(Object object, String propertyName) throws Exception {\r\n\t\tObject value = null;\r\n\t\tBeanInfo info = Introspector.getBeanInfo(object.getClass());\r\n\t\tPropertyDescriptor[] properties = info.getPropertyDescriptors();\r\n\t\tboolean found = false;\r\n\t\tfor (PropertyDescriptor property : properties) {\r\n\t\t\tif (property.getName().equals(propertyName)) {\r\n\t\t\t\tMethod getter = property.getReadMethod();\r\n\t\t\t\tif (getter == null) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"Property '\" + propertyName + \"' is not readable in class \" + object.getClass().getName());\r\n\t\t\t\t}\r\n\t\t\t\tfound = true;\r\n\t\t\t\tvalue = getter.invoke(object);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!found) {\r\n\t\t\tthrow new IllegalArgumentException(\"Property '\" + propertyName + \"' not found in class \" + object.getClass().getName());\r\n\t\t}\r\n\t\treturn value;\r\n\t}",
"public synchronized String getProperty(String name)\n throws Fault {\n if (props == null) {\n // reconstitute properties\n // this may result in a Fault, which is okay\n reload();\n }\n\n return PropertyArray.get(props, name);\n }",
"public String getProperty(final String propertyName) {\n\t\treturn properties.getProperty(propertyName);\n\t}",
"@Override\r\n\tpublic String getProp(final String propName) {\n\t\treturn exec(new Callable<String>() {\r\n\t\t\t@Override\r\n\t\t\tpublic String call() throws Exception {\r\n\t\t\t\treturn System.getProperty(propName);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"int getProperty2();",
"public String getProperty(String key) {\n\t\treturn this.properties.getProperty(key);\n\t}",
"private static String getPropertyValue(Properties properties, String propertyName) {\n \n String value = properties.getProperty(propertyName);\n \n if (\"\".equals(value)) {\n return null;\n }\n \n return value;\n }",
"public String getSpecificProperty() {\n\t\treturn specificProperty;\n\t}",
"public String get(final String name) {\r\n return (String) properties.get(name);\r\n }",
"Object getPropertytrue();",
"public Property property(String name)\n\t{\n\t\tList<Element> list = filter(p -> p.getName().equals(name) && p instanceof Property);\n\t\t\n\t\tif (list != null && list.size() > 0)\n\t\t{\n\t\t\tif (list.size() > 1)\n\t\t\t\tSystem.out.println(\"Warning: Returning first of many groups with duplicate names\");\n\t\t\t\n\t\t\treturn (Property) list.get(0);\n\t\t}\n\t\telse return null;\n\t}",
"public abstract String GetProperty(Slice property);",
"public String getProperty(String name) {\n return this.getProperty(name, null);\n }",
"public DatatypeProp getProperty() {\n return property;\n }",
"int getProperty1();",
"public String getProperty(String name) {\r\n if (name == null) {\r\n throw new IllegalArgumentException(Msg.get(\"Property name == null\", \"portal.illegalargumentexception.property.name.null\"));\r\n }\r\n\r\n return properties.get(name);\r\n }",
"public abstract Object getPropertyValue(String propertyName)\n throws ModelException;",
"public static String getMSJProperty(String prop){\n\t\tif(propiedades.containsKey(prop)){\n\t\t\treturn propiedades.getString(prop);\t\n\t\t}else{\n\t\t\treturn \"\";\n\t\t}\t\t\t\t\n\t}",
"public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public String getProperty(int property) {\n\t\treturn activity.getString(R.string.input);\n\t}",
"public NdexPropertyValuePair getPropertyByName(String name) {\n\t\tfor ( NdexPropertyValuePair p : _properties ) {\n\t\t\tif ( p.getPredicateString().equals(name)) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public ConfigProperty get(final String key) {\n ArgumentChecker.notNull(key, \"key\");\n return _properties.get(key);\n }",
"public String getStringProperty(String propertyName) ;",
"public static String getProperty(String key) {\n\t\treturn properties.getProperty(key);\n\t}",
"public Object getProperty(String aPropertyId)\n\t\t\t\t\t throws SAXNotSupportedException,\n\t\t\t\t\t\t\t SAXNotRecognizedException {\n\t\treturn parserImpl.getProperty(aPropertyId);\n\t}",
"public abstract Object getProperty(String property) throws SOAPException;",
"public static String getProperty(String key) {\r\n if (oProperties == null) {\r\n oInstance.loadProperties();\r\n }\r\n return oProperties.getProperty(key);\r\n }",
"public Object getProperty(String attName);",
"PropertyInfo getPropertyInfo();",
"int getProperty0();",
"public final String readProperty(@NonNull final String key){\n return mProperties.getProperty(key);\n }"
] |
[
"0.79103047",
"0.79103047",
"0.7822006",
"0.7576198",
"0.7521309",
"0.7460845",
"0.74571294",
"0.7412629",
"0.7388244",
"0.7332546",
"0.7300305",
"0.7288803",
"0.72884744",
"0.726652",
"0.72020096",
"0.72020096",
"0.72020096",
"0.7191794",
"0.7191794",
"0.7191794",
"0.7154978",
"0.713999",
"0.71382904",
"0.7080029",
"0.70341736",
"0.7014314",
"0.69831973",
"0.6906468",
"0.6904351",
"0.6865984",
"0.68591356",
"0.6858257",
"0.67903537",
"0.6758298",
"0.6757312",
"0.6755345",
"0.67096406",
"0.6699966",
"0.66821325",
"0.66730833",
"0.6648245",
"0.6638779",
"0.66324264",
"0.6630699",
"0.6603784",
"0.6580086",
"0.6567052",
"0.6564063",
"0.6541368",
"0.6519612",
"0.6493403",
"0.6468057",
"0.6463421",
"0.6451195",
"0.64504063",
"0.64404476",
"0.642727",
"0.64111376",
"0.640793",
"0.6402956",
"0.6395101",
"0.6387683",
"0.63791484",
"0.6378007",
"0.6373773",
"0.63591874",
"0.6348993",
"0.63406205",
"0.6324023",
"0.63191026",
"0.6318168",
"0.6311007",
"0.6300129",
"0.62862855",
"0.6285845",
"0.6275964",
"0.62542224",
"0.62525",
"0.62391776",
"0.62386405",
"0.62355775",
"0.62338084",
"0.62272143",
"0.6213201",
"0.62117475",
"0.6206019",
"0.6201856",
"0.6195514",
"0.6183435",
"0.61668336",
"0.61618465",
"0.61577797",
"0.61551857",
"0.6151755",
"0.6135824",
"0.6135522",
"0.6119596",
"0.61166674",
"0.60859615",
"0.60771275",
"0.6074632"
] |
0.0
|
-1
|
This is supposed to ask user to type in password. Console object must be available for this to success. Otherwise, it looks for password from the property file
|
private String getPassword() {
if (null == password || password.isBlank() || password.isEmpty()) {
Console cons;
char[] passwd = null;
if ((cons = System.console()) != null) {
passwd = cons.readPassword("[%s]", "Password : ");
password = Arrays.toString(passwd);
} else {
System.err.println("Console not found");
password = getProperty("password");
}
}
return password;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static String readPassword() {\n\t\treturn consoleInput.nextLine();\r\n\t}",
"private static void task42() {\n char[] pass = null;\n Console con = System.console();\n if(con != null){\n try {\n pass = con.readPassword(\"Enter your password:\");\n System.out.println(\"Your password is \" + new String(pass));\n }\n finally {\n if(pass!=null){\n System.out.println(\"Yur pass -\"+pass);\n }\n }\n }else {\n throw new RuntimeException(\"Can't get password...No console\");\n }\n\n }",
"public void showPasswordPrompt();",
"public void enterPassword()\n {\n Scanner stdIn = new Scanner(System.in);\n \n System.out.println(\"Please enter password to continue: \");\n password = stdIn.next();\n if (password.equals(\"abcde\"))\n {\n isAdmin = true;\n System.out.println(\"Admin level access granted.\");\n }\n else\n {\n System.out.println(\"Regular level access granted.\");\n }\n }",
"@When(\"^password$\")\n public void password() throws Throwable {\n \tSystem.out.println(\"input password\");\n \t//Assert.assertEquals(34, 40);\n \t\n \t\n \n }",
"public KeyStoreBuilder<E> readPasswordFromConsole() {\r\n this.readPasswordFromConsole = true;\r\n return this;\r\n }",
"private void handlePasswordCallback(PasswordCallback pc)\n throws IOException {\n System.out.print(pc.getPrompt());\n System.out.flush();\n String passwd = (new BufferedReader(new InputStreamReader(System.in))).\n readLine();\n pc.setPassword(passwd.toCharArray());\n }",
"@When(\"^The user enters the password$\")\n\tpublic void the_user_enters_the_password() throws Throwable {\n\t\t\n\t lpw.password_textbox();\n\t}",
"private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }",
"@Test\n public void notPromptForPasswordIfuserNameIsGivenInFile() throws Exception {\n properties.setProperty(\"security-username\", \"user\");\n Mockito.doReturn(properties).when(connectCommand).loadProperties(ArgumentMatchers.any(File.class));\n result = ConnectCommandTest.gfshParserRule.executeCommandWithInstance(connectCommand, \"connect\");\n Mockito.verify(gfsh, Mockito.times(0)).readPassword(((CliStrings.CONNECT__PASSWORD) + \": \"));\n assertThat(properties).doesNotContainKey(\"security-password\");\n }",
"public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}",
"@When(\"^user should enter the valid password in the loginpage$\")\n\tpublic void user_should_enter_the_valid_password_in_the_loginpage() throws Throwable {\n\t\tinputValuestoElement(pa.getAp().getPasswordinput(), \"superman@1010\");\n\t\n\t \n\t}",
"public String printEnterPassword() {\n return \"Please enter your current password: \";\n }",
"public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}",
"protected static String promptForValue(String propertyName,\n String propertyValue, boolean password) {\n if (null == propertyValue || 0 == propertyValue.length()\n || propertyValue.equals(\"?\")) {\n Console console = System.console();\n if (console != null) {\n if (password) {\n propertyValue = new String(\n console.readPassword(propertyName + \":\"));\n } else {\n propertyValue = console.readLine(propertyName + \":\");\n }\n } else {\n throw new UnsupportedOperationException(\"Value for \"\n + propertyName + \" must be specified\");\n }\n }\n return propertyValue;\n }",
"private void secQuestionInput()\n {\n if(textBox1.getText().equals(user.getSecretQAns()))\n {\n secQuestion = false;\n password = true;\n\n textBox1.setText(\"\");\n textBox1.promptTextProperty().set(\"New Password\");\n labelHeader.setText(\"Input new password\");\n\n textBox2Label.setVisible(true);\n textBox2Label.setText(\"Confirm New Password\");\n textBox2.setVisible(true);\n textBox1Label.setText(\"New Password\");\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"Security answer does not match!\");\n alert.show();\n }\n }",
"@Step\r\n\tpublic void enterPassword(String password) {\r\n\t\tLOGGER.info(\"Entering password: \"+ password);\r\n\t\tpasswordInput.type(password);\r\n\t}",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"public String setPassword(){\n String passWord = \"\";\n while(passWord.isBlank()) {\n System.out.print(\"Please Enter PassWord: \");\n passWord = supplyString.get();\n }\n return passWord.trim();\n }",
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"public static void main(String[] args) {\n\r\n\t\tString pass = (\"asdasd\");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint attempts = 3;\r\n\t\tBoolean passInput = true;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter your password: \");\r\n\t\t\r\n\t\twhile (passInput && attempts-- > 0) {\r\n\t\t\tString passAttempt = input.nextLine();\r\n\t\t\t\r\n\t\t\tif (passAttempt.equals(pass)) {\r\n\t\t\t\tSystem.out.println(\"You're logged in!\");\r\n\t\t\t}\r\n\t\t\telse if (!passAttempt.equals(pass)) {\r\n\t\t\t\tSystem.out.println(\"Wrong password! Attempts remaining: \" + attempts);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tinput.close();\r\n\t}",
"@When(\"^Enter password as \\\"([^\\\"]*)\\\"$\")\n\tpublic void enter_password_as(String arg1) throws Throwable {\n\t\tpass = arg1;\n\t\tSystem.out.println(userName+\" - \"+ pass);\n\t\tloginPage.loginWithCredentials(userName, pass);\n\t}",
"public static void main(String[]args){\r\n \r\n \r\n String clave=\"Jeanpool\";\r\n String pass=\"\";\r\n while(clave.equals(pass) == false){\r\n pass=JOptionPane.showInputDialog(\"Introduce la contraseña , porfavor\");\r\n if(clave.equals(pass)==false){\r\n System.out.println(\"Contraseña incorrecta\");\r\n }\r\n }\r\n System.out.println(\"Contraseña correcta. Acceso permitido\");\r\n \r\n \r\n }",
"public String printNewPasswordPrompt() {\n return \"Please enter new password: \";\n }",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter a string for password: \");\n String s = input.nextLine();\n\n if (passwordDigitCheck(s) && paswordLengt(s) && passwordCharOrDig(s)){\n System.out.println(\"This password is valid\");\n }else System.out.println(\"This is an invalid password\");\n }",
"private String getPasswordFromUser() {\n JPasswordField passField = new JPasswordField(10);\n int action = JOptionPane.showConfirmDialog(null, passField, \"Please enter your password:\", JOptionPane.OK_CANCEL_OPTION);\n\n if (action < 0) {\n System.exit(0);\n }\n\n __logger.info(\"Got password from user\");\n\n return new String(passField.getPassword());\n }",
"private void Menu_PasswordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Menu_PasswordActionPerformed\n // TODO add your handling code here:\n String password = JOptionPane.showInputDialog(\"ENTER A PASSWORD \");\n\n if(password.equals(\"Time is an illusion\"))\n display.setText(\"Lunchtime, doubly so.\");\n }",
"public static void main(String[] args) {\n\t\tint secretPassword = 1234;\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint userInput;\r\n\r\n\t\tdo {\r\n\t\t\t// prompt user for input\r\n\t\t\tSystem.out.print(\"enter password: \");\r\n\t\t\tuserInput = sc.nextInt();\r\n\t\t} while (userInput != secretPassword);\r\n\r\n\t\tSystem.out.println(\"You are logged in\");\r\n\r\n\t\tsc.close();\r\n\r\n\t}",
"private String getPassword() {\n String Password = \"\";\n while (true) {\n System.out.println(\"Please, Enter Password : \");\n Password = scanner.nextLine();\n System.out.println(\"Please, Enter confirm Password : \");\n if (!Password.equals(scanner.nextLine())) {\n System.out.println(\"Error: Password doesn't match.\");\n } else {\n break;\n }\n }\n return Password;\n }",
"@Test\n public void password() {\n String command = PasswordCommand.COMMAND_WORD + \" \" + VALID_PASSWORD;\n assertCommandSuccess(command, VALID_PASSWORD);\n\n /* Case: set password with no leading or trailing password -> password set */\n command = \" \" + PasswordCommand.COMMAND_WORD + \" \" + VALID_PASSWORD + \" \";\n assertCommandSuccess(command, VALID_PASSWORD);\n\n /* Case: two parameters -> password set as the whole string */\n command = \" \" + PasswordCommand.COMMAND_WORD + \" \" + VALID_PASSWORD + \" \" + VALID_PASSWORD;\n assertCommandSuccess(command, VALID_PASSWORD + \" \" + VALID_PASSWORD);\n\n /* Case: undo previous command -> rejected */\n command = UndoCommand.COMMAND_WORD;\n String expectedResultMessage = UndoCommand.MESSAGE_FAILURE;\n assertCommandFailure(command, expectedResultMessage);\n\n /* Case: redo previous command -> rejected */\n command = RedoCommand.COMMAND_WORD;\n expectedResultMessage = RedoCommand.MESSAGE_FAILURE;\n assertCommandFailure(command, expectedResultMessage);\n\n /* ----------------------------------- Perform invalid password operations ---------------------------------- */\n\n /* Case: no parameters -> rejected */\n assertCommandFailure(PasswordCommand.COMMAND_WORD + \" \",\n String.format(MESSAGE_INVALID_COMMAND_FORMAT, INVALID_PASSWORD, MESSAGE_USAGE));\n\n /* Case: mixed case command word -> rejected */\n assertCommandFailure(MIXED_CASE_PASSWORD_COMMAND_WORD + \" \" + VALID_PASSWORD, MESSAGE_UNKNOWN_COMMAND);\n }",
"@When(\"user enters password {string}\")\r\n\tpublic void user_enters_password(String string) {\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(string);\r\n\t}",
"public boolean promptPassword(String message) \r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}",
"public static void main(String[] args) {\n\n String username = \"Gulzhaina\";\n String password = \"12345\";\n Scanner input = new Scanner(System.in);\n String username2 = input.nextLine();\n\n\n if(username2.equals(username)){\n System.out.println(\"Please enter your password: \");\n String password2 =input.nextLine();\n if(password2.equals(password)){\n System.out.println(\"Login successful\");\n } else{\n System.out.println(\"Wrong password\");\n }\n }\n else {\n System.out.println(\"invalid username\");\n }\n\n }",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"@When(\"^I enter a \\\"([^\\\"]*)\\\" password$\")\n\tpublic void i_enter_a_password(String arg1) throws Throwable {\n\t throw new PendingException();\n\t}",
"public void setPassword(String pass);",
"void setPassword(String ps) {\n this.password = ps;\n }",
"String getUserPassword();",
"public void getCredentials(){\n System.out.println(\"Enter Your Credit Card Number\");\n setCreditCardNumber(Integer.parseInt(Menu.getScanner().nextLine()));\n System.out.println(\"Enter your billing address\");\n setBillingAddress(Menu.getScanner().nextLine());\n System.out.println(\"Enter your CVC\");\n setCvc(Integer.parseInt(Menu.getScanner().nextLine()));\n }",
"public java.lang.String getPassword();",
"@When(\"^User need to enter username as \\\"([^\\\"]*)\\\" and password as \\\"password(\\\\d+)“$\")\n\tpublic void user_need_to_enter_username_as_and_password_as_password(String arg1, int arg2) throws Throwable {\n\t\tSystem.out.println(\"entered username and password\");\n\t\tAssert.assertTrue(false);\n\t}",
"@Override\r\n\t\tpublic boolean promptPassword(String message) {\n\t\t\treturn false;\r\n\t\t}",
"private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }",
"public String getPassword();",
"public String getPassword();",
"@Test\n public void testGetCustomConsolePrompt()\n {\n SmartProperties smart = new SmartProperties(\"testProperties/smart-consolePrompt1.properties\");\n assertEquals(1, smart.properties.size());\n assertEquals(\"consolePrompt1\", smart.getProperty(CONSOLE_PROMPT));\n }",
"@When(\"Enter pwd {string}\")\n\tpublic void enter_pwd(String string) {\n\t System.out.println(string);\n\t}",
"@Test\n void getPassword11() throws Exception {\n Resources.with(\n new EnvironmentVariables(PGEnvironment.PGPASSFILE.getName(), \"\", \"APPDATA\", \"/tmp/dir-nonexistent\"),\n new SystemProperties(PGEnvironment.ORG_POSTGRESQL_PGPASSFILE.getName(), \"\", \"user.home\", \"/tmp/dir-nonexistent\")\n ).execute(() -> {\n String result = PgPassParser.getPassword(\"localhost\", \"5432\", \"postgres\", \"postgres\");\n assertNull(result);\n });\n }",
"public static void main(String[] args) {\n\t// 1. Ask for an initial password, and store it in a variable\n String answer1 = JOptionPane.showInputDialog(null, \"What is the secret message?\"); \n\t// 2. Ask for a message and store it in a variable\n String answer2 = JOptionPane.showInputDialog(null, \"What is your password?\");\n\t// 3. Ask your friend for the password and store it in a variable\n String answer3 = JOptionPane.showInputDialog(\"Do you know the password?\");\n\t// 4. If the password matches,\n if (answer1.equals(answer3))\n {\n\tJOptionPane.showMessageDialog(null, \"\" + answer2);\t\n\t}\n else\n {\n \tJOptionPane.showMessageDialog(null, \"Your wrong.\");\n }\n\t\t// show the secret message\n\t// *5. OPTIONAL: let your friend keep guessing even if they are wrong\n\n}",
"public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }",
"@Step\r\n\tpublic void enterConfirmPassword(String password) {\r\n\t\tLOGGER.info(\"Entering confirm password: \" + password);\r\n\t\tpasswordConfirmInput.type(password);\r\n\t}",
"@When(\"user enter the username and password\")\n\tpublic void user_enter_the_username_and_password() {\n\t\tSystem.out.println(\"user enter the username and password\");\n\t\tdriver.findElement(By.id(\"txtUsername\")).sendKeys(\"Admin\");\n\t\tdriver.findElement(By.id(\"txtPassword\")).sendKeys(\"admin123\");\n\t \n\t}",
"@When(\"^user gives the \\\"([^\\\"]*)\\\"$\")\n\tpublic void user_gives_the(String arg2) throws Throwable {\n\t\tdriver.findElement(By.xpath(\"//input[@name='password']\")).sendKeys(arg2);\n\t\tSystem.out.println(arg2);\n\t}",
"public static boolean password() \n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tboolean isCorrect = false;\n\t\tint tryCounter = 3;\n\t\tSystem.out.print(\"Please enter your password to continue: \");\n\t\tString myPassword = keyboard.nextLine().toLowerCase();\n\t\tfor (int tries = 1; tries <= 3; ++tries)\n\t\t{\n\t\t\tif (myPassword.equals(\"deluxepizza\"))\n\t\t\t{\n\t\t\t\tisCorrect = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(tries == 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"It seems you're having trouble typing your password... returning to main menu.\");\n\t\t\t\treturn isCorrect;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t--tryCounter;\n\t\t\t\tSystem.out.println(\"Oops, did your finger slip? Please try again. You have \" + tryCounter + \" tries remaining!\");\n\t\t\t\tmyPassword = keyboard.next().toLowerCase();\n\t\t\t}\t\n\t\t}\n\t\treturn isCorrect;\n\t}",
"public void setPassword(String pw)\n {\n this.password = pw;\n }",
"public void enterPassword(String password) {\n Reporter.addStepLog(\" Enter password \" + password + \" to password field \" + _passwordField.toString());\n sendTextToElement(_passwordField, password);\n log.info(\" Enter password \" + password + \" to password field \" + _passwordField.toString());\n }",
"public void typePassword(String text) {\n txtPassword().typeText(text);\n }",
"public String getPassword() {return password;}",
"String promptSecureString();",
"void setErrorPassword();",
"@When(\"^user eneter \\\"([^\\\"]*)\\\" in password textbox$\")\r\n public void user_eneter_in_password_textbox(String arg1) throws Throwable {\n throw new PendingException();\r\n }",
"@Test\n public void testInvalidPassword() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(USERNAME_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(INVALID_PASSWORD_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n\n }",
"private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }",
"public String getPassword() throws RemoteException;",
"public char[] readPassword() throws IOException {\n\t\tchar[] passwd = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tClass implClass = Class.forName(\"java.lang.System\");\n \t\t\tMethod m = implClass.getMethod(\"console\", (Class[])null);\n \t\t\tObject cons = m.invoke(this, (Object[])null);\n \t\t\tif (cons != null) {\n \t\t\t\tMethod m1 = cons.getClass().getMethod(\"readPassword\", (Class[])null);\n \t\t\t\tpasswd = (char[])m1.invoke(cons, (Object[])null);\n \t\t\t} else {\n \t\t\t\tthrow new IOException(\"No java6 console detected.\"); \t\t\t\t\n \t\t\t} \t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// If we can't find the console method on System, i.e. we are running java5\n\t\t\t\t// we will try to use the jline console library\n \t\t\tpasswd = new jline.ConsoleReader().readLine(new Character((char)0)).toCharArray();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// If everything else fails, fallback to clear text input\n\t\t\tpasswd = new BufferedReader(new InputStreamReader(System.in)).readLine().toCharArray();\n\t\t}\n\t\treturn passwd;\n\t}",
"protected static String getPassphrase() {\n if (passphrase == null || passphrase.isEmpty() || Objects.equals(passphrase, \"?\")) {\n Console console = System.console();\n if (console != null) {\n passphrase = new String(console.readPassword(\"Password:\"));\n } else {\n throw new UnsupportedOperationException(\n \"Password/Passphrase must be specified\");\n }\n }\n return passphrase;\n }",
"Password getPsw();",
"@When(\"^user enters \\\"([^\\\"]*)\\\" in password field$\")\r\n public void user_enters_in_password_field(String arg1) throws Throwable {\n throw new PendingException();\r\n }",
"public void inputToPasswordTextbox(String password) {\n\t\twaitToElementVisible(driver,RegisterPageUI.PASSWORD_TEXTBOX);\n\t\tsendkeyToElement(driver, RegisterPageUI.PASSWORD_TEXTBOX, password);\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tSftpAuthenticator auth = new SftpAuthenticator();\n\t\tMap<String, String> props = new HashMap<String, String>();\n\t\tdo {\n\t\t\tprops.clear();\n\t\t\tfor (RequiredInputField input : auth.getRequiredInputFields()) {\n\t\t\t\tSystem.out.print(\"Enter \" + input.getName() + \": \");\n\t\t\t\tString entered = readLine();\n\t\t\t\tswitch (input.getType()) {\n\t\t\t\tcase Bool:\n\t\t\t\t\tBoolean.parseBoolean(entered);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Number:\n\t\t\t\t\tInteger.parseInt(entered);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tprops.put(input.getName(), entered);\n\t\t\t}\n\t\t} while (!auth.isValid(props));\n\t\tauth.authorize(props);\n\n\t\tfor (Map.Entry<String, String> entry : props.entrySet()) {\n\t\t\tSystem.out.println(entry.getKey() + \": \" + entry.getValue());\n\t\t}\n\t\tProperties tmp = new Properties();\n\t\ttmp.putAll(props);\n\t\ttmp.store(new FileWriter(new File(\"auth.props\")), null);\n\t}",
"private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }",
"private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }",
"public static void main(String[] args) {\n try(\n\t\tFileInputStream in=new FileInputStream(\"credentials.properties\");\n \t)\n {\n \tProperties props=new Properties();\n \tprops.load(in);\n \tString uname=props.getProperty(\"username\");\n \tString pass=props.getProperty(\"password\");\n \t\n \tSystem.out.println(uname+\" \"+pass);\n \t\n } catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\t}",
"public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}",
"private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }",
"public void Enterloginpassword(String PWD){\r\n\t\tString Password = getValue(PWD);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+Password);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Password should be enterd in Login\");\r\n\t\ttry{\r\n\t\t\tsendKeys(locator_split(\"loginpassword\"), Password);\r\n\t\t\tSystem.out.println(\"password is entered\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Password is entered in Login field\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Password is not enterd in Login with WebElement \"+elementProperties.getProperty(\"loginpassword\"));\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"loginpassword\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}",
"public void setPassword(String password){\r\n this.password = password;\r\n }",
"public static void main(String[] args) {\r\n\r\n Scanner scan =new Scanner(System.in);\r\n System.out.println(\"User Name:\");\r\n String userName = scan.next();\r\n System.out.println(\"Password:\");\r\n String password = scan.next();\r\n\r\n if (userName.equalsIgnoreCase(\"user123\") && password.equalsIgnoreCase(\"pass123\") ) {\r\n System.out.println(\"Login Succesfull\");\r\n } else if (! userName.equalsIgnoreCase(\"user123\") && password.equalsIgnoreCase(\"pass123\") ) {\r\n System.out.println(\"Username is not Correct\");\r\n } else if (userName.equalsIgnoreCase(\"user123\") && ! password.equalsIgnoreCase(\"pass123\")) {\r\n System.out.println(\"Password is not Correct\");\r\n } else if (! userName.equalsIgnoreCase(\"user123\") && ! password.equalsIgnoreCase(\"pass123\") ) {\r\n System.out.println(\"User name and Password is not correct\");\r\n }\r\n\r\n }",
"public static Boolean checkPassowd(String password){\n\t\t//String password = txtPassword.getText();\n\t\t//System.out.println(password);\n\t\treturn password.equals(\"password\");\n\t}",
"public void setPassword(String password)\n {\n _password = password;\n }",
"@And(\"^user enters any password$\")\n public void userEntersAnyPassword() throws Throwable {\n }",
"public static void main(String[] args) {\n\t\tBufferedReader keyboardReader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString input;\n\t\t\tdo {\n\t\t\t\tinput = keyboardReader.readLine();\n\t\t\t\tSystem.out.println(\"Your input is:**\"+input+\"**\");\n\t\t\t} while (input.length() > 0);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException occured...\");\n\t\t}\n\n//\t\tConsole c = System.console();\n//\t\tif (c == null) {\n//\t\t\tSystem.err.println(\"No console.\");\n//\t\t\tSystem.exit(1);\n//\t\t}\n//\n//\t\tString login = c.readLine(\"Enter your login: \");\n//\t\tSystem.out.println(\"login is :**\" + login+\"**\");\n\t}",
"public void inputToConfirmPasswordTextbox(String password) {\n\t\twaitToElementVisible(driver,RegisterPageUI.CONFIRM_PASSWORD_TEXTBOX);\n\t\tsendkeyToElement(driver, RegisterPageUI.CONFIRM_PASSWORD_TEXTBOX, password);\n\t}",
"public void setPassword(String p) {\n\t\tpassword = p;\n\t}"
] |
[
"0.7986573",
"0.75550056",
"0.6986077",
"0.6972304",
"0.6776694",
"0.6651265",
"0.66084784",
"0.65844953",
"0.656112",
"0.6448133",
"0.6441792",
"0.6419367",
"0.64062643",
"0.6384861",
"0.63648397",
"0.63420475",
"0.62038463",
"0.61926156",
"0.61926156",
"0.61926156",
"0.61926156",
"0.61926156",
"0.61926156",
"0.61926156",
"0.6181119",
"0.6158487",
"0.6158487",
"0.6158487",
"0.6111481",
"0.60977894",
"0.6086598",
"0.6078151",
"0.60741097",
"0.60523164",
"0.6050967",
"0.6045238",
"0.60445386",
"0.60433",
"0.6029744",
"0.60276914",
"0.6018163",
"0.60176927",
"0.60176927",
"0.60176927",
"0.60176927",
"0.60176927",
"0.60176927",
"0.60176927",
"0.60176927",
"0.60176927",
"0.60164815",
"0.6000546",
"0.5952441",
"0.5946025",
"0.59343994",
"0.5928335",
"0.5902761",
"0.58963513",
"0.5885861",
"0.5884818",
"0.5884818",
"0.5869888",
"0.5849966",
"0.58489823",
"0.58464265",
"0.5834981",
"0.582425",
"0.58161426",
"0.5813946",
"0.5808108",
"0.5785906",
"0.57534283",
"0.5738199",
"0.57243425",
"0.5708933",
"0.56998444",
"0.56940854",
"0.5689806",
"0.5686178",
"0.5674585",
"0.5662298",
"0.5661735",
"0.5653335",
"0.56449836",
"0.56389314",
"0.56382096",
"0.5637077",
"0.5637077",
"0.5621795",
"0.56163955",
"0.56091756",
"0.5597935",
"0.5595289",
"0.55945563",
"0.55915684",
"0.55836684",
"0.55730975",
"0.55704063",
"0.5557092",
"0.5547857"
] |
0.6734484
|
5
|
Just loop through 3 choices that user have 1. Read Email from a folder (default Inbox) 2. Send an Email to an user 3. Close the program
|
private void userInteraction() {
System.out.println("Starting user Interaction");
while (true) {
int input = Integer.parseInt(getUserInput("1 - Read, 2 - Send Email, Any other number - Exit..."));
switch (input) {
case 1:
checkMails(getUserInput("Type Folder Name to view details : "));
break;
case 2:
sendEmail();
break;
default:
System.exit(0);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main (String args[]) throws Exception {\n\n String host = \"triggeremails.com\";\n String username = \"test\";\n String password = \"tr1ggertr1gger\";\n\n // Get session\n Session session = Session.getInstance(System.getProperties(), null);\n\n // Get the store\n Store store = session.getStore(\"pop3\");\n store.connect(host, username, password);\n\n // Get folder\n Folder folder = store.getFolder(\"INBOX\");\n folder.open(Folder.READ_WRITE);\n\n BufferedReader reader = new BufferedReader (\n new InputStreamReader(System.in));\n\n // Get directory\n Message message[] = folder.getMessages();\n for (int i=0, n=message.length; i<n; i++) {\n System.out.println(i + \": \" + message[i].getFrom()[0] \n + \"\\t\" + message[i].getSubject());\n\n System.out.println(\"Do you want to delete message? [YES to delete]\");\n String line = reader.readLine();\n // Mark as deleted if appropriate\n if (\"YES\".equals(line)) {\n message[i].setFlag(Flags.Flag.DELETED, true);\n }\n }\n\n // Close connection \n folder.close(true);\n store.close();\n }",
"public void checkMails(String folderName) {\n\t\ttry {\n\t\t\tStore store = getStore();\n\t\t\tif (folderName.isBlank() || folderName.isEmpty())\n\t\t\t\tfolderName = \"INBOX\";\n\t\t\t// create the folder object and open it\n\t\t\tFolder emailFolder = store.getFolder(folderName);\n\t\t\temailFolder.open(Folder.READ_ONLY);\n\n\t\t\t// retrieve the messages from the folder in an array and print it\n\t\t\tMessage[] messages = emailFolder.getMessages();\n\t\t\tSystem.out.println(\"messages.length---\" + messages.length);\n\n\t\t\tfor (int i = 0, n = messages.length; i < n && i < 30; i++) {\n\t\t\t\tMessage message = messages[i];\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(\"Email Number \" + (i + 1));\n\t\t\t\tSystem.out.println(\"Subject: \" + message.getSubject());\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"From: \" + ((message.getFrom() != null && message.getFrom().length != 0) ? message.getFrom()[0]\n\t\t\t\t\t\t\t\t: \"NULL\"));\n\t\t\t\tSystem.out.println(\"Text: \" + message.getContent().toString());\n\t\t\t}\n\t\t\t// close the store and folder objects\n\t\t\temailFolder.close(false);\n\t\t\tstore.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void inboxService()\n {\n boolean validAction = false;\n int inboxAction = 0;\n while(!validAction)\n {\n try\n {\n System.out.println(\"What action would you like to complete?\");\n System.out.println(\"1. Read a Message \\n2. Delete a Message \\n3. Send a Message\"\n + \" to a Student\");\n inboxAction = kb.nextInt();\n if(inboxAction != 1 && inboxAction != 2 && inboxAction != 3)\n {\n System.out.println(\"You selected an invalid option. Please type an integer 1 - 3.\");\n kb.nextLine();\n }\n \n else\n validAction = true;\n }\n catch(InputMismatchException e)\n {\n System.out.println(\"You selected an invalid option. Please type an integer 1 - 3.\");\n kb.nextLine();\n }\n }\n \n if(inboxAction == 1)\n {\n readMessages();\n }\n else if(inboxAction == 2)\n {\n runDeleteMessage();\n }\n else\n {\n sendMessageToStudent();\n }\n \n }",
"public void processMail() {\n\t\tmessageList.clear();\n\t\tSession session = null;\n\t\tStore store = null;\n\t\tMessage message = null;\n\t\tMessage[] messages = null;\n\t\tObject messagecontentObject = null;\n\t\tString sender = null;\n\t\tString replyTo = null;\n\t\tString subject = null;\n\t\tMultipart multipart = null;\n\t\tPart part = null;\n\t\tString contentType = null;\n\t\tProperties properties = System.getProperties();\n\t\tsession = Session.getDefaultInstance(properties, new javax.mail.Authenticator(){\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication(){\n\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t}\n\t\t});\n\t\t\n\t\ttry {\n\t\t\tstore = session.getStore(\"imaps\");\n\t\t\t\n\t\t\tstore.connect(\"imap.gmail.com\", username,\n\t\t\t\t\tpassword);\n\t\t\tSystem.out.println(\"Login Successful\");\n\n\t\t\t// Get a handle on the default folder\n\t\t\tfolder = store.getDefaultFolder();\n\n\t\t\t//printData(\"Getting the Inbox folder.\");\n\n\t\t\t// Retrieve the \"Inbox\"\n\t\t\tfolder = folder.getFolder(\"inbox\");\n\n\t\t\t// Reading the Email Index in Read / Write Mode\n\t\t\tfolder.open(Folder.READ_WRITE);\n\n\t\t\t// Retrieve the messages\n\t\t\tmessages = folder.getMessages();\n\n\t\t\t// Loop over all of the messages\n\t\t\tfor (int messageNumber = 0; messageNumber < messages.length; messageNumber++) {\n\t\t\t\t// Retrieve the next message to be read\n\t\t\t\tmessage = messages[messageNumber];\n\n\t\t\t\t// Retrieve the message content\n\t\t\t\tmessagecontentObject = message.getContent();\n\t\t\t\tDate messageDate = message.getReceivedDate();\n\n\t\t\t\t// Determine email type\n\t\t\t\tif (messagecontentObject instanceof Multipart) {\n\t\t\t\t\t//printData(\"Found Email with Attachment\");\n\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t.getPersonal();\n\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\n\t\t\t\t\t// If the \"personal\" information has no entry, check the\n\t\t\t\t\t// address for the sender information\n\t\t\t\t\t//printData(\"If the personal information has no entry, check the address for the sender information.\");\n\n\t\t\t\t\tif (sender == null) {\n\t\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t\t.getAddress();\n\t\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\t\t\t\t\t\t//printData(\"sender in NULL. Printing Address:\" + sender);\n\t\t\t\t\t}\n\t\t\t\t\t//printData(\"Sender:\" + sender);\n\n\t\t\t\t\t// Get the subject information\n\t\t\t\t\tsubject = message.getSubject();\n\n\t\t\t\t\t//printData(\"Subject:\" + subject);\n\n\t\t\t\t\t// Retrieve the Multipart object from the message\n\t\t\t\t\tmultipart = (Multipart) message.getContent();\n\n\t\t\t\t\t// printData(\"Retrieve the Multipart object from the message\");\n\t\t\t\t\tString text = \"\";\n\t\t\t\t\t// Loop over the parts of the email\n\t\t\t\t\tfor (int i = 0; i < multipart.getCount(); i++) {\n\t\t\t\t\t\t// Retrieve the next part\n\t\t\t\t\t\tpart = multipart.getBodyPart(i);\n\n\t\t\t\t\t\t// Get the content type\n\t\t\t\t\t\tcontentType = part.getContentType();\n\n\t\t\t\t\t\t// Display the content type\n\t\t\t\t\t\t// printData(\"Content: \" + contentType);\n\n\t\t\t\t\t\tif (contentType.startsWith(\"TEXT/PLAIN\")) {\n\t\t\t\t\t\t\ttext = part.getContent().toString();\n\t\t\t\t\t\t\t// printData(\"---------reading content type text/plain mail -------------\");\n\t\t\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Retrieve the file name\n\t\t\t\t\t\t\tString fileName = part.getFileName();\n\t\t\t\t\t\t\t// printData(\"retrive the fileName=\"+ fileName);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmessageList.add(new MyMessage(message, sender, replyTo, subject, text, messageDate));\n\t\t\t\t} else {\n\t\t\t\t\t//printData(\"Found Mail Without Attachment\");\n\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t.getPersonal();\n\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\n\t\t\t\t\t// If the \"personal\" information has no entry, check the\n\t\t\t\t\t// address for the sender information\n\t\t\t\t\t//printData(\"If the personal information has no entry, check the address for the sender information.\");\n\n\t\t\t\t\tif (sender == null) {\n\t\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t\t.getAddress();\n\t\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\t\t\t\t\t\t//printData(\"sender in NULL. Printing Address:\" + sender);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get the subject information\n\t\t\t\t\tsubject = message.getSubject();\n\t\t\t\t\t//printData(\"subject=\" + subject);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Close the folder\n\t\t\tfolder.close(true);\n\n\t\t\t// Close the message store\n\t\t\tstore.close();\n\t\t} catch (AuthenticationFailedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (FolderClosedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (FolderNotFoundException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchProviderException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (ReadOnlyFolderException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (StoreClosedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void loop() {\n try {\n Mail<T> mail = mailBox.remove();\n\n actor.setSender(mail.getSender());\n actor.receive(mail.getMessage());\n } catch (InterruptedException e) {\n }\n }",
"private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }",
"public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }",
"public static void main(String[] args) throws IOException, ParseException, MessagingException, ClassNotFoundException {\n Gmail service = getGmailService();\n \n // Fetch all COL Trading Confirmation Messages\n String user = \"me\";\n String pageToken = \"\";\n List<Message> messages = new ArrayList<>();\n do {\n \tif (pageToken == null || pageToken.isEmpty()) {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \n \t} else {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).setPageToken(pageToken).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \t}\n } while (pageToken != null && !pageToken.isEmpty());\n \n if (messages.size() == 0) {\n System.out.println(\"No COL Trading Confirmation email found\");\n } else {\n \t\n \t// Read last processed\n \tDate lastProcessed = null;\n \tif (LAST_PROCESSED.exists()) {\n \ttry (ObjectInputStream in = new ObjectInputStream(new FileInputStream(LAST_PROCESSED))) {\n lastProcessed = (Date) in.readObject();\n \t}\n \t}\n \t\n \tDate latest = null;\n \t\n for (Message message : messages) {\n \t// Fetch raw email\n message = service.users().messages().get(\"me\", message.getId()).setFormat(\"raw\").execute();\n \n byte[] emailBytes = Base64.decodeBase64(message.getRaw());\n\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session, new ByteArrayInputStream(emailBytes));\n \n \n // Write only if email is COL Trading Confirmation\n if (email.getSubject().startsWith(\"COL Trading Confirmation\")) {\n\n \t// Compose file name\n \tSimpleDateFormat readDf = new SimpleDateFormat(\"MM/dd/yyyy\");\n \treadDf.setLenient(false);\n Date tradeDate = readDf.parse(email.getSubject().substring(email.getSubject().length()-10));\n \n // Skip if current message was previously processed\n if (lastProcessed != null && !tradeDate.after(lastProcessed)) {\n \tbreak;\n }\n \n \tSimpleDateFormat writeDf = new SimpleDateFormat(\"yyyy-MM-dd\");\n \tString fileName = writeDf.format(tradeDate) + \" COL Trading Confirmation\";\n \n \tif (!TRADING_CONFIRMATION.exists()) {\n \t\tTRADING_CONFIRMATION.mkdir();\n \t}\n \t\n \t// Write to file\n \ttry (FileWriter fw = new FileWriter(TRADING_CONFIRMATION.getAbsolutePath()+\"/\"+fileName+\".txt\")) {\n \tfw.write(new String(emailBytes));\n\n \tSystem.out.printf(\"Added %s\\n\", fileName + \".txt\");\n\n \tif (latest == null || latest.before(tradeDate)) {\n \tlatest = tradeDate;\n \t}\n }\n \t\n }\n }\n \n // Store last processed\n if (latest != null) {\n try (ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(LAST_PROCESSED))) {\n out.writeObject(latest);\n }\n }\n System.out.printf(\"Done processing\");\n }\n }",
"@Override\n\tprotected Void doInBackground(Context... params) {\n\t\tSystem.out.println(\"BEGIN READING EMAIL\");\n\t\tSharedPreferences sharedPref = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(params[0]);\n\t\tSharedPreferences.Editor editor = sharedPref.edit();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeInMillis(System.currentTimeMillis());\n\t\tcal.setTimeInMillis(cal.getTimeInMillis() - 604800000); // week before\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\n\t\tlong lastCheckedEmailDate = sharedPref.getLong(\"LastEmailChecked\",\n\t\t\t\tcal.getTimeInMillis()); // get date of last checked email. If\n\t\t\t\t\t\t\t\t\t\t// there is none, get current date - 1\n\t\t\t\t\t\t\t\t\t\t// week\n\t\t// check until this date has been reached\n\n\t\tProperties props = new Properties();\n\t\tprops.setProperty(\"mail.store.protocol\", \"imaps\");\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props, null);\n\t\t\tStore store = session.getStore();\n\t\t\t// imap-mail.outlook.com\n\t\t\t// imap.gmail.com\n\t\t\t// imap.mail.yahoo.com\n\t\t\tString imap = sharedPref.getString(\"Imap\", \"\");\n\t\t\tString email = sharedPref.getString(\"Email\", \"\");\n\t\t\tString password = sharedPref.getString(\"Password\", \"\");\n\t\t\tif (email.equals(\"\")) {\n\t\t\t\temail = \"[email protected]\";\n\t\t\t}\n\t\t\tstore.connect(imap, email, password);\n\t\t\tFolder inbox = store.getFolder(\"INBOX\");\n\t\t\tinbox.open(Folder.READ_ONLY);\n\t\t\teditor.commit();\n\n\t\t\tint i = 0;\n\t\t\tlong dateToSave = lastCheckedEmailDate;\n\t\t\twhile (true) {\n\t\t\t\tSystem.out.println(\"CHECKING \" + i + \"TH EMAIL\");\n\t\t\t\tif (i == inbox.getMessageCount()) {\n\t\t\t\t\tSystem.out.println(\"BROKEN LOOP DUE TO MESSAGE COUNT\");\n\t\t\t\t\teditor.putLong(\"LastEmailChecked\", dateToSave);\n\t\t\t\t\teditor.commit();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tMessage msg = inbox.getMessage(inbox.getMessageCount() - i);\n\t\t\t\tif (i == 0 || dateToSave == lastCheckedEmailDate) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdateToSave = msg.getSentDate().getTime();\n\t\t\t\t\t} catch (MessagingException me) {\n\t\t\t\t\t\tme.printStackTrace();\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tif (msg.getSentDate().getTime() <= lastCheckedEmailDate) {\n\t\t\t\t\t\tSystem.out.println(\"BROKEN LOOP DUE TO DATE REACHED\");\n\t\t\t\t\t\teditor.putLong(\"LastEmailChecked\", dateToSave);\n\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (MessagingException me) {\n\t\t\t\t\tme.printStackTrace();\n\t\t\t\t\ti++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tAddress[] in = msg.getFrom();\n\n\t\t\t\tfor (Address address : in) {\n\t\t\t\t\tif (address.toString().contains(\"mcdonalds\")) {\n\t\t\t\t\t\tif (msg.getContentType().contains(\"TEXT\")) {\n\t\t\t\t\t\t\t// THIS ONE\n\t\t\t\t\t\t\tString contentString = (String) Jsoup.parse(\n\t\t\t\t\t\t\t\t\t(String) msg.getContent()).text();\n\t\t\t\t\t\t\tcontentString = contentString\n\t\t\t\t\t\t\t\t\t.substring(\n\t\t\t\t\t\t\t\t\t\t\tcontentString\n\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"Here is your schedule for the week of\"),\n\t\t\t\t\t\t\t\t\t\t\tcontentString\n\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"If you have any questions about your schedule\"));\n\t\t\t\t\t\t\tSystem.out.println(contentString);\n\t\t\t\t\t\t\tString contentStringDates = contentString\n\t\t\t\t\t\t\t\t\t.substring(contentString.indexOf(\":\") + 2,\n\t\t\t\t\t\t\t\t\t\t\tcontentString.indexOf(\"You\"));\n\t\t\t\t\t\t\tSystem.out.println(contentStringDates);\n\t\t\t\t\t\t\tif (contentStringDates\n\t\t\t\t\t\t\t\t\t.contains(\"No shifts for this week\")) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString[] dateStrings = contentStringDates\n\t\t\t\t\t\t\t\t\t.split(\"Sunday, |Monday, |Tuesday, |Wednesday, |Thursday, |Friday, |Saturday, \");\n\t\t\t\t\t\t\tfor (int k = 1; k < dateStrings.length; k++) {\n\t\t\t\t\t\t\t\tString dateString = dateStrings[k];\n\t\t\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t\t\t\tSystem.out.println(dateString);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Time is from \"\n\t\t\t\t\t\t\t\t\t\t+ dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\",\") + 7,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\"-\")));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"Time is to \"\n\t\t\t\t\t\t\t\t\t\t\t\t+ dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\"-\") + 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\",\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\",\") + 7)));\n\n\t\t\t\t\t\t\t\tlong calID = 1;\n\t\t\t\t\t\t\t\tlong startMillis = 0;\n\t\t\t\t\t\t\t\tlong endMillis = 0;\n\t\t\t\t\t\t\t\tint year = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\",\") + 2,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\",\") + 6));\n\t\t\t\t\t\t\t\tint month = 0;\n\t\t\t\t\t\t\t\tint day = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\" \") + 1,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\",\")));\n\t\t\t\t\t\t\t\tint beginHour = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\",\") + 7,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\")));\n\t\t\t\t\t\t\t\tint beginMinute = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\":\") + 1,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\") + 3));\n\t\t\t\t\t\t\t\tboolean beginIsAM = dateString.substring(\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\") + 4,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\") + 6)\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"AM\");\n\t\t\t\t\t\t\t\tif (!beginIsAM) {\n\t\t\t\t\t\t\t\t\tbeginHour = beginHour + 12;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tint endHour = Integer\n\t\t\t\t\t\t\t\t\t\t.parseInt(dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\"-\") + 2,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2)));\n\t\t\t\t\t\t\t\tint endMinute = Integer\n\t\t\t\t\t\t\t\t\t\t.parseInt(dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 1,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 3));\n\t\t\t\t\t\t\t\tboolean endIsAM = dateString\n\t\t\t\t\t\t\t\t\t\t.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 4,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 6)\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"AM\");\n\t\t\t\t\t\t\t\tif (!endIsAM) {\n\t\t\t\t\t\t\t\t\tendHour = endHour + 12;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"january\")) {\n\t\t\t\t\t\t\t\t\tmonth = 0;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"february\")) {\n\t\t\t\t\t\t\t\t\tmonth = 1;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"march\")) {\n\t\t\t\t\t\t\t\t\tmonth = 2;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"april\")) {\n\t\t\t\t\t\t\t\t\tmonth = 4;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"may\")) {\n\t\t\t\t\t\t\t\t\tmonth = 4;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"june\")) {\n\t\t\t\t\t\t\t\t\tmonth = 5;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"july\")) {\n\t\t\t\t\t\t\t\t\tmonth = 6;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"august\")) {\n\t\t\t\t\t\t\t\t\tmonth = 7;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"september\")) {\n\t\t\t\t\t\t\t\t\tmonth = 8;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"october\")) {\n\t\t\t\t\t\t\t\t\tmonth = 9;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"november\")) {\n\t\t\t\t\t\t\t\t\tmonth = 10;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"december\")) {\n\t\t\t\t\t\t\t\t\tmonth = 11;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println(\"Year is \" + year);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Month is \" + month);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Day is \" + day);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"Begin Hour is \" + beginHour);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Begin Minute is \"\n\t\t\t\t\t\t\t\t\t\t+ beginMinute);\n\t\t\t\t\t\t\t\tSystem.out.println(\"End Hour is \" + endHour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"End Minute is \" + endMinute);\n\n\t\t\t\t\t\t\t\tCalendar beginTime = Calendar.getInstance();\n\t\t\t\t\t\t\t\tbeginTime.set(year, month, day, beginHour,\n\t\t\t\t\t\t\t\t\t\tbeginMinute);\n\t\t\t\t\t\t\t\tstartMillis = beginTime.getTimeInMillis();\n\t\t\t\t\t\t\t\tCalendar endTime = Calendar.getInstance();\n\t\t\t\t\t\t\t\tendTime.set(year, month, day, endHour,\n\t\t\t\t\t\t\t\t\t\tendMinute);\n\t\t\t\t\t\t\t\tendMillis = endTime.getTimeInMillis();\n\n\t\t\t\t\t\t\t\t// ///////////////////////////////////////////////\n\t\t\t\t\t\t\t\tContentResolver cr = params[0]\n\t\t\t\t\t\t\t\t\t\t.getContentResolver();\n\t\t\t\t\t\t\t\tContentValues values = new ContentValues();\n\t\t\t\t\t\t\t\tvalues.put(Events.DTSTART, startMillis);\n\t\t\t\t\t\t\t\tvalues.put(Events.DTEND, endMillis);\n\t\t\t\t\t\t\t\tvalues.put(Events.TITLE, \"McD\");\n\t\t\t\t\t\t\t\tvalues.put(Events.DESCRIPTION, \"Work at McD\");\n\t\t\t\t\t\t\t\tvalues.put(Events.CALENDAR_ID, calID);\n\n\t\t\t\t\t\t\t\tTimeZone tz = TimeZone.getDefault();\n\t\t\t\t\t\t\t\tvalues.put(Events.EVENT_TIMEZONE, tz.getID());\n\t\t\t\t\t\t\t\tUri uri = cr.insert(Events.CONTENT_URI, values);\n\t\t\t\t\t\t\t\tlong eventID = Long.parseLong(uri\n\t\t\t\t\t\t\t\t\t\t.getLastPathSegment());\n\n\t\t\t\t\t\t\t\tvalues = new ContentValues();\n\t\t\t\t\t\t\t\tvalues.put(Reminders.MINUTES, 1440);\n\t\t\t\t\t\t\t\tvalues.put(Reminders.EVENT_ID, eventID);\n\t\t\t\t\t\t\t\tvalues.put(Reminders.METHOD,\n\t\t\t\t\t\t\t\t\t\tReminders.METHOD_ALERT);\n\t\t\t\t\t\t\t\turi = cr.insert(Reminders.CONTENT_URI, values);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else if (msg.getContentType().contains((\"multipart\"))) {\n\t\t\t\t\t\t\tMultipart mp = (Multipart) msg.getContent();\n\t\t\t\t\t\t\tBodyPart bp = mp.getBodyPart(0);\n\t\t\t\t\t\t\tString contentString = (String) bp.getContent();\n\t\t\t\t\t\t\tSystem.out.println(contentString);\n\n\t\t\t\t\t\t\tcontentString = contentString\n\t\t\t\t\t\t\t\t\t.substring(\n\t\t\t\t\t\t\t\t\t\t\tcontentString\n\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"Here is your schedule for the week of\"),\n\t\t\t\t\t\t\t\t\t\t\tcontentString\n\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"If you have any questions about your schedule\"));\n\t\t\t\t\t\t\tSystem.out.println(contentString);\n\t\t\t\t\t\t\tString contentStringDates = contentString\n\t\t\t\t\t\t\t\t\t.substring(contentString.indexOf(\":\") + 2,\n\t\t\t\t\t\t\t\t\t\t\tcontentString.indexOf(\"You\"));\n\t\t\t\t\t\t\tSystem.out.println(contentStringDates);\n\t\t\t\t\t\t\tif (contentStringDates\n\t\t\t\t\t\t\t\t\t.contains(\"No shifts for this week\")) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString[] dateStrings = contentStringDates\n\t\t\t\t\t\t\t\t\t.split(\"Sunday, |Monday, |Tuesday, |Wednesday, |Thursday, |Friday, |Saturday, \");\n\t\t\t\t\t\t\tfor (int k = 1; k < dateStrings.length; k++) {\n\t\t\t\t\t\t\t\tString dateString = dateStrings[k];\n\t\t\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t\t\t\tSystem.out.println(dateString);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Time is from \"\n\t\t\t\t\t\t\t\t\t\t+ dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\",\") + 7,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\"-\")));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"Time is to \"\n\t\t\t\t\t\t\t\t\t\t\t\t+ dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\"-\") + 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\",\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\",\") + 7)));\n\n\t\t\t\t\t\t\t\tlong calID = 1;\n\t\t\t\t\t\t\t\tlong startMillis = 0;\n\t\t\t\t\t\t\t\tlong endMillis = 0;\n\t\t\t\t\t\t\t\tint year = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\",\") + 2,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\",\") + 6));\n\t\t\t\t\t\t\t\tint month = 0;\n\t\t\t\t\t\t\t\tint day = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\" \") + 1,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\",\")));\n\t\t\t\t\t\t\t\tint beginHour = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\",\") + 7,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\")));\n\t\t\t\t\t\t\t\tint beginMinute = Integer.parseInt(dateString\n\t\t\t\t\t\t\t\t\t\t.substring(dateString.indexOf(\":\") + 1,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\") + 3));\n\t\t\t\t\t\t\t\tboolean beginIsAM = dateString.substring(\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\") + 4,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\":\") + 6)\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"AM\");\n\t\t\t\t\t\t\t\tif (!beginIsAM) {\n\t\t\t\t\t\t\t\t\tbeginHour = beginHour + 12;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tint endHour = Integer\n\t\t\t\t\t\t\t\t\t\t.parseInt(dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\"-\") + 2,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2)));\n\t\t\t\t\t\t\t\tint endMinute = Integer\n\t\t\t\t\t\t\t\t\t\t.parseInt(dateString.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 1,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 3));\n\t\t\t\t\t\t\t\tboolean endIsAM = dateString\n\t\t\t\t\t\t\t\t\t\t.substring(\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 4,\n\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\":\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateString\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(\"-\") + 2) + 6)\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"AM\");\n\t\t\t\t\t\t\t\tif (!endIsAM) {\n\t\t\t\t\t\t\t\t\tendHour = endHour + 12;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"january\")) {\n\t\t\t\t\t\t\t\t\tmonth = 0;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"february\")) {\n\t\t\t\t\t\t\t\t\tmonth = 1;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"march\")) {\n\t\t\t\t\t\t\t\t\tmonth = 2;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"april\")) {\n\t\t\t\t\t\t\t\t\tmonth = 4;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"may\")) {\n\t\t\t\t\t\t\t\t\tmonth = 4;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"june\")) {\n\t\t\t\t\t\t\t\t\tmonth = 5;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"july\")) {\n\t\t\t\t\t\t\t\t\tmonth = 6;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"august\")) {\n\t\t\t\t\t\t\t\t\tmonth = 7;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"september\")) {\n\t\t\t\t\t\t\t\t\tmonth = 8;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"october\")) {\n\t\t\t\t\t\t\t\t\tmonth = 9;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"november\")) {\n\t\t\t\t\t\t\t\t\tmonth = 10;\n\t\t\t\t\t\t\t\t} else if (dateString.substring(0,\n\t\t\t\t\t\t\t\t\t\tdateString.indexOf(\" \"))\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"december\")) {\n\t\t\t\t\t\t\t\t\tmonth = 11;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println(\"Year is \" + year);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Month is \" + month);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Day is \" + day);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"Begin Hour is \" + beginHour);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Begin Minute is \"\n\t\t\t\t\t\t\t\t\t\t+ beginMinute);\n\t\t\t\t\t\t\t\tSystem.out.println(\"End Hour is \" + endHour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"End Minute is \" + endMinute);\n\n\t\t\t\t\t\t\t\tCalendar beginTime = Calendar.getInstance();\n\t\t\t\t\t\t\t\tbeginTime.set(year, month, day, beginHour,\n\t\t\t\t\t\t\t\t\t\tbeginMinute);\n\t\t\t\t\t\t\t\tstartMillis = beginTime.getTimeInMillis();\n\t\t\t\t\t\t\t\tCalendar endTime = Calendar.getInstance();\n\t\t\t\t\t\t\t\tendTime.set(year, month, day, endHour,\n\t\t\t\t\t\t\t\t\t\tendMinute);\n\t\t\t\t\t\t\t\tendMillis = endTime.getTimeInMillis();\n\n\t\t\t\t\t\t\t\t// ///////////////////////////////////////////////\n\t\t\t\t\t\t\t\tContentResolver cr = params[0]\n\t\t\t\t\t\t\t\t\t\t.getContentResolver();\n\t\t\t\t\t\t\t\tContentValues values = new ContentValues();\n\t\t\t\t\t\t\t\tvalues.put(Events.DTSTART, startMillis);\n\t\t\t\t\t\t\t\tvalues.put(Events.DTEND, endMillis);\n\t\t\t\t\t\t\t\tvalues.put(Events.TITLE, \"McD\");\n\t\t\t\t\t\t\t\tvalues.put(Events.DESCRIPTION, \"Work at McD\");\n\t\t\t\t\t\t\t\tvalues.put(Events.CALENDAR_ID, calID);\n\n\t\t\t\t\t\t\t\tTimeZone tz = TimeZone.getDefault();\n\t\t\t\t\t\t\t\tvalues.put(Events.EVENT_TIMEZONE, tz.getID());\n\t\t\t\t\t\t\t\tUri uri = cr.insert(Events.CONTENT_URI, values);\n\t\t\t\t\t\t\t\tlong eventID = Long.parseLong(uri\n\t\t\t\t\t\t\t\t\t\t.getLastPathSegment());\n\n\t\t\t\t\t\t\t\tvalues = new ContentValues();\n\t\t\t\t\t\t\t\tvalues.put(Reminders.MINUTES, 1440);\n\t\t\t\t\t\t\t\tvalues.put(Reminders.EVENT_ID, eventID);\n\t\t\t\t\t\t\t\tvalues.put(Reminders.METHOD,\n\t\t\t\t\t\t\t\t\t\tReminders.METHOD_ALERT);\n\t\t\t\t\t\t\t\turi = cr.insert(Reminders.CONTENT_URI, values);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tSystem.out.println(\"FINISHED READING EMAILS\");\n\t\t\ttry {\n\t\t\t\t((MainActivity) con).runOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMainActivity.setWarningText(\"Completed successfully!\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t} catch (AuthenticationFailedException afex) {\n\t\t\tSystem.out.println(\"AUTHENTICATION FAILED\");\n\t\t\ttry {\n\t\t\t\t((MainActivity) con).runOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMainActivity\n\t\t\t\t\t\t\t\t.setWarningText(\"Authentication failed, check email/password\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (Exception e) {\n\t\t\t\t// e.printStackTrace();\n\t\t\t}\n\t\t\t// afex.printStackTrace();\n\t\t} catch (MessagingException meex) {\n\t\t\tSystem.out.println(\"FAILED TO CONNECT TO HOST, CHECK IMAP\");\n\t\t\tmeex.printStackTrace();\n\t\t\ttry {\n\t\t\t\t((MainActivity) con).runOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMainActivity\n\t\t\t\t\t\t\t\t.setWarningText(\"Connection failed, check IMAP address\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (Exception e) {\n\t\t\t\t// System.out.println(\"SOME ERROR\");\n\t\t\t\t// e.printStackTrace();\n\t\t\t}\n\t\t\t// meex.printStackTrace();\n\t\t} catch (Exception mex) {\n\t\t\t// System.out.println(\"EXCEPTION OCCURED\");\n\t\t\tmex.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(desktop == null) return ;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdesktop.mail(uri);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}",
"public static void main(String[] args) throws Exception\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\mahesh251\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//SWD code can use browser driver software to give required effect in browser\n\t\tChromeDriver driver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\t//lunch site under testing(SUT)\n\t\tdriver.get(\"http://www.gmail.com\");\n\t\tThread.sleep(5000);\n\t\t//locate and fill userid\n\t\tdriver.findElement(By.name(\"identifier\")).sendKeys(\"chanikyareddy231\");\n\t\t//locate and click \"Next\" button\n\t\tdriver.findElement(By.xpath(\"//button[@type='button']/child::div[2]\")).click();\n\t\tThread.sleep(5000);\n\t\t//locate and fill password\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Chanikya231\");\n\t\t//locate and click \"Next\" button\n\t driver.findElement(By.xpath(\"//div[@id='passwordNext']/descendant::div[3]\")).click();\n\t Thread.sleep(15000);\n\t //mailbox testing via pagenation\n\t int eamc=0;\n\t int eurmc=0;\n\t int ermc=0;\n\t while(true)\n\t {\n\t \tWebElement mailbox=driver.findElement(By.xpath(\"(//table)[7]/tbody\"));\n\t \tList<WebElement> mails=mailbox.findElements(By.xpath(\"child::tr\"));\n\t \teamc=eamc+mails.size();\n\t \tfor(WebElement mail:mails)\n\t \t{\n\t \t\tWebElement e=mail.findElement(By.xpath(\"child::td[4]/div[1]\"));\n\t \t\tString op=(String) driver.executeScript(\"return(arguments[0].textContent);\", e); \n\t \t if(op.startsWith(\"unread\"))\n\t \t\t{\n\t \t\t\teurmc++;\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\termc++;\n\t \t\t}\n\t \t}\t\n\t \t//Go to next page\n\t \ttry\n\t \t{\n\t \t\tif(driver.findElement(By.xpath(\"//div[@aria-label='Older']\")).getAttribute(\"aria-disabled\").equals(\"true\"))\n\t \t\t{\n\t \t\t\tbreak; //terminate from loop,bcz we are in last page\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tdriver.findElement(By.xpath(\"//div[@aria-label='Older']\")).click();\n\t \t\t\tThread.sleep(5000);\n\t \t\t}\n\t \t}\n\t \tcatch(NullPointerException ex)\n\t \t{\n\t \t\tdriver.findElement(By.xpath(\"//div[@aria-label='Older']\")).click();\n\t \t\tThread.sleep(5000);\n\t \t}\n\t }\n\t System.out.println(\"Total count of all mails is \"+eamc);\n\t System.out.println(\"Total count of unread mails is \"+eurmc);\n\t System.out.println(\"Total count of read mails is \"+ermc);\n\t //do logout\n\t driver.findElement(By.xpath(\"//a[starts-with(@aria-label,'Google Account')]/child::*\")).click();\n\t Thread.sleep(5000);\n\t driver.findElement(By.linkText(\"Sign out\")).click();\n\t Thread.sleep(5000);\n\t //close site\n\t driver.close();\n\t}",
"public static void main(String[] args) {\n /* Generate the email factory */\n EMailGenerationSystem generateEmail = new EmailFactory();\n \n /* Generate the email for business customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" Business Customer.---\"); \n generateEmail.generateEmail(\"Business\"); /* Generate email. */\n System.out.println(\"\\n\"); /* separate the test cases */\n \n /* Generate the email for frequent customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Frequent Customer.---\"); \n generateEmail.generateEmail(\"Frequent\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for new customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"New Customer.---\"); \n generateEmail.generateEmail(\"New\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for returning customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Returning Customer.---\"); \n generateEmail.generateEmail(\"returning\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for vip customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" VIP Customer.---\"); \n generateEmail.generateEmail(\"VIP\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for mispelling. The message will print out indicating error.*/\n System.out.println(\"---This is the start of the email for email \"\n + \" generation failure.---\"); \n generateEmail.generateEmail(\"custumer\"); /* Generate email. */\n }",
"public static void email(Context context, String emailTo, String emailCC,\n String subject, String emailText, List<String> filePaths)\n {\n final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,\n new String[]{emailTo});\n emailIntent.putExtra(android.content.Intent.EXTRA_CC,\n new String[]{emailCC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n \n ArrayList<String> extra_text = new ArrayList<String>();\n extra_text.add(emailText);\n emailIntent.putStringArrayListExtra(Intent.EXTRA_TEXT, extra_text);\n //emailIntent.putExtra(Intent.EXTRA_TEXT, emailText);\n \n //has to be an ArrayList\n ArrayList<Uri> uris = new ArrayList<Uri>();\n //convert from paths to Android friendly Parcelable Uri's\n for (String file : filePaths)\n {\n File fileIn = new File(file);\n Uri u = Uri.fromFile(fileIn);\n uris.add(u);\n }\n emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);\n context.startActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n }",
"void test2() {\n\t\tapp = new App();\n\t\t\n\t\tassertEquals(app.signin(\"[email protected]\", \"pass\"),true);\n\t\tFolder a = new Folder(\"Sent\");\n\t\tapp.setVeiwOptions(\"Sent\",null, null, null);;\n\t\tMail[] mails = (Mail[])app.listEmails(1);\n\t\tfor(int i=0; i<mails.length; i++) {\n\t\t\t\n\t\t\tif(mails[i] == null)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tString text = (mails[i]).getBodyText();\n\t\t\tassertEquals(text.equals( (String)bodyText.get(i) ), true);\n\t\t}\n\t}",
"public void openGmail (View view) {\n TextView textView = (TextView) findViewById(R.id.emailContent);\n String emailContent = textView.getText().toString();\n Log.i(TAG, \"emailContent: \" + emailContent);\n\n /**\n * code was adapted from the information here:\n * https://javadevnotes.com/java-string-split-newline-examples\n */\n /*takes the above string object, splits it into parts seperated by\n * line breaks and puts it into an array\n */\n String[] content = emailContent.split(\"\\\\r?\\\\n\");\n\n // created string objects out of the array for each part of the email\n String emailAddress = content[0];\n String emailSubject = content[1];\n String emailBody = content [2];\n\n /***\n * following code was adapted from here:\n * https://www.javatpoint.com/how-to-send-email-in-android-using-intent\n */\n //opens an email client of users choice and prepopulates with data sent back to mainactivity\n Intent email = new Intent(Intent.ACTION_SEND);\n email.putExtra(Intent.EXTRA_EMAIL, new String[]{emailAddress});\n email.putExtra(Intent.EXTRA_SUBJECT, emailSubject);\n email.putExtra(Intent.EXTRA_TEXT, emailBody);\n\n //need this to prompts email client only\n email.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(email, \"Choose an Email client :\"));\n\n }",
"@Test\n public void readsInboxPeriodically() throws Exception {\n final GreenMail mail = new GreenMail(\n new ServerSetup(Ports.allocate(), null, \"pop3\")\n );\n mail.start();\n final ServerSetup setup = mail.getPop3().getServerSetup();\n final String login = \"to\";\n // @checkstyle MagicNumberCheck (1 line)\n final String from = \"[email protected]\";\n // @checkstyle LocalFinalVariableNameCheck (1 line)\n final String to = \"[email protected]\";\n final String password = \"soooosecret\";\n final String subject = GreenMailUtil.random();\n final String body = GreenMailUtil.random();\n final GreenMailUser user = mail.setUser(login, password);\n new EmCatch(\n // @checkstyle AnonInnerLengthCheck (22 lines)\n new EmCatch.Action() {\n @Override\n public void run(final Message msg) {\n MatcherAssert.assertThat(msg, Matchers.notNullValue());\n try {\n MatcherAssert.assertThat(\n msg.getSubject(),\n Matchers.equalTo(subject)\n );\n MatcherAssert.assertThat(\n msg.getFrom()[0].toString(),\n Matchers.equalTo(from)\n );\n MatcherAssert.assertThat(\n msg.getAllRecipients()[0].toString(),\n Matchers.equalTo(to)\n );\n } catch (final MessagingException ex) {\n throw new IllegalStateException(ex);\n }\n }\n },\n login,\n password,\n setup.getBindAddress(),\n setup.getPort(),\n // @checkstyle MagicNumberCheck (1 line)\n 500L\n ).start();\n final MimeMessage message = GreenMailUtil.createTextEmail(\n to,\n from,\n subject,\n body,\n setup\n );\n user.deliver(message);\n MatcherAssert.assertThat(\n mail.getReceivedMessages().length,\n Matchers.equalTo(1)\n );\n // @checkstyle MagicNumberCheck (1 line)\n Thread.sleep(1000);\n Ports.release(setup.getPort());\n mail.stop();\n }",
"private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }",
"public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}",
"public void pullingEmails() {\n new Thread(() -> {\n mySqlConn sql = new mySqlConn();\n EMAILS_LIST = sql.getAllEmailIDs(null);\n\n TextFields.bindAutoCompletion(txt_to, EMAILS_LIST);\n TextFields.bindAutoCompletion(txt_cc, EMAILS_LIST);\n TextFields.bindAutoCompletion(txt_bcc, EMAILS_LIST);\n }).start();\n }",
"public void mailList() {\n for (int index = 0; index < emails.size(); index++) {\n Mensagem mensagem = emails.get(index);\n System.out.println(\"Email \" + index + \": \");\n System.out.println(\"De: \" + mensagem.remetente);\n System.out.println(\"Para: \" + mensagem.destinatario + \"\\n\");\n }\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }",
"public String syncEmail() throws MessagingException, IOException, InterruptedException {\n int num = 0;\n String folderName = \"inbox\";\n List<String> listEmailUIDDatabase = emailDao.getAllUIDByUserID(getUserId(), folderName);\n // get all UID from mail server storing in a list\n\n List<String> listEmailUIDServer = new ArrayList<String>();\n\n Store store = getStore();\n if (store != null) {\n POP3Folder fol = (POP3Folder) store.getFolder(folderName);\n fol.open(Folder.READ_WRITE);\n FetchProfile profile = new FetchProfile();\n profile.add(UIDFolder.FetchProfileItem.UID);\n Message[] messages = fol.getMessages();\n fol.fetch(messages, profile);\n int messNum = fol.getMessageCount();\n for (int i = 1; i <= messNum; i++) {\n// if ((i % 30) == 0) {\n// fol.close(true);\n// store.close();\n// // Thread.sleep(2000);\n// store = getStore();\n// fol = (POP3Folder) store.getFolder(folderName);\n// fol.open(Folder.READ_WRITE);\n// fol.fetch(fol.getMessages(), profile);\n// }\n try {\n Message me = fol.getMessage(i);\n String uid = fol.getUID(me);\n if (uid != null) {\n listEmailUIDServer.add(uid);\n if (!listEmailUIDDatabase.contains(uid)) {\n emailDao.insert(transformEmail(me, uid, null));\n num++;\n }\n }\n } catch (Exception ex) {\n LogUtil.addLog(ex);//binhnt sonar a160901\n //System.out.println(en.getMessage());\n// log.error(ex.getMessage());\n }\n if (i != messNum) {\n jsonDataGrid.setCustomInfo(\"still have\");\n } else {\n jsonDataGrid.setCustomInfo(\"finish\");\n }\n if (num == 5) {\n break;\n }\n }\n// for (int i = 0; i < messages.length; i++) {\n// String uid = fol.getUID(messages[i]);\n// listEmailUIDServer.add(uid);\n// //find a new mail\n// if (!listEmailUIDDatabase.contains(uid)) {\n//\n// emailDao.insert(transformEmail(messages[i], uid));\n//\n// }\n// }\n // find deleted mail\n for (int i = 0; i < listEmailUIDDatabase.size(); i++) {\n String st = listEmailUIDDatabase.get(i);\n if (!listEmailUIDServer.contains(st)) {\n // neu uid ko co tren server --> deleted\n emailDao.deleteByUid(getUserId(), st, folderName);\n }\n }\n fol.close(true);\n store.close();\n } else {\n jsonDataGrid.setCustomInfo(\"fail connect to server\");\n }\n onSearch();\n return GRID_DATA;\n }",
"private void getRegisteredEmails() {\n\t\tAccountManager manager = (AccountManager)getSystemService(ACCOUNT_SERVICE);\n\t\tAccount [] account = manager.getAccounts();\n\t\tfinal String [] emails = new String [account.length];\n\t\tint x=0;\n\t\tfor(Account ac : account){\n\t\t\temails[x]=ac.name;\n\t\t\tx++;\n\t\t}\n\t\t\n\t\tif(emails.length==0){\n\t\t\treturn;\n\t\t}\n\t\tfinal Dialog alert = new Dialog(Authenticate.this, AlertDialog.THEME_HOLO_LIGHT);\n\t\tListView lvEmails = new ListView(Authenticate.this);\n\t\tlvEmails.setAdapter(new ArrayAdapter<String>(Authenticate.this, R.layout.device_email_list, R.id.device_email_list_textView_email, emails));\n\t\talert.setContentView(lvEmails);\n\t\t\n\t\tlvEmails.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tetPassword.setText(emails[position]);\n\t\t\t\talert.dismiss();\n\t\t\t}\n\t\t});\n\t\t\n\t\talert.show();\n\t\talert.setCancelable(true);\n\t\talert.setCanceledOnTouchOutside(true);\n\t\talert.setTitle(\"Choose an email\");\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}",
"public void ViewInbox(DBMethods dbm) {\r\n\t\tString menu1answer=null;\r\n\t\tString menu2answer=null;\r\n\t\tString ExitToMainMenuChoice=null;\r\n\t\tScanner ViewInboxSC=new Scanner(System.in);\r\n\t\t\t\r\n\t\t\r\n\t\tdo{\r\n\t\t\t//INBOX Menu Structure\r\n\t\t\tString menu1=\"\\n\"+\"---------------INBOX MENU------------------\"+\"\\n\"+\r\n\t\t \"Please select one of the following actions:\"+\"\\n\"+\r\n\t\t\t \"1.View New Messages\"+\"\\n\"+\r\n\t\t\t\t\t \"2.View All Messages\"+\"\\n\"+\r\n\t\t\t \"3.Exit to Main Menu\"+\"\\n\";\r\n\t\t\tSystem.out.println(menu1);\r\n\t\t\tmenu1answer=ViewInboxSC.next();\r\n\t\t\t\r\n\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\twhile(!menu1answer.equals(\"1\")&&!menu1answer.equals(\"2\")&&!menu1answer.equals(\"3\")) {\r\n\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+menu1);\r\n\t\t\t\tmenu1answer=ViewInboxSC.next();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Query parts that if executed in different combinations\r\n\t\t\t//Shows 'New' or 'Read' Messages\r\n\t\t\tString queryPart1=\"SELECT messages.id AS 'Message id',messages.text AS 'Message',messages.date_time_sent AS 'Time Sent',(SELECT users.username FROM dont_shoot_the_messenger.users WHERE users.id=messages.sender_id) AS 'Sender'\"+\"\\n\"+\r\n\t\t\t \"FROM dont_shoot_the_messenger.messages\"+\"\\n\"+\r\n\t\t\t \"WHERE messages.receiver_id=(\"+\"\\n\"+\r\n\t\t \"SELECT users.id\"+\"\\n\"+\r\n\t\t\t \"FROM dont_shoot_the_messenger.users\"+\"\\n\"+\r\n\t\t\t \"WHERE users.username='\"+getUsername()+\"'\"+\"\\n\"+\r\n\t\t\t \") \";\r\n\t\t\t\r\n\t\t\tString queryPart2=\" AND messages.receiver_view=0\"+\"\\n\"+\r\n\t\t\t \"ORDER BY date_time_sent DESC;\";\r\n\t\t\t\r\n\t\t\tString queryfinal=null;\r\n\t\t\t\r\n\t\t\t//Menu String that is identical for NEW or ALL MESSAGES Menu\r\n\t\t\tString menu2=\"Please select one of the following actions:\"+\"\\n\"+\r\n \"1.View Messages One by One\"+\"\\n\"+\r\n\t\t \"2.View All Messages Together\"+\"\\n\"+\r\n \"3.Exit to Inbox Menu\"+\"\\n\";\r\n\t\t\t\r\n\t\t\tswitch(menu1answer) {\r\n\t\t\t\r\n\t\t\t //Case 1.View New Messages\r\n\t\t\t case \"1\":\r\n\t\t\t \t//Combination of the above Queries that will show ONLY New Messages\r\n\t\t\t \tqueryfinal=queryPart1+\"AND messages.viewed='New'\"+queryPart2;\r\n\t\t\t \t//New Messages Menu Structure\r\n\t\t\t \tSystem.out.println(\"\\n\"+\"--------NEW MESSAGES INBOX MENU------------\"+\"\\n\"+menu2);\r\n\t\t\t\t\tmenu2answer=ViewInboxSC.next();\r\n\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\twhile(!menu2answer.equals(\"1\")&&!menu2answer.equals(\"2\")&&!menu2answer.equals(\"3\")) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+menu1);\r\n\t\t\t\t\t\tmenu2answer=ViewInboxSC.next();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tswitch(menu2answer) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t //Case 1.1.View Messages One by One\r\n\t\t\t\t\t case \"1\":\r\n\t\t\t\t\t \tShowReceivedMessages(dbm,queryfinal,\"1\");\r\n\t\t\t\t\t \tExitToMainMenuChoice=\"y\";\r\n\t\t\t\t\t \tbreak;\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t //Case 1.2.View All Messages Together\r\n\t\t\t\t\t case \"2\":\r\n\t\t\t\t\t \tShowReceivedMessages(dbm,queryfinal,\"2\");\r\n\t\t\t\t\t \tExitToMainMenuChoice=\"y\";\r\n\t\t\t\t\t \tbreak;\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t //Case 1.3.Exit to INBOX Menu\r\n\t\t\t\t\t case \"3\":\r\n\t\t\t\t\t \tSystem.out.println(\"\\n\"+\"Returning to Inbox Menu...\");\r\n\t\t\t\t\t \tExitToMainMenuChoice=\"y\";\r\n\t\t\t\t\t \tbreak;\r\n\t\t\t\t\t \t}\r\n\t\t\t \tbreak;\r\n\t\t\t \r\n\t\t\t //Case 2.View All Messages\r\n\t\t\t case \"2\":\r\n\t\t\t \t//Combination of the above Queries that will show ALL Messages New and Read\r\n\t\t\t \tqueryfinal=queryPart1+queryPart2;\r\n\t\t\t \t//ALL Messages Menu Structure\r\n\t\t\t \tSystem.out.println(\"\\n\"+\"--------ALL MESSAGES INBOX MENU------------\"+\"\\n\"+menu2);\r\n\t\t\t\t\tmenu2answer=ViewInboxSC.next();\r\n\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\twhile(!menu2answer.equals(\"1\")&&!menu2answer.equals(\"2\")&&!menu2answer.equals(\"3\")) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+menu1);\r\n\t\t\t\t\t\tmenu2answer=ViewInboxSC.next();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tswitch(menu2answer) {\r\n\t\t\t\t\t\r\n\t\t\t\t //Case 2.1.View Messages One by One\r\n\t\t\t\t case \"1\":\r\n\t\t\t\t \tShowReceivedMessages(dbm,queryfinal,\"1\");\r\n\t\t\t\t \tExitToMainMenuChoice=\"y\";\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t \t\r\n\t\t\t\t //Case 2.2.View All Messages Together\r\n\t\t\t\t case \"2\":\r\n\t\t\t\t \tShowReceivedMessages(dbm,queryfinal,\"2\");\r\n\t\t\t\t \tExitToMainMenuChoice=\"y\";\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t \t\r\n\t\t\t\t //Case 2.3.Exit to INBOX Menu\r\n\t\t\t\t case \"3\":\r\n\t\t\t\t \tSystem.out.println(\"\\n\"+\"Returning to Inbox Menu...\");\r\n\t\t\t\t \tExitToMainMenuChoice=\"y\";\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t \t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t \t\r\n\t\t\t //Case 3.Exit to Main Menu\r\n\t\t\t case \"3\":\r\n\t\t\t \tSystem.out.println(\"Exiting to Main Menu...\");\r\n\t\t\t \tExitToMainMenuChoice=\"n\";\r\n\t\t\t \tbreak;\r\n\t\t\t \t}\r\n\t\t\t//While Loop for keeping User to the INBOX Menu Unless he/she chooses 'Case 3.Exit to Main Menu'\r\n\t\t\t}while(!ExitToMainMenuChoice.equalsIgnoreCase(\"n\"));\r\n\t\t}",
"public static void main(String[] args) {\n\t\tString email = JOptionPane.showInputDialog(\"Email\");\n\t\tSystem.out.println(\"Original: \" + email);\n\t\tSystem.out.println(\"Minuscula: \" + email.toLowerCase());\n\t\tSystem.out.println(\"Maiuscula: \" + email.toUpperCase());\n\t\tSystem.out.println(\"Posição do @: \" + email.indexOf(\"@\"));\n\t\tSystem.out.println(\"Existe @: \" + email.contains(\"@\"));\n\t\tSystem.out.println(\"Qtde caracteres : \" + email.length());\n\t\tSystem.out.println(\"Parte da string 3 ao 6 iniciando no 0: \" + email.substring(3,6));\n\t\tSystem.out.println(\"Exclui o primeiro caracter : \" + email.substring(1));\n\t\tSystem.out.println(\"Usuario: \" + email.substring(0,email.indexOf(\"@\")));\n\t\tSystem.out.println(\"Servidor + o @: \" + email.substring(email.indexOf(\"@\")+1));\n\t\t\n\t\tSystem.out.println(\"Servidor sem o @: \" + email.substring(email.indexOf(\"@\")+1,email.indexOf(\".com\")));\n\t\t\n\t\tSystem.out.println(\"Primeira metade: \" + email.substring(0,email.length()/2)); // nesse caso só funciona se for par a quantidade de caracter\n\t\t\n\t\tSystem.out.println(\"Comparação case sensitive: \" + email.equals(\"[email protected]\"));\n\t\t\n\t\tSystem.out.println(\"Comparação case sensitive: \" + email.equalsIgnoreCase(\"[email protected]\"));\n\t\t\n\t}",
"public void read() {\r\n\t\tProperties props = new Properties();\r\n\t\ttry {\r\n\t\t\t// Read smtp.\r\n\t\t\tprops.load(new FileInputStream(\r\n\t\t\t\t\t\"C:\\\\Users\\\\danielnistreanu\\\\git\\\\t3bluecircles\\\\src\\\\test\\\\resources\\\\smtpZimbra.properties\"));\r\n\t\t\tSession session = Session.getDefaultInstance(props, null);\r\n\t\t\t// Login.\r\n\t\t\tStore store = session.getStore(\"imaps\");\r\n\t\t\tstore.connect(\"mail.evozon.com\", \"[email protected]\", \"Asdf1234!@#$\");\r\n\t\t\t// Get messages number.\r\n\t\t\tFolder inbox = store.getFolder(\"inbox\");\r\n\t\t\tinbox.open(Folder.READ_ONLY);\r\n\t\t\tint messageCount = inbox.getMessageCount();\r\n\r\n\t\t\t// Part where using for loop we check messages list and print\r\n\t\t\t// content.\r\n\r\n\t\t\tSystem.out.println(\"Total Messages:- \" + messageCount);\r\n\t\t\tMessage[] messages = inbox.getMessages();\r\n\t\t\tfor (int i = 0; i < messages.length; i++) {\r\n\t\t\t\tMessage message = messages[i];\r\n\t\t\t\tSystem.out.println(\"---------------------------------\");\r\n\t\t\t\tSystem.out.println(\"Email Number \" + (i + 1));\r\n\t\t\t\tSystem.out.println(\"Subject: \" + message.getSubject());\r\n\t\t\t\tSystem.out.println(\"From: \" + message.getFrom()[0]);\r\n\t\t\t\tSystem.out.println(\"Text: \" + getTextFromMessage(message));\r\n\t\t\t\twriteToFile(getTextFromMessage(message));\r\n\t\t\t}\r\n\t\t\tinbox.close(true);\r\n\t\t\tstore.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void email() throws IOException {\n\t\t/*\n\t\tString emailText = \"This email includes the following Play Types: \" + playSort.getSelectedItem().toString() + \n\t\t\t\t\"\\nFrom the gameplan: \" + gamePlans.getSelectedItem().toString();\n\t\tString subject = playSort.getSelectedItem().toString() + \" from \" + gamePlans.getSelectedItem().toString();\n\t\t\t\t\n\t\t// TODO: save image to file system, and add the file paht to atachment\n\t\tArrayList<String> attachments = DigPlayDB.getInstance(getBaseContext()).getAllPlayNames();\n\t\tArrayList<String> attachmentPath = new ArrayList<String>();\n\t\tfor (int att = 0; att < attachments.size(); att++) \n\t\t{\n\t\t\tFile myFile = new File(\"/sdcard/DCIM/Play/temp.jpeg\");\n\t\t\tmyFile.setWritable(true);\n\t FileOutputStream myOutWriter =new FileOutputStream(myFile);\n\t myOutWriter.write(DigPlayDB.getInstance(getBaseContext()).getImage(attachments.get(att)));\n\t myOutWriter.flush();\n\t myOutWriter.close();\n\t myFile.setReadable(true);\n\t attachmentPath.add(myFile.getAbsolutePath());\n\t\t}\n\n\t\tEmailPlaybook.EmailAttachment(this, \"[email protected]\", subject, emailText, attachmentPath);\n\t\t*/\n\t}",
"static void mainDirectory() throws Exception {\n\t\t// Since we're active while this is running, open a ClientHelper on the port to listen for and respond to requests\n\t\trequestListener = new ClientHelper(port);\n\t\trequestListener.run();\n\t\t// If alive true, we still want to run the program\n\t\tboolean alive = true;\n\t\twhile(alive) {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"-----------------------------Main Menu:-----------------------------\");\n\t\t\tSystem.out.println(\"---Please enter the option you wish to execute followed by Enter ---\");\n\t\t\tSystem.out.println(\"File Viewing Options:\");\n\t\t\tSystem.out.println(\"\\t[1] | View All Of My Files (Shared And Not Shared)\");\n\t\t\tSystem.out.println(\"\\t[2] | View All Shared Files (Shared By You And Other Users)\");\n\t\t\tSystem.out.println(\"File Sharing Options:\");\n\t\t\tSystem.out.println(\"\\t[3] | Share A File\");\n\t\t\tSystem.out.println(\"\\t[4] | Stop Sharing A File\");\n\t\t\tSystem.out.println(\"File Discovery Options:\");\n\t\t\tSystem.out.println(\"\\t[5] | Search For A File\");\n\t\t\tSystem.out.println(\"System Options:\");\n System.out.println(\"\\t[r] | Refresh File System\");\n\t\t\tSystem.out.println(\"\\t[x] | Log Out\");\n\t\t\tSystem.out.println(\"--------------------------------------------------------------------\");\n\t\t\tSystem.out.print(\"Your Entry: \");\n\n\t\t\t// Get the user's choice\n\t\t\tString userEntry = input.readLine();\n\n\t\t\t// Call the View All Files function which will report the contents of the user's shared and not-shared directories\n\t\t\tif(userEntry.equals(\"1\")) {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"------------------------------My Files------------------------------\");\n\t\t\t\tviewMyFiles();\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"---------------------Returning To The Main Menu---------------------\");\n\t\t\t}\n\n\t\t\t// Call the View Shared Files function which will report all files shared by any user currently on the system\n\t\t\telse if(userEntry.equals(\"2\")) {\n System.out.println();\n System.out.println(\"--------------------------All Shared Files--------------------------\");\n\t\t\t\tviewSharedFiles();\n System.out.println(\"--------------------------------------------------------------------\");\n System.out.println(\"---------------------Returning To The Main Menu---------------------\");\n\t\t\t}\n\n\t\t\t// Call the File Sharing function which will allow the user to add previously non-shared files to a shared status\n\t\t\telse if(userEntry.equals(\"3\")) {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"------------------------File Sharing Utility------------------------\");\n\t\t\t\taddFileToShared();\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"---------------------Returning To The Main Menu---------------------\");\n\t\t\t}\n\n\t\t\t// Call the File Un-Sharing function which will allow the user to add previously shared files to a non-shared status\n\t\t\telse if(userEntry.equals(\"4\")) {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"-----------------------File Un-Sharing Utility----------------------\");\n\t\t\t\tremoveFileFromShared();\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"---------------------Returning To The Main Menu---------------------\");\n\t\t\t}\n\n\t\t\t// Call the File Search function which will allow the user to search for shared files, and if they'd like - download them\n\t\t\telse if(userEntry.equals(\"5\")) {\n\t\t\t\tSystem.out.println(\"-------------------------File Search Utility------------------------\");\n\t\t\t\tsearchForFile();\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"---------------------Returning To The Main Menu---------------------\");\n\t\t\t}\n\n\t\t\t// If the user enters x, this means they want to log out - so log out, and close the requestListener\n\t\t\telse if(userEntry.equals(\"x\") || userEntry.equals(\"X\")) {\n\t\t\t\t// Set alive to false in order to kill the main loop\n\t\t\t\talive = false;\n\t\t\t\tSystem.out.println(\"-----------------------------Logging Out----------------------------\");\n\t\t\t\tlogout();\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"------------------------------Goodbye!------------------------------\");\n\t\t\t\trequestListener.terminate();\n\t\t\t}\n\n\t\t\t// If the user enters r, refresh the main file system\n else if(userEntry.equals(\"r\") || userEntry.equals(\"R\")) {\n System.out.println(\"-----------------------Refreshing File System-----------------------\");\n refreshFileSystem();\n System.out.println(\"--------------------------------------------------------------------\");\n System.out.println(\"---------------------Returning To The Main Menu---------------------\");\n }\n\n // Otherwise, the user has entered an invalid entry - inform them and loop again\n\t\t\telse {\n\t\t\t System.out.println(\"Invalid! Enter the key associated with the option and press Enter.\");\n System.out.println(\"--------------------------------------------------------------------\");\n System.out.println(\"---------------------Returning To The Main Menu---------------------\");\n }\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t \n\t Employee ee = GetEmployeeObjectFromFile(filename);\n\t if(ee != null)\n\t \t ee.mailCheck();\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tint threadsCount;\t\t\t\t\t// total number of threads\n\t\tint mailsCount;\t\t\t\t\t\t// total number of mails\n\n\t\t// Input database parameters\n\t\tSqlHelper.getInput();\n\t\t\n\t\t// Get SqlHelper object and cleanup database\n\t\tSqlHelper sqlHelper = new SqlHelper();\n\t\tsqlHelper.dropTable();\n\t\tsqlHelper.createTable();\n\n\t\t// Get number of threads and mails from user\n\t\tthreadsCount = inputValidInteger(\n\t\t\t\t\"\\nEnter total number of threads : \", 1, 20);\n\t\tmailsCount = inputValidInteger(\n\t\t\t\t\"Enter total number of mails : \", 1, Integer.MAX_VALUE);\n\n\t\t// Insert dummy mails to the database\n\t\tsqlHelper.insertBulkMails(mailsCount);\n\t\t\n\t\t// Start sending mails using [threadsCount] threads\n\t\tstartSendingMails(mailsCount, threadsCount);\n\t\t\n\t\t// Fetch number of mails which were not sent and see if user wants to retry\n\t\tint failedCount = processFailedMails(sqlHelper, threadsCount);\n\t\t\n\t\t// All done, we can safely close the database connection now\n\t\tsqlHelper.closeConnection();\n\t\t\n\t\tSystem.out.println(\"\\nSent \" + (mailsCount-failedCount) + \" mails!\");\n\t\tSystem.out.println(\"Goodbye!\\n\");\n\t}",
"public static void main(String[] args) {\n\t\tString host =\"imap.gmail.com\";\n\t\tString mailStoreType =\"imap\";\n\t\tString username = \"[email protected]\";\n\t\tString password = \"asit,s9!\";\n\n\t\tCheckMailUtil cmUtil = CheckMailUtil.getInstance();\n\n\t\t cmUtil.checkMail(host, mailStoreType, username, password);\n\t//\tcmUtil.fetchMail(host, mailStoreType, username, password);\n\t//\tSystem.out.println(\"IMAP\");\n\t\t// cmUtil.checkMail(\"imap.gmail.com\",\"imap\",username, password);\n\t\t//cmUtil.fetchMail(host, mailStoreType, username, password);\n\t}",
"public static void main(String[] args) throws MessagingException, IOException, InterruptedException {\n\t\tboolean inFile= false;\n//\t\tFile file = new File(\"info.txt\");\n//\t\tif(file.exists()){\n//\t\t\t @SuppressWarnings(\"resource\")\n//\t\t\t\tScanner scan = new Scanner(file);\n//\t\t\t mark(scan.nextLine(),scan.nextLine(),scan.nextLine());\n//\t\t}\n//\t\telse{\n\t\t\tFile file1 = new File(\"info.txt\");\n\t\t\tFileWriter fw = new FileWriter(\"info.txt\", true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t PrintWriter out = new PrintWriter(bw);\n\t\t\tMailProvider mail = new MailProvider();\n\t\t\twhile(mail.check == false){\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\tif(file1.exists()){\n\t\t\t\t@SuppressWarnings(\"resource\")\n\t\t\t\tScanner scan = new Scanner(file1);\n\t\t\t\twhile(scan.hasNextLine()){\n\t\t\t\t\tString x = scan.nextLine();\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t\tif(x.equals(mail.getProvider())){\n\t\t\t\t\t\tinFile = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(inFile == true){\n\t\t\t\t@SuppressWarnings(\"resource\")\n\t\t\t\tScanner scan = new Scanner(file1);\n\t\t\t\tString provider = null;\n\t\t\t\twhile(scan.hasNextLine()){\n\t\t\t\t\tprovider = scan.nextLine();\n\t\t\t\t\tif(provider.equals(mail.getProvider())){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t mark(provider,scan.nextLine(),scan.nextLine());\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tUserInfo grabInfo = new UserInfo();\n\t\t\t\twhile(grabInfo.check == false){\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t}\n\t\t\tString provider = mail.getProvider();\n\t\t\tString username = grabInfo.getUsername();\n\t\t\tString encrypted = grabInfo.getPassword();\n\t\t\tout.println(provider);\n\t\t\tout.println(username);\n\t\t\tout.println(encrypted);\n\t\t\tout.close();\n\t\t\tmark(provider, username, encrypted);\n\t\t}\n\t}",
"public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }",
"public static void main(String[] args) {\n\t\tSendEmail sendEmail = new SendEmail();\n\t\tSystem.out.println(\"Welcome\");\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter your email address: \");\n\t\tString emailAddress = sc.nextLine(); //read input till enter\n\t\t\n\t\tSystem.out.println(\"Now email To: \");\n\t\tString to = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"What about the Subject: \");\n\t\tString subject = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Finally write your email/letter: \");\n\t\tString text = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"From: \" + emailAddress);\n\t\tSystem.out.println(\"To: \" + to);\n\t\tSystem.out.println(\"Subject: \" + subject);\n\t\tSystem.out.println(\"Text: \" + text);\n\t\tString pass = \"\";\n Console console = System.console();\n if (console == null) { //BUG IN IDEs console from .readPassword\n System.out.println(\"Parece que estas usando un IDE asi que cuando escribas la contraseña SERÁ visible: \");\n pass = sc.nextLine();\n sc.close();\n }\n\t else { //Outside Eclipse IDE\n pass = new String(console.readPassword(\"Password: \"));\n\t } \n\t\tsc.close();\n\t\t\n\t\ttry {\n\t\t\tsendEmail.send(emailAddress, to, subject, text, pass);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void check() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date date = new Date();\n Date date2 = new Date();\n\n Calendar calendar = Calendar.getInstance();\n date = calendar.getTime();\n\n // Se traen todos los miembros.\n Iterator e = memberBroker.getList(\"name\", \"ASC\");\n membersData member;\n accountsData account;\n //Calendar hoy = Calendar.getInstance();\n StringBuffer managerBody = new StringBuffer(\"\");\n StringBuffer memberBody = new StringBuffer(\"\");\n sendMail sm = new sendMail();\n\n\n while (e.hasNext()) { \n member = new membersData();\n account = new accountsData();\n member = (membersData) e.next();\n account=(accountsData) accountBroker.getData(member.getId_account());\n \n \n System.out.println(\"CHECKING (\" + member.getname() + -+member.getid() + -+member.getId_account() + \")\");\n\n //String mainURL = TMSConfigurator.getMainURL();\n String mainURL = account.getMain_url();\n managerBody = new StringBuffer(\"\");\n\n memberBody = new StringBuffer(\"\");\n\n // Se toma la fecha de hoy y la fecha de expiracion y se calcula la diferencia\n date2 = member.getExpired_date();\n long days = daysBetween(new Date(date.getTime()), new Date(date2.getTime()));\n \n if (days == 1) {\n System.out.println(\"un dia antes\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n\n }\n if (days == 0) {\n System.out.println(\"ultimo dia\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n if (days == 7) {\n System.out.println(\"a una semana\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n /*if (hoy.getTimeInMillis() > end) {\n // Ya estas atrasado mas alla del umbral maximo permitido!!\n System.out.println(\"\\t\\t\\tAtrasada!!\");\n if (atrasadoEquipo == false) {\n // Al menos un miembro del equipo esta atrazado.\n managerBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n atrasadoEquipo = true;\n }\n if (atrasado == false) {\n // Este member no estaba atrasado, se agrega el encabezado para\n // su email. \n memberBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + team.getparentMember().getname() + \"<br>\");\n }\n if (team.getparentMember().getprofile().equals(\"0\") ||\n team.getparentMember().getprofile().equals(\"1\")) {\n // Siempre el mensaje de atrazo, pero no es un usuario externo\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n } else {\n // Se trata de un usuario del cliente\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/portalTasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n }\n managerBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" + \"\\t Asignada a: \" +\n (task.getassigned_to() == 0 ? \"No Asignada\" : task.getparentAssigned().getname()) +\n \"</BLOCKQUOTE>\");\n // Se cambia el valor\n atrasado = true;\n } else {\n System.out.println(\"\\t\\t\\tOK!!\");\n }\n // Se le envia el email al miembro del equipo si y solo si esta atrazado\n if (atrasado) {\n // enviar correo al usuario\n memberBody.insert(0, \"Las siguientes tareas están atrasadas más allá del umbral de tolerancia permitido.<br>\");\n managerBody.append(\"</BLOCKQUOTE>\");\n sm.sendCheckTasks(team.getparentMember().getemail_work(),\n memberBody.toString());\n }\n // Si alguien del proyecto esta atrazado se envia la lista de cada member\n // al administrador\n if (atrasadoEquipo) {\n managerBody.insert(0, \"Las siguientes tareas están atrasadas más allá del umbral de tolerancia permitido.<br>\");\n sm.sendCheckTasks(proyecto.getparentOwner().getemail_work(),\n managerBody.toString());\n }\n */\n\n\n // while de miembros\n\n\n }\n }",
"@Override\r\n\tpublic void downloadEmailAttachments(String host, String port, String userName, String password) {\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\t// server setting\r\n\t\tproperties.put(\"mail.pop3.host\", host);\r\n\t\tproperties.put(\"mail.pop3.port\", port);\r\n\r\n\t\t// SSL setting\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.fallback\", \"false\");\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.port\", String.valueOf(port));\r\n\r\n\t\tSession session = Session.getDefaultInstance(properties);\r\n\r\n\t\ttry {\r\n\t\t\t// connects to the message store\r\n\t\t\tStore store = session.getStore(\"pop3\");\r\n\t\t\tstore.connect(userName, password);\r\n\r\n\t\t\t// opens the inbox folder\r\n\t\t\tFolder folderInbox = store.getFolder(\"INBOX\");\r\n\t\t\tfolderInbox.open(Folder.READ_ONLY);\r\n\r\n\t\t\t// fetches new messages from server\r\n\t\t\tMessage[] arrayMessages = folderInbox.getMessages();\r\n\r\n\t\t\tfor (int i = 0; i < arrayMessages.length; i++) {\r\n\t\t\t\tMessage message = arrayMessages[i];\r\n\t\t\t\tAddress[] fromAddress = message.getFrom();\r\n\t\t\t\tString from = fromAddress[0].toString();\r\n\t\t\t\tString subject = message.getSubject();\r\n\t\t\t\tString sentDate = message.getSentDate().toString();\r\n\r\n\t\t\t\tString contentType = message.getContentType();\r\n\t\t\t\tString messageContent = \"\";\r\n\r\n\t\t\t\t// store attachment file name, separated by comma\r\n\t\t\t\tString attachFiles = \"\";\r\n\r\n\t\t\t\tif (contentType.contains(\"multipart\")) {\r\n\t\t\t\t\t// content may contain attachments\r\n\t\t\t\t\tMultipart multiPart = (Multipart) message.getContent();\r\n\t\t\t\t\tint numberOfParts = multiPart.getCount();\r\n\t\t\t\t\tfor (int partCount = 0; partCount < numberOfParts; partCount++) {\r\n\t\t\t\t\t\tMimeBodyPart part = (MimeBodyPart) multiPart.getBodyPart(partCount);\r\n\t\t\t\t\t\tif (Part.ATTACHMENT.equalsIgnoreCase(part.getDisposition())) {\r\n\t\t\t\t\t\t\t// this part is attachment\r\n\t\t\t\t\t\t\tString fileName = part.getFileName();\r\n\t\t\t\t\t\t\tattachFiles += fileName + \", \";\r\n\t\t\t\t\t\t\tpart.saveFile(saveDirectory + File.separator + fileName);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// this part may be the message content\r\n\t\t\t\t\t\t\tmessageContent = part.getContent().toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (attachFiles.length() > 1) {\r\n\t\t\t\t\t\tattachFiles = attachFiles.substring(0, attachFiles.length() - 2);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (contentType.contains(\"text/plain\") || contentType.contains(\"text/html\")) {\r\n\t\t\t\t\tObject content = message.getContent();\r\n\t\t\t\t\tif (content != null) {\r\n\t\t\t\t\t\tmessageContent = content.toString();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t//print out details of each message\r\n\t\t\t\t System.out.println(\"Message #\" + (i + 1) + \":\");\r\n\t System.out.println(\"\\t From: \" + from);\r\n\t System.out.println(\"\\t Subject: \" + subject);\r\n\t System.out.println(\"\\t Sent Date: \" + sentDate);\r\n\t System.out.println(\"\\t Message: \" + messageContent);\r\n\t System.out.println(\"\\t Attachments: \" + attachFiles);\r\n\t\t\t}\r\n\r\n\t\t\t// disconnect\r\n\t\t\tfolderInbox.close(false);\r\n\t\t\tstore.close();\r\n\t\t} catch (NoSuchProviderException ex) {\r\n\t\t\tSystem.out.println(\"No provider for pop3.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t} catch (MessagingException ex) {\r\n\t\t\tSystem.out.println(\"Could not connect to the message store\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t}\r\n\t}",
"private void sendEmailWithoutChooser() {\r\n String email = AppConstants.ADMIN_EMAIL;\r\n String feedback_msg = \"\";\r\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\r\n String aEmailList[] = {email};\r\n emailIntent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\r\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);\r\n emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(\"<i><font color='your color'>\" + feedback_msg + \"</font></i>\"));\r\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Request help from Customer Support\");\r\n\r\n PackageManager packageManager = getApplicationContext().getPackageManager();\r\n boolean isIntentSafe = emailIntent.resolveActivity(packageManager) != null;\r\n if (isIntentSafe) {\r\n startActivity(emailIntent);\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Email app is not found\", Toast.LENGTH_SHORT).show();\r\n }\r\n }",
"public void sendMessageToStudent()\n {\n boolean validNum = false;\n int sNum = -1;\n while(!validNum)\n {\n try\n {\n System.out.println(\"\\nWhat student do you want to send a message to?\");\n printStudentList();\n sNum = kb.nextInt();\n \n if(sNum < 1 || sNum > students.size() + 1)\n {\n System.out.println(\"You entered an invalid option. Please enter a number 1 - \"\n + students.size() + 1 + \".\");\n kb.nextLine();\n }\n else\n {\n validNum = true;\n kb.nextLine();\n }\n }\n catch(InputMismatchException e)\n {\n System.out.println(\"You entered an invalid option. Please enter a number 1 - \"\n + students.size() + 1 + \".\");\n kb.nextLine();\n }\n }\n \n System.out.print(\"Please type your message to \" + students.get(sNum - 1).getName() + \". \");\n System.out.println(\"To end your message, please hit the enter button.\");\n String message = kb.nextLine();\n System.out.println(\"Please type the subject line. To end the subject, please hit the enter button.\");\n String subject = kb.nextLine();\n students.get(sNum - 1).addInboxMessage(new Message(getName(), message, subject));\n System.out.println(\"You have successfully sent a message to \" + students.get(sNum - 1).getName());\n }",
"public boolean searchMail(String subject, ArrayList<String> taskList) throws Exception {\r\n\r\n if (mReceiverInfo == null) {\r\n throw new Exception(\"must provide receiver parameters!\");\r\n }\r\n\r\n // connect to pop3 server\r\n if (connect()) {\r\n\r\n // open the inbox folder\r\n if (openInBoxFolder()) {\r\n\r\n // obtain messages from the inbox folder\r\n mMessages = mFolder.getMessages();\r\n int mailArrayLength = getMessageCount();\r\n\r\n boolean isFound = false;\r\n\r\n for (int index = mailArrayLength - 1; index >= 0; index--) {\r\n\r\n try {\r\n // get the current message\r\n mCurrentMessage = (mMessages[index]);\r\n String currSubject = getSubject(mCurrentMessage);\r\n String sender = getFrom();\r\n\r\n if (currSubject.contains(subject)) {\r\n\r\n parseMessage(mCurrentMessage);\r\n\r\n //System.out.println(sender);\r\n //System.out.println(\"---------------------------------------------------\");\r\n //System.out.println(bodytext.toString());\r\n //System.out.println(\"---------------------------------------------------\");\r\n synchronized (this) {\r\n taskList.add(sender);\r\n taskList.add(mReceiverInfo.getUserName());\r\n taskList.add(currSubject);\r\n taskList.add(bodytext.toString());\r\n }\r\n\r\n isFound = true;\r\n break;\r\n }\r\n }\r\n catch (Throwable e) {\r\n // Todo\r\n }\r\n }\r\n\r\n disconnect();\r\n // searching status\r\n return isFound;\r\n }\r\n else {\r\n throw new Exception(\"Open Inbox folder failed!\");\r\n }\r\n\r\n }\r\n else {\r\n throw new Exception(\"Connect to pop3 server failed!\");\r\n }\r\n\r\n }",
"public void retrySending()\n {\n try\n {\n EmailConfig emailConfig = getEmailConfig();\n int maxRetries = emailConfig.getMaxRetries().intValue();\n boolean saveFailedMails = emailConfig.getSaveFailedEmails();\n List messageFileList = getMessagesInFolder(IEmailConfiguration.EMAIL_RETRY_PATH);\n \n if (maxRetries > 0 && messageFileList.size()>0)\n {\n Session session = getMailSession(true);\n for (Iterator i = messageFileList.iterator(); i.hasNext();)\n {\n resendMail(session, (File)i.next(), maxRetries, saveFailedMails);\n }\n }\n }\n catch (Throwable th)\n {\n AlertLogger.warnLog(CLASSNAME,\"retrySending\",\"Error in retrySending\",th);\n }\n }",
"public static void main(String[] args) throws MimeException, IOException {\r\n\t\tMimeAnalysis ma=new MimeAnalysis();\r\n\t\tList<String> list = ma.getEmailTextList(null);\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t}",
"public String downloadEmails(String protocol, String host, String port,\n String userName, String password) {\n\n Properties properties = getServerProperties(protocol, host, port);\n Properties props = getServerProperties(protocol, host, port);\n\n\n\n Session session = Session.getDefaultInstance(properties);\n\n try {\n\n\n //Setting IMAP session\n Session imapSession = Session.getInstance(props);\n\n Store store = imapSession.getStore(\"imap\");\n\n\n//Connect to server by sending username and password.\n//Example mailServer = imap.gmail.com, username = abc, password = abc\n //store.connect(mailServer, account.username, account.password);\n//Get all mails in Inbox Forlder\n //inbox = store.getFolder(\"Inbox\");\n //inbox.open(Folder.READ_ONLY);\n //Return result to array of message\n //Message[] result = inbox.getMessages();\n\n\n // connects to the message store\n //Store store = session.getStore(protocol);\n store.connect(\"imap.gmail.com\", 993, userName, password);\n\n // opens the inbox folder\n Folder folderInbox = store.getFolder(\"INBOX\");\n folderInbox.open(Folder.READ_ONLY);\n\n // fetches new messages from server\n Message[] messages = folderInbox.getMessages();\n\n for (int i = 0; i < messages.length; i++) {\n Message msg = messages[i];\n Address[] fromAddress = msg.getFrom();\n String from = fromAddress[0].toString();\n String subject = msg.getSubject();\n String toList = parseAddresses(msg\n .getRecipients(Message.RecipientType.TO));\n String ccList = parseAddresses(msg\n .getRecipients(Message.RecipientType.CC));\n String sentDate = msg.getSentDate().toString();\n\n String contentType = msg.getContentType();\n String messageContent = \"\";\n\n if (contentType.contains(\"text/plain\")\n || contentType.contains(\"text/html\")) {\n try {\n Object content = msg.getContent();\n if (content != null) {\n messageContent = content.toString();\n }\n } catch (Exception ex) {\n messageContent = \"[Error downloading content]\";\n ex.printStackTrace();\n }\n }\n\n // print out details of each message\n System.out.println(\"Message #\" + (i + 1) + \":\");\n System.out.println(\"\\t From: \" + from);\n System.out.println(\"\\t To: \" + toList);\n System.out.println(\"\\t CC: \" + ccList);\n System.out.println(\"\\t Subject: \" + subject);\n System.out.println(\"\\t Sent Date: \" + sentDate);\n System.out.println(\"\\t Message: \" + messageContent);\n\n return \"lista messaggi\";\n }\n\n // disconnect\n folderInbox.close(false);\n store.close();\n\n } catch (NoSuchProviderException ex) {\n System.out.println(\"No provider for protocol: \" + protocol);\n ex.printStackTrace();\n } catch (MessagingException ex) {\n System.out.println(\"Could not connect to the message store\");\n ex.printStackTrace();\n return ex.getMessage();\n }\n return \"default\";\n }",
"public static void main(String args,String flag, InputStream object) \r\n {\r\n \t//flag=\"senderIdandPassword\";\r\n try\r\n {\r\n \t//File f=new File(args);\r\n \t \r\n // FileInputStream file = new FileInputStream(f);\r\n //Create Workbook instance holding reference to .xlsx file\r\n XSSFWorkbook workbook = new XSSFWorkbook(object);\r\n \r\n //Get first/desired sheet from the workbook\r\n XSSFSheet sheet = workbook.getSheetAt(0);\r\n \r\n //Iterate through each rows one by one\r\n Iterator<Row> rowIterator = sheet.iterator();\r\n if(flag.equals(\"receiverfile\"))\r\n getEmailidsforsend(rowIterator);\r\n if(flag.equals(\"senderIdandPassword\"))\r\n getEmailidsandpaswordforsend(rowIterator);\r\n \r\n //file.close();\r\n } \r\n catch (Exception e) \r\n {\r\n e.printStackTrace();\r\n }\r\n }",
"public static void main(String[] args) {\n\n\t\tPolyMorphismExample polyMorphism = new PolyMorphismReference();\n\t\tpolyMorphism.loginToGmailApp();\n\t\tpolyMorphism.sendEmail();\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tEmail email1 = new Email(\"Monis\",\"Saeed\");\r\n\t\temail1.SetAlternateEmail(\"[email protected]\");\r\n\t\temail1.SetMailBoxCapacity(500);\r\n\t\t\r\n\t\tSystem.out.println(email1.ShowInfo());\r\n\t}",
"public void generateReport() throws InvalidEmailException, SQLException {\n\t\tSystem.out.println(\"=====GENERATE REPORT=====\");\n\t\tSystem.out.println(\"1.Fetch patient details by email:\");\n\t\tSystem.out.println(\"2.Fetch patient details by phone:\");\n\t\tSystem.out.println(\"Enter your choice:\");\n\t\tint choice = Integer.parseInt(sc.nextLine());\n\t\t// DatabaseConn viewDetails = new DatabaseConn();\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tdo {\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter Email\");\n\t\t\t\tString email = sc.nextLine();\n\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\tString testDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter phone no:\");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\ttestDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} while (choice != 3);\n\n\t}",
"public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"private boolean tryMail(ApiClient client) throws ApiException {\n try {\n MailApi mailApi = new MailApi(client);\n String inbox = getClient().getValues().getInboxFolder();\n MailsResponse allMails = mailApi.getAllMails(inbox, \"600\", null, FALSE, FALSE, null, null, I(0), I(5), I(5), null);\n return allMails.getError() == null;\n } catch (OXException | IOException | JSONException e) {\n throw new ApiException(e.getMessage());\n }\n }",
"private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"public void run() {\n\t\tlogger.info(\"***Started Email Robot***\");\n\n\t\twhile (true && !stopRunning) {\n\t\t\t//logger.debug(\"Cycling for new emails...\");\n\t\t\tif (!stopRunning) {\n\t\t\t\tsendEmails();\n\t\t\t\t\n\t\t\t\tif(stopWhenMessageListIsEmpty){\n\t\t\t\t\tif(messages.size() == 0){\n\t\t\t\t\t\tlogger.info(\"No more emails to send. Going to stop the thread...\");\n\t\t\t\t\t\tstopRunning = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlogger.info(\"Still have \"+messages.size()+\" emails in list. Going to cycle after \"+sleepSeconds * SECOND+\" milliseconds\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif (!stopRunning) {\n\t\t\t\t\tThread.sleep(sleepSeconds * SECOND);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"***Email Robot stopped***\");\n\t}",
"public void processMail(JTextArea message) \n {\n try \n {\n \t// if the to-field is blank display a pop-up warning\n \t\t\tif(toField.getText().equals(\"\")){\n \t\t\t\tJOptionPane.showMessageDialog (null, \"Please provide an email address.\");\n \t\t\t\ttoField.requestFocusInWindow();\n \t\t\t}\n \t\t\telse {\n\t \tFile fileName = new File(\"outbox.txt\");\n\t \t// by setting the file writer boolean to \"true\" append is turned on\n\t\t FileWriter outStream = new FileWriter (fileName, true);\n\t\t outStream.append (\"To: \" + toField.getText() + \"\\nCc: \" + ccField.getText() +\n\t\t \t\t\t\t \"\\nBcc: \" + bccField.getText() + \"\\nSubject: \" + subjectField.getText() +\n\t\t \t\t\t\t \"\\nFrom: \" + fromField.getSelectedItem() + \"\\nMessage: \" + message.getText() +\"\\n\\n\");\n\t\t outStream.close ();\n\t\t JOptionPane.showMessageDialog (null, \"Your email has been sent!\");\n\t\t // after mail has been sent, clear all fields\n\t\t toField.setText(null);\n\t\t ccField.setText(null);\n\t\t bccField.setText(null);\n\t\t subjectField.setText(null);\n\t \tmessage.setText(null);\n\t \t// reset focus to first field\n\t \ttoField.requestFocusInWindow();\n\t }\n } \n catch (IOException e) \n {\n message.setText(\"IOERROR: \" + e.getMessage() + \"\\n\");\n e.printStackTrace();\n }\n }",
"public void testProcessReturnedMail() throws Exception {\n \n logln(\"\\n==== Process Returned Mail ====\\n\");\n \n //login\n loginAFSCME();\n \n //go to the 'Process Returned Mail' page.\n selectLink(\"Process Returned Mail\");\n \n //fill in the parameters\n setParameter(\"addressIds\", \"120\\n221\" );\n \n submit(\"submit\");\n //logout\n selectLink(\"LOGOUT\");\n }",
"public String checkEmail() {\n String email = \"\"; // Create email\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n email = checkEmpty(\"Email\"); // Call method to check input of email\n // Pattern for email\n String emailRegex = \"^[a-zA-Z0-9_+&*-]+(?:\\\\.\" + \"[a-zA-Z0-9_+&*-]+)*@\"\n + \"(?:[a-zA-Z0-9-]+\\\\.)+[a-z\" + \"A-Z]{2,7}$\";\n boolean isContinue = true; // Condition loop\n\n while (isContinue) {\n // If pattern not match, the print out error\n if (!Pattern.matches(emailRegex, email)) {\n System.out.println(\"Your email invalid!\");\n System.out.print(\"Try another email: \");\n email = checkEmpty(\"Email\");\n } else {\n isContinue = false;\n }\n }\n\n boolean isExist = false; // Check exist email\n for (Account acc : accounts) {\n if (email.equals(acc.getEmail())) {\n // Check email if exist print out error\n System.out.println(\"This email has already existed!\");\n System.out.print(\"Try another email: \");\n isExist = true;\n }\n }\n\n // If email not exist then return email\n if (!isExist) {\n return email;\n }\n }\n return email; // Return email\n }",
"public LinkedList<Message> getAllEmails() {\r\n\t\t// Iterate over all folders in the IMAP account\r\n\t\ttry {\r\n\t\t\tf = store.getDefaultFolder().list();\r\n\t\t} catch (MessagingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tLinkedList<Message> messages = new LinkedList<Message>();\r\n\t\tfor (Folder fd : f) {\r\n\t\t\ttry {\r\n\t\t\t\t// Only open a folder if there are messages in it and if the\r\n\t\t\t\t// folder can be selected\r\n\t\t\t\tif (fd.getType() != 2) {\r\n\t\t\t\t\tif (fd.getMessageCount() != 0) {\r\n\t\t\t\t\t\tfd.open(Folder.READ_ONLY);\r\n\t\t\t\t\t\tmessages.addAll(Arrays.asList(receiveEmails(fd)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (MessagingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn messages;\r\n\t}",
"void send(String emailName);",
"public void mailsPosition(){\n\t\tSystem.out.println(\"Company:\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Position:\");\n\t\t\tString position = reader.nextLine();\n\t\t\tSystem.out.println(theHolding.mailsPosition(selected, position));\n\t\t}\n\t}",
"public static void viewContactList() {\n boolean keepLooping = true;\n do{\n //viewing function\n System.out.printf(\"Name%-15s Phone%-9s Email\\n\",\"\",\"\",\"\");\n System.out.println(\"______________________________________________________________________________________\");\n for(String eachContact : contactList){\n System.out.println(eachContact);\n }\n //create functionality that sets keep looping to false\n myScanner.nextLine();\n try {\n int userSelect = selectFromList(repeatAction);\n if(userSelect == 1){\n keepLooping = false;\n }\n } catch(Exception ignored) {}\n } while(keepLooping);\n }",
"@FXML\n public void checkMail() throws IOException {\n if (SameAddressRadioButton.isSelected()) {\n Name9Field.setEditable(false);\n Name9Field.setDisable(true);\n Name9Field.setText(\"\");\n State9ComboBox.setDisable(true);\n State9ComboBox.setPromptText(\"State\");\n Address9Field.setEditable(false);\n Address9Field.setText(\"\");\n Address9Field.setDisable(true);\n City9Field.setEditable(false);\n City9Field.setText(\"\");\n City9Field.setDisable(true);\n Zip9Field.setEditable(false);\n Zip9Field.setText(\"\");\n Zip9Field.setDisable(true);\n } else {\n Name9Field.setEditable(true);\n Name9Field.setDisable(false);\n State9ComboBox.setDisable(false);\n State9ComboBox.setPromptText(\"State\");\n Address9Field.setEditable(true);\n Address9Field.setDisable(false);\n City9Field.setEditable(true);\n City9Field.setDisable(false);\n Zip9Field.setEditable(true);\n Zip9Field.setDisable(false);\n }\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint flag=0;\n\t\tfor (int i=0; i<3; i++)\n\t\t{\n\t\t\tSystem.out.println(\"Enter the user ID: \");\n\t\t\tString user=sc.next();\n\t\t\tSystem.out.println(\"Enter the password: \");\n\t\t\tString pw=sc.next();\n\t\t\tif(user.equals(\"nithish\") && pw.equals(\"laptop\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Welcome\");\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==0)\n\t\t{\n\t\t\tSystem.out.println(\"Contact Admin\");\n\t\t}\n\t\t\n\t\tsc.close();\n\n\t}",
"public void testDetails() throws InvalidEmailException, InvalidPhoneException, Exception {\n\t\tSystem.out.println(\"======Enter test details:======\");\n\t\tSystem.out.println(\"1.Fetch patient details by email:\");\n\t\tSystem.out.println(\"2.Fetch patient details by phone:\");\n\t\tSystem.out.println(\"3.EXIT\");\n\t\tSystem.out.println(\"Enter your choice:\");\n\t\tint choice = Integer.parseInt(sc.nextLine());\n\n\t\tboolean flag = true;\n\t\tdo {\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter Email\");\n\t\t\t\tString email = sc.nextLine();\n\t\t\t\tSystem.out.println(email + \" hello\");\n\t\t\t\taddtest(email, \"e\");\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter phone no:\");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\taddtest(phone, \"p\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"returning\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"======Enter test details:======\");\n\t\t\tSystem.out.println(\"1.Fetch patient details by email:\");\n\t\t\tSystem.out.println(\"2.Fetch patient details by phone:\");\n\t\t\tSystem.out.println(\"3.EXIT\");\n\t\t\tSystem.out.println(\"Enter your choice:\");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\t\t} while (flag);\n\t}",
"@Category({ Major.class })\n\t@Test\n\tpublic void gmailSendAttachedFileAndReceiveTest() throws InterruptedException {\n\t\tSignInPage signInPage = WebUtils.gotoSignInPage(driver);\n\t\t// 2. Click to gmail\n\t\tsignInPage.accessGmailPage(driver);\n\t\t// 3. Input user name\n\t\tsignInPage.fillInUsername(driver, \"[email protected]\");\n\t\t// 4. Click next\n\t\tsignInPage.clickNextUser(driver);\n\t\t// 5. Input password\n\t\tSignInPage.fillInPassword(driver, \"nga123456789\");\n\t\t// 6. Click passwordNext\n\t\tEmailHomepage emailHomepage = signInPage.clickNextPass(driver);\n\t\t// 7. verify Inbox\n\t\tAssert.assertTrue(\"Sign in successfully\", driver.findElement(By.partialLinkText(\"Inbox\")).isDisplayed());\n\t\t// Click Compose\n\t\temailHomepage.createEmail(driver);\n\t\t// Fill in recipent\n\t\temailHomepage.inputReceiver(driver, \"[email protected]\");\n\t\t// Fill in subject\n\t\temailHomepage.inputSubject(driver, \"Demo Email\");\n\t\t// Fill in email body\n\t\temailHomepage.inputEmailBody(driver, \"Hello tester! good morning\");\n\t\t// Attach file\n\t\temailHomepage.attachFile(driver);\n\t\t// Click Send\n\t\temailHomepage.sendEmail(driver);\n\t\t// Click Inbox\n\t\temailHomepage.clickInbox(driver);\n\t\t// Click email\n\t\tEmailViewPage emailViewPage = emailHomepage.clickNewEmail(driver);\n\t\t// Verify the email subject and email body is correct\n\t\tString actualSubject = emailViewPage.getEmailText(driver);\n\t\tAssert.assertEquals(\"Succeed!\", \"Demo Email\", actualSubject);\n\t\t// 8. Sign Out\n\t\tsignInPage = emailHomepage.signOut(driver);\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Documents\\\\driver\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"http://demo.guru99.com/popup.php\");\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.findElement(By.xpath(\"//*[text()=\\\"Click Here\\\"]\")).click();\n\t\t\n\t\tString MainWindow = driver.getWindowHandle();\n\t\t\n\t\tSet<String> s1 = driver.getWindowHandles();\n\t\t\n\t\t\n\t\tIterator<String> i = s1.iterator();\n\t\twhile(i.hasNext())\n\t\t{\n\t\t\tString ChildWindow = i.next();\n\t\t\t\n\t\t\tif(!MainWindow.equalsIgnoreCase(ChildWindow))\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(ChildWindow);\n\t\t\t\tdriver.findElement(By.name(\"emailid\")).sendKeys(\"abcd\");\n\t\t\t\tdriver.close();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void waitMail() {\n\t\tif (Harness.TRACE)\n\t\t\tHarness.trace(String.format(\"[HarnessMailbox] WaitMail from %d, timeout %d\",\n\t\t\t\t\t\t\t\t\t\t(int)mailbox_number, timeout));\n\t\t\n\t\tif (mail_count[mailbox_number] > 0) {\n\t\t\twait_result = MSG_RECEIVED;\n\t\t\texecution_result = MSG_RECEIVED;\n\t\t\tmessage = mail_message[mailbox_number];\n\n\t\t\tif (Harness.TRACE)\n\t\t\t\tHarness.trace(String.format(\"[HarnessMailbox] Message from %d is %d = 0x%x\",\n\t\t\t\t\t\t\t\t\t\t\t(int)mailbox_number, (int)message, (int)message));\n\t\t\t\n\t\t\tmail_count[mailbox_number]--;\n\t\t} else {\n\t\t\twait_result = TIMEOUT_OCCURRED;\n\t\t\texecution_result = TIMEOUT_OCCURRED;\n\t\t\tmessage = 0;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\t\tString[][] arr = new String[3][2];\n\t\tarr[0][0] = \"[email protected]\";\n\t\tarr[0][1] = \"[email protected],[email protected],[email protected]\";\n\n\t\tarr[1][0] = \"[email protected]\";\n\t\tarr[1][1] = \"[email protected],[email protected],[email protected]\";\n\n\t\tarr[2][0] = \"[email protected]\";\n\t\tarr[2][1] = \"[email protected],[email protected],[email protected]\";\n\n\t\tSendMail mailObj = new SendMail();\n\t\tmailObj.sendMail(\"[email protected]\", \"test message for rahul\", arr);\n\t}",
"private void processMessages(Message[] messages) throws MessagingException {\r\n\t\t// Checks parameter\r\n\t\tAssert.isTrue(!ArrayUtils.isEmpty(messages), \"Emails\");\r\n\t\t// Processes e-mails\r\n\t\tlogger.info(\"Processing \" + messages.length + \" emails...\");\r\n\t\tfor (Message message : messages) {\r\n\t\t\t// only process email that has not been read\r\n\t\t\tif ((message != null) && !message.isSet(Flag.SEEN)) {\r\n\t\t\t\t// applies this message as read (like processed)\r\n\t\t\t\tmessage.setFlag(Flag.SEEN, Boolean.TRUE);\r\n\t\t\t\t// TODO For non POP3 protocol, such as IMAP\r\n\t\t\t\tif (!this.getAccount().isPop3()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmessage.saveChanges();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (IllegalStateException e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (IllegalWriteException e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (MessagingException e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// creates incoming call-able by the specified email\r\n\t\t\t\tAbstractIncomingEmailCallable<T> callable = this.createCallable(message);\r\n\t\t\t\tif (callable != null) {\r\n\t\t\t\t\t// creates thread for executing the just created call-able\r\n\t\t\t\t\tFutureTask<T> task = new FutureTask<T>(callable);\r\n\t\t\t\t\tthis.executor.submit(task);\r\n\r\n\t\t\t\t\t// executes call-able\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttask.get();\r\n\t\t\t\t\t\tnumOfDoneThread++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tnumOfDoneThread++;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// debug\r\n\t\t\t\t\tlogger.info(\"Number of done tasks: \" + numOfDoneThread);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static boolean metodoAutenticacionEmail(Properties prop, Persona persona) {\n\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n System.out.println(\"Metodo Envio de Correo electronico\");\r\n\r\n // capturando informacion de Persona desde teclado\r\n System.out.println(\"Ingrese Nombre de Usuario\");\r\n String nombreUsuario = scanner.nextLine();\r\n System.out.println(\"Ingrese direccion de Correo Electronico\");\r\n String correoUsuario = scanner.nextLine();\r\n // guardando los datos ingresados por consola\r\n persona.setNombreUsuario(nombreUsuario);\r\n persona.setEmail(correoUsuario);\r\n\r\n // Genero un numero random como clave secreta\r\n Random rand = new Random();\r\n String textoDescripcion = \"Codigo de Confirmacion es: \";\r\n String codigoConfirmacion = \"\" + rand.nextInt(10000);\r\n\r\n // enviando correo con codigoSecreto\r\n enviarCorreoElectronico(persona, textoDescripcion + codigoConfirmacion, prop);\r\n\r\n // comprobando el codigo enviado al correo\r\n // Validacion CODIGO ingresado desde teclado es el mismo que se envio al correo\r\n boolean banderaEmail = true;\r\n boolean banderaAutIN = false;\r\n short contadorOut = 1;\r\n do {\r\n System.out.println(\"Ingrese su codigo Secreto: \");\r\n String respCodigo = scanner.nextLine();\r\n if (codigoConfirmacion.equals(respCodigo)) {\r\n System.out.println(\"Bienvenido AppJava... Ejecutando Menu...\");\r\n banderaEmail = false;\r\n banderaAutIN = true;\r\n } else if (contadorOut < 5) {\r\n System.out.println(\"Codigo No valido, Revise su correo...\");\r\n contadorOut += contadorOut;\r\n } else {\r\n System.out.println(\"Numero de intentos alcanzado. Contacte con Soporte Tecnico\");\r\n banderaAutIN = false;\r\n banderaEmail = false;\r\n break;\r\n }\r\n } while (banderaEmail);\r\n\r\n return banderaAutIN;\r\n }",
"protected void sendEmails() {\n\t\tboolean sent;\n\t\tVector<Email> unsent = new Vector<Email>();\n\n\t\twhile (messages.size() > 0) {\n\t\t\tEmail email = messages.remove(0);\n\t\t\tsent = sendEmail(email);\n\n\t\t\t// If the mail can not be sent, trace the email\n\t\t\tif (!sent) {\n\t\t\t\temail.increaseRetryCount();\n\t\t\t\t// Only if maximum retries has not exceed\n\t\t\t\tif (email.getRetryCount() <= maxRetries) {\n\t\t\t\t\tunsent.add(email);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// At the end of the loop, store all emails which were not able to be sent, for \n\t\t// later sending.\n\t\tmessages.addAll(unsent);\n\t}",
"void test1() {\n\t\tapp = new App();\n\t\t\n\t\tassertEquals(app.signin(\"[email protected]\", \"pass\"),true);\n\t\tMail[] mails = (Mail[])app.listEmails(1);\n\t\tfor(int i=0; i<mails.length; i++) {\n\t\t\tif(mails[i] == null)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tString text = (mails[i]).getBodyText();\n\t\t\tassertEquals(text.equals( (String)bodyText.get(i) ), true);\n\t\t}\n\t\t\n\t\t\n\t}",
"@Category({ Major.class })\n\t@Test\n\tpublic void saveDraftEmailAutomatically() throws InterruptedException {\n\t\tSignInPage signInPage = WebUtils.gotoSignInPage(driver);\n\t\t// 2. Click to gmail\n\t\tsignInPage.accessGmailPage(driver);\n\t\t// 3. Input user name\n\t\tsignInPage.fillInUsername(driver, \"[email protected]\");\n\t\t// 4. Click next\n\t\tsignInPage.clickNextUser(driver);\n\t\t// 5. Input password\n\t\tSignInPage.fillInPassword(driver, \"nga123456789\");\n\t\t// 6. Click passwordNext\n\t\tEmailHomepage emailHomepage = signInPage.clickNextPass(driver);\n\t\t// 7. verify Inbox\n\t\tAssert.assertTrue(\"Sign in successfully\", driver.findElement(By.partialLinkText(\"Inbox\")).isDisplayed());\n\t\t// Click Compose\n\t\temailHomepage.createEmail(driver);\n\t\t// Fill in recipent\n\t\temailHomepage.inputReceiver(driver, \"[email protected]\");\n\t\t// Fill in subject\n\t\temailHomepage.inputSubject(driver, \"Demo Email\");\n\t\t// Fill in email body\n\t\temailHomepage.inputEmailBody(driver, \"Hello tester! good morning\");\n\t\t// Close email\n\t\temailHomepage.clickCloseEmail(driver);\n\t\t// Click Draft\n\t\temailHomepage.clickDraft(driver);\n\t\t// Click email\n\t\tEmailViewPage emailViewPage = emailHomepage.clickNewEmail(driver);\n\t\t// Verify\n\t\tString actualSubject = emailViewPage.getEmailText(driver);\n\t\tAssert.assertEquals(\"Succeed!\", \"Demo Email\", actualSubject);\n\t\t// 8. Sign Out\n\t\tsignInPage = emailHomepage.signOut(driver);\n\n\t}",
"public void accessAddressBook() {\n boolean isExit = false;\n while(!isExit) {\n System.out.println(\"Select option: \\n1.Add Contact\\n2.Edit Contact\\n\" +\n \"3.Delete Contact\\n4.Find contact\\n5.Exit\");\n int option = scannerForAddressBook.scannerProvider().nextInt();\n switch(option) {\n case 1:\n if(!isContactExist(getName())) {\n addContact();\n } else {\n System.out.println(\"Contact already exists!\");\n }\n break;\n case 2:\n String name = getName();\n if(isContactExist(name)) {\n editDetails(name);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 3:\n String name1 = getName();\n if(isContactExist(name1)) {\n Contacts contact = getContact(name1);\n deleteContact(contact);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 4:\n findContactOptions();\n break;\n default:\n System.out.println(\"Thanks!\");\n isExit = true;\n }\n }\n }",
"public void optionsForSubscriber() throws RemoteException {\r\n Scanner in = new Scanner(System.in);\r\n boolean breakLoop = false;\r\n\r\n do {\r\n System.out.println(\"What would you like to do as a Subscriber:\");\r\n System.out.println(\" 1: Subscribe to a Topic.\");\r\n System.out.println(\" 2: Unsubscribe from a Topic.\");\r\n System.out.println(\" 3: Unsubscribe from all Topics.\");\r\n System.out.println(\" 4: Display subscribed topics.\");\r\n System.out.println(\" 5: View all available topics.\");\r\n System.out.println(\" 6: View all received events.\");\r\n System.out.println(\" 7: Save & Quit.\");\r\n System.out.print(\"Enter an Option: \");\r\n\r\n int choice = in.nextInt();\r\n Topic topic = null;\r\n\r\n\r\n switch (choice) {\r\n case 1: {\r\n topic = findTopic();\r\n if (topic != null) {\r\n subscribe(topic);\r\n }\r\n break;\r\n }\r\n case 2: {\r\n topic = findTopic();\r\n if (topic != null) {\r\n unsubscribe(topic);\r\n }\r\n break;\r\n }\r\n case 3: {\r\n unsubscribe();\r\n break;\r\n }\r\n case 4: {\r\n listSubscribedTopics();\r\n break;\r\n }\r\n case 5: {\r\n try {\r\n ArrayList<Topic> allTopics = server.getTopics();\r\n for (Topic t : allTopics)\r\n System.out.print(t);\r\n } catch (RemoteException e) {\r\n System.out.println(\"Couldn't Connect to Server. Try again\");\r\n }\r\n break;\r\n }\r\n case 6: {\r\n listReceivedEvents();\r\n break;\r\n }\r\n case 7: {\r\n breakLoop = true;\r\n in.close();\r\n saveState();\r\n break;\r\n }\r\n default:\r\n System.out.println(\"Please enter a valid option.\");\r\n }\r\n } while (!breakLoop);\r\n }",
"private void sendEmail() {\n String email = emailInput.getText().toString();\n String title = titleInput.getText().toString();\n String message = messageInput.getText().toString();\n\n if(email.isEmpty() ||title.isEmpty() ||message.isEmpty()){\n Toast.makeText(this, R.string.field_not_empty, Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(!checkEmailPattern(email)){\n Toast.makeText(this,R.string.invalid_email,Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});\n emailIntent.putExtra(Intent.EXTRA_CC, new String[]{CC_CUPIC, CC_BAOTIC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, title);\n emailIntent.putExtra(Intent.EXTRA_TEXT, message);\n\n emailIntent.setType(\"message/rfc822\");\n\n try{\n startActivity(Intent.createChooser(emailIntent,\"\"));\n finish();\n }catch(ActivityNotFoundException ex){\n Toast.makeText(this,R.string.cant_send,Toast.LENGTH_SHORT).show();\n }\n }",
"public void enterEmail() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"Verifying the Email is available or not\");\n\t\tAssert.assertTrue(enterEmail.isDisplayed());\n\t\tenterEmail.sendKeys(BasePage.getCellData(xlsxName, sheetName, 10, 0));\n\n\t}",
"public Message[] receiveEmails(Folder currentFolder) throws MessagingException {\r\n\t\tMessage[] allMessages = currentFolder.getMessages();\r\n\t\tcurrentFolder.close(false);\r\n\t\treturn allMessages;\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tArrayList<CorreoElectronico> correo = new ArrayList<>();\r\n\r\nPath path = Paths.get(\"src/main/resources/emails.txt\");\r\n\r\n try(BufferedReader reader = Files.newBufferedReader(path, Charset.forName(\"UTF-8\"))){ \r\n\r\n String currentLine = null;\r\n\r\n while((currentLine = reader.readLine()) != null){//while there is content on the current line\r\n\r\n \t CorreoElectronico correos = new CorreoElectronico();\r\n \t String[] linea = currentLine.split(\" , \");\r\n \t correos.setDireccion(linea[0]);\r\n \t correos.setAsunto(linea[1]);\r\n \t correo.add(correos);\r\n System.out.println(currentLine); // print the current line\r\n\r\n }\r\n\r\n }catch(IOException ex){\r\n\r\n ex.printStackTrace(); //handle an exception here\r\n\r\n }\r\nEnviadorCorreo enviador = new EnviadorCorreo();\r\nfor (CorreoElectronico coreos: correo) {\r\n\tenviador.enviarCorreo(coreos);\r\n}\r\n\r\n\t}",
"public static void main(String[] args) throws Exception \r\n\t{\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"Drivers\\\\geckodriver.exe\");\r\n\t\tWebDriver driver=new FirefoxDriver();\r\n\t\tdriver.get(\"http://outlook.com\");\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t\t//Identify Signin Button\r\n\t\tWebElement Signin_btn=driver.findElement(By.xpath(\"(//a[contains(.,'Sign in')])[1]\"));\r\n\t\tSignin_btn.click();\r\n\t\t\r\n\t\r\n\t\t//Identify email \r\n\t\tWebElement Email_editbox=driver.findElement(By.xpath(\"//input[@id='i0116']\"));\r\n\t\tEmail_editbox.clear();\r\n\t\tEmail_editbox.sendKeys(\"[email protected]\"); //Entered valid email\r\n\t\t\r\n\t\t//Click Next button\r\n\t\tWebElement Next_btn=driver.findElement(By.xpath(\"//input[contains(@id,'idSIButton9')]\"));\r\n\t\tNext_btn.click();\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t\r\n\t\t//Identify webpage\r\n\t\tWebElement Page=driver.findElement(By.tagName(\"body\"));\r\n\t\tString Page_Visible_text=Page.getText();\r\n\t\tSystem.out.println(Page_Visible_text);\r\n\t\t\r\n\t\t\r\n\t\t//Write decision to verify expected text visible at webpage\r\n\t\tif(Page_Visible_text.contains(\"Enter password\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Testpass, Expected text visible at webapge\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Expected text not visible at webpage\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"[email protected]\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }",
"@Category({ Major.class })\n\t@Test\n\tpublic void gmailSendAndReceiveTest() throws InterruptedException {\n\t\tSignInPage signInPage = WebUtils.gotoSignInPage(driver);\n\t\t// 2. Click to gmail\n\t\tsignInPage.accessGmailPage(driver);\n\t\t// 3. Input user name\n\t\tsignInPage.fillInUsername(driver, \"[email protected]\");\n\t\t// 4. Click next\n\t\tsignInPage.clickNextUser(driver);\n\t\t// 5. Input password\n\t\tSignInPage.fillInPassword(driver, \"nga123456789\");\n\t\t// 6. Click passwordNext\n\t\tEmailHomepage emailHomepage = signInPage.clickNextPass(driver);\n\t\t// 7. verify Inbox\n\t\tAssert.assertTrue(\"Sign in successfully\", driver.findElement(By.partialLinkText(\"Inbox\")).isDisplayed());\n\t\t// Click Compose\n\t\temailHomepage.createEmail(driver);\n\t\t// Fill in recipent\n\t\temailHomepage.inputReceiver(driver, \"[email protected]\");\n\t\t// Fill in subject\n\t\temailHomepage.inputSubject(driver, \"Demo Email\");\n\t\t// Fill in email body\n\t\temailHomepage.inputEmailBody(driver, \"Hello tester! good morning\");\n\t\t// Click Send\n\t\temailHomepage.sendEmail(driver);\n\t\t// Click Inbox\n\t\temailHomepage.clickInbox(driver);\n\t\t// Click email\n\t\tEmailViewPage emailViewPage = emailHomepage.clickNewEmail(driver);\n\t\t// Verify the email subject and email body is correct\n\t\tString actualSubject = emailViewPage.getEmailText(driver);\n\t\tAssert.assertEquals(\"Succeed!\", \"Demo Email\", actualSubject);\n\t\t// 8. Sign Out\n\t\tsignInPage = emailHomepage.signOut(driver);\n\t}",
"public void run() {\n\t\ttry { \n\t\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tPrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n\t\t\t \n\t\t\tString fromServer= null;\n\t\t\tString fromUser = null;\n\n\t\t\twhile(true){\n\t\t\t\t//If the user types \"BACKUP\" will make a file of the messages\n\t\t\t\tif ((fromUser = in.readLine()).equals(\"BACKUP\")){\n\t\t\t\t\tbuffer.add(\"BACKUP\");\n\t\t\t\t\tfor(int i = 0; i < buffer.size(); i++){\n\t\t\t\t\t\tout.println(buffer.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//put whatever the user input to the Server Buffer\n\t\t\t\tbuffer.add(fromUser);\n\n\t\t\t\t//Displaying the option menu\n\t\t\t\tSystem.out.print(\"\\n1. Send Message to all clients\\n\" +\n\t\t\t\t\t\"2. Print message from client\\n\" +\n\t\t\t\t\t\"3. Quit\\n\\n\" + \n\t\t\t\t\t\"Please choice 1, 2, or 3\\n\" +\n\t\t\t\t\t\"Choice: \");\n\t\t\t\tfromServer = stdIn.readLine();\n\t\t\t\tif(fromServer.equals(\"1\")){ \n\t\t\t\t\tout.println(buffer.lastElement());\n\t\t\t\t}\n\t\t\t\telse if(fromServer.equals(\"2\")){\n\t\t\t\t\tSystem.out.println(buffer.lastElement());\n\t\t\t\t}\n\t\t\t\telse if(fromServer.equals(\"3\")){\n\t\t\t\t\tSystem.out.println(\"\\nLeaving the program. Good Bye!\\n\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Options 1~3 Please\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLogger.dump(0, \"Client Exited by force quitting\");\n\t\t\tSystem.exit(1);\n\t\t} catch (NullPointerException e) {\n\t\t\tLogger.dump(0, \"Client Exited\");\n\t\t} \n\t}",
"@Override\n\tpublic void showMailDialog() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tEmployees alice = new Employees(\"Alice\", \"[email protected]\");\n\t\tEmployees bob = new Employees(\"Bob\", \"[email protected]\");\n\t\tEmployees gene = new Employees(\"Gene\", \"[email protected]\");\n\t\t\n\t\t// create an array to hold 3 Employees objects\n\t\tEmployees[] recipients = {alice, bob, gene};\n\t\t\n\t\t// create object for sender of the emails\n\t\tEmployees sender = new Employees(\"Huckster\", \"[email protected]\");\n\t\t\t\t\n\t\t// constructs and sends the messages to the recipients\n\t\tMailMerge merge = new MailMerge(sender);\n\t\t\n\t\tmerge.send(recipients);\n\t}",
"public void onClick(View arg0) {\n\t\t\t\tString emailAddress = \"[email protected]\";\r\n\t\t\t\tString emailSubject = edittextEmailSubject.getText().toString();\r\n\t\t\t\tString emailText = edittextEmailText.getText().toString();\r\n\t\t\t\tString emailAddressList[] = {emailAddress};\r\n\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SEND); \r\n\t\t\t\tintent.setType(\"plain/text\");\r\n\t\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, emailAddressList); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, emailSubject); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_TEXT, emailText); \r\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Choice App to send email:\"));\r\n\t\t\t}",
"public CheckingMails(String proportyFile) {\n\t\tthis.propertyFile = proportyFile;\n\t\tloadProperties(this.propertyFile);\n\t\tsc = new Scanner(System.in);\n\t}",
"private String getEmail(){\n System.out.println(\"Enter The Email Address\");\n return sc.next();\n }",
"public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }",
"public static void main(String[] args) throws IOException {\n\t\tGmailApi api = new GmailApi();\n\t\t\n\t\t//List all messages\n\t\tint pageSize = 5;\n\t\tString nextPageToken = \"-1\";\n\t\t\n\t\tString messages = api.listMessages(pageSize, nextPageToken);\n\t\tSystem.out.println(messages);\n\t\t\n\t\t//List all labels\n\t\tString labels = api.listLabels();\n\t\tSystem.out.println(labels);\n\t\t\n\t\t//Writing labels to csv file\n\t\tCsvWriter csvWriter = new CsvWriter();\n\t\tcsvWriter.writeToCsv(labels);\n\t\t\n\t}",
"public static String inputEmail(String s) {\n while (true) {\n System.out.print(s);\n String string = in.nextLine().trim();\n string = string.replace(\"\\\\s+\", \" \");\n Pattern p = Pattern.compile(\"^[a-z0-9A-Z]+@[a-zA-Z]+(\\\\.[a-zA-Z]+){1,3}+$\");\n if (!string.isEmpty()) { // not empty ~> finish\n if (p.matcher(string).find()) {\n return string;\n } else {\n System.err.println(\"Email must in format \"\n + \"Local-Part(name(.name2)@Domain(domain.something(.domain2.domain3))(max 3 '.'), enter again!\");\n }\n } else { // empty string ~> display error & re-enter\n System.err.println(\"Email can not empty, enter again!\");\n }\n }\n }",
"public static void main(String[] args) {\n\t\tMailingList mailingList = new MailingList();\r\n\r\n\t\t// 2. create observers\r\n\t\tSMSUser smsUser = new SMSUser(mailingList);\r\n\t\tEmailUser emailUser = new EmailUser(mailingList);\r\n\r\n\t\t// 3. register observers\r\n\t\tmailingList.register(emailUser);\r\n\t\tmailingList.register(smsUser);\r\n\t\tSystem.out.println(DELIMITER);\r\n\r\n\t\t// 4. create sender\r\n\t\tUniversityAdministration uniAdmin = new UniversityAdministration(\r\n\t\t\t\tmailingList);\r\n\t\t// 5. send message\r\n\t\tuniAdmin.sendMessage(FROM, MESSAGE_01_SUBJECT, new Date(),\r\n\t\t\t\tMESSAGE_01_BODY);\r\n\t\tSystem.out.println(DELIMITER);\r\n\r\n\t\t// 6. unregister observer (pay attention to 'call back')\r\n\t\tSubject subject = emailUser.getSubject();\r\n\t\tsubject.unregister(emailUser);\r\n\t\tSystem.out.println(DELIMITER);\r\n\r\n\t\t// 7. send another message\r\n\t\tuniAdmin.sendMessage(FROM, MESSAGE_02_SUBJECT, new Date(), null);\r\n\r\n\t}",
"SendEmail() {\t\n\t}",
"public void validateMailAlerts() {\n System.out.println(\"Validating Mail Alerts\");\n boolean mailPasstoCheck = false, mailPassccCheck = false, mailFailtoCheck = false, mailFailccCheck = false;\n\n if (!mailpassto.getText().isEmpty()) {\n\n String[] emailAdd = mailpassto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPasstoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailpasscc.getText().isEmpty()) {\n String[] emailAdd = mailpasscc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPassccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". CC Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailfailto.getText().isEmpty()) {\n String[] emailAdd = mailfailto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailtoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for failed test cases should not be empty.\\n\");\n\n }\n if (!mailfailcc.getText().isEmpty()) {\n String[] emailAdd = mailfailcc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n } else {\n execptionData.append((++exceptionCount) + \".CC Email address for failed test cases should not be empty.\\n\");\n\n }\n\n if (mailPasstoCheck == true && mailPassccCheck == true && mailFailccCheck == true && mailFailtoCheck == true) {\n /*try {\n Properties connectionProperties = new Properties();\n String socketFactory_class = \"javax.net.ssl.SSLSocketFactory\"; //SSL Factory Class\n String mail_smtp_auth = \"true\";\n connectionProperties.put(\"mail.smtp.port\", port);\n connectionProperties.put(\"mail.smtp.socketFactory.port\", socketProperty);\n connectionProperties.put(\"mail.smtp.host\", hostSmtp.getText());\n connectionProperties.put(\"mail.smtp.socketFactory.class\", socketFactory_class);\n connectionProperties.put(\"mail.smtp.auth\", mail_smtp_auth);\n connectionProperties.put(\"mail.smtp.socketFactory.fallback\", \"false\");\n connectionProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n Mail mail = new Mail(\"\");\n mail.createSession(fromMail.getText(), password.getText(), connectionProperties);\n mail.sendEmail(fromMail.getText(), mailpassto.getText(), mailpasscc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");\n mail.sendEmail(fromMail.getText(), mailfailto.getText(), mailfailcc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");*/\n mailAlertsCheck = true;\n /* } catch (IOException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n } catch (MessagingException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n }*/\n } else {\n mailAlertsCheck = false;\n mailPasstoCheck = false;\n mailPassccCheck = false;\n mailFailtoCheck = false;\n mailFailccCheck = false;\n }\n\n }",
"@RequestMapping(\"/allEmails.html\")\n\tpublic String MailList() {\n\t\t\n\t\tif(Email.Email() > 0) {\n\t\t\t//opens the newly created html file\n\t\t\treturn \"allEmails.html\";\n\t\t}\n\t\telse {\n\t\t\treturn \"noEmail.html\";\n\t\t}\n\t}",
"public static boolean getUserChoice() throws IOException{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true){\n\t\t\t//print the message\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Make a choice:\");\n\t\t\tSystem.out.println(\"1. Encrypt a file.\");\n\t\t\tSystem.out.println(\"2. Decrypt a file.\");\n\t\t\tSystem.out.println(\"3. Quit.\");\n\t\t\tSystem.out.print(\"[1/2/3]: \");\n\n\t\t\t//perform the action the user requests\n\t\t\ttry {\n\t\t\t\tint userChoice = Integer.parseInt(in.readLine());\n\t\t\t\tif (userChoice == 1) //user chooses \"Encrypt a file.\"\n\t\t\t\t\treturn true;\n\t\t\t\telse if (userChoice == 2) //user chooses \"Decrypt a file.\"\n\t\t\t\t\treturn false;\n\t\t\t\telse if (userChoice == 3) //user chooses \"Quit.\"\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Invalid choice.\"); //catch invalid input\n\t\t\t} catch (NumberFormatException e){\n\t\t\t\tSystem.out.println(\"Invalid choice.\"); //invalid input here too\n\t\t\t}\n\t\t}\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String url = \"/Welcome.jsp\";\n String emailMessage = request.getParameter(\"emailMessage\");\n \n ArrayList<String> emailList = UserDB.getEmailList();\n if (emailList != null){\n for (String email:emailList){\n sendEmail(email, emailMessage);\n }\n }\n \n this.getServletContext().getRequestDispatcher(url).forward(request, response);\n }",
"public void sendInterest(View view) {\n Log.i(\"Send email\", \"\");\n String[] TO = {agentEmail};\n String[] CC = {\"\"};\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);\n emailIntent.putExtra(Intent.EXTRA_CC, CC);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"You have an interested buyer for \" + globals.chosenProp);\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"User: \" + globals.loggedUser + \" has shown interest in \" + globals.chosenProp + \". Respond to them via email to arrange a showing or to exchange information.\");\n\n try {\n startActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n finish();\n Log.i(\"Finished sending email...\", \"\");\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(property_view_standard.this, \"There is no email client installed.\", Toast.LENGTH_SHORT).show();\n }\n }",
"void sendMail(String receivers) throws MessagingException;",
"public static void run() {\n try {\n //recreating tables added to update csv data without application restart\n new SqlUtility().setConnection().dropAllTables().createPersonTable().createRecipientTable();\n new CsvPersonParser().run();\n new CsvReсipientParser().run();\n\n List<Person> list;\n list = new SqlUtility().setConnection().grubData();\n String result = \"\";\n result = ListToMessage.converter(list);\n if(!\"\".equals(result)) {\n NotificationSender.sender(result, email, pass, addressList);\n }\n } catch (ClassNotFoundException e){e.printStackTrace();}\n catch (SQLException ee){ee.printStackTrace();}\n catch (ParseException eee) {eee.printStackTrace();}\n\n }",
"@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}",
"public static void main(String[] args) throws IOException {\n\n\t\tString getName=\"\";\n\t\tString getNumber=\"\";\n\t\tString getCity=\"\";\n\t\tString getConfirmation;\n\t\tint count = 1;\n\t\tScanner scan = new Scanner(System.in);\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"C:\\\\Users\\\\Issic\\\\Desktop\\\\phonebook.txt\"));\n\t\tString[][] array = new String[7][7];\n\t\t\n\t\tarray[0][0] = \"Name \";\n\t\tarray[0][1] = \"Phone \";\n\t\tarray[0][2] = \"City \";\n\t\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"This is a phonebook application.\");\n\t\t\tSystem.out.println(\"Please enter the required information for five contacts.\");\n\t\t\t\tgetConfirmation = \"\";\n\t\t\tdo {\n\t\t\t\tboolean nameLoop= false;\n\t\t\t\tboolean numberLoop= false;\n\t\t\t\tboolean cityLoop= false;\n\t\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"Name?\");\n\t\t\t\t\tgetName = scan.nextLine();\n\t\t\t\t\tinputException(getName);\n\t\t\t\t\t\n\t\t\t\t\t}catch(InputException e){\n\t\t\t\t\t\tSystem.out.println(\"You have to enter a name.\");\n\t\t\t\t\t}\n\t\t\t\t\tif(!getName.isEmpty()) {\n\t\t\t\t\t\tnameLoop = true;\n\t\t\t\t\t}\n\t\t\t\t}while(nameLoop == false);\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(\"Phone Number?\");\n\t\t\t\t\t\tgetNumber = scan.nextLine();\n\t\t\t\t\t\tinputException(getNumber);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}catch(InputException e){\n\t\t\t\t\t\t\tSystem.out.println(\"You have to enter a phone number.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!getNumber.isEmpty()) {\n\t\t\t\t\t\t\tnumberLoop = true;\n\t\t\t\t\t\t}\n\t\t\t\t}while(numberLoop == false);\n\t\t\t \n\t\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(\"City?\");\n\t\t\t\t\t\tgetCity = scan.nextLine();\n\t\t\t\t\t\tinputException(getCity);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}catch(InputException e){\n\t\t\t\t\t\t\tSystem.out.println(\"You have to enter a City.\");\n\t\t\t\t\t\t\t//loop = true;\n\t\t\t\t\t \t//continue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!getCity.isEmpty()) {\n\t\t\t\t\t\t\tcityLoop = true;\n\t\t\t\t\t\t}\n\t\t\t\t}while(cityLoop == false);\n\t\t\t\t\n\t\t\t System.out.println(\"You have entered, Name: \" + getName + \" Phone Number: \" + getNumber + \" City: \" + getCity);\n\t\t\t System.out.println(\"Confirm entry.(Y for yes)\");\n\t\t\t getConfirmation = scan.nextLine();\n\t\t\t \n\t\t\t}while(!getConfirmation.equalsIgnoreCase(\"y\"));\n\t\t\t\n\t\t\tgetName = String.format(\"%-10s\", getName);\n\t\t\tgetNumber = String.format(\"%-15s\", getNumber);\n\t\t\tgetCity = String.format(\"%-10s\", getCity);\n\t\t\tarray[count][0] = getName;\n\t\t array[count][1] = getNumber;\n\t\t array[count][2] = getCity;\n\t\t \n\t\t\t//array = enterInformation(getName, getNumber, getCity, count);\n\t\t\tcount++;\n\t\t}while(count <= 5);\n\t\t\n\t\tfor(int i = 0; i < 6; i++){\n\t for(int j = 0; j < 3; j++){\n\t \tif(j == 2) {\n\t \t\tSystem.out.print(array[i][j] + \"\\r\\n\");\n\t\t writer.write(array[i][j] + \"\\r\\n\");\n\t \t}else {\n\t \t\tSystem.out.print(array[i][j]);\n\t\t writer.write(array[i][j]);\n\t \t}\n//\t System.out.print(array[i][j] + \"\\r\\n\");\n//\t writer.write(array[i][j] + \"\\r\\n\");\n\t }\n\t \n\t }\n\t\t\n\t\twriter.close();\n\t\tscan.close();\n\t}",
"public void runOJSSJobRecruiter(JobRecruiter jobRecruiter)\n {\n int option;\n String answer = \"\";\n while(true)\n {\n Scanner respon = new Scanner(System.in);\n boolean valid = false;\n \n while(!valid)\n {\n menu.jobRecruiterDisplay(jobRecruiter);\n answer = respon.nextLine().trim();\n valid = validation.integerMenuValidation(answer);\n }\n \n option = Integer.parseInt(answer);\n \n switch (option)\n {\n case 1:\n manageJobs(jobRecruiter);break;\n \n case 2:\n System.out.println(\"\\t\\t| These are your jobs: \");\n for(Job job: jobList)\n {\n if (jobRecruiter.getUserName().equals(job.getJobRecruiterUsername()))\n System.out.println(job.getTitle());\n \n }\n System.out.println(\"\\t\\t| Please enter the title of the job you want to see: \");\n String sTitle = respon.nextLine().trim();\n System.out.println(\"\\t\\t| These job seekers have applied for the job: \");\n for(Job job : jobList)\n {\n if (jobRecruiter.getUserName().equalsIgnoreCase(job.getJobRecruiterUsername()) && sTitle.equalsIgnoreCase(job.getTitle()))\n for (String seeker : job.getJobSeekerUsername())\n {\n getJobSeeker(seeker).displayJobSeeker();\n System.out.println(\"\\n\");\n }\n }\n System.out.println(\"\\t\\t| Enter the job seeker's username to send an invitation for interview:\");\n System.out.println(\"\\t\\t| Or just press enter to cancel. Input:\");\n String iUsername = respon.nextLine().trim();\n for (JobSeeker seek : jobSeekerList)\n {\n if (iUsername.equalsIgnoreCase(seek.getUserName()))\n {\n String invitation = \"Job recruiter: \" + jobRecruiter.getUserName() + \"invites you for the interview of the job: \" + sTitle;\n seek.addNotification(invitation);\n }\n }\n break;\n \n case 3:\n manageProfile(jobRecruiter.getUserName()); break;\n \n case 4:\n logOut();break;\n \n default:\n System.out.println(\"\\n\\t\\tERROR : Invalid Input. Please enter a valid number (1-4) \\n \");\n }\n \n }\n }"
] |
[
"0.6711862",
"0.6158451",
"0.61487097",
"0.608667",
"0.593718",
"0.58610505",
"0.58351135",
"0.57647884",
"0.5624125",
"0.5493502",
"0.5477828",
"0.54661167",
"0.5452993",
"0.54454225",
"0.54413474",
"0.5434539",
"0.5434167",
"0.5433344",
"0.54280937",
"0.54186803",
"0.5386452",
"0.5375321",
"0.5370852",
"0.5368187",
"0.5361057",
"0.53567827",
"0.53476894",
"0.53118837",
"0.5310743",
"0.5309738",
"0.5302179",
"0.5299905",
"0.5289731",
"0.528732",
"0.52831084",
"0.52799684",
"0.52697575",
"0.5245338",
"0.52315927",
"0.52149343",
"0.52109164",
"0.5195901",
"0.51915425",
"0.51914126",
"0.51578814",
"0.5156834",
"0.51547563",
"0.51528025",
"0.5149754",
"0.5145921",
"0.5129979",
"0.51038444",
"0.51013684",
"0.5100287",
"0.5097477",
"0.5096369",
"0.5087787",
"0.50877523",
"0.50856245",
"0.5084671",
"0.5082304",
"0.5075935",
"0.50756735",
"0.50695735",
"0.5064687",
"0.5054374",
"0.50400305",
"0.5039898",
"0.5031558",
"0.5027049",
"0.50266975",
"0.50221163",
"0.50078166",
"0.5006528",
"0.49978667",
"0.49910843",
"0.49872157",
"0.49760196",
"0.49731845",
"0.4960497",
"0.49538678",
"0.49491978",
"0.49471816",
"0.49442306",
"0.4940779",
"0.49344",
"0.49336284",
"0.49311942",
"0.49287263",
"0.49222782",
"0.4905753",
"0.49049327",
"0.49029994",
"0.49026644",
"0.48929313",
"0.48893645",
"0.48890543",
"0.48889765",
"0.48879018",
"0.48821774"
] |
0.7291974
|
0
|
Variable que guarda el marcador Funcion que ejecuta el mapa cuando la aplicacion se abre
|
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_maps);
// Obtain the SupportMapFragment and get notified when the map is ready to be used.
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
this.inflater = getLayoutInflater();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setupMapa(final String idCliente) {\n\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_MAPA_UBICACION, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n //Log.d(TAG, \"Login Response: \" + response.toString());\n //hideDialog();\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n\n //obtengo la respuesta del servidor relacionada al contacto, si existe o no\n String Latitud = jObj.getString(\"Latitud\");\n String Longitud = jObj.getString(\"Longitud\");\n String Fecha = jObj.getString(\"Fecha\");\n\n //parseo los datos\n double x_lat = Double.parseDouble(Latitud.toString());\n double x_long = Double.parseDouble(Longitud.toString());\n\n //obtengo los datos de mi ubicacion\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n try {\n List<Address> addresses = geoCoder.getFromLocation(x_lat, x_long, 1);\n\n\n if (addresses.size() > 0){\n for (int i=0; i<addresses.get(0).getMaxAddressLineIndex();i++) {\n direccionCompleta += addresses.get(0).getAddressLine(i) + \" \";\n }\n }\n\n }catch (Exception e1) {\n e1.printStackTrace();\n }\n\n //\n CENTER = new LatLng(x_lat, x_long);\n\n //mapa\n map = mapView.getMap();\n if (map == null) {\n Toast.makeText(getActivity(), \"Map Fragment Not Found or no Map in it\", Toast.LENGTH_SHORT).show();\n }\n\n //muestro la ubiccion\n map.clear();\n\n final LatLng MELBOURNE = new LatLng(x_lat, x_long);\n Marker melbourne = map.addMarker(new MarkerOptions()\n .position(MELBOURNE)\n .title(\"Ultima Ubicacion Conocida\")\n .snippet(direccionCompleta)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker_icon_2)));\n\n melbourne.showInfoWindow();\n\n txtFecha.setText(\"Ultima actualizacion el \"+Fecha);\n\n map.moveCamera(CameraUpdateFactory.zoomTo(16));\n if (CENTER != null) {\n map.animateCamera(CameraUpdateFactory.newLatLng(CENTER), 1750, null);\n }\n\n\n map.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n map.getUiSettings().setZoomControlsEnabled(true);\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getActivity(), errorMsg, Toast.LENGTH_LONG).show();\n //logerror = errorMsg;\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getActivity(), \"Json error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n\n\n }\n }) {\n\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"idCliente\", idCliente);\n\n\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n\n\n }",
"private void returnDriverLocationstoMaps() {\n }",
"@Override\n\tpublic void run() {\n\t\tfinal MapOptions options = MapOptions.create(); //Dhmiourgeia antikeimenou me Factory (xwris constructor)\n\t\t//Default na fenetai xarths apo doruforo (Hybrid)\n\t\toptions.setMapTypeId(MapTypeId.HYBRID);\n\t\toptions.setZoom(Map.GOOGLE_MAPS_ZOOM);\n\t\t//Dhmiourgei ton xarth me tis panw ruthmiseis kai to vazei sto mapDiv\n\t\tgoogleMap = GoogleMap.create(map, options);\n\t\t//Otan o xrhsths kanei click epanw ston xarth\n\t\tfinal MarkerOptions markerOptions = MarkerOptions.create();\n\t\tmarkerOptions.setMap(googleMap);\n\t\tmarker = Marker.create(markerOptions);\n\t\t//psaxnei antikeimeno gia na kentrarei o xarths kai na fortwsei h forma\n\t\tfinal String id = Window.Location.getParameter(\"id\");\n\t\tif (id == null) {\n\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(\n\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.noMediaIdSpecified()));\n\t\t\t//redirect sto map\n\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t} else {\n\t\t\t//Klhsh tou MEDIA_SERVICE gia na paroume to antikeimeno (metadedomena)\n\t\t\tMEDIA_SERVICE.getMedia(id, new AsyncCallback<Media>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(final Throwable throwable) {\n\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(throwable.getMessage()));\n\t\t\t\t\t//redirect sto map\n\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(final Media media) {\n\t\t\t\t\tif (media == null) {\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.mediaNotFound()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t//o xrhsths vlepei to media giati einai diko tou 'h einai diaxeirisths 'h to media einai public\n\t\t\t\t\t} else if (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN) || media.isPublic()) {\n\t\t\t\t\t\t//Gemisma tou div content analoga ton tupo\n\t\t\t\t\t\tswitch (MediaType.getMediaType(media.getType())) {\n\t\t\t\t\t\tcase APPLICATION:\n\t\t\t\t\t\t\tfinal ImageElement application = Document.get().createImageElement();\n\t\t\t\t\t\t\tapplication.setSrc(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.APPLICATION.name().toLowerCase()));\n\t\t\t\t\t\t\tapplication.setAlt(media.getTitle());\n\t\t\t\t\t\t\tapplication.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\tapplication.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(application);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase AUDIO:\n\t\t\t\t\t\t\tfinal AudioElement audio = Document.get().createAudioElement();\n\t\t\t\t\t\t\taudio.setControls(true);\n\t\t\t\t\t\t\taudio.setPreload(AudioElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\t//url sto opoio vriskontai ta dedomena tou antikeimenou. Ta travaei o browser\n\t\t\t\t\t\t\t//me xrhsh tou media servlet\n\t\t\t\t\t\t\tfinal SourceElement audioSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\taudioSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\taudioSource.setType(media.getType());\n\t\t\t\t\t\t\taudio.appendChild(audioSource);\n\t\t\t\t\t\t\tcontent.appendChild(audio);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase IMAGE:\n\t\t\t\t\t\t\tfinal ImageElement image = Document.get().createImageElement();\n\t\t\t\t\t\t\timage.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\timage.setAlt(media.getTitle());\n\t\t\t\t\t\t\timage.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\timage.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(image);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TEXT:\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @see http://www.gwtproject.org/doc/latest/tutorial/JSON.html#http\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tfinal ParagraphElement text = Document.get().createPElement();\n\t\t\t\t\t\t\ttext.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\ttext.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\t//scrollbar gia to text\n\t\t\t\t\t\t\ttext.getStyle().setOverflow(Style.Overflow.SCROLL);\n\t\t\t\t\t\t\tcontent.appendChild(text);\n\t\t\t\t\t\t\t//Zhtaei asugxrona to periexomeno enos url\n\t\t\t\t\t\t\tfinal RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,\n\t\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\trequestBuilder.sendRequest(null, new RequestCallback() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onError(final Request request, final Throwable throwable) {\n\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(throwable.getMessage()));\n\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onResponseReceived(final Request request, final Response response) {\n\t\t\t\t\t\t\t\t\t\tif (response.getStatusCode() == Response.SC_OK) {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou fernei to response se me to keimeno pros anazhthsh\n\t\t\t\t\t\t\t\t\t\t\ttext.setInnerText(response.getText());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou efere to response se periptwsh sfalmatos (getText())\n\t\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(response.getText()));\n\t\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} catch (final RequestException e) {\n\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(e.getMessage()));\n\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase VIDEO:\n\t\t\t\t\t\t\tfinal VideoElement video = Document.get().createVideoElement();\n\t\t\t\t\t\t\tvideo.setPoster(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.VIDEO.name().toLowerCase()));\n\t\t\t\t\t\t\tvideo.setControls(true);\n\t\t\t\t\t\t\tvideo.setPreload(VideoElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\tvideo.setWidth(Double.valueOf(CONTENT_WIDTH).intValue());\n\t\t\t\t\t\t\tvideo.setHeight(Double.valueOf(CONTENT_HEIGHT).intValue());\n\t\t\t\t\t\t\tfinal SourceElement videoSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\tvideoSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\tvideoSource.setType(media.getType());\n\t\t\t\t\t\t\tvideo.appendChild(videoSource);\n\t\t\t\t\t\t\tcontent.appendChild(video);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//O current user peirazei to media an einai diko tou 'h an einai diaxeirisths\n\t\t\t\t\t\tif (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN)) {\n\t\t\t\t\t\t\tedit.setEnabled(true);\n\t\t\t\t\t\t\tdelete.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitle.setText(media.getTitle());\n\t\t\t\t\t\t//prosthikh html (keimeno kai eikona) stin selida\n\t\t\t\t\t\ttype.setHTML(List.TYPE.getValue(media));\n\t\t\t\t\t\t//analoga ton tupo dialegetai to katallhlo eikonidio\n\t\t\t\t\t\tmarker.setIcon(MarkerImage.create(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tMediaType.getMediaType(media.getType()).name().toLowerCase())));\n\t\t\t\t\t\tsize.setText(List.SIZE.getValue(media));\n\t\t\t\t\t\tduration.setText(List.DURATION.getValue(media));\n\t\t\t\t\t\tuser.setText(List.USER.getValue(media));\n\t\t\t\t\t\tcreated.setText(List.CREATED.getValue(media));\n\t\t\t\t\t\tedited.setText(List.EDITED.getValue(media));\n\t\t\t\t\t\tpublik.setHTML(List.PUBLIC.getValue(media));\n\t\t\t\t\t\tlatitudeLongitude.setText(\"(\" + List.LATITUDE.getValue(media) + \", \" + List.LONGITUDE.getValue(media) + \")\");\n\t\t\t\t\t\tfinal LatLng latLng = LatLng.create(media.getLatitude().doubleValue(), media.getLongitude().doubleValue());\n\t\t\t\t\t\tgoogleMap.setCenter(latLng);\n\t\t\t\t\t\tmarker.setPosition(latLng);\n\t\t\t\t\t} else { //Vrethike to media alla einai private allounou\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.accessDenied()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tURL.encodeQueryString(LocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }",
"public Maps()\n\t{\t\n\t\tsetOnMapReadyHandler( new MapReadyHandler() {\n\t\t\t@Override\n\t\t\tpublic void onMapReady(MapStatus status)\n\t\t\t{\n\t\t\t\tmodelo = new MVCModelo();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tmodelo.cargarInfo();\n\t\t\t\t\tArregloDinamico<Coordenadas> aux = modelo.sacarCoordenadasVertices();\n\t\t\t\t\tLatLng[] rta = new LatLng[aux.darTamano()];\n\t\t\t\t\tfor(int i=0; i< aux.darTamano();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tCoordenadas actual = aux.darElementoPos(i);\n\t\t\t\t\t\trta[i] = new LatLng(actual.darLatitud(), actual.darLongitud());\n\t\t\t\t\t}\n\t\t\t\t\tlocations = rta;\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tif ( status == MapStatus.MAP_STATUS_OK )\n\t\t\t\t\t{\n\t\t\t\t\t\tmap = getMap();\n\n\t\t\t\t\t\t// Configuracion de localizaciones intermedias del path (circulos)\n\t\t\t\t\t\tCircleOptions middleLocOpt= new CircleOptions(); \n\t\t\t\t\t\tmiddleLocOpt.setFillColor(\"#00FF00\"); // color de relleno\n\t\t\t\t\t\tmiddleLocOpt.setFillOpacity(0.5);\n\t\t\t\t\t\tmiddleLocOpt.setStrokeWeight(1.0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i=0; i<locations.length;i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCircle middleLoc1 = new Circle(map);\n\t\t\t\t\t\t\tmiddleLoc1.setOptions(middleLocOpt);\n\t\t\t\t\t\t\tmiddleLoc1.setCenter(locations[i]); \n\t\t\t\t\t\t\tmiddleLoc1.setRadius(20); //Radio del circulo\n\t\t\t\t\t\t}\n\n\t\t\t \t //Configuracion de la linea del camino\n\t\t\t \t PolylineOptions pathOpt = new PolylineOptions();\n\t\t\t \t pathOpt.setStrokeColor(\"#FFFF00\");\t // color de linea\t\n\t\t\t \t pathOpt.setStrokeOpacity(1.75);\n\t\t\t \t pathOpt.setStrokeWeight(1.5);\n\t\t\t \t pathOpt.setGeodesic(false);\n\t\t\t \t \n\t\t\t \t Polyline path = new Polyline(map); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \t path.setOptions(pathOpt); \n\t\t\t \t path.setPath(locations);\n\t\t\t\t\t\tinitMap( map );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t);\n\n\n\t}",
"public void ejecutaMetodo() {\n\t\r\n}",
"public void getMapAsync(org.xms.g.maps.OnMapReadyCallback param0) {\n if (wrapper) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.MapView) this.getHInstance()).getMapAsync(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())))\");\n ((com.huawei.hms.maps.MapView) this.getHInstance()).getMapAsync(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.MapView) this.getGInstance()).getMapAsync(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())))\");\n ((com.google.android.gms.maps.MapView) this.getGInstance()).getMapAsync(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())));\n }\n } else {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((HImpl) ((com.huawei.hms.maps.MapView) this.getHInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())))\");\n ((HImpl) ((com.huawei.hms.maps.MapView) this.getHInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((GImpl) ((com.google.android.gms.maps.MapView) this.getGInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())))\");\n ((GImpl) ((com.google.android.gms.maps.MapView) this.getGInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())));\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n\n // get the runner's path (serialized)\n String latLng = getIntent().getStringExtra(Session.LAT_LNG_EXTRA);\n List<LatLng> path = Session.getPathLatLng(latLng);\n\n if (path.size() < 2) {\n return;\n }\n\n addMarkers(path);\n addPolyLines(path);\n\n // set the center map fab here\n mCenterMapFab.setOnClickListener(view -> positionMapAtStart(path));\n\n positionMapAtStart(path);\n }",
"private void actionRoute(final GoogleMap googleMap){\n mMap = googleMap;\n PengajianApi pengajianApi = ServiceGenerator.getPengajianApi();\n Call<JadwalPengajianResponse> responseCall = pengajianApi.jadwalPengajian();\n responseCall.enqueue(new Callback<JadwalPengajianResponse>() {\n @Override\n public void onResponse(Call<JadwalPengajianResponse> call, Response<JadwalPengajianResponse> response) {\n if (response.isSuccessful()){\n// // tampung response ke variable\n\n int total= response.body().getMenuPengajians().size();\n\n for (int a=0;a<total;a++){\n Double model1 = Double.valueOf(response.body().getMenuPengajians().get(a).getLatitude());\n Double model2 = Double.valueOf(response.body().getMenuPengajians().get(a).getLongitude());\n MarkerOptions markerOptions = new MarkerOptions();\n LatLng latLng = new LatLng(model1,model2);\n markerOptions.position(latLng);\n Marker m = mMap.addMarker(markerOptions);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11));\n// menuPengajians.add(model);\n }\n// JadwalPengajianResponse item = new JadwalPengajianResponse(menuPengajians);\n// jadwalPengajianResponses.add(item);\n////\n\n////\n\n }\n\n }\n\n @Override\n public void onFailure(Call<JadwalPengajianResponse> call, Throwable t) {\n\n }\n });\n\n\n\n }",
"public int askMap();",
"@Override\n public void onMapLoaded() {\n mGoogleMap.animateCamera(cu);\n }",
"static void jmap() {\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (servicesOK() /*&& initMap()*/) {\n try {\n\n /*MarkerOptions options = new MarkerOptions()\n .title(getString(R.string.landon_hotel) + \", \" + city)\n .position(new LatLng(lat, lng));\n mMap.addMarker(options);*/\n //onMapReady(mMap);\n\n\n LatLng zoom = new LatLng(-2.982996, 104.732918);\n\n// mMap.addMarker(new MarkerOptions().position(zoom).title(\"Marker in Palembang\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n mMap.getUiSettings().setAllGesturesEnabled(true);\n mMap.getUiSettings().setRotateGesturesEnabled(false);\n mMap.getUiSettings().setTiltGesturesEnabled(false);\n mMap.getUiSettings().setCompassEnabled(true);\n//\n mMap.setTrafficEnabled(true);\n\n Log.i(\"CEKDATA\",\"BEGINNING\");\n mMap.moveCamera(CameraUpdateFactory.newLatLng(zoom));\n mMap.animateCamera(CameraUpdateFactory.zoomTo(14), 2000, null);\n Log.i(\"CEKDATA\",\"Finishing\");\n\n } /*catch (IOException e) {\n Toast.makeText(this, getString(R.string.error_finding_hotel), Toast.LENGTH_SHORT).show();\n }*/ catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();\n Log.d(\"Check this->\", e.getMessage());\n }\n\n\n api.bukan_parkir(googleMap, this);\n\n }\n }",
"public void onModuleLoad() {\n\t\tMaps.loadMapsApi(\"notsupplied\", \"2\", false, new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tbuildUi();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n miUbicacion();\n\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-12.125108, -77.024879);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Isil Miraflores\"));\n\n // Add a marker in Sydney and move the camera\n LatLng Hamnegra = new LatLng(-12.1712825, -76.9307592);\n mMap.addMarker(new MarkerOptions().position(Hamnegra).title(\"La Hamburguesa Negra\"));\n\n //Marcador de prueba\n LatLng prueba = new LatLng(-13.125108, -70.024879);\n markerPrueba = googleMap.addMarker(new MarkerOptions().position(prueba).title(\"Prueba Random\"));\n\n //CAMARA\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n //CLICK EN EL MARCADOR\n googleMap.setOnMarkerClickListener(this);\n\n\n }",
"@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}",
"public void askMap() throws Exception{\n // Platform.runLater( () -> firstPage.closePrimaryStage());\n chooseMap = new ChooseMap();\n chooseMap.setRemoteController(senderRemoteController);\n Platform.runLater(\n () -> {\n // Update UI here.\n try {\n chooseMap.start(new Stage());\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n );\n\n }",
"private void fetchLastLocation() {\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n Toast.makeText(MapActivity.this,\"fetchLastLocation method 2\",Toast.LENGTH_SHORT).show();\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n currentLoc = location;\n preLati = currentLoc.getLatitude();\n preLogi = currentLoc.getLongitude();\n\n\n SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager().\n findFragmentById(R.id.map);\n\n supportMapFragment.getMapAsync(MapActivity.this);//should this activity class implement\n // OnMapReadyCsllback interface and should\n // implement all method\n // i think getMapAsync call the onMapReady\n\n }\n });\n task.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Failed with\"+e.toString(),Toast.LENGTH_SHORT).show();\n Log.e(TAG, \"onFailure: \"+e.toString() );\n }\n });\n }",
"public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }",
"private void ini_MapPaks()\r\n\t{\r\n\r\n\t}",
"public interface MapTask extends Task {\n\t\n\tpublic void map(MapRunner mapRunner, String toDo);\n}",
"public void onStartup()\n/* 359: */ {\n/* 360:438 */ super.onStartup();\n/* 361: */ \n/* 362:440 */ this.mapPanel.addMouseListener(new MouseAdapter()\n/* 363: */ {\n/* 364: */ public void mouseClicked(MouseEvent e)\n/* 365: */ {\n/* 366:443 */ if (e.getButton() == 1)\n/* 367: */ {\n/* 368:444 */ Point p = e.getPoint();\n/* 369:445 */ if ((TileGIS.this.mapPanel.courtesyBounds != null) && (TileGIS.this.mapPanel.courtesyBounds.contains(p)))\n/* 370: */ {\n/* 371:446 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 372: */ }\n/* 373:447 */ else if ((TileGIS.this.mapPanel.courtesyImgBounds != null) && (TileGIS.this.mapPanel.courtesyImgBounds.contains(p)))\n/* 374: */ {\n/* 375:448 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 376: */ }\n/* 377: */ else\n/* 378: */ {\n/* 379:451 */ Point mP = TileGIS.this.mapPanel.panelToMap(p);\n/* 380:452 */ double lon = MercatorProj.XtoLon(mP.x, TileGIS.this.mapPanel.zoom);\n/* 381:453 */ double lat = MercatorProj.YtoLat(mP.y, TileGIS.this.mapPanel.zoom);\n/* 382:454 */ TileGIS.this.onClick(lat, lon);\n/* 383: */ }\n/* 384: */ }\n/* 385: */ }\n/* 386:458 */ });\n/* 387:459 */ getPresentation().getPanel().addContainerListener(new ContainerListener()\n/* 388: */ {\n/* 389: */ public void componentAdded(ContainerEvent e)\n/* 390: */ {\n/* 391:461 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 392:462 */ TileGIS.this.getPresentation().getPanel().add(TileGIS.this.mapPanel);\n/* 393: */ }\n/* 394: */ }\n/* 395: */ \n/* 396: */ public void componentRemoved(ContainerEvent e)\n/* 397: */ {\n/* 398:467 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 399:468 */ TileGIS.this.getPresentation().getPanel().remove(TileGIS.this.mapPanel);\n/* 400: */ }\n/* 401: */ }\n/* 402:472 */ });\n/* 403:473 */ this.placeholder.getJComponent().addComponentListener(new ComponentListener()\n/* 404: */ {\n/* 405: */ public void componentShown(ComponentEvent e) {}\n/* 406: */ \n/* 407: */ public void componentHidden(ComponentEvent e) {}\n/* 408: */ \n/* 409: */ public void componentResized(ComponentEvent e)\n/* 410: */ {\n/* 411:478 */ TileGIS.this.mapPanel.setSize(TileGIS.this.placeholder.getJComponent().getSize());\n/* 412: */ }\n/* 413: */ \n/* 414: */ public void componentMoved(ComponentEvent e)\n/* 415: */ {\n/* 416:482 */ TileGIS.this.mapPanel.setLocation(TileGIS.this.placeholder.getJComponent().getLocation());\n/* 417: */ }\n/* 418: */ });\n/* 419: */ }",
"public void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n ((SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.farmMap)).getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n setUpMap();\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n Log.v(\"contourrrr\", \"\" + contour);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n if (mandiArray.size() < 1) {\n if (mMap != null) {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 12.0f));\n }\n }\n\n\n ArrayAdapter<String> chooseYourFarmSpiner = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item, allFarmsArray);\n chooseYourFarmSpiner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n farmSpinner.setAdapter(chooseYourFarmSpiner);\n\n farmSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n if (i > 0) {\n String conto = allFarmsContour.get(i - 1);\n if (conto != null) {\n if (mMap != null) {\n mMap.clear();\n\n }\n points = new ArrayList<LatLng>();\n List<String> l_List = Arrays.asList(conto.split(\"-\"));\n Double lat1 = null;\n Double lon1 =null;\n\n /* Double lat1 = Double.valueOf(l_List.get(0));\n Double lon1 = Double.valueOf(l_List.get(l_List.size() - 1));\n points.add(new LatLng(lat1, lon1));*/\n\n for (int j = 0; j < l_List.size(); j++) {\n String currentString = l_List.get(j);\n if (currentString != null) {\n String[] separated = currentString.split(\",\");\n if (separated.length>1) {\n String la = separated[0];\n String lo = separated[1];\n\n lat1=Double.parseDouble(la);\n lon1=Double.parseDouble(lo);\n\n points.add(new LatLng(Double.valueOf(la), Double.valueOf(lo)));\n\n Log.v(\"points\",la+\",\"+lo);\n }\n }\n }\n\n if (lat1 != null) {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat1, lon1), 19.0f));\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",lat1+\"\");\n ed.putString(\"lon\",lon1+\"\");\n ed.apply();\n\n } else {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.valueOf(latitude), Double.valueOf(longitude)), 13.0f));\n Log.v(\"latlon2\", lat1 + \"---\" + lon1);\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",latitude+\"\");\n ed.putString(\"lon\",longitude+\"\");\n ed.apply();\n }\n if (mMap != null) {\n mMap.clear();\n setUpMap();\n }\n }\n } else {\n\n if (mMap != null) {\n mMap.clear();\n\n }\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n\n // Setting a custom info window adapter for the google map\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n // Use default InfoWindow frame\n @Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n // Defines the contents of the InfoWindow\n @Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }\n });\n\n\n }\n });\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n\n }\n }\n }",
"void btnLoadMap();",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"startMap\");\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n mMap = googleMap;\n requestLocationPermision();\n requestMarkers();\n Log.d(TAG, \"Map listo\");\n }",
"public void elementosMapa() {\n\t\t\n\t\tHeroes heroe = (Heroes) ven.getHeroe();\n\t\t\n\t\tif(heroe.getPosX() >= 250 && heroe.getPosX() <= 302 && heroe.getPosY() >= 208 && heroe.getPosY() <= 255 && pregunta1 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Cuántas transformaciones sufre Freezer?\" + \"\\n\" + \"a) 4\" + \"\\n\" + \"b) 5\" + \"\\n\" + \"c) 2\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\n\t\t\t\tpregunta1 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera :D\");\n\t\t\t\tven.modificarEsfera(2);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"a\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(281); \n\t\t\t\theroe.setPosY(311);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1148 && heroe.getPosX() <= 1202 && heroe.getPosY() >= 33 && heroe.getPosY() <= 84 && pregunta2 == false) {\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién logró liberar la espada Z?\" + \"\\n\" + \"a) Goten\" + \"\\n\" + \"b) Goku\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\n\t\t\t\tpregunta2 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera\");\n\t\t\t\tven.modificarEsfera(4);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"a\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(1280);\n\t\t\t\theroe.setPosY(119);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 50 && heroe.getPosX() <= 103 && heroe.getPosY() >= 558 && heroe.getPosY() <= 607 && pregunta3 == false) {\n\t\t\t\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién es hijo de Paragus?\" + \"\\n\" + \"a) Bardock\" + \"\\n\" + \"b) Broly\" + \"\\n\" + \"c) Freezer\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpregunta3 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera :D\");\n\t\t\t\tven.modificarEsfera(6);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"b\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(135);\n\t\t\t\theroe.setPosY(593);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\telse if(heroe.getPosX() >= 70 && heroe.getPosX() <= 130 && heroe.getPosY() >= 1 && heroe.getPosY() <= 55 && pregunta4 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién se convirtío primero en SSJ2?\" + \"\\n\" + \"a) Goku\" + \"\\n\" + \"b) Trunks\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\n\t\t\t\tpregunta4 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, has aumentado el poder de tus ataques :D\");\n\t\t\t\theroe.setAtaque1(20);\n\t\t\t\theroe.setAtaque2(20);\n\t\t\t\theroe.setAtaque3(20);\n\t\t\t\theroe.setAtaqueEspecial(20);\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"c\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(208); \n\t\t\t\theroe.setPosY(47);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\n\t\telse if(heroe.getPosX() >= 585 && heroe.getPosX() <= 640 && heroe.getPosY() >= 258 && heroe.getPosY() <= 310 && pregunta5 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién mantuvo su cola hasta la muerte?\" + \"\\n\" + \"a) Vegeta\" + \"\\n\" + \"b) Bardock\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\tpregunta5 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, has aumentado el poder de tus ataques :D\");\n\t\t\t\theroe.setAtaque1(20);\n\t\t\t\theroe.setAtaque2(20);\n\t\t\t\theroe.setAtaque3(20);\n\t\t\t\theroe.setAtaqueEspecial(20);\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"b\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(577); \n\t\t\t\theroe.setPosY(356);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 396 && heroe.getPosX() <= 444 && heroe.getPosY() >= 230 && heroe.getPosY()<= 300 && Broly == false) {\n\t\t\t\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Broly\");\n\t\t\tvillanoActual = \"Broly\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Broly: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla3.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(414);\n\t\t\t\theroe.setPosY(352);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(414);\n\t\t\t\theroe.setPosY(352);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1235 && heroe.getPosX() <= 1295 && heroe.getPosY() >= 290 && heroe.getPosY() <= 360 && Freezer == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Freezer\");\n\t\t\tvillanoActual = \"Freezer\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Freezer: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla2.png\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(1279);\n\t\t\t\theroe.setPosY(229);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(1279);\n\t\t\t\theroe.setPosY(229);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1015 && heroe.getPosX() <= 1067 && heroe.getPosY() >= 7 && heroe.getPosY() <= 57 && MajinB == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Majin boo\");\n\t\t\tvillanoActual = \"Majin boo\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Majin boo: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla4.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(1020);\n\t\t\t\theroe.setPosY(106);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(1020);\n\t\t\t\theroe.setPosY(106);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else if(heroe.getPosX() >= 222 && heroe.getPosX() <= 294 && heroe.getPosY() >= 480 && heroe.getPosY() <= 560 && Cell == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Cell\");\n\t\t\tvillanoActual = \"Cell\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Cell: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(364);\n\t\t\t\theroe.setPosY(583);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(364);\n\t\t\t\theroe.setPosY(583);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}else if(heroe.getPosX() >= 900 && heroe.getPosX() <= 988 && heroe.getPosY() >= 314 && heroe.getPosY() <= 421) {\n\t\t\t\n\t\t\theroe.setPosX(956);\n\t\t\theroe.setPosY(484);\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Qué deseas hacer \" + ven.getNombreUsuario() + \"?\" + \"\\n\" + \"a) Guardar puntaje\" + \"\\n\" + \"b) Ver información de los personajes\" + \"\\n\" + \"c) Ver puntajes\");\n\t\t\tif(respuesta.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\n\t\t\t\tven.guardarPuntaje();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if(respuesta.equalsIgnoreCase(\"c\")){\n\t\t\t\tven.cargarPuntajes();\n\t\t\t\tven.visualizarPuntajes();\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\tString per = JOptionPane.showInputDialog(this, \"¿De qué personaje deseas ver la información \" + ven.getNombreUsuario() + \"\\n\" + \"a) Goku\" + \"\\n\" + \"b) Roshi\" + \"\\n\" + \"c) Vegeta\" + \"\\n\" + \"d) Freezer\" + \"\\n\" + \"e) Cell\" + \"\\n\" + \"f) Majin boo\" + \"\\n\" + \"g) Broly\");\n\t\t\t\t\n\t\t\t\tif(per.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Goku\");\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Roshi\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Vegeta\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"d\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Freezer\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"e\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Cell\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"f\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Majin boo\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"g\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Broly\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new CaracterEquivocadoException();\n\t\t\t\t} catch (CaracterEquivocadoException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n enableMyLocation();\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMapLongClickListener(this);\n\n Button loca = (Button) findViewById(R.id.btnlocali);\n Button car = (Button) findViewById(R.id.btncar);\n\n loca.setOnClickListener(this);\n car.setOnClickListener(this);\n\n loca.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n miPosicion();\n }\n });\n\n }",
"@Override\n public void onMapReady(final GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.googleMap.getUiSettings().setZoomControlsEnabled(true);\n this.googleMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {\n @Override\n public void onCameraChange(CameraPosition cameraPosition) {\n boolean markersVisibility = false;\n if(cameraPosition.zoom>minZoomLevel){\n// googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(cameraPosition.target, minZoomLevel));\n markersVisibility = true;\n }\n for(Marker marker : mapMarkers){\n marker.setVisible(markersVisibility);\n }\n }\n });\n this.googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(25.0449695d, 121.5087531d), minZoomLevel));\n// this.mapItemClusterManager = new ClusterManager<>(this,this.googleMap);\n// this.googleMap.setOnCameraChangeListener(this.mapItemClusterManager);\n// this.googleMap.setOnMarkerClickListener(this.mapItemClusterManager);\n// this.googleMap.setOnInfoWindowClickListener(this.mapItemClusterManager);\n// this.mapItemClusterManager.setRenderer(new DefaultClusterRenderer<ClusterItem>(this,this.googleMap,this.mapItemClusterManager){\n// @Override\n// protected boolean shouldRenderAsCluster(Cluster<ClusterItem> cluster) {\n// return cluster.getSize()>20;\n// }\n// });\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n assetReadHandler.sendEmptyMessage(0);\n BufferedReader busInfoFileBufferReader = new BufferedReader(new InputStreamReader(getAssets().open(\"GetStopLocation.json\")));\n JSONObject busInfoRawJsonObject = new JSONObject(busInfoFileBufferReader.readLine());\n Message message = new Message();\n message.obj = busInfoRawJsonObject;\n assetReadHandler.sendEmptyMessage(1);\n busStateJJsonArrayHandler.sendMessage(message);\n } catch (JSONException e){\n Log.e(\"y3k\", e.getMessage());\n e.printStackTrace();\n } catch (IOException e1){\n Log.e(\"y3k\", e1.getMessage());\n e1.printStackTrace();\n }\n }\n }).start();\n\n// LatLng sydney = new LatLng(-34, 151);\n// googleMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"public void MapFragment() {}",
"@Override\n public Navigation run() throws Exception {\n Map<String, Object> input = null;\n Key cafeKey=null;\n String returnKey = null;\n \n //投稿ボタンを押した場合\n if(request.getParameter(\"dataPost\") != null){\n \n input = new RequestMap(request);\n \n //店舗名称をセット\n \n \n //エリア系のデータを取得\n String geohash4 = null;\n String geohash5 = null;\n String geohash6 = null;\n String geohash8 = null;\n String geohashAll = null;\n String geohashAround = null;\n String storeFullName = null;\n \n \n if(input.get(\"storeName\") != null && \n !\"\".equals(input.get(\"storeName\")) && \n !\"(null)\".equals(input.get(\"storeName\")) &&\n input.get(\"storeFlag\") != null && \n !\"\".equals(input.get(\"storeFlag\")) && \n !\"(null)\".equals(input.get(\"storeFlag\"))\n ){\n String storeMainName = CafeUtil.createStoreMainName(EscapeUtil.toHtmlStringForObject(input.get(\"storeFlag\")).trim());\n String storeSubName = EscapeUtil.toHtmlStringForObject(input.get(\"storeName\")).trim();\n storeFullName = storeMainName+\" \"+storeSubName;\n input.put(\"storeFullName\", storeFullName);\n }\n \n //住所から緯度経度を取得\n double lat = 0;\n double lng = 0;\n //時間を取得\n String nowTime = DateTimeUtil.getDateTimeString();\n if(request.getParameter(\"storeAddress\") != null && request.getParameter(\"storeAddress\") != \"\"){\n //エリア系データを取得して、DBにいるか問い合わせ\n String[] areaAry = AreaHandle.feedGeoHash(request.getParameter(\"storeAddress\"));\n if(areaAry != null){\n if(areaAry.length == 7){\n geohashAll = areaAry[0];\n geohash4 = areaAry[6];\n geohash5 = areaAry[5];\n geohash6 = areaAry[1];\n geohash8 = areaAry[2];\n lat = Double.valueOf(areaAry[3]);\n lng = Double.valueOf(areaAry[4]);\n }\n }\n //geohashの周りの値を取得\n geohashAround = CafeUtil.geohashAround(geohash6);\n \n input.put(\"lat\", String.valueOf(lat));\n input.put(\"lon\", String.valueOf(lng));\n input.put(\"geohash4\", geohash4);\n input.put(\"geohash5\", geohash5);\n input.put(\"geohash6\", geohash6);\n input.put(\"geohash8\", geohash8);\n input.put(\"geohashAround\", geohashAround);\n input.put(\"geohashAll\", geohashAll);\n input.put(\"deleteFlag\", \"0\");\n input.put(\"updateDateTime\", nowTime);\n }\n \n \n //更新の場合\n if(request.getParameter(\"key\") != null && request.getParameter(\"key\") != \"\"){\n \n //input.put(\"iine\", \"0\");\n input.put(\"key\",request.getParameter(\"key\"));\n //DBを更新\n cafeKey = service.updateData(input);\n }else{\n //フォームのパラメータを取得\n //String StoreName = (String )createStoreName(request.getParameter(\"storeName\"),request.getParameter(\"storeFlag\"));\n //input.put(\"storeName\", StoreName);\n \n //イイネ\n /*\n if(request.getParameter(\"iine\") != null && request.getParameter(\"iine\") != \"\"){\n input.put(\"iine\", 1);\n }\n */\n \n //DBに投入\n cafeKey = service.postData(input);\n \n }\n }\n \n //削除の場合\n if(request.getParameter(\"delete\") != null && request.getParameter(\"delete\") != \"\"){\n input = new RequestMap(request);\n input.put(\"deleteFlag\", \"1\");\n input.put(\"key\",request.getParameter(\"key\"));\n //DBを更新\n cafeKey = service.deleteData(input);\n }\n if(cafeKey != null){\n returnKey = String.valueOf(cafeKey.getId());\n } \n requestScope(\"returnKey\", returnKey);\n //nullがセットされないため対策\n input = notNullinput(input);\n requestScope(\"reqParam\", input);\n return forward(\"index.vm\");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n if (!multi) {\n LatLng localEntrega = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(localEntrega).title(\"Local de Entrega\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(localEntrega, 14));\n } else {\n myapp = (EntregasApp)getApplicationContext();\n manager = new Manager(myapp);\n LatLng primeiraEntrega;\n\n primeiraEntrega = new LatLng(0,0);\n\n int i = 0;\n List<Documento> documentos = manager.findDocumentoByDataRomaneio(myapp.getDate());\n\n for (Documento documento : documentos ){\n LatLng localEntrega;\n if (documento.getDestinatario().getLatitude()!=null){\n i = i + 1;\n latitude = Double.valueOf(documento.getDestinatario().getLatitude());\n longitude = Double.valueOf(documento.getDestinatario().getLongitude());\n\n localEntrega = new LatLng(latitude, longitude);\n\n if(i==1){\n primeiraEntrega = new LatLng(latitude,longitude);\n }\n\n mMap.addMarker(new MarkerOptions().position(localEntrega)\n .title(documento.getDestinatario().getNome()));\n }\n }\n\n mMap.setMyLocationEnabled(true);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(primeiraEntrega, 10));\n\n // Check if we were successful in obtaining the map.\n /*\n if (mMap != null) {\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location arg0) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.truck);\n mMap.addMarker(new MarkerOptions().position(new LatLng(arg0.getLatitude(), arg0.getLongitude())).title(\"Minha Localização\").icon(icon));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(arg0.getLatitude(), arg0.getLongitude()), 6));\n }\n });\n\n\n }\n\n */\n\n }\n\n }",
"@Override\n public void onMapReady(MapboxMap mapboxMap) {\n map = mapboxMap;\n map.addOnMapClickListener(this);\n enableLocation();\n //LatLng point = null;\n //setRoute(point);\n\n }",
"public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}",
"String ejecutarAccion();",
"private void agregarMarcador(double lat, double lon, Meteo maMeteo) {\n if(mMap != null){\n if(marker != null){\n marker.setPosition(new LatLng(lat, lon));\n marker.setTag(maMeteo);\n }else{\n marker = mMap.addMarker(new MarkerOptions().position(new LatLng(lat,lon)));\n marker.setTag(maMeteo);\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(lat, lon)));\n }\n }",
"public Mapa(String ficheroMapa, String ficheroCamino) throws IOException\n{\n leerMapa(ficheroMapa);\n\n if(ficheroCamino != null)\n leerCamino(ficheroCamino);\n}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tJSONArray jsa=new JSONArray();\r\n\t\t\t\tJSONObject j=new JSONObject();\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tj.put(\"userID\", AppConfig.LoginUser.getUserid());\r\n\t\t\t\t\tj.put(\"key\", key);\r\n\t\t\t\t\tj.put(\"condition\", condition);\r\n\t\t\t\t\t \r\n\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tjsa.put(j);\r\n\t\t\t\tXtResultFactory xtFac=new XtResultFactory();\r\n\t\t\t\txtFac.setJsonStr(QufeiSocketClient.getInstance().send(\"Getyanshoudan\", jsa));\r\n\t\t\t\tjson=xtFac.createResult();\r\n\t\t\t\tif(json==null){\r\n\t\t\t\t\tmsg.what=0;\r\n\t\t\t\t\tmsg.sendToTarget();\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\tjsonArrayStr=json.getJsonStr();\r\n\t\t\t\t\r\n\t\t\t\tif(jsonArrayStr==null){\r\n\t\t\t\t\tmsg.what=0;\r\n\t\t\t\t\tmsg.sendToTarget();\r\n\t\t\t\t}\r\n\t\t\t\tdata=xtFac.getMapList();\r\n\t\t\t\tif(data!=null){\r\n\t\t\t\t\tmsg.what=1;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmsg.what=0;\r\n\t\t\t\t}\r\n\t\t\t\tmsg.sendToTarget();\r\n\r\n\t\t\t}",
"@Override\n public boolean onMapClick(@NonNull LatLng point) {\n if (doceLugares()) {\n Toast.makeText(navegacionOptimizada.this,\"solo 12\", Toast.LENGTH_LONG).show();\n } else {\n style = mapboxMap.getStyle();\n if (style != null) {\n anadirLugar(style, intermedi3);\n anadirPunto(intermedi3);\n obtenerROptimi(style, stops);\n\n }\n }\n return true;\n }",
"private void m7632a() {\n Exception e;\n if (!this.f6418o) {\n this.f6406c.removeAnnotations();\n this.f6417n = true;\n Icon fromDrawable = IconFactory.getInstance(this).fromDrawable(getResources().getDrawable(C1373R.drawable.ic_grid_oval_icon));\n for (GridDTO latLng1 : this.f6414k) {\n this.f6415l.add((MarkerOptions) ((MarkerOptions) new MarkerOptions().icon(fromDrawable)).position(latLng1.getLatLng1()));\n }\n try {\n C2568n.a(this.f6406c, this.f6415l);\n } catch (ExecutionException e2) {\n e = e2;\n e.printStackTrace();\n } catch (InterruptedException e3) {\n e = e3;\n e.printStackTrace();\n }\n }\n }",
"public void principal() {\r\n int opciones = 0;\r\n do {\r\n opciones = op.capInt(\"CLINICA LA EVALUACIÓN\\n\\n\"\r\n + \"1. Gestionar Pacientes.\\n\"\r\n + \"2. Gestionar Médicos.\\n\"\r\n + \"3. Gestionar Historial Clínico.\\n\"\r\n + \"4. Salir\");\r\n switch (opciones) {\r\n case 1:\r\n gesPaciente();\r\n break;\r\n case 2:\r\n gesMedico();\r\n break;\r\n case 3:\r\n gesHistoria();\r\n break;\r\n case 4:\r\n op.mensaje(\"Hasta la proxima\");\r\n break;\r\n default:\r\n op.mensajeError(\"La opcione Ingresada no es valida\");\r\n break;\r\n }\r\n } while (opciones != 4);\r\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}",
"@Override\n public void onFinish() {\n if (!mMapConfiguration.isStaticMap()) {\n mMapDataLoader.onMapCameraChange();\n }\n\n // After the animation, if we want a static map, we take a snapshot and display it\n // We put the flag static to true to disable all map features\n if (mMapConfiguration != null && mMap != null && mMapConfiguration.isStaticMap()) {\n\n // We need to re-trigger the map loaded callback to wait for the map to completely load after the animation\n mMap.setOnMapLoadedCallback(new OnMapLoadedCallback() {\n\n @Override\n public void onMapLoaded() {\n\n mMap.snapshot(new SnapshotReadyCallback() {\n\n @Override\n public void onSnapshotReady(Bitmap arg0) {\n // Flag static to true\n mIsMapStatic = true;\n\n // Creating an imageview with the snapshot\n ImageView imageView = new ImageView(getActivity());\n imageView.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,\n LayoutParams.WRAP_CONTENT));\n imageView.setImageBitmap(arg0);\n\n // Removing all the views (dynamic map) and adding the imageview\n assert getView() != null;\n ((ViewGroup) getView()).removeAllViews();\n ((ViewGroup) getView()).addView(imageView);\n\n mMapDataLoader.onMapCameraChange();\n }\n });\n }\n });\n\n }\n }",
"public void makeMap(){\n //taken out of onCreate() to avoid the null array issue\n MaintenanceMapView.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(final MapboxMap mapboxMap) {\n\n IconFactory iconFactory = IconFactory.getInstance(MaintenanceMapActivity.this);\n\n //no slope rating associated (site id = 0)\n\n //Credits(2)\n Drawable iconDrawable = ContextCompat.getDrawable(MaintenanceMapActivity.this, R.mipmap.ic_mmwhite);\n Icon whiteIcon = iconFactory.fromDrawable(iconDrawable);\n\n //slope rating associated\n\n //Credits(1)\n Drawable iconDrawable2 = ContextCompat.getDrawable(MaintenanceMapActivity.this, R.mipmap.ic_mmblue);\n Icon blueIcon = iconFactory.fromDrawable(iconDrawable2);\n\n //for all of the sites....\n for(int k = 0; k<finalSites.length; k++) {\n Icon chosenIcon = blueIcon; //automatically set to be associated\n //need to convert lat/long values from string -> double to be used to place site\n double latitude = Double.parseDouble(finalSites[k][2]);\n double longitude = Double.parseDouble(finalSites[k][3]);\n //no slope rating associated\n if(finalSites[k][1].equals(\"0\")){\n chosenIcon = whiteIcon;\n // else yes slope rating associated\n }\n\n //String finalScore = finalSites[k][4];\n //add a new marker\n mapboxMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n //set title as site_id\n .title(finalSites[k][1])\n .setIcon(chosenIcon)\n //.snippet(\"Code\" + finalSites[k][4]));\n //set snippet as id\n .snippet(finalSites[k][0]));\n //.icon(icon0));\n\n }\n\n //long click on the map\n mapboxMap.setOnMapLongClickListener(new MapboxMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(@NonNull LatLng point) {\n //add a new marker to create a new maintenance form\n latitude = String.valueOf(point.getLatitude());\n longitude = String.valueOf(point.getLongitude());\n mapboxMap.addMarker(new MarkerOptions()\n .position(point)\n .title(\"New Maintenance Form\")\n .snippet(\"Click to add site\")\n );\n\n\n }\n\n });\n //long click on info window on existing site\n mapboxMap.setOnInfoWindowLongClickListener(new MapboxMap.OnInfoWindowLongClickListener() {\n @Override\n public void onInfoWindowLongClick(Marker marker) {\n //go to the maintenance form....fill if necessary\n if (marker.getTitle().equals(\"New Maintenance Form\")){\n newOld = false; //don't have to do anything.....\n }else{\n //newOld = true;\n load_id=marker.getSnippet();\n }\n //pull up the maintenance form\n Intent intent = new Intent(MaintenanceMapActivity.this, MaintenanceActivity.class);\n intent.putExtra(\"latitude\", latitude );\n intent.putExtra(\"longitude\",longitude);\n startActivity(intent);\n }\n }\n );\n }\n\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Storage.map = googleMap;\n if(checkPermissions()){\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission. ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n if (Storage.map != null) {\n Storage.map.setMyLocationEnabled(true);\n }\n }\n }\n\n LocationManager locationManager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n android.location.Location loc = locationManager.getLastKnownLocation(locationManager\n .getBestProvider(criteria, false));\n if(loc != null){\n LatLng actualLoc = new LatLng(loc.getLatitude(),loc.getLongitude());\n Storage.addToArray(actualLoc);\n }\n else{\n Storage.path();\n }\n /* Storage.addToArray(santaCruz);\n Storage.addToArray(new LatLng(40,-120));\n if(l!=null) {\n Log.e(\"Real\", \" found location\" );\n Storage.addToArray(new LatLng(l.getLatitude(), l.getLongitude()));\n\n }*/\n // Add a marker in Santa Cruz and move the camera\n LatLng santaCruz = new LatLng(36.997213, -122.056893);\n Storage.map.addMarker(new MarkerOptions().position(santaCruz).title(\"Marker in Santa Cruz\"));\n Storage.map.moveCamera(CameraUpdateFactory.newLatLngZoom(santaCruz, 14.5f));\n Graphics.startDraw(Storage.map);\n Storage.recursiveBackgroundCheck = new RecursiveBackgroundCheck(locationManager,this);\n if(loc != null) {\n Storage.recursiveBackgroundCheck.execute(locationManager);\n }\n }",
"private km() {\n /*\n r14 = this;\n r14.<init>()\n android.app.Application r0 = com.autonavi.amap.app.AMapAppGlobal.getApplication()\n long r1 = java.lang.System.currentTimeMillis()\n com.amap.bundle.mapstorage.MapSharePreference r3 = new com.amap.bundle.mapstorage.MapSharePreference\n java.lang.String r4 = \"GenID\"\n r3.<init>(r4)\n java.lang.String r4 = \"genID\"\n java.lang.String r5 = \"\"\n java.lang.String r4 = r3.getStringValue(r4, r5)\n r14.a = r4\n java.lang.String r4 = r14.a\n boolean r4 = android.text.TextUtils.isEmpty(r4)\n if (r4 == 0) goto L_0x01d4\n r4 = 0\n java.io.File r5 = new java.io.File // Catch:{ Throwable -> 0x018a, all -> 0x0185 }\n java.io.File r6 = r0.getFilesDir() // Catch:{ Throwable -> 0x018a, all -> 0x0185 }\n java.lang.String r7 = \"GenID.lck\"\n r5.<init>(r6, r7) // Catch:{ Throwable -> 0x018a, all -> 0x0185 }\n java.io.FileOutputStream r6 = new java.io.FileOutputStream // Catch:{ Throwable -> 0x0182, all -> 0x017f }\n r6.<init>(r5) // Catch:{ Throwable -> 0x0182, all -> 0x017f }\n java.nio.channels.FileChannel r7 = r6.getChannel() // Catch:{ Throwable -> 0x017d }\n java.nio.channels.FileLock r7 = r7.lock() // Catch:{ Throwable -> 0x017d }\n java.lang.String r4 = \"MP_GenID\"\n android.content.SharedPreferences r4 = com.amap.bundle.mapstorage.MPSharedPreferences.a(r0, r4) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r8 = \"genID\"\n java.lang.String r9 = \"\"\n java.lang.String r8 = r4.getString(r8, r9) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r14.a = r8 // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r8 = r14.a // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n boolean r8 = android.text.TextUtils.isEmpty(r8) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n if (r8 == 0) goto L_0x013a\n java.lang.StringBuilder r8 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r8.<init>() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r9 = \"gen\"\n r8.append(r9) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r0 = b(r0) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n boolean r9 = android.text.TextUtils.isEmpty(r0) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n if (r9 == 0) goto L_0x006c\n java.lang.String r0 = \"\"\n goto L_0x0072\n L_0x006c:\n r9 = 16\n java.lang.String r0 = b(r0, r9) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n L_0x0072:\n long r9 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r9 = java.lang.Long.toHexString(r9) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r10 = 11\n java.lang.String r9 = b(r9, r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.util.Random r10 = new java.util.Random // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r10.<init>() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r11 = 15\n int r10 = r10.nextInt(r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r9 = a(r9, r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n boolean r11 = android.text.TextUtils.isEmpty(r0) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n if (r11 == 0) goto L_0x00cd\n java.util.Random r0 = new java.util.Random // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r0.<init>() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n long r11 = r0.nextLong() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r0 = java.lang.Long.toHexString(r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r11 = 8\n java.lang.String r0 = b(r0, r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n long r12 = java.lang.System.nanoTime() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r12 = java.lang.Long.toHexString(r12) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r11 = b(r12, r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.StringBuilder r12 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r12.<init>() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r12.append(r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r12.append(r0) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r0 = r12.toString() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r0 = a(r0, r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r11 = \"1\"\n r8.append(r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n goto L_0x00d6\n L_0x00cd:\n java.lang.String r0 = a(r0, r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r11 = \"2\"\n r8.append(r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n L_0x00d6:\n java.lang.String r10 = java.lang.Integer.toHexString(r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r11 = 1\n java.lang.String r10 = b(r10, r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r8.append(r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r10 = android.os.Build.MODEL // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n int r10 = r10.hashCode() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n int r10 = r10 % 255\n int r10 = java.lang.Math.abs(r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r10 = java.lang.Integer.toHexString(r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r11 = 2\n java.lang.String r10 = b(r10, r11) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r8.append(r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.StringBuilder r10 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r10.<init>() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r10.append(r9) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r10.append(r0) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r10 = r10.toString() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r10 = a(r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r8.append(r10) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r8.append(r9) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r8.append(r0) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r0 = r8.toString() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r14.a = r0 // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r0 = r14.a // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n boolean r0 = android.text.TextUtils.isEmpty(r0) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n if (r0 != 0) goto L_0x013a\n android.content.SharedPreferences$Editor r0 = r4.edit() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r4 = \"genID\"\n java.lang.String r8 = r14.a // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n android.content.SharedPreferences$Editor r0 = r0.putString(r4, r8) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r0.commit() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r0 = \"genID\"\n java.lang.String r4 = r14.a // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r3.putStringValue(r0, r4) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n L_0x013a:\n java.lang.String r0 = \"paas.blutils\"\n java.lang.String r3 = \"GenID\"\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r8 = \"generate ID: \"\n r4.<init>(r8) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r8 = r14.a // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n if (r8 != 0) goto L_0x014c\n java.lang.String r8 = \"null\"\n goto L_0x014e\n L_0x014c:\n java.lang.String r8 = r14.a // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n L_0x014e:\n r4.append(r8) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r8 = \", costTime: \"\n r4.append(r8) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n long r8 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n r10 = 0\n long r8 = r8 - r1\n r4.append(r8) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n java.lang.String r1 = r4.toString() // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n com.amap.bundle.logs.AMapLog.info(r0, r3, r1) // Catch:{ Throwable -> 0x017a, all -> 0x0178 }\n if (r7 == 0) goto L_0x016b\n r7.release() // Catch:{ IOException -> 0x016b }\n L_0x016b:\n r6.close() // Catch:{ IOException -> 0x016e }\n L_0x016e:\n boolean r0 = r5.exists()\n if (r0 == 0) goto L_0x01d4\n r5.delete()\n return\n L_0x0178:\n r0 = move-exception\n goto L_0x01be\n L_0x017a:\n r0 = move-exception\n r4 = r7\n goto L_0x018d\n L_0x017d:\n r0 = move-exception\n goto L_0x018d\n L_0x017f:\n r0 = move-exception\n r6 = r4\n goto L_0x0188\n L_0x0182:\n r0 = move-exception\n r6 = r4\n goto L_0x018d\n L_0x0185:\n r0 = move-exception\n r5 = r4\n r6 = r5\n L_0x0188:\n r7 = r6\n goto L_0x01be\n L_0x018a:\n r0 = move-exception\n r5 = r4\n r6 = r5\n L_0x018d:\n java.lang.String r1 = \"paas.blutils\"\n java.lang.String r2 = \"GenID\"\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ all -> 0x01bc }\n java.lang.String r7 = \"init error: \"\n r3.<init>(r7) // Catch:{ all -> 0x01bc }\n java.lang.String r0 = r0.getLocalizedMessage() // Catch:{ all -> 0x01bc }\n r3.append(r0) // Catch:{ all -> 0x01bc }\n java.lang.String r0 = r3.toString() // Catch:{ all -> 0x01bc }\n com.amap.bundle.logs.AMapLog.error(r1, r2, r0) // Catch:{ all -> 0x01bc }\n if (r4 == 0) goto L_0x01ab\n r4.release() // Catch:{ IOException -> 0x01ab }\n L_0x01ab:\n if (r6 == 0) goto L_0x01b0\n r6.close() // Catch:{ IOException -> 0x01b0 }\n L_0x01b0:\n if (r5 == 0) goto L_0x01d4\n boolean r0 = r5.exists()\n if (r0 == 0) goto L_0x01d4\n r5.delete()\n return\n L_0x01bc:\n r0 = move-exception\n r7 = r4\n L_0x01be:\n if (r7 == 0) goto L_0x01c3\n r7.release() // Catch:{ IOException -> 0x01c3 }\n L_0x01c3:\n if (r6 == 0) goto L_0x01c8\n r6.close() // Catch:{ IOException -> 0x01c8 }\n L_0x01c8:\n if (r5 == 0) goto L_0x01d3\n boolean r1 = r5.exists()\n if (r1 == 0) goto L_0x01d3\n r5.delete()\n L_0x01d3:\n throw r0\n L_0x01d4:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.km.<init>():void\");\n }",
"public interface Mapper {\n /**\n * execute the mapping\n * @param owner owner object\n * @param map map to map to\n * @param packageIsKey if the package is to be the key for the map\n * @throws BuildException in case of emergency\n */\n void execute(ProjectComponent owner, HashMap map, boolean packageIsKey) throws BuildException;\n}",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(LAT_CENTER,LONG_CENTER) , 14.0f) );\n mMap.setOnMapClickListener(this);\n FloatingActionButton buttonCancel = (FloatingActionButton) findViewById(R.id.resetButton);\n buttonCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mMap.clear();\n pointsCounter = 0;\n buttonStart.setVisibility(View.GONE);\n }\n }\n\n );\n buttonStart = (FloatingActionButton) findViewById(R.id.startButton);\n buttonStart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n requestPaths(start, end);\n }\n }\n\n );\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n //Enable interactions with the google map\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n if(!partnerLocs) {\n Log.d(\"GO TO INTI :\", \"!!!!\");\n init(); //initialize components\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n }\n mMap.setOnMarkerClickListener(this);\n\n if(showMyLoc || partnerLocs){\n loadMarkers();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n markerClicked.showInfoWindow();\n }\n else{\n loadMarkers(); //change to loadPartnerMarkers() later\n// mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n// markerClicked.showInfoWindow();\n }\n }",
"public void act() \n {\n if(getY()>=30 && !cambia)\n {\n direccion = -1;\n }\n else\n {\n cambia = true;\n }\n if(getY() <= getWorld().getHeight()-30 && cambia)\n {\n direccion = 1;\n }\n else\n {\n cambia = false;\n }\n \n setLocation(getX(),getY()+(velocidad*direccion));\n reglas();\n ataque();\n \n \n \n }",
"public abstract void bootArchitecture(boolean emptyMMap);",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mGeocoder = new Geocoder(this, Locale.getDefault());\n\n updateScreenLoc(movement[0]);\n\n loadCrimes(movement[0]);\n //Start MockLocationManager and inject first point\n turnOnLocationManager();\n updateLocation(movement[0]);\n updateRadiusCircle();\n\n\n }",
"private void cargarDatosParaMapa() {\r\n\tpd = ProgressDialog.show(ListaRutasActivity.this, \"\",\r\n\t\t\"Cargando Datos...\", true);\r\n\r\n\tThread hiloDibujar = new Thread(new Runnable() {\r\n\r\n\t public void run() {\r\n\t\tArrayList<Puntos> listaPuntos;\r\n\t\tArrayList<Paradas> listaParadas;\r\n\r\n\t\ttry {\r\n\t\t mapa = new Intent(ListaRutasActivity.this,\r\n\t\t\t ViewMapaActivity.class);\r\n\t\t listaPuntos = new ConsultarServer().getPuntosRuta(idRuta);\r\n\t\t listaParadas = new ConsultarServer().getParadasRuta(idRuta,\r\n\t\t\t strTipoRuta);\r\n\t\t mapa.putParcelableArrayListExtra(\"listaPuntos\", listaPuntos);\r\n\t\t mapa.putParcelableArrayListExtra(\"listaParadas\",\r\n\t\t\t listaParadas);\r\n\r\n\t\t handler.sendEmptyMessage(2);\r\n\r\n\t\t} catch (SocketException e) {\r\n\t\t mensajeErrorConexion();\r\n\t\t} catch (IOException e) {\r\n\t\t mensajeErrorConexion();\r\n\t\t}\r\n\t }\r\n\t});\r\n\r\n\thiloDibujar.start();\r\n }",
"private void initMapEngine() {\n String path = new File(m_activity.getExternalFilesDir(null), \".here-map-data\")\n .getAbsolutePath();\n // This method will throw IllegalArgumentException if provided path is not writable\n com.here.android.mpa.common.MapSettings.setDiskCacheRootPath(path);\n\n MapEngine.getInstance().init(new ApplicationContext(m_activity), new OnEngineInitListener() {\n @Override\n public void onEngineInitializationCompleted(Error error) {\n if (error == Error.NONE) {\n /*\n * Similar to other HERE Android SDK objects, the MapLoader can only be\n * instantiated after the MapEngine has been initialized successfully.\n */\n getMapPackages();\n } else {\n Log.e(TAG, \"Failed to initialize MapEngine: \" + error);\n new AlertDialog.Builder(m_activity).setMessage(\n \"Error : \" + error.name() + \"\\n\\n\" + error.getDetails())\n .setTitle(R.string.engine_init_error)\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n m_activity.finish();\n }\n }).create().show();\n }\n }\n });\n }",
"@Override\n protected void onStart() {\n super.onStart();\n top10_MPV_map.onStart();\n }",
"private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n //boton de ir a localizacion actual, no se muestra si el usuario no dio permiso de usar localizacion del dispositivo\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(false);\n }\n else\n mMap.setMyLocationEnabled(true);\n\n //controles de zoom e inclinacion de camara con dos dedos\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setTiltGesturesEnabled(true);\n //la vista se centra en el centro de Peru\n Object centroPeru = CameraUpdateFactory.newLatLngZoom(new LatLng(-9.190207, -75.015111), 4.8F);\n mMap.animateCamera((CameraUpdate)centroPeru,1000,null);\n\n googleMap.setOnMapClickListener(new GoogleMap.OnMapClickListener()\n {\n public void onMapClick(LatLng paramAnonymousLatLng)\n {\n mMap.clear();\n MarkerOptions localMarkerOptions = new MarkerOptions().position(new LatLng(paramAnonymousLatLng.latitude, paramAnonymousLatLng.longitude)).title(\"Marcador\");\n mMap.addMarker(localMarkerOptions);\n lat = paramAnonymousLatLng.latitude;\n lng = paramAnonymousLatLng.longitude;\n }\n });\n\n\n //LLAMAS A LA BD, RECOLECTAS LOS DATOS, DENTRO DEL FOR mMap.addMarker PARA CADA UNO\n //FirebaseDatabase.getInstance();\n\n }",
"private void startMapCreater() {\n\t\tNavigator navi = new Navigator(pilot);\n\t\tnavi.addWaypoint(0,0);\n\t\tnavi.addWaypoint(0,5000);\n\t\tBehavior forward = new Forward(navi);\n\t\tBehavior ultrasonic = new UltrasonicSensor(ultrasonicSensorAdaptor,pilot, sonicWheel,dis,dos,navi);\n\t\tBehavior stopEverything = new StopRobot(Button.ESCAPE);\n\t\tBehavior[] behaiverArray = {forward, ultrasonic, stopEverything};\n\t\tarb = new Arbitrator(behaiverArray);\n\t\t\n\t arb.go();\n\t\t\n\t}",
"@Override\n public void run() {\n ((GPSDelegate)delegate).cambioLocalizacion(gps.getLastLocation());\n }",
"@Override\r\n\tpublic String ExecPassStationFunction(HashMap<String, Object> hsmap) {\n\t\ttry\r\n\t\t{\r\n\t\t\tIMService imservice = new IMService();\r\n\t\t\tString vin = hsmap.get(FunctionConstants.PARAMETER_TYPE_VIN).toString();\r\n\t\t\tOrder order = imservice.getOrderByName(vin);\r\n\t\t\tString station = hsmap.get(FunctionConstants.PARAMETER_TYPE_STATION).toString();\r\n\t\t\tString entryTime = hsmap.get(FunctionConstants.PARAMETER_TYPE_ENTRYTIME).toString();\r\n\t\t\tString stage = hsmap.get(FunctionConstants.PARAMETER_TYPE_STAGE).toString();\r\n\t\t\tString carTypeDesc = order.getUDA(\"car_type_desc\") == null? \"\" : order.getUDA(\"car_type_desc\").toString();\r\n\t\t\tString color = order.getUDA(\"color\") == null? \"\": order.getUDA(\"color\") .toString() ;\r\n\t\t\tString carProject = order.getUDA(\"car_project\") == null ? \"\" : order.getUDA(\"car_project\").toString();\r\n\t\t /* PrintChineseByBmp obj = new PrintChineseByBmp();\r\n\t\t \r\n\t\t obj.printCN( carTypeDesc ,30,30,230);\r\n\t\t obj.printCN(color ,30,300,300);\r\n\t\t obj.printCN(carProject ,30,30,300);\r\n\t\t String vinBarCode= \"^FO30,30^BCN,120,N,N,N^BY2^FD>:\"+vin+\"^FS^FO60,165^ADN,36,20^FD\"+vin+\"^FS\" ;\r\n\t\t String command = obj.getCommand(vinBarCode);\r\n\t\t String printerName = \"ZDesigner 105SL 203DPI\";\r\n\t\t obj.runPrint(command ,printerName); //打印条码 \r\n\t\t System.out.println(command);*/\r\n\t\t\tString sendData_S = carTypeDesc + \"##\" + color + \"##\" + carProject + \"##\" + vin;\r\n\t\t\tClientSocket client = new ClientSocket(\"172.17.12.77\", 11111);\r\n\t\t\tclient.sendData(sendData_S);\r\n\t\t\tclient.close();\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setOnMarkerClickListener(this);\n\n\n // Add a marker in Sydney and move the camera\n\n getData(All_urls.values.mapData);\n\n\n\n\n }",
"public void onMapCenterChangeFine(NMapView arg0) {\n\n }",
"private GameMap loadMap(final int mapId, final boolean mobsRespawn, final boolean loadNpcs, final boolean loadReactors) {\n\t\tWzData data = mapDataProvider.getData(this.getPaddedMapName(mapId));\n\t\tfinal WzData link = data.getChildByPath(\"info/link\");\n\t\tif (link != null) {\n\t\t\tdata = mapDataProvider.getData(this.getPaddedMapName(WzDataTool.getIntConvert(\"info/link\", data)));\n\t\t}\n\n\t\tfloat monsterRate = 0;\n\t\tif (mobsRespawn) {\n\t\t\tfinal WzData mobRate = data.getChildByPath(\"info/mobRate\");\n\t\t\tif (mobRate != null) {\n\t\t\t\tmonsterRate = ((Float) mobRate.getData()).floatValue();\n\t\t\t}\n\t\t}\n\n\t\tfinal int returnMapId = WzDataTool.getInt(\"info/returnMap\", data);\n\t\tfinal GameMap map = new GameMap(mapId, returnMapId, monsterRate);\n\n\t\tfinal PortalFactory portalFactory = new PortalFactory();\n\t\tfor (final WzData portalData : data.getChildByPath(\"portal\")) {\n\t\t\tfinal Portal portal = portalFactory.createPortal(portalData);\n\t\t\tmap.addPortal(portal);\n\t\t}\n\n\t\tfinal FootholdTree footholds = loadFootholds(data);\n\t\tmap.setFootholds(footholds);\n\n\t\t// load areas (EG PQ platforms)\n\t\tfinal WzData areaData = data.getChildByPath(\"area\");\n\t\tif (areaData != null) {\n\t\t\tfor (final WzData area : areaData) {\n\t\t\t\tfinal Rectangle mapArea = WzDataTool.getRectangle(\"x1\", \"y1\", \"x2\", \"y2\", area);\n\t\t\t\tmap.addArea(mapArea);\n\t\t\t}\n\t\t}\n\n\t\tString message = null;\n\t\tfinal WzData timeMob = data.getChildByPath(\"info/timeMob\");\n\t\tif (timeMob != null) {\n\t\t\tmessage = WzDataTool.getString(\"message\", timeMob, null);\n\t\t}\n\n\t\t// load life data (npc, monsters)\n\t\tfor (final WzData life : data.getChildByPath(\"life\")) {\n\t\t\tfinal String type = WzDataTool.getString(\"type\", life);\n\t\t\tif (loadNpcs || !type.equals(\"n\")) {\n\t\t\t\tfinal String id = WzDataTool.getString(\"id\", life);\n\t\t\t\tfinal AbstractLoadedLife myLife = this.loadLife(life, id, type);\n\t\t\t\tif (myLife instanceof Monster) {\n\t\t\t\t\tfinal Monster mob = (Monster) myLife;\n\t\t\t\t\tfinal int mobTime = WzDataTool.getInt(\"mobTime\", life, 0);\n\t\t\t\t\tfinal byte team = (byte) WzDataTool.getInt(\"team\", life, -1);\n\t\t\t\t\tmap.addMonsterSpawn(mob, mobTime, team, message);\n\t\t\t\t} else {\n\t\t\t\t\tfinal boolean bAdd = true;\n\t\t\t\t\tif (bAdd) {\n\t\t\t\t\t\tmap.addMapObject(myLife);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.addAreaBossSpawn(map);\n\t\tmap.loadMonsterRate(true);\n\n\t\t// load reactor data\n\t\tfinal WzData reactorEntry = data.getChildByPath(\"reactor\");\n\t\tif (loadReactors && reactorEntry != null) {\n\t\t\tfor (final WzData reactor : reactorEntry) {\n\t\t\t\tfinal String id = WzDataTool.getString(\"id\", reactor);\n\t\t\t\tif (id == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfinal Reactor loadedReactor = this.loadReactor(reactor, id);\n\t\t\t\tmap.spawnReactor(loadedReactor);\n\t\t\t}\n\t\t}\n\n\t\tmap.setClock(data.getChildByPath(\"clock\") != null);\n\t\tmap.setEverlast(data.getChildByPath(\"info/everlast\") != null);\n\t\tmap.setTown(data.getChildByPath(\"info/town\") != null);\n\n\t\tmap.setForcedReturnMap(WzDataTool.getInt(\"info/forcedReturn\", data, 999999999));\n\n\t\tmap.setRecoveryRate(WzDataTool.getFloat(\"info/recovery\", data, 1.0f));\n\t\tmap.setHPDec(WzDataTool.getInt(\"info/decHP\", data, 0));\n\t\tmap.setHPDecProtect(WzDataTool.getInt(\"info/protectItem\", data, 0));\n\t\tmap.setFieldLimit(WzDataTool.getInt(\"info/fieldLimit\", data, 0));\n\t\tmap.setTimeLimit(WzDataTool.getInt(\"info/timeLimit\", data, -1));\n\n\t\tmap.setPersonalShop(data.getChildByPath(\"info/personalShop\") != null);\n\t\tmap.setCreateMobInterval((short) WzDataTool.getInt(\"info/createMobInterval\", data, 9000));\n\n\t\tmap.setFirstUserEnter(WzDataTool.getString(\"info/onFirstUserEnter\", data, \"\"));\n\t\tmap.setUserEnter(WzDataTool.getString(\"info/onUserEnter\", data, \"\"));\n\t\treturn map;\n\t}",
"private void cargarAutorizaciones() {\r\n\t\tif (parametros_empresa != null) {\r\n\t\t\tif (parametros_empresa.getTrabaja_autorizacion()) {\r\n\t\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\t\tadmision_seleccionada);\r\n\r\n\t\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\t\tIRutas_historia.PAGINA_AUTORIZACIONES,\r\n\t\t\t\t\t\t\"AUTORIZACIONES\", parametros);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void initializeMap() {\n // - Map -\n map = (MapView) this.findViewById(R.id.map);\n //map.setBuiltInZoomControls(true);\n map.setMultiTouchControls(true);\n map.setMinZoomLevel(16);\n // Tiles for the map, can be changed\n map.setTileSource(TileSourceFactory.MAPNIK);\n\n // - Map controller -\n IMapController mapController = map.getController();\n mapController.setZoom(19);\n\n // - Map overlays -\n CustomResourceProxy crp = new CustomResourceProxy(getApplicationContext());\n currentLocationOverlay = new DirectedLocationOverlay(this, crp);\n\n map.getOverlays().add(currentLocationOverlay);\n\n // - Location -\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n if(locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER) != null) {\n onLocationChanged(locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER));\n }\n else if (locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER) != null) {\n onLocationChanged(locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER));\n }\n else {\n currentLocationOverlay.setEnabled(false);\n }\n }",
"public void miUbicacion() { //Funcion que recupera la ubicacion\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); //Se accede al sistema para el servicio de locatizacion\n Location location = locationManager.getLastKnownLocation(GPS_PROVIDER); //Se recupera la ultima localizacion conocida\n if(location != null) {\n new DownloadWebPageTask(location).execute(\"http://api.openweathermap.org/data/2.5/weather?lat=\" + location.getLatitude() + \"&lon=\" + location.getLongitude() +\n \"&units=metric&lang=fr&appid=5bdfb081811a28abc515bc673fc0d20f\");\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 20000,0,locListenner); //Esto se hace cada 10s\n }",
"@Override\n public void onStyleLoaded(@NonNull Style style) {\n\n\n marcador(style);\n rutaOptimizadaLinea(style);\n\n\n\n CameraPosition position = new CameraPosition.Builder()\n .target(new LatLng(origin.latitude(), origin.longitude()))\n .zoom(10)\n .tilt(13)\n .build();\n mapboxMap.animateCamera(CameraUpdateFactory.newCameraPosition(position));\n\n\n\n //Toast.makeText(Mapboxnavigation.this, R.string.click_instructions, Toast.LENGTH_SHORT).show();\n //mapboxMap.addOnMapClickListener(Mapboxnavigation.this);\n //mapboxMap.addOnMapLongClickListener(Mapboxnavigation.this);\n localizacion(style);\n double a=-3.00;\n // Toast.makeText(getApplicationContext(), \"\"+a, Toast.LENGTH_SHORT).show();\n for(int i=0;i<lista.size();i++){\n generarLugares(lista.get(i));\n }\n\n\n /*p(destino);\n p(intermedi3);\n p(cinco);\n p(intermedi4);*/\n\n\n }",
"@Override\r\n\tpublic void runFunc() {\n\r\n\t}",
"@Override\n\tpublic void mapInitialized() {\n\t\tfinal LatLong center = new LatLong(32.777, 35.0225);\n\t\tSystem.out.println(\"got here\");\n\t\tmapComponent.addMapReadyListener(() -> checkCenter(center));\n\t\t// lblClick.setText((center + \"\"));\n\t\tfinal MapOptions options = new MapOptions();\n\t\toptions.center(center).zoom(12).overviewMapControl(false).panControl(false).rotateControl(false)\n\t\t\t\t.scaleControl(true).streetViewControl(true).zoomControl(true).mapType(MapTypeIdEnum.ROADMAP);\n\n\t\tmap = mapComponent.createMap(options, false);\n\t\tmap.setHeading(123.2);\n\t\tmap.fitBounds(new LatLongBounds(center, new LatLong(32.779032, 35.024663)));\n\t\tmap.addUIEventHandler(UIEventType.click, (final JSObject obj) -> {\n\t\t\tLatLong newLat = new LatLong((JSObject) obj.getMember(\"latLng\"));\n\t\t\tnewLat = new LatLong(newLat.getLatitude(), newLat.getLongitude());\n\t\t\tlblClick.setText(newLat + \"\");\n\t\t\tmap.addMarker(createMarker(newLat, \"marker at \" + newLat));\n\t\t});\n\t\tmapTypeCombo.setDisable(false);\n\n\t\tmapTypeCombo.getItems().addAll(MapTypeIdEnum.ALL);\n\t\tdirectionsService = new DirectionsService();\n\t\tdirectionsPane = mapComponent.getDirec();\n\t\tscene.getWindow().sizeToScene();\n\t}",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }",
"@Override\n public void onClick(View v) {\n Boolean success = m_mapLoader.checkForMapDataUpdate();\n if (!success) {\n Toast.makeText(m_activity, \"MapLoader is being busy with other operations\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"public /* synthetic */ void mo10813c() {\n MapboxMap mapboxMap = this.f10817j;\n if (mapboxMap != null && !this.f10828u) {\n mapboxMap.mo33551a(mapboxMap.mo33541a());\n }\n }",
"String getMapCode();",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap=googleMap;\n Toast.makeText(this,\"Map is Ready\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onMapReady: map is ready\");\n getLocationPermission();\ngetDeviceLocation();\nupdateLocationUI();\n\n addressButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n passAddress( );\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap; //Cargamos el mapa\n miUbicacion(); //Cargamos nuestra ubicacion\n mMap.setInfoWindowAdapter(this);\n\n //START INTENT\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Meteo meteo = (Meteo) marker.getTag();\n Intent secondActivity = new Intent(MapsActivity.this,segAct.class);\n secondActivity.putExtra(\"name\",meteo.getName());\n secondActivity.putExtra(\"temp\",meteo.getMain().getTemp());\n secondActivity.putExtra(\"tempMax\",meteo.getMain().getTemp_max());\n secondActivity.putExtra(\"tempMin\",meteo.getMain().getTemp_min());\n secondActivity.putExtra(\"icon\",meteo.getWeather().get(0).getIcon());\n startActivity(secondActivity);\n }\n });\n }",
"public void setUpMapOnClick() {\n mMap.setOnMapClickListener(new OnMapClickListener() {\n @Override\n public void onMapClick(LatLng loc) {\n // Hiding the keyboard when tab on map.\n// new MapsUtil.GetAddressByLatLng(new IMaps() {\n// @Override\n// public void processFinished(Object obj) {\n// String address = (String) obj;\n// if (!address.isEmpty()) {\n// // Set marker's title\n// if (txtFromIsSelected) {\n// txtFrom.setText(address);\n// } else {\n// if (txtToIsSelected) {\n// txtTo.setText(address);\n// }\n// }\n// }\n// }\n// }).execute(loc);\n if (txtFromIsSelected) {\n txtFrom.setText(getCompleteAddressString(loc.latitude, loc.longitude));\n } else {\n if (txtToIsSelected) {\n txtTo.setText(getCompleteAddressString(loc.latitude, loc.longitude));\n }\n }\n closeKeyboard();\n selectFromMap = true;\n if (txtFromIsSelected) {\n if (circle != null) {\n circle.remove();\n// mMap.clear();\n }\n startLocation = loc;\n setStartMarker();\n circle = mMap.addCircle(new CircleOptions()\n .center(startLocation)\n .radius(3000)\n .strokeWidth(0.5f)\n .strokeColor(Color.rgb(0, 136, 255))\n .fillColor(Color.argb(20, 0, 136, 255)));\n txtFrom.setDropDownHeight(0);\n } else {\n if (txtToIsSelected) {\n endLocation = loc;\n setEndMarker();\n txtTo.setDropDownHeight(0);\n }\n }\n // Get address by latlng async\n\n }\n });\n }",
"@Override\r\n\tpublic void commanderParMap(Map<Produit, Integer> mapOfProduits) {\n\r\n\t}",
"public Mapa(String ruta){\r\n cargarMapa(ruta);\r\n generarMapa();\r\n }",
"public void onChangeMap(String arg0) {\n\t\t\r\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n getLat g = new getLat();\n g.execute(tid);\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n //Settings for user Icon\r\n\r\n mMap = googleMap;\r\n mMap.setOnMarkerClickListener((GoogleMap.OnMarkerClickListener) this);\r\n\r\n Drawable circleDrawable = getResources().getDrawable(R.drawable.you_are_here_png);\r\n BitmapDescriptor markerIcon = getMarkerIconFromDrawable(circleDrawable);\r\n BitmapDescriptor markerTypeOfBuildings = getMarkerIconFromDrawableForEducation();\r\n\r\n if(_buildings_type.equals(\"Education\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForEducation(); }\r\n if(_buildings_type.equals(\"Administration\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForAdministration(); }\r\n if(_buildings_type.equals(\"Entertainment\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForEntertainment(); }\r\n if(_buildings_type.equals(\"Religion\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForReligion(); }\r\n if(_buildings_type.equals(\"Food\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForFood(); }\r\n\r\n\r\n if(_university_name==\"\") {\r\n setUserLocation(markerIcon);\r\n }\r\n else{\r\n //Set all buildings on Map\r\n for(Build b: allBuildings_){\r\n LatLng buildingsPosition = new LatLng(b.getLatitude(), b.getLongitude());\r\n mMap.addMarker(new MarkerOptions().position(buildingsPosition).title(\"Building \"+b.getName()).icon(markerTypeOfBuildings).snippet(b.getDescription()));\r\n mMap.getUiSettings().setZoomControlsEnabled(true);\r\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(position));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(buildingsPosition, zoom));\r\n }\r\n setUserLocation(markerIcon);\r\n //Nachat slushat tolko esly ACTION = ONLINE WALKING\r\n startListener();\r\n }\r\n\r\n }",
"Funcionario(){\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n mMap2 = googleMap;\n mMap3 = googleMap;\n mMap4 = googleMap;\n mMap5 = googleMap;\n mMap6 = googleMap;\n mMap7 = googleMap;\n mMap8 = googleMap;\n\n\n configuracion =mMap.getUiSettings();\n configuracion.setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n\n LatLng med = new LatLng(5.5986029, -75.8189893);\n LatLng med2 = new LatLng(5.5963072,-75.8130777);\n LatLng med3 = new LatLng(5.5936377, -75.8126003);\n LatLng med4 = new LatLng(5.5749407, -75.7907993);\n LatLng med5 = new LatLng(5.5646469, -75.7912391);\n LatLng med6 = new LatLng(5.5457995, -75.7945168);\n LatLng med7 = new LatLng(5.5391573, -75.8043015);\n LatLng med8 = new LatLng(5.5305395, -75.8031642);\n\n\n final Marker medellin = mMap.addMarker(new MarkerOptions().position(med).title(getString(R.string.ventanas1)));\n final Marker medellin2 = mMap2.addMarker(new MarkerOptions().position(med2).title(getString(R.string.ventanas2)));\n final Marker medellin3 = mMap3.addMarker(new MarkerOptions().position(med3).title(getString(R.string.ventanas3)));\n final Marker medellin4 = mMap4.addMarker(new MarkerOptions().position(med4).title(getString(R.string.ventanas4)));\n final Marker medellin5 = mMap5.addMarker(new MarkerOptions().position(med5).title(getString(R.string.ventanas5)));\n final Marker medellin6 = mMap6.addMarker(new MarkerOptions().position(med6).title(getString(R.string.ventanas6)));\n final Marker medellin7 = mMap7.addMarker(new MarkerOptions().position(med7).title(getString(R.string.ventanas7)));\n final Marker medellin8 = mMap8.addMarker(new MarkerOptions().position(med8).title(getString(R.string.ventanas8)));\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(med, 12));\n mMap2.moveCamera(CameraUpdateFactory.newLatLngZoom(med2, 12));\n mMap3.moveCamera(CameraUpdateFactory.newLatLngZoom(med3, 12));\n mMap4.moveCamera(CameraUpdateFactory.newLatLngZoom(med4, 12));\n mMap5.moveCamera(CameraUpdateFactory.newLatLngZoom(med5, 12));\n mMap6.moveCamera(CameraUpdateFactory.newLatLngZoom(med6, 12));\n mMap7.moveCamera(CameraUpdateFactory.newLatLngZoom(med7, 12));\n mMap8.moveCamera(CameraUpdateFactory.newLatLngZoom(med8, 12));\n mMap.addPolyline(new PolylineOptions().geodesic(true)\n .add(new LatLng( 5.5985815 , -75.8189195 ))\n .add(new LatLng( 5.5975885 , -75.8166182 ))\n .add(new LatLng( 5.5960936 , -75.8130026 ))\n .add(new LatLng( 5.5957733 , -75.8127344 ))\n .add(new LatLng( 5.5937338 , -75.8126485 ))\n .add(new LatLng( 5.5927835 , -75.8132172 ))\n .add(new LatLng( 5.5918866 , -75.8127987 ))\n .add(new LatLng( 5.5912352 , -75.8127666 ))\n .add(new LatLng( 5.5893986 , -75.8110714 ))\n .add(new LatLng( 5.5885231 , -75.8110070 ))\n .add(new LatLng( 5.5888861 , -75.8095479 ))\n .add(new LatLng( 5.5902956 , -75.8079815 ))\n .add(new LatLng( 5.5909149 , -75.8080673 ))\n .add(new LatLng( 5.5915128 , -75.8073592 ))\n .add(new LatLng( 5.5918545 , -75.8078313 ))\n .add(new LatLng( 5.5923030 , -75.8079815 ))\n .add(new LatLng( 5.5923244 , -75.8068013 ))\n .add(new LatLng( 5.5926020 , -75.8059430 ))\n .add(new LatLng( 5.5915342 , -75.8057284 ))\n .add(new LatLng( 5.5906159 , -75.8050203 ))\n .add(new LatLng( 5.5903596 , -75.8037329 ))\n .add(new LatLng( 5.5898471 , -75.8031428 ))\n .add(new LatLng( 5.5896336 , -75.8027136 ))\n .add(new LatLng( 5.5879785 , -75.8015442 ))\n .add(new LatLng( 5.5874019 , -75.8011794 ))\n .add(new LatLng( 5.5868360 , -75.7985830 ))\n .add(new LatLng( 5.5854051 , -75.7966733 ))\n .add(new LatLng( 5.5851702 , -75.7962441 ))\n .add(new LatLng( 5.5847217 , -75.7942271 ))\n .add(new LatLng( 5.5847644 , -75.7931542 ))\n .add(new LatLng( 5.5843800 , -75.7911801 ))\n .add(new LatLng( 5.5845509 , -75.7902789 ))\n .add(new LatLng( 5.5842305 , -75.7894850 ))\n .add(new LatLng( 5.5835045 , -75.7887983 ))\n .add(new LatLng( 5.5825434 , -75.7871032 ))\n .add(new LatLng( 5.5823299 , -75.7861590 ))\n .add(new LatLng( 5.5821590 , -75.7850862 ))\n .add(new LatLng( 5.5813689 , -75.7821250 ))\n .add(new LatLng( 5.5813475 , -75.7805371 ))\n .add(new LatLng( 5.5813048 , -75.7790565 ))\n .add(new LatLng( 5.5813475 , -75.7774687 ))\n .add(new LatLng( 5.5807922 , -75.7771468 ))\n .add(new LatLng( 5.5801943 , -75.7785416 ))\n .add(new LatLng( 5.5789770 , -75.7780051 ))\n .add(new LatLng( 5.5781014 , -75.7763529 ))\n .add(new LatLng( 5.5773112 , -75.7762671 ))\n .add(new LatLng( 5.5766492 , -75.7756662 ))\n .add(new LatLng( 5.5760085 , -75.7753444 ))\n .add(new LatLng( 5.5745670 , -75.7738262 ))\n .add(new LatLng( 5.5729546 , -75.7729304 ))\n .add(new LatLng( 5.5729332 , -75.7734239 ))\n .add(new LatLng( 5.5728478 , -75.7743251 ))\n .add(new LatLng( 5.5735419 , -75.7747972 ))\n .add(new LatLng( 5.5737875 , -75.7752693 ))\n .add(new LatLng( 5.5738729 , -75.7764816 ))\n .add(new LatLng( 5.5744708 , -75.7764173 ))\n .add(new LatLng( 5.5746631 , -75.7779086 ))\n .add(new LatLng( 5.5753358 , -75.7794267 ))\n .add(new LatLng( 5.5761793 , -75.7801294 ))\n .add(new LatLng( 5.5760298 , -75.7809448 ))\n .add(new LatLng( 5.5761153 , -75.7816315 ))\n .add(new LatLng( 5.5759444 , -75.7829189 ))\n .add(new LatLng( 5.5764143 , -75.7844424 ))\n .add(new LatLng( 5.5754959 , -75.7865667 ))\n .add(new LatLng( 5.5748553 , -75.7888842 ))\n .add(new LatLng( 5.5749941 , -75.7906866 ))\n .add(new LatLng( 5.5720576 , -75.7914162 ))\n .add(new LatLng( 5.5712888 , -75.7906222 ))\n .add(new LatLng( 5.5705413 , -75.7906866 ))\n .add(new LatLng( 5.5700074 , -75.7903647 ))\n .add(new LatLng( 5.5687687 , -75.7913518 ))\n .add(new LatLng( 5.5677650 , -75.7907295 ))\n .add(new LatLng( 5.5668253 , -75.7910728 ))\n .add(new LatLng( 5.5664409 , -75.7907295 ))\n .add(new LatLng( 5.5656293 , -75.7911587 ))\n .add(new LatLng( 5.5646896 , -75.7910299 ))\n .add(new LatLng( 5.5659283 , -75.7927036 ))\n .add(new LatLng( 5.5660992 , -75.7936478 ))\n .add(new LatLng( 5.5655012 , -75.7942915 ))\n .add(new LatLng( 5.5647323 , -75.7943344 ))\n .add(new LatLng( 5.5619133 , -75.7972527 ))\n .add(new LatLng( 5.5614434 , -75.7990551 ))\n .add(new LatLng( 5.5608454 , -75.7991409 ))\n .add(new LatLng( 5.5602902 , -75.7984972 ))\n .add(new LatLng( 5.5588806 , -75.7975531 ))\n .add(new LatLng( 5.5561469 , -75.7968664 ))\n .add(new LatLng( 5.5561469 , -75.7953644 ))\n .add(new LatLng( 5.5536268 , -75.7944202 ))\n .add(new LatLng( 5.5514911 , -75.7936478 ))\n .add(new LatLng( 5.5500816 , -75.7948065 ))\n .add(new LatLng( 5.5493981 , -75.7944202 ))\n .add(new LatLng( 5.5457674 , -75.7934332 ))\n .add(new LatLng( 5.5453403 , -75.7951498 ))\n .add(new LatLng( 5.5457674 , -75.7961369 ))\n .add(new LatLng( 5.5460451 , -75.7968235 ))\n .add(new LatLng( 5.5468139 , -75.7983255 ))\n .add(new LatLng( 5.5453616 , -75.7986689 ))\n .add(new LatLng( 5.5455966 , -75.7996988 ))\n .add(new LatLng( 5.5464081 , -75.8006215 ))\n .add(new LatLng( 5.5458956 , -75.8013296 ))\n .add(new LatLng( 5.5463227 , -75.8022308 ))\n .add(new LatLng( 5.5451053 , -75.8032823 ))\n .add(new LatLng( 5.5449345 , -75.8037865 ))\n .add(new LatLng( 5.5445501 , -75.8039045 ))\n .add(new LatLng( 5.5443792 , -75.8036900 ))\n .add(new LatLng( 5.5449345 , -75.8028531 ))\n .add(new LatLng( 5.5452121 , -75.8025956 ))\n .add(new LatLng( 5.5449986 , -75.8023596 ))\n .add(new LatLng( 5.5448918 , -75.8023596 ))\n .add(new LatLng( 5.5445073 , -75.8025956 ))\n .add(new LatLng( 5.5431298 , -75.8041513 ))\n .add(new LatLng( 5.5423930 , -75.8043337 ))\n .add(new LatLng( 5.5426493 , -75.8036685 ))\n .add(new LatLng( 5.5430123 , -75.8031321 ))\n .add(new LatLng( 5.5436744 , -75.8024669 ))\n .add(new LatLng( 5.5428628 , -75.8022952 ))\n .add(new LatLng( 5.5419712 , -75.8028370 ))\n .add(new LatLng( 5.5408232 , -75.8030784 ))\n .add(new LatLng( 5.5403427 , -75.8016300 ))\n .add(new LatLng( 5.5402359 , -75.8005357 ))\n .add(new LatLng( 5.5402572 , -75.7992053 ))\n .add(new LatLng( 5.5403640 , -75.7983899 ))\n .add(new LatLng( 5.5400223 , -75.7985616 ))\n .add(new LatLng( 5.5399155 , -75.7995915 ))\n .add(new LatLng( 5.5400437 , -75.8032823 ))\n .add(new LatLng( 5.5394136 , -75.8042479 ))\n .add(new LatLng( 5.5382283 , -75.8037114 ))\n .add(new LatLng( 5.5381215 , -75.8027458 ))\n .add(new LatLng( 5.5374808 , -75.8024025 ))\n .add(new LatLng( 5.5358149 , -75.8037758 ))\n .add(new LatLng( 5.5349606 , -75.8032179 ))\n .add(new LatLng( 5.5340849 , -75.8039474 ))\n .add(new LatLng( 5.5337005 , -75.8036900 ))\n .add(new LatLng( 5.5340208 , -75.8031750 ))\n .add(new LatLng( 5.5336791 , -75.8025098 ))\n .add(new LatLng( 5.5323976 , -75.8024883 ))\n .add(new LatLng( 5.5324350 , -75.8019519 ))\n .add(new LatLng( 5.5320960 , -75.8018446 ))\n .add(new LatLng( 5.5317569 , -75.8020806 ))\n .add(new LatLng( 5.5317356 , -75.8029604 ))\n .add(new LatLng( 5.5314579 , -75.8030999 ))\n .add(new LatLng( 5.5310414 , -75.8026814 ))\n .add(new LatLng( 5.5304968 , -75.8027995 ))\n .color(Color.BLUE)\n .width(5)\n\n );\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n\n\n }",
"public void run() {\n System.out.println(nomeDaCamada);\n try {\n\n Painel.CAMADAS_RECEPTORAS.expandirCamadaEnlace();\n\n //quadro = camadaEnlaceReceptoraControleDeFluxo(quadro);\n //quadro = camadaEnlaceReceptoraControleDeErro(quadro);\n quadro = camadaEnlaceReceptoraEnquadramento(quadro);\n\n chamarProximaCamada(quadro);\n Painel.CONFIGURACOES.setDisable(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void mo8814a(final String str) {\n C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {\n public void run() {\n if (C3720a.this.f12125b == null) {\n return;\n }\n if (str.equalsIgnoreCase(\"ia\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_ia_icon));\n } else if (str.equalsIgnoreCase(\"manual\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_manual_icon));\n } else if (str.equalsIgnoreCase(\"4kphoto\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_4kphoto_icon));\n } else if (str.equalsIgnoreCase(\"slowzoom\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_slow_zoom_icon));\n } else {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(false));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(0));\n }\n }\n });\n }",
"private Texture mapaAleatorio(int noAleatorio) {\n if (estadoMapa == EstadoMapa.RURAL){\n if(noAleatorio == 1){\n return texturaFondo1_1;\n }\n if(noAleatorio == 2){\n return texturaFondo1_2;\n }\n if(noAleatorio == 3){\n return texturaFondo1_3;\n }\n if(noAleatorio == 4){\n return texturaFondo1_4;\n }\n if(noAleatorio == 5){\n return texturaFondo1_5;\n }\n } else\n if (estadoMapa == EstadoMapa.URBANO) {\n if(noAleatorio == 1){\n return texturaFondo2_1;\n }\n if(noAleatorio == 2){\n return texturaFondo2_2;\n }\n if(noAleatorio == 3){\n return texturaFondo2_3;\n }\n if(noAleatorio == 4){\n return texturaFondo2_4;\n }\n if(noAleatorio == 5){\n return texturaFondo2_5;\n }\n } else if (estadoMapa == EstadoMapa.UNIVERSIDAD) {\n if(noAleatorio == 1){\n return texturaFondo3_1;\n }\n if(noAleatorio == 2){\n return texturaFondo3_2;\n }\n if(noAleatorio == 3){\n return texturaFondo3_3;\n }\n if(noAleatorio == 4){\n return texturaFondo3_4;\n }\n if(noAleatorio == 5){\n return texturaFondo3_5;\n }\n }else if (estadoMapa == EstadoMapa.SALONES) {\n if (noAleatorio == 1) {\n return texturaFondo4_1;\n }\n if (noAleatorio == 2) {\n return texturaFondo4_2;\n }\n if (noAleatorio == 3) {\n return texturaFondo4_3;\n }\n if (noAleatorio == 4) {\n return texturaFondo4_4;\n }\n if (noAleatorio == 5) {\n return texturaFondo4_5;\n }\n } else if (estadoMapa == EstadoMapa.RURALURBANO) { //Trancisiones\n return texturaRuralUrbano;\n } else if (estadoMapa == EstadoMapa.URBANOUNIVERSIDAD) {\n return texturaUrbanoUniversidad;\n } else if (estadoMapa == EstadoMapa.UNIVERSIDADSALONES) {\n return texturaUniversidadSalones;\n }\n return null;\n }",
"public void mapIsClicked(View view) {\n Controller.viewMappa();\n }",
"protected void startMap(){\n Intent activityChangeIntent = new Intent(MainActivity.this, MapActivity.class);\n startActivity(activityChangeIntent);\n }",
"@Override\r\n\tpublic void onNaviMapMode(int arg0) {\n\r\n\t}",
"private void configMap() {\n\n googleMap.getUiSettings().setMapToolbarEnabled(false);//an buton dieu huong bat snag map\n\n googleMap.getUiSettings().setMyLocationButtonEnabled(true);//nut vi tri cua minh tru se hien thi\n googleMap.getUiSettings().setZoomControlsEnabled(true);//co the zoom\n\n// b2\n googleMap.setInfoWindowAdapter(new MyInfoWindown());//cutom titlemap\n\n try {//them lenh nay de no cap location thì cai nut tren moi hoat dong\n\n googleMap.setMyLocationEnabled(true);//cung cap vi tri cua minh,can try cacth xin quyen\n } catch (SecurityException e) {\n\n }\n googleMap.setOnMyLocationButtonClickListener(this);//dNG KY\n\n\n }",
"@Override\n public void onMapLoaded() {\n mMapStatus = new MapStatus.Builder().zoom(9).build();\n mBaiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(mMapStatus));\n }",
"@Override\n protected void onResume() {\n super.onResume();\n if (mMap != null) {\n requestLocation();\n }\n }",
"@Override\n protected void onPostExecute(Void result) {\n LoadingDialogManager.getInstance().DismissLoading();\n //default map will be Boston Downtown\n mapManager.zoomTwoPoints(new LatLng(42.3453099, -71.0698502), new LatLng(42.3708664, -71.0617971));\n //mapManager.moveCameraToMe();\n mManager.drawAshmontLine();\n }",
"private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }",
"private void loadMapScene() {\n mapView.getMapScene().loadScene(MapScheme.NORMAL_DAY, new MapScene.LoadSceneCallback() {\n\n @Override\n public void onLoadScene(@Nullable MapError mapError) {\n if (mapError == null) {\n positioningExample = new BackgroundPositioningExample();\n positioningExample.onMapSceneLoaded(mapView, MainActivity.this);\n positioningExample.startForegroundService();\n } else {\n Log.d(TAG, \"Loading map failed: mapError: \" + mapError.name());\n }\n }\n });\n }",
"private void setupMap() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\n \t\tif ( status != ConnectionResult.SUCCESS ) {\n \t\t\t// Google Play Services are not available.\n \t\t\tint requestCode = 10;\n \t\t\tGooglePlayServicesUtil.getErrorDialog( status, this, requestCode ).show();\n \t\t} else {\n \t\t\t// Google Play Services are available.\n \t\t\tif ( this.googleMap == null ) {\n \t\t\t\tFragmentManager fragManager = this.getSupportFragmentManager();\n \t\t\t\tSupportMapFragment mapFrag = (SupportMapFragment) fragManager.findFragmentById( R.id.edit_gpsfilter_area_google_map );\n \t\t\t\tthis.googleMap = mapFrag.getMap();\n \n \t\t\t\tif ( this.googleMap != null ) {\n \t\t\t\t\t// The Map is verified. It is now safe to manipulate the map.\n \t\t\t\t\tthis.configMap();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (devIpInfo != null) {\n\t\t\t\t\tPlayerClient pc = appMain.getPlayerclient();\n\t\t\t\t\tint funcID = 0x03;// 设备有线网络配置\n\t\t\t\t\t// NPC_D_DPS_JSON_FUNCID_DEV_IP=0x03\n\n\t\t\t\t\tint type = 1;// 设置配置\n\t\t\t\t\tint channel = iChNo;\n\t\t\t\t\tJSONObject jsonObject = new JSONObject();\n\t\t\t\t\tjsonObject.put(\"Operation\", funcID);\n\t\t\t\t\tjsonObject.put(\"Request_Type\", type);\n\t\t\t\t\tjsonObject.put(\"Value\", devIpInfo);\n\t\t\t\t\tString inputJson = jsonObject.toString();\n\t\t\t\t\tLog.d(\"CallCustomFunc\", \"\" + inputJson);\n\t\t\t\t\tbyte[] ret = pc.CallCustomFunc(Constants.UMID,\n\t\t\t\t\t\t\tConstants.user, Constants.password, 0x010203,\n\t\t\t\t\t\t\tinputJson.getBytes());\n\t\t\t\t\tif (ret != null) {\n\t\t\t\t\t\tString jsonString = new String(ret).trim();\n\t\t\t\t\t\tLog.d(\"CallCustomFunc\", \"CallCustomFunc:\" + jsonString);\n\t\t\t\t\t\tDevIpInfoRet devIpInfoRet = JSON.parseObject(\n\t\t\t\t\t\t\t\tjsonString, DevIpInfoRet.class);\n\t\t\t\t\t\tif (devIpInfoRet != null && devIpInfoRet.Result == 1) {\n\t\t\t\t\t\t\thandler.sendEmptyMessage(SetIpConfigThread.SET_OK);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\thandler.sendEmptyMessage(SetIpConfigThread.SET_FALL);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\thandler.sendEmptyMessage(SetIpConfigThread.SET_FALL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsuper.run();\n\t\t\t}",
"void switchToMapSelectActivity();"
] |
[
"0.5769212",
"0.57227653",
"0.57048845",
"0.57048",
"0.56985396",
"0.56916517",
"0.5675551",
"0.55740535",
"0.5483383",
"0.5482621",
"0.5471247",
"0.54278296",
"0.5419314",
"0.5403139",
"0.5390046",
"0.53823847",
"0.5375194",
"0.53696066",
"0.5357733",
"0.535375",
"0.53422475",
"0.53181344",
"0.5317852",
"0.5298838",
"0.5293607",
"0.5285062",
"0.52822787",
"0.52485687",
"0.5242354",
"0.52183765",
"0.52181435",
"0.5206011",
"0.52023846",
"0.5199368",
"0.51990145",
"0.5193062",
"0.5171454",
"0.5160427",
"0.51577085",
"0.5151393",
"0.5150097",
"0.5131825",
"0.51254153",
"0.5120017",
"0.5116659",
"0.511248",
"0.5110389",
"0.5109265",
"0.5104476",
"0.5102339",
"0.5101108",
"0.51008075",
"0.50995004",
"0.5097973",
"0.5090253",
"0.5081607",
"0.5081416",
"0.5073372",
"0.5072672",
"0.5071235",
"0.50708747",
"0.5069855",
"0.5068736",
"0.50686693",
"0.5064223",
"0.5064163",
"0.5062657",
"0.5062457",
"0.5061",
"0.50608206",
"0.50599724",
"0.5057678",
"0.50572824",
"0.5054732",
"0.5053766",
"0.50521755",
"0.50479925",
"0.50437534",
"0.5042342",
"0.50403297",
"0.50388354",
"0.50368214",
"0.5034176",
"0.50336224",
"0.50334895",
"0.50277895",
"0.5021014",
"0.5019504",
"0.5011565",
"0.5003594",
"0.4998845",
"0.49970812",
"0.4996051",
"0.49944162",
"0.4993247",
"0.4980867",
"0.49768192",
"0.49764806",
"0.49754813",
"0.49735436",
"0.49733"
] |
0.0
|
-1
|
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to install it inside the SupportMapFragment. This method will only be triggered once the user has installed Google Play services and returned to the app. Se ejecuta cuando el mapa esta listo
|
@Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap; //Cargamos el mapa
miUbicacion(); //Cargamos nuestra ubicacion
mMap.setInfoWindowAdapter(this);
//START INTENT
mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {
@Override
public void onInfoWindowClick(Marker marker) {
Meteo meteo = (Meteo) marker.getTag();
Intent secondActivity = new Intent(MapsActivity.this,segAct.class);
secondActivity.putExtra("name",meteo.getName());
secondActivity.putExtra("temp",meteo.getMain().getTemp());
secondActivity.putExtra("tempMax",meteo.getMain().getTemp_max());
secondActivity.putExtra("tempMin",meteo.getMain().getTemp_min());
secondActivity.putExtra("icon",meteo.getWeather().get(0).getIcon());
startActivity(secondActivity);
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n lat = addresses.get(0).getLatitude();\n lng = addresses.get(0).getLongitude();\n } catch (Exception e) {\n lat = -34;\n lng = 151;\n }\n\n LatLng sydney = new LatLng(lat, lng);\n googleMap.addMarker(new MarkerOptions().position(sydney).title(\"WSU Paramatta\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n googleMap.setMyLocationEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n ActivityCompat.requestPermissions(this,new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n // Add a marker in Sydney and move the camera\n if (loc != -1 && loc != 0) {\n locationManager.removeUpdates(this);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(MainActivity.locations.get(loc), 10));\n\n mMap.addMarker(new MarkerOptions().position(MainActivity.locations.get(loc)).title(MainActivity.places.get(loc)));\n } else {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationManager.requestLocationUpdates(provider, 400, 1, this);\n\n }\n mMap.setOnMapLongClickListener(this);\n }",
"public static void onMapReady() {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n // For zooming automatically to the Dropped PIN Location\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,\n longitude), 12.0f));\n }",
"@SuppressLint(\"MissingPermission\")\n @Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"MAP_FRAG\", \"MapCallback\");\n\n mMap = googleMap;\n\n Log.d(\"MAP\", mMap.toString());\n\n mMap.setPadding(0, 0, 0, 300);\n\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mMap.getUiSettings().setMapToolbarEnabled(false);\n\n mMap.addMarker(new MarkerOptions().position(new LatLng(Common.latitude, Common.longitude))\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_mark_red)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Common.latitude, Common.longitude), 15.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney, Australia, and move the camera.\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n mMap.setIndoorEnabled(true);\n mMap.setBuildingsEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(43.777365,-79.3406);\n LatLng loc22=new LatLng(43.775748,-79.336674);\n LatLng loc3=new LatLng(43.769240,-79.360010);\n LatLng loc4=new LatLng(43.769290,-79.400101);\n LatLng loc5=new LatLng(43.769552,-79.601201);\n mMap.addMarker(new MarkerOptions().position(sydney).title(values[0]));\n mMap.addMarker(new MarkerOptions().position(loc22).title(values[1]));\n mMap.addMarker(new MarkerOptions().position(loc3).title(values[2]));\n mMap.addMarker(new MarkerOptions().position(loc4).title(values[3]));\n mMap.addMarker(new MarkerOptions().position(loc5).title(values[4]));\n\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(17.2231, 78.2827);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Hyderbbad\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n initializeMap();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mapReady = true;\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng Bangalore = new LatLng(12.972442, 77.580643);\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(Bangalore)\n .zoom(17)\n .bearing(90)\n .tilt(30)\n .build();\n mMap.addMarker(new MarkerOptions().position(Bangalore).title(\"Marker in Bangalore\"));\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n //below line is use to add custom marker on our map.\n .icon(BitmapFromVector(getApplicationContext(), R.drawable.ic_flag)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng singapore = new LatLng(1.338709, 103.819519);\n googleMap.addMarker(new MarkerOptions().position(singapore)\n .title(\"Marker in Singapore\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(singapore));\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11),3000,null);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n getMarkers();\n\n // Add a marker in Sydney and move the camera\n LatLng penn = new LatLng(39.952290, -75.197060);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(penn, 15));\n mMap.setMyLocationEnabled(true);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n uiSettings.setCompassEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n\n } else {\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n }\n\n /* // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n addMarkers();\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"TEST\", \"MAP READY\");\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n LatLng curLocation = new LatLng(latitude,longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(curLocation,15.0f);\n setPin(latitude,longitude, null);\n mMap.moveCamera(cameraUpdate);\n for(int i = 0; i < restaurantList.size(); i++){\n double lat = restaurantList.get(i).getLatitude();\n double lng = restaurantList.get(i).getLongitude();\n setPin(lat, lng, restaurantList.get(i));\n }\n //Check we have the users permission to access their location\n // if we dont have it, we have to request it\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mMap.setMyLocationEnabled(true);\n\n } else {\n //we dont have permission, so we have to ask for it\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_LOCATION_REQUEST_CODE);\n //run asychronously.. show an alert dialog\n //user can choose allow or deny\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in city and move the camera\n LatLng cityCoord = new LatLng(lat, lng);\n float zoom = (float) 9.0;\n mMap.addMarker(new MarkerOptions().position(cityCoord).title(cityAddr));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(cityCoord, zoom));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng position = new LatLng(latitude, longitude);\n\n // centre the map around the specified location\n mMap.animateCamera(CameraUpdateFactory.newLatLng(position));\n\n // add a marker at the specified location\n MarkerOptions options = new MarkerOptions();\n mMap.addMarker(options.position(position).title(locationName));\n\n // configure the map settings\n mMap.setTrafficEnabled(true);\n mMap.setBuildingsEnabled(true);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n // enable the zoom controls\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\r\n googleMap.setMyLocationEnabled(true);\r\n\r\n LocationManager locationManager = (LocationManager)\r\n getSystemService(Context.LOCATION_SERVICE);\r\n Criteria criteria = new Criteria();\r\n\r\n Location currentLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\r\n\r\n LatLng sydney = new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude());\r\n\r\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 13));\r\n\r\n } else {\r\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE, Manifest.permission.ACCESS_FINE_LOCATION, true);\r\n }\r\n\r\n updateMarkersData(googleMap);\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng hn = new LatLng(14.079526, -87.180662);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(hn));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(hn,7));\n helperFacturacion = new FacturacionHelper(MapListClientesActivity.this);\n\n\n addMarkers();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng wroclaw = new LatLng(51.110, 17.034);\n mMap.addMarker(new MarkerOptions().position(wroclaw));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(wroclaw, 12));\n mMap.clear();\n // Setting a click event handler for the map\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng latLng) {\n bSelect.setEnabled(true);\n // Creating a marker\n MarkerOptions markerOptions = new MarkerOptions();\n\n // Setting the position for the marker\n markerOptions.position(latLng);\n\n // Setting the title for the marker.\n // This will be displayed on taping the marker\n markerOptions.title(\"NOWY: \" + latLng.latitude + \" : \" + latLng.longitude);\n\n markerOptions.alpha(0.6f);\n // Clears the previously touched position\n mMap.clear();\n\n // Animating to the touched position\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n\n location = latLng.latitude + \" \" + latLng.longitude;\n\n setupMarker();\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n // Show rationale and request permission.\n int i = 12;\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n i);\n\n }\n mMap.setMyLocationEnabled(true); //when location changed call line. loaction manager\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n frLatLng = new LatLng(getLatitude, getLongitude);\n\n map = googleMap;\n map.getUiSettings().setMyLocationButtonEnabled(false);\n\n if (ActivityCompat.checkSelfPermission(getContext()\n , Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(getContext(),\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n\n map.addMarker(new MarkerOptions().position(frLatLng)).setTitle(getString(R.string.my_location));\n googleMap.getUiSettings().setMyLocationButtonEnabled(true);\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(frLatLng, 520));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng myLocation = new LatLng(latitude, longitude);\n addMarker(myLocation, name);\n moveCamera(myLocation, 3);\n\n //search a place\n /*searchInput = (EditText) findViewById(R.id.map_search_input);\n searchInput.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if(actionId == EditorInfo.IME_ACTION_SEARCH\n || actionId == EditorInfo.IME_ACTION_DONE\n || actionId == KeyEvent.ACTION_DOWN\n || actionId == KeyEvent.KEYCODE_ENTER)\n //search location\n geoLocate();\n return false;\n }\n });*/\n\n //add location\n addButton = findViewById(R.id.map_add_button);\n addButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.putExtra(\"latitude\", marker.getPosition().latitude);\n intent.putExtra(\"longitude\", marker.getPosition().longitude);\n intent.putExtra(\"name\", marker.getTitle());\n setResult(4, intent);\n finish();\n }\n });\n\n //long tap to add a marker\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(@NonNull LatLng latLng) {\n addMarker(latLng, name);\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mLocationRequest = LocationRequest.create()\n .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)\n .setInterval(1*1000)\n .setFastestInterval(5 * 100);\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n // Show rationale and request permission.\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng place = new LatLng(Double.parseDouble(lat),Double.parseDouble(longitude));\n\n mMap.addMarker(new MarkerOptions().position(place));\n moveToCurrentLocation(place);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n // Home Mark\n LatLng home = new LatLng(41.374736, 2.168308);\n float zoom = 13;\n\n // Inicialitzem mapa\n mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN); //Tipus de mapa\n mMap.addMarker(new MarkerOptions().position(home).title(\"IOC\")); //Marcador inicial\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(home, zoom)); //Centrem mapa en el marcador inicial\n\n this.setMapLongClick(mMap);\n this.enableMyLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(logTag,\"4\");\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST);\n return;\n }\n mMap.setOnMapLongClickListener(this);\n mMap.setOnInfoWindowClickListener( this );\n mMap.setOnMapClickListener(this);\n mMap.setMyLocationEnabled(true);\n ll=new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions options = new MarkerOptions().position(ll);\n options.title(getAddressFromLatLng(ll));\n\n Log.d(logTag,\"5\");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n CameraUpdate cUpdate = CameraUpdateFactory.newLatLngZoom(new LatLng(35.68, 139.76), 12);\n //mMap.addMarker(new MarkerOptions().position(new LatLng(35.68, 139.76)).title(\"Marker in Tokyo\"));\n mMap.moveCamera(cUpdate);\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng montesson = new LatLng(48.9190286,2.1380955);\n mMap.addMarker(new MarkerOptions().position(montesson).title(\"Marker in Montesson\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(montesson));\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n map.moveCamera(CameraUpdateFactory.zoomTo(14));\n //map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n map.setMyLocationEnabled(true);\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n\n return true;\n }\n });\n map.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n Log.d(\"map\", \"onMyLocationChange\");\n if (!isinit) {\n isinit = true;\n if (now_Location == null ||\n now_Location.getLatitude() != location.getLatitude() ||\n now_Location.getLongitude() != location.getLongitude()) {\n now_Location = location;\n initStreetView();\n }\n }\n LatLng sydney = new LatLng(location.getLatitude(), location.getLongitude());\n map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }\n });\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n // Add a marker in Sydney and move the camera\r\n LatLng charlotte = new LatLng(35.22, -80.84);\r\n //currentMarker = mMap.addMarker(new MarkerOptions().position(charlotte).title(\"Charlotte, NC\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(charlotte));\r\n //currentMarker.setTag(0);\r\n\r\n mMap.setOnMapLongClickListener(this);\r\n\r\n\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n //&& ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n ) {\r\n // TODO: Consider calling\r\n\r\n return;\r\n }\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\r\n @Override\r\n public boolean onMyLocationButtonClick() {\r\n Log.d(\"maps\", \"On my location button click\");\r\n return false;\r\n }\r\n });\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng posini = new LatLng(3.4,-76.5);\n myMarker = mMap.addMarker(new MarkerOptions().position(posini));\n\n requestLocation();\n\n googleMap.setOnCameraMoveListener(new GoogleMap.OnCameraMoveListener() {\n @Override\n public void onCameraMove() {\n if (!flag) {\n\n addMarker();\n flag = true;\n }\n }\n });\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n try{\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n Address address = geo.getFromLocationName(location.getAddress(),1).get(0);\n\n LatLng position= new LatLng(address.getLatitude(),address.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position)\n .title(location.getTitle()));\n googleMap.setMinZoomPreference(12);\n googleMap.setMaxZoomPreference(15);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch(IndexOutOfBoundsException e){\n e.printStackTrace();\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(this);\n markerIconBitmapDescriptor = BitmapDescriptorFactory.fromResource(R.mipmap.ic_driver_check_in);\n\n mFillColor = Color.HSVToColor(50, new float[]{0, 1, 1});\n mStrokeColor = Color.BLACK;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n// updateMap(new LocationModel(41.806363, 44.768531, \"Agmasheneblis Xeivani\"));\n if (shoppingList.getLocationReminder() != null) {\n updateMap(shoppingList.getLocationReminder());\n } else {\n updateMap(null);\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n Log.i(TAG, \"map is ready\");\r\n mMap = googleMap;\r\n\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(this);\r\n mMap.setOnMyLocationClickListener(this);\r\n\r\n startLocationUpdates();\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng loc = new LatLng(v, v1);\n mMap.addMarker(new\n MarkerOptions().position(loc).title(\"0000000000\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n\n final LatLng[] myLoc = {new LatLng(1, 1)};\n mMap.setMyLocationEnabled(true);\n// mMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n// @Override\n// public void onMyLocationChange(Location location) {\n// myLoc[0] = new LatLng(location.getLatitude(), location.getLongitude());\n// mMap.addCircle(new CircleOptions().center(myLoc[0]));\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLoc[0], 15));\n// }\n// });\n\n mMap.addCircle(new CircleOptions().center(new LatLng(lat, lng)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat, lng), 18));\n\n mMap.setOnPoiClickListener(new GoogleMap.OnPoiClickListener() {\n @Override\n public void onPoiClick(PointOfInterest poi) {\n\n }\n });\n\n mMap.getUiSettings().setMapToolbarEnabled(true);\n\n // Add a marker in Sydney and move the camera\n\n\n showItems(lat, lng, radius);\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED){\r\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},101);\r\n }\r\n loc = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n populateMap(loc);\r\n try {\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLatitude(), lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLongitude()), 15.0f));\r\n }catch(Exception blyat){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"No hemos podido acceder a tu localización, revisa el estado de GPS y reinicia la app\");\r\n builder.show();\r\n }\r\n }",
"private void setUpMapIfNeeded() {\n if (mGoogleMap != null) {\n if (checkPermission()) {\n mGoogleMap.setMyLocationEnabled(true);\n }\n // Check if we were successful in obtaining the map.\n if (mMapView != null) {\n\n mGoogleMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n mGoogleMap.addMarker(new MarkerOptions().position(new LatLng(location.getLatitude(), location.getLongitude())).title(\"It's Me!\"));\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 10));\n }\n });\n\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n\n initializeOtherSettlements(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()));\n initializeQuestLocations(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()));\n\n mMap.setOnMarkerClickListener(this);\n mMap.setOnMapClickListener(this);\n mMap.setOnPoiClickListener(this);\n mMap.setOnInfoWindowClickListener(this);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), 9));\n\n final PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment)\n getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment);\n\n autocompleteFragment.getView().setBackgroundColor(Color.WHITE);\n autocompleteFragment.getView().setVisibility(View.GONE);\n autocompleteFragment.setOnPlaceSelectedListener(new PlaceSelectionListener() {\n @Override\n public void onPlaceSelected(Place place) {\n //Bias results towards the user's current location\n /*autocompleteFragment.setBoundsBias(new LatLngBounds(\n new LatLng(place.getLatLng().latitude, place.getLatLng().longitude),\n new LatLng(place.getLatLng().latitude, place.getLatLng().longitude)));*/\n\n //Get info about the selected place.\n //Log.i(TAG, \"Place: \" + place.getName());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(place.getLatLng().latitude,\n place.getLatLng().longitude), mMap.getCameraPosition().zoom));\n\n addMarkerAtPoi(place);\n }\n\n @Override\n public void onError(Status status) {\n // TODO: Handle the error.\n Log.i(TAG, \"An error occurred: \" + status);\n }\n });\n\n updateMapHistory();\n updateCustomTimeUI();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"you are in sydney\").draggable(true));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMarkerDragListener(this);\n mMap.setOnMapLongClickListener(this);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n // This method is called AFTER the map is loaded from Google Play services\n // At this point the map is ready\n\n // Store the reference to the Google Map in our member variable\n mMap = googleMap;\n // Custom marker (Big Blue one - mymarker.png)\n LatLng myPosition = new LatLng(33.671028, -117.911305);\n\n // Add a custom marker at \"myPosition\"\n mMap.addMarker(new MarkerOptions().position(myPosition).title(\"My Location\").icon(BitmapDescriptorFactory.fromResource(R.drawable.my_marker)));\n\n // Center the camera over myPosition\n CameraPosition cameraPosition = new CameraPosition.Builder().target(myPosition).zoom(15.0f).build();\n CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(cameraPosition);\n // Move map to our cameraUpdate\n mMap.moveCamera(cameraUpdate);\n\n // Then add normal markers for all the caffeine locations from the allLocationsList.\n // Set the zoom level of the map to 15.0f\n\n // Now, let's plot each Location form the list with a standard marker\n for (Location location : allLocationsList)\n {\n LatLng caffeineLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.addMarker(new MarkerOptions().position(caffeineLocation).title(location.getName()));\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n /* mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n //mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n LatLng ifto = new LatLng(-10.199202218157746, -48.31158433109522);\n mMap = googleMap;\n mMap.setOnCameraIdleListener(this);\n mMap.addMarker(new MarkerOptions().position(ifto).title(\"IFTO Campus Palmas\"));\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_show_place_info_map));\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(121.5729889, 25.0776557);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"This is my first Maker\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n updateLocationUI();\n getDeviceLocation();\n // Add a marker in Sydney and move the camera\n //float zoom = 15;\n //LatLng gbc = new LatLng(43.676209, -79.410703);\n //mMap.addMarker(new MarkerOptions().position(gbc).title(\"Marker in GBC\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(gbc, zoom));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng parque = new LatLng(latitud, longitud);\n mMap.addMarker(new MarkerOptions().position(parque).title(lugar).icon(BitmapDescriptorFactory.fromResource(R.drawable.icons8_terraria_48)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(parque));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitud, longitud),16.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng livraria = new LatLng(maps.getLatitude(), maps.getLongitude());\n if(this.maps.getId() == 1){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Saraiva - Praia de Belas\"));\n } else if(this.maps.getId() == 2){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cultura - Bourbon Country\"));\n } else if(this.maps.getId() == 3){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cameron\"));\n } else if(this.maps.getId() == 4){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Siciliano\"));\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(livraria, 15f));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n }",
"public void onMapReady(GoogleMap googleMap , double lati, double longi) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(lati, longi);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Your Current Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n gpsTracker = new GPSTracker(this);\n\n // TODO Cek Permission >= Marshmellow\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&\n checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION\n }, 110);\n return;\n }\n }\n\n if (gpsTracker.canGetLocation()) {\n latawal = gpsTracker.getLatitude();\n lonawal = gpsTracker.getLongitude();\n namelocationawal = myLocation(latawal, lonawal);\n }\n\n // Add a marker in Sydney and move the camera\n LatLng myLocation = new LatLng(latawal, lonawal);\n locawal.setText(namelocationawal);\n mMap.addMarker(new MarkerOptions().position(myLocation).title(namelocationawal));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 14));\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n mMap.setPadding(30, 80, 30, 80);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng CSN = new LatLng(51.87, -8.481);\n mMap.setMapType(MAP_TYPE_HYBRID);\n mMap.addMarker(new MarkerOptions().position(CSN).title(\"Marker at CSN college\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(CSN, 15F));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(LocationStorage.getInstance().getLocation().getLatitude(), LocationStorage.getInstance().getLocation().getLongitude());\n// BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.ic_large_marker);\n Marker marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Current Location\").snippet(\"Hold and drag to your desired location\"));\n marker.showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(sydney, 15);\n mMap.animateCamera(cameraUpdate);\n marker.setDraggable(true);\n mMap.setOnMarkerDragListener(new GoogleMap.OnMarkerDragListener() {\n @Override\n public void onMarkerDragStart(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDrag(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDragEnd(Marker marker) {\n LatLng latLng=marker.getPosition();\n Location temp = new Location(LocationManager.GPS_PROVIDER);\n temp.setLatitude(latLng.latitude);\n temp.setLongitude(latLng.longitude);\n LocationStorage.getInstance().setLocation(temp);\n }\n });\n// mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n// @Override\n// public boolean onMarkerClick(Marker marker) {\n//\n// return true;\n// }\n// });\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setTrafficEnabled(true);\n googleMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(onMyLocationChangeListener);\n\n // mMap.setPadding(0, 0, 0, 100);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(65.9667, -18.5333))\n .title(\"Hello world\"));\n\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n final LatLng update = getLastKnownLocation();\n if (update != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(update, 11.0f)));\n }\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng latLng) {\n mIsNeedLocationUpdate = false;\n moveToLocation(latLng, false);\n }\n\n });\n\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n mUiSettings = mMap.getUiSettings();\n mUiSettings.setCompassEnabled(false);\n mUiSettings.setMapToolbarEnabled(false);\n mUiSettings.setZoomControlsEnabled(false);\n mUiSettings.setScrollGesturesEnabled(false);\n mUiSettings.setTiltGesturesEnabled(false);\n mUiSettings.setRotateGesturesEnabled(false);\n\n // Add a marker in Sydney and move the camera\n final LatLng airport = new LatLng(listAirport.get(index).getLatitude(), listAirport.get(index).getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLng(airport));\n mMap.setMinZoomPreference(10.0f);\n mMap.setMaxZoomPreference(10.0f);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n onClick(index, MapsActivity.class);\n }\n });\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"startMap\");\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n mMap = googleMap;\n requestLocationPermision();\n requestMarkers();\n Log.d(TAG, \"Map listo\");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n String info = sTitle;\n // Add a marker in Sydney and move the camera\n LatLng pos = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(pos).title(info));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(pos));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 8));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n setInitialLocation(VehicleData.getLatitude(), VehicleData.getLongitude());\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n //Agafar la localitzacio actual per mostrar-ho al mapa\n LocationManager locationManager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n LatLng actual = new LatLng((location.getLatitude()),location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(actual,13));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(false);\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mcircleOptions = mcircleOptions.center(sydney);\n mcircleOptions = mcircleOptions.radius(500);\n mcircleOptions = mcircleOptions.strokeWidth(2);\n mcircleOptions = mcircleOptions.strokeColor(Color.argb(100, 255, 73, 73));\n mcircleOptions = mcircleOptions.fillColor(Color.argb(100, 255, 73, 73));\n mMap.addCircle(mcircleOptions);\n if (ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n !=\n PackageManager.PERMISSION_GRANTED\n &&\n ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n mlatLng = latLng;\n mMap.clear();\n mMap.addMarker(new MarkerOptions().position(mlatLng));\n mcircleOptions = mcircleOptions.center(mlatLng);\n mMap.addCircle(mcircleOptions);\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n geocoder = new Geocoder(Maps.this, Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(mlatLng.latitude, mlatLng.longitude, 1);\n for (int i=0; i < addresses.get(0).getMaxAddressLineIndex(); i++) {\n Log.e(\"Address\", addresses.get(0).getAddressLine(i) + \"\");\n caddress = addresses.get(0).getAddressLine(i);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n loc_data = getSharedPreferences(\"loc_data\", MODE_PRIVATE);\n SharedPreferences.Editor loc_data_editor = loc_data.edit();\n loc_data_editor.putString(\"lat\", Double.toString(mlatLng.latitude));\n loc_data_editor.putString(\"lng\", Double.toString(mlatLng.longitude));\n loc_data_editor.putString(\"add\", caddress + \"\");\n loc_data_editor.commit();\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MapStyleOptions style = MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.mapstyle_day);\n mMap.setMapStyle(style);\n\n if (locationProvider != null) {\n enableLocationBullet();\n if (lastpos != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(lastpos));\n }\n }\n // Start clustermanager and add markers\n setUpClusterManager();\n\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n mapReady = true;\n if (searchedRestaurants != null) {\n addRestaurants(searchedRestaurants, false);\n }\n\n Location loc = locationProvider.getLastLocation();\n if (!init) {\n zoomMapToPosition(loc, MY_LOCATION_ZOOM);\n init = true;\n }\n\n }\n });\n\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n mMap = map;\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n @SuppressLint(\"InflateParams\") View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents, null);\n\n TextView title = infoWindow.findViewById(R.id.title);\n title.setText(marker.getTitle());\n\n TextView snippet = infoWindow.findViewById(R.id.snippet);\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng point) {\n mMap.clear();\n buildMarker(\"User Tap\", \"This is snippet\", point, true);\n @SuppressLint(\"DefaultLocale\") String latLong = String.format(\"%f,%f\", point.latitude, point.longitude);\n String endPoint = String.format(placesURL,latLong, String.valueOf(distance), BuildConfig.API_KEY);\n Location locationSelected = new Location(mLastKnownLocation);\n locationSelected.setLatitude(point.latitude);\n locationSelected.setLongitude(point.longitude);\n showPlacesNearby(locationSelected, endPoint);\n }\n });\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n mMap.clear();\n }\n });\n\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n mMap.clear();\n updateLocationUI();\n getDeviceLocation();\n return true;\n }\n });\n\n\n // Prompt the user for permission.\n getLocationPermission();\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Pula and move the camera\n LatLng pula = new LatLng(44.86726450096342, 13.850460687162476);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(pula, 13));\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n enableUserLocation();\n zoomTooUserLocation();\n } else {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission\n .ACCESS_FINE_LOCATION)) {\n //we can show user dialog why this permission is necessery\n\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission\n .ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission\n .ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng oregon = new LatLng(45.3, -122);\n mMap.addMarker(new MarkerOptions().position(oregon).title(\"Marker in Oregon\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(oregon));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n //Enable interactions with the google map\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n if(!partnerLocs) {\n Log.d(\"GO TO INTI :\", \"!!!!\");\n init(); //initialize components\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n }\n mMap.setOnMarkerClickListener(this);\n\n if(showMyLoc || partnerLocs){\n loadMarkers();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n markerClicked.showInfoWindow();\n }\n else{\n loadMarkers(); //change to loadPartnerMarkers() later\n// mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n// markerClicked.showInfoWindow();\n }\n }",
"public void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.location_map)).getMap();\n MapsInitializer.initialize(getActivity().getApplicationContext());\n // Check if we were successful in obtaining the map.\n if (mMap != null)\n setUpMap();\n }\n }",
"@Override\n @SuppressWarnings({\"MissingPermission\"})\n public void onMapReady(GoogleMap googleMap) {\n\n Log.d(TAG, \"Map is ready.\");\n mMap = googleMap;\n\n mMap.setMyLocationEnabled(true);\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(\n mGoogleApiClient);\n\n setMarkerToCurrentLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMyLocationEnabled(true);\n // Get LocationManager object from System Service LOCATION_SERVICE\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n\n // Create a criteria object to retrieve provider\n Criteria criteria = new Criteria();\n\n // Get the name of the best provider\n String provider = locationManager.getBestProvider(criteria, true);\n\n // Get Current Location\n if (this.checkCallingOrSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n Location myLocation = locationManager.getLastKnownLocation(provider);\n // set map type\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n // Get latitude of the current location\n double latitude = myLocation.getLatitude();\n\n // Get longitude of the current location\n double longitude = myLocation.getLongitude();\n\n // Create a LatLng object for the current location\n LatLng latLng = new LatLng(latitude, longitude);\n\n // Show the current location in Google Map\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\n // Zoom in the Google Map\n mMap.animateCamera(CameraUpdateFactory.zoomTo(14));\n\n for (int i = restoList.size(); i >= 1; i--) {\n Restaurant current = restoList.get(i-1);\n LatLng curPos = new LatLng(current.getLatitude(),current.getLongitude());\n mMap.addMarker(new MarkerOptions().position(curPos).title(current.getName()));\n }\n\n } else {\n //TODO this stuff here\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n //Enable Current location\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.\n PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.\n ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION}, MY_REQUEST_INT);\n\n }\n\n\n return;\n\n } else {\n mMap.setMyLocationEnabled(true);\n\n\n }\n\n\n // Add a marker in Sydney and move the camera\n //LatLng sydney = new LatLng(-34, 151);\n //mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n // .icon(BitmapDescriptorFactory.fromResource(R.drawable.blackspot))\n // );\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(sydney,16),5000,null);\n //new MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.blackspot));\n\n //LatLng latLng = new LatLng(-1.2652560778411037, 36.81265354156495);\n //mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker in Parklands\"));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,16),5000,null);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n //BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.blackspot);\n ////LatLng harmbug = new LatLng(-37, 120);\n //mMap.addMarker(new MarkerOptions().position(harmbug).title(\"Marker in Harmbug\")\n //.icon(icon));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(harmbug,16),5000,null);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(harmbug));\n\n //LatLng kenya = new LatLng(-2.456, 37);\n //mMap.addMarker(new MarkerOptions().position(kenya).title(\"Marker in Kenya\"));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(kenya,16),5000,null);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(kenya));\n\n LatLng sydney = new LatLng(-0.8041213212075744, 36.53117179870606);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Blackspot at Kinungi\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(sydney, 18), 5000, null);\n\n LatLng gilgil = new LatLng(-0.2167, 36.2667);\n mMap.addMarker(new MarkerOptions().position(gilgil).title(\"Blackspot at Gilgil\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(gilgil));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(gilgil, 18), 5000, null);\n\n LatLng njoro = new LatLng(-0.3290, 35.9440);\n mMap.addMarker(new MarkerOptions().position(njoro).title(\"Blackspot at Njoro\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(njoro));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(njoro, 18), 5000, null);\n\n LatLng bluepost = new LatLng(-1.0226988092777693, 37.06806957721711);\n mMap.addMarker(new MarkerOptions().position(bluepost).title(\"Blackspot at Bluepost Bridge\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(bluepost));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(bluepost, 18), 5000, null);\n\n LatLng Nithi = new LatLng(-0.26649259802107667, 37.66248464584351);\n mMap.addMarker(new MarkerOptions().position(Nithi).title(\"Blackspot at Nithi Bridge\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Nithi));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(bluepost, 18), 5000, null);\n\n LatLng Maungu = new LatLng(-3.558353542362671, 38.74993801116944);\n mMap.addMarker(new MarkerOptions().position(Maungu).title(\"Blackspot at Maungu Area\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Maungu));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Maungu, 18), 5000, null);\n\n LatLng Misikhu = new LatLng(0.6662027919912484, 34.75215911865235);\n mMap.addMarker(new MarkerOptions().position(Misikhu).title(\"Blackspot at Misikhu\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Misikhu));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Maungu, 18), 5000, null);\n\n LatLng Muthaiga = new LatLng(-1.2614375406469367, 36.840720176696784);\n mMap.addMarker(new MarkerOptions().position(Muthaiga).title(\"Blackspot at Muthaiga Road\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Muthaiga));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Maungu, 18), 5000, null);\n\n LatLng Pangani = new LatLng(-1.2665003190843396, 36.834239959716804);\n mMap.addMarker(new MarkerOptions().position(Muthaiga).title(\"Blackspot at Pangani\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Pangani));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Pangani, 18), 5000, null);\n\n LatLng KU = new LatLng(-1.1823303731373749, 36.93703293800355);\n mMap.addMarker(new MarkerOptions().position(KU).title(\"Blackspot at KU\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(KU));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(KU, 18), 5000, null);\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n\n mMap = googleMap;\n\n attachLocationListener();\n\n\n mMap.setOnMarkerDragListener(this);\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Intent info = getIntent();\n setUpMap(new LatLng(info.getDoubleExtra(\"latitude\", 0), info.getDoubleExtra(\"longitude\", 0)), info.getStringExtra(\"name\"));\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n\n if(!continuar)\n {\n if (point != null)\n {\n point.remove();\n }\n if(search != null)\n {\n search.remove();\n }\n }else {\n if (point != null)\n {\n point.remove();\n }\n if(search != null)\n {\n search.remove();\n }\n }\n\n initView();\n\n latitud = latLng.latitude;\n longitud = latLng.longitude;\n point = mMap.addMarker(new MarkerOptions().position(latLng).title(geoCoderSearchLatLng(latLng)).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW)));\n if(!continuar)\n {\n init = point;\n }else\n {\n finit = point;\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n\n stopLocationUpdates();\n }\n });\n\n LatLng sydney = new LatLng(latitud, longitud);\n point = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location l = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n // Add a marker in Sydney and move the camera\n\n\n\n\n LatLng sydney = new LatLng(-21.2091416, -41.8870551);\n // mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n if(DepositoList.getDepositos().isEmpty()){\n Log.d(\"&&&&&&&&&\", \"A lista está vazia!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n }else{\n Log.d(\"XXXXXXXXXXXXXX\", \"Funcionou!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n }\n Log.d(\"&&&&&&&&&\", String.valueOf(lista.size()));\n //carregaDados();\n for(Deposito dp: DepositoList.getDepositos()){\n Log.d(\"&&&&&&&&&\", \"Value is: \" + dp.toString());\n LatLng dep = new LatLng(dp.getLatitude(),dp.getLongitude());\n mMap.addMarker(new MarkerOptions().position(dep).title(dp.getDescricao()));\n }\n\n mMap.moveCamera((CameraUpdateFactory.newLatLngZoom(sydney, 13)));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"onMapReady: map is ready\");\n mMap = googleMap;\n\n if (mLocationPermissionsGranted) {\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n\n mMap.getUiSettings().setCompassEnabled(true);\n// mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setIndoorLevelPickerEnabled(true);\n mMap.getUiSettings().setMapToolbarEnabled(true);\n\n mMap.getUiSettings().setAllGesturesEnabled(true);\n getDeviceLocation();\n mMap.setOnMarkerDragListener(this);\n\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n MapAddress durban= new MapAddress(\"Gordon Rajapogal: Durban Teen Challenge\",\"Afrique du Sud\",\"Durban\",\"Newlands East\",-29.777830,30.988298,\"5/7 Marlin Grov Newlands East Durban\",0,\"0833448430\");\n MapAddress nigeria= new MapAddress(\"BETLAADA ADULT & TEEN CHALLENGE\",\"Nigeria\",\"Ibadan\",\"\",7.323658, 3.898848,\"42A UNIQUE ESTATE, SANYO , IBADAN, NIGERIA\",0,\"+234-810-508-7705\");\n MapAddress ghana= new MapAddress(\"Teen Challenge, Ghana.\",\"Ghana\",\"Koforidua\",\"Eastern Region\",6.065691, -0.252336,\"Hse No. 193A, Adweso, Koforidua, Eastern Region, Ghana.\",0,\"+233243841230\");\n MapAddress nairo= new MapAddress(\"Teen Challenge Kenya\",\"Kenya\",\"Nairobi\",\"Kiambu\",-1.197566, 36.845074,\"Mushroom Rd, Kiambu, Kenya\",0,\"+254 722 410751\");\n MapAddress nigeria_jos= new MapAddress(\"Teen Challenge Jos, Nigeria\",\"Nigeria\",\"Jos\",\"Plateu State\",9.897248, 8.896680,\" No 74 Liberty Boulevard Gwarandok, Jos Plateau State, Nigeria\",0,\"\");\n mMap.addMarker(new MarkerOptions().position(new LatLng(durban.getLat(),durban.getLng())).title(durban.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nigeria.getLat(),nigeria.getLng())).title(nigeria.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(ghana.getLat(),ghana.getLng())).title(ghana.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nairo.getLat(),nairo.getLng())).title(nairo.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nigeria_jos.getLat(),nigeria_jos.getLng())).title(nigeria_jos.getOrganisation()));\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(durban.getLat(), durban.getLng())));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Toast.makeText(this, \"Map is Ready\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onMapReady: map is ready\");\n mMap = googleMap;\n\n if (mLocationPermissionsGranted) {\n getDeviceLocation();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n init();\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n riderLat = getIntent().getDoubleExtra(DriverActivity.RIDER_LATITUDE_EXTRA, 0.0);\n riderLong = getIntent().getDoubleExtra(DriverActivity.RIDER_LONGITUDE_EXTRA, 0.0);\n LatLng rider = new LatLng(riderLat, riderLong);\n riderMarker = mMap.addMarker(new MarkerOptions()\n .position(rider)\n .title(\"Rider\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n Toast.makeText(this, \"You don't have location permission\", Toast.LENGTH_LONG).show();\n return;\n }\n\n Location hereNow = mLocationManager.getLastKnownLocation(mBestProvider);\n if (hereNow != null) {\n onLocationChanged(hereNow);\n }\n\n mLocationManager.requestLocationUpdates(mBestProvider, 400, 1, this);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng liege = new LatLng(50.620552, 5.581177);\n LatLng victime = new LatLng(50.620957, 5.582263);\n mMap.addMarker(new MarkerOptions()\n .position(liege)\n .title(\"You are here !\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW)));\n mMap.addMarker(new MarkerOptions()\n .position(victime)\n .title(\"Aurélie\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(liege,17));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n enableMyLocation();\n buildGoogleApiClient();\n\n }",
"private static void setUpMap() {\n onMapReady();\n /*mMap.setMyLocationEnabled(true);\n // For dropping a marker at a point on the Map\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n // For zooming automatically to the Dropped PIN Location\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,\n longitude), 12.0f));*/\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n mGoogleMap.setMyLocationEnabled(true);\n Log.d(TAG, \"Map Ready\");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n LatLng latlong = new LatLng(29.375859, 47.977405);\n googleMap.addMarker(new MarkerOptions().position(latlong).title(\"\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlong, 9.0f));\n }",
"@Override\n public void onMapLoaded() {\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13.3f));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n }",
"private void setupMap() {\n if (googleMap == null) {\n SupportMapFragment mapFrag = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\n mapFrag.getMapAsync(this);\n mLocationProvider = new LocationProvider(this, this);\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n\r\n //Initialize Google Play Services\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (ContextCompat.checkSelfPermission(this,\r\n Manifest.permission.ACCESS_FINE_LOCATION)\r\n == PackageManager.PERMISSION_GRANTED) {\r\n buildGoogleApiClient();\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n }\r\n else {\r\n buildGoogleApiClient();\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n VisibleRegion region = mMap.getProjection().getVisibleRegion();\r\n\r\n Handler mainHandler = new Handler(this.getMainLooper());\r\n\r\n Runnable myRunnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n while (true) {\r\n // Add a marker in Sydney and move the camera\r\n final LatLng position = new LatLng(Math.random()*150, Math.random()*150);\r\n\r\n final BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.cast_album_art_placeholder);\r\n\r\n // Get a handler that can be used to post to the main thread\r\n Handler mainHandler = new Handler(MapsActivity.this.getMainLooper());\r\n\r\n Runnable updateRunnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n addMarker(position, \"Marker test\", \"Description test\", icon);\r\n }\r\n };\r\n\r\n mainHandler.post(updateRunnable);\r\n\r\n try {\r\n Thread.sleep(1500);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n }\r\n };\r\n\r\n new Thread(myRunnable).start();\r\n }",
"private void intializeMap() {\n\n if (googleMap == null) {\n\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n\n // getPlacesMarkers();\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n mMap.addMarker(new MarkerOptions()\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_cast_dark))\n .anchor(0.0f, 1.0f)\n .position(latLng));\n\n }\n });\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n Toast.makeText(getApplicationContext(), \"Has pulsado una marca\", Toast.LENGTH_LONG).show();\n return false;\n }\n });\n\n\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Bratislava and move the camera\n LatLng bratislava = new LatLng(48.148598, 17.107748);\n mMap.addMarker(new MarkerOptions().position(bratislava).title(\"Marker in Bratislava\").snippet(\"Hope you go there\"));\n\n CameraPosition bratislavaCam = CameraPosition.builder().target(bratislava).zoom(16).bearing(0).build();\n\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(bratislavaCam));\n }",
"private void setupMap() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\n \t\tif ( status != ConnectionResult.SUCCESS ) {\n \t\t\t// Google Play Services are not available.\n \t\t\tint requestCode = 10;\n \t\t\tGooglePlayServicesUtil.getErrorDialog( status, this, requestCode ).show();\n \t\t} else {\n \t\t\t// Google Play Services are available.\n \t\t\tif ( this.googleMap == null ) {\n \t\t\t\tFragmentManager fragManager = this.getSupportFragmentManager();\n \t\t\t\tSupportMapFragment mapFrag = (SupportMapFragment) fragManager.findFragmentById( R.id.edit_gpsfilter_area_google_map );\n \t\t\t\tthis.googleMap = mapFrag.getMap();\n \n \t\t\t\tif ( this.googleMap != null ) {\n \t\t\t\t\t// The Map is verified. It is now safe to manipulate the map.\n \t\t\t\t\tthis.configMap();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public void onMapReady(GoogleMap googleMap) {\n MapsInitializer.initialize(getContext());\n mMap = googleMap;\n mMap.setMinZoomPreference(13.0f);\n mMap.setMaxZoomPreference(20.0f);\n mMap.setOnMapClickListener(this);\n mMap.setInfoWindowAdapter(this);\n mMap.setOnInfoWindowClickListener(MyOnInfoWindowClickListener);\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.\n ACCESS_FINE_LOCATION}, 1);\n } else {\n mMap.setMyLocationEnabled(true);\n }\n }\n\n mMap.setMyLocationEnabled(true);\n\n buildGoogleApiClient();\n mGoogleApiClient.connect();\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n final LatLng thirdIntersection = new LatLng(45.425329, -75.682833);\n final LatLng fourthIntersection = new LatLng(45.426029, -75.681261);\n mMap = googleMap;\n\n // Moving the camera\n LatLngBounds Ottawa = new LatLngBounds(new LatLng(45.421536,-75.682823), new LatLng(45.426280, -75.679894));\n mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(Ottawa, 0));\n\n // Adding the path\n Polyline polyline = mMap.addPolyline(new PolylineOptions().width(8).color(Color.RED).clickable(true).add(\n new LatLng(45.422159, -75.680215),\n new LatLng(45.425329, -75.682833),\n new LatLng(45.426029, -75.681261)\n ));\n\n // Creating a custom marker\n Marker marker1 = mMap.addMarker(new MarkerOptions().position(new LatLng(45.422159, -75.680215)).title(\"Current Location\"));\n marker1.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.dot));\n\n // Moving the marker\n animateMarker(marker1,thirdIntersection, fourthIntersection);\n }"
] |
[
"0.8263892",
"0.80562526",
"0.79924846",
"0.79453886",
"0.7934444",
"0.7928846",
"0.7925973",
"0.79120976",
"0.79024684",
"0.78996825",
"0.7899437",
"0.7881781",
"0.7880441",
"0.7876604",
"0.78666055",
"0.78649724",
"0.78555626",
"0.7822515",
"0.77908075",
"0.77903044",
"0.7782559",
"0.7780536",
"0.7780536",
"0.7780536",
"0.7780536",
"0.77750015",
"0.777195",
"0.77653664",
"0.77580595",
"0.7748774",
"0.7739764",
"0.7738123",
"0.7734759",
"0.7716971",
"0.7714485",
"0.7714208",
"0.76963186",
"0.76893234",
"0.76864874",
"0.7686025",
"0.7684271",
"0.7670201",
"0.766631",
"0.76591897",
"0.7658242",
"0.7630687",
"0.7626652",
"0.76264954",
"0.7624994",
"0.76210886",
"0.7601503",
"0.76007116",
"0.7599842",
"0.7598621",
"0.75955474",
"0.7595173",
"0.7594739",
"0.7592542",
"0.7586756",
"0.75751615",
"0.75742686",
"0.7573579",
"0.757206",
"0.7561583",
"0.7558852",
"0.7553967",
"0.7553807",
"0.75532186",
"0.7553204",
"0.7536745",
"0.7533079",
"0.7523532",
"0.7512901",
"0.7507358",
"0.7498169",
"0.74950606",
"0.7490411",
"0.74837834",
"0.748233",
"0.7474551",
"0.7473108",
"0.74673545",
"0.7455745",
"0.7447829",
"0.74446875",
"0.74358535",
"0.74358064",
"0.74352676",
"0.7431276",
"0.7431123",
"0.7431063",
"0.7428306",
"0.7421221",
"0.7420117",
"0.74184644",
"0.7412888",
"0.7403598",
"0.73975044",
"0.73974514",
"0.7393547",
"0.73923916"
] |
0.0
|
-1
|
Clase que agrega el marcador
|
private void agregarMarcador(double lat, double lon, Meteo maMeteo) {
if(mMap != null){
if(marker != null){
marker.setPosition(new LatLng(lat, lon));
marker.setTag(maMeteo);
}else{
marker = mMap.addMarker(new MarkerOptions().position(new LatLng(lat,lon)));
marker.setTag(maMeteo);
}
mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(lat, lon)));
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private Marinator() {\n }",
"private Marinator() {\n }",
"public FiltroMicrorregiao() {\r\n }",
"public DarAyudaAcceso() {\r\n }",
"public ControladorCoche() {\n\t}",
"private Mgr(){\r\n\t}",
"private ControleurAcceuil(){ }",
"public Unidadmedida() {\r\n\t}",
"public MPaciente() {\r\n\t}",
"private MApi() {}",
"private RepositorioOrdemServicoHBM() {\n\n\t}",
"private DittaAutonoleggio(){\n \n }",
"public FiltroRaEncerramentoComando() {\r\n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public Alojamiento() {\r\n\t}",
"public Manusia() {}",
"ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);",
"@Override\r\n\tpublic void makerear() {\n\t\t\r\n\t}",
"private UsineJoueur() {}",
"public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }",
"public void asociarMedidorACliente(Cliente c, Medidor m){\r\n\t\t//TODO Implementar metodo\r\n\t}",
"public ControladorPrueba() {\r\n }",
"@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }",
"public Carrera(){\n }",
"public VotacaoSegundoDia() {\n\n\t}",
"public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public ConsultaMedica() {\n super();\n }",
"public LocalResidenciaColaborador() {\n //ORM\n }",
"protected void agregarUbicacion(){\n\n\n\n }",
"public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}",
"private QuadradoPerfeito() {\n }",
"public DAOPedidoMesa() {\n\t\trecursos = new ArrayList<Object>();\n\t}",
"public Principal() {\n initComponents();\n empresaControlador = new EmpresaControlador();\n clienteControlador = new ClienteControlador();\n vehiculoControlador = new VehiculoControlador();\n servicioControlador = new ServicioControlador();\n archivoObjeto = new ArchivoObjeto(\"/home/diego/UPS/56/ProgramacionAplicada/Parqueadero/src/archivo/ClienteArchivo.obj\");// Ruta Absolojuta\n archivosBinarios = new ArchivosBinarios();\n archivosBinariosAleatorio = new ArchivosBinariosAleatorio(\"ServicioArchivo.dat\");//Ruta relativa\n }",
"protected Asignatura()\r\n\t{}",
"protected FanisamBato(){\n\t}",
"@Override\n public void memoria() {\n \n }",
"public PanelAdministrarMarcas() {\n initComponents();\n cargarTabla();\n }",
"private void dibujarMarcador() {\n\n\t\tText tituloMarcador = new Text(\"Marcador\");\n\t\ttituloMarcador.setFont(new Font(16));\n\n\t\tText tituloJuega = new Text(\"Juega\");\n\t\ttituloJuega.setFont(new Font(16));\n\t\t\n\t\tcantidadFichasNegras = new Label();\n\t\tcantidadFichasBlancas = new Label();\n\t\tjugadorActual = new Label();\n\n\t\tGridPane marcador = new GridPane();\n\t\tmarcador.setAlignment(Pos.TOP_CENTER);\n\t\tmarcador.setHgap(20);\n\t\tmarcador.setVgap(20);\n\t\tmarcador.setPadding(new Insets(20));\n\t\tmarcador.add(tituloMarcador, 0, 0, 2, 1);\n\t\tmarcador.add(new Label(\"Negras :\"), 0, 1);\n\t\tmarcador.add(cantidadFichasNegras, 1, 1);\n\t\tmarcador.add(new Label(\"Blancas :\"), 0, 2);\n\t\tmarcador.add(cantidadFichasBlancas, 1, 2);\n\t\tmarcador.add(tituloJuega, 0, 3, 2, 1);\n\t\tmarcador.add(jugadorActual, 0, 4, 2, 1);\n\n\t\tpanel.setPadding(new Insets(5));\n\t\tpanel.setRight(marcador);\n\t}",
"public Cifrador(Manejador m){\n manejador = m;\n setTitle(\"Cifrador\");\n setResizable(false);\n setBounds(400,100, 400, 400);\n iniciarComponentes();\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n }",
"public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }",
"private void agregarMarcadorAlto() {\n SharedPreferences preferencias = actividadJuego.getSharedPreferences(\"marcadorAlto\", Context.MODE_PRIVATE);\n int puntos = preferencias.getInt(\"puntos\",0);\n\n txtMarcador = new Text(ControlJuego.ANCHO_CAMARA/2,ControlJuego.ALTO_CAMARA-80,\n fontMonster,\"Marcador mayor: \"+puntos,actividadJuego.getVertexBufferObjectManager());\n attachChild(txtMarcador);\n }",
"public Artefato() {\r\n\t\tthis.membros = new ArrayList<Membro>();\r\n\t\tthis.servicos = new ArrayList<IServico>();\r\n\t}",
"public void Ordenamiento() {\n\n\t}",
"public void consulterClassement() {\n\t\t\n\t}",
"public AgenteEstAleatorio() {\r\n }",
"public MorteSubita() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public ControladorCatalogoServicios() {\r\n }",
"public ATM() {\n usuarioAutenticado = false; // al principio, el usuario no está autenticado\n numeroCuentaActual = 0; // al principio, no hay número de cuenta\n pantalla = new Pantalla(); // crea la pantalla\n teclado = new Teclado(); // crea el teclado\n dispensadorEfectivo = new DispensadorEfectivo(); // crea el dispensador de efectivo\n ranuraDeposito = new RanuraDeposito(); // crea la ranura de depósito\n baseDatosBanco = new BaseDatosBanco(); // crea la base de datos de información de cuentas\n }",
"@Override\n\tpublic void darMasaje() {\n\t\t\n\t}",
"public CorreoElectronico() {\n }",
"public solicitudControlador() {\n }",
"public void buscarMarcacion(){\n\t\t\n \tif(!FuncionesFechas.validaFecha(fCargaI, fCargaF))\n \t{\t\n \t\tlistaMarcacion=null;\n \t\tlistaMarcacionPDF=null;\n \t\treturn ;}\n \tMarcacionDespatch marcacionDespatch=new MarcacionDespatch();\n\t\ttry {\n\t\t\t//listaMarcacion=marcacionDespatch.getMarcacionesPorCodigo(PGP_Usuario.getV_codpersonal());\n\t\t\t/*for(int i=0;i<listaMarcacion.size();i++)\n\t\t\t{\n\t\t\t\tif(listaMarcacion.get(i).getdFecha().after(fCargaI) && listaMarcacion.get(i).getdFecha().before(fCargaF)){\n\t\t\t\t\tSystem.out.println(\"Entroo\\nLista [\"+(i+1)+\"]:\"+listaMarcacion.get(i).getdFecha());\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tlistaMarcacion=marcacionDespatch.getMarcacionesPorCodigoFecha(PGP_Usuario.getV_codpersonal(),fCargaI,fCargaF);//\"44436285\"\n\t\t\tMap parametros = new HashMap();\t\t\t\n\t\t\tparametros.put(\"PARAM_NRODOC\", PGP_Usuario.getV_codpersonal());\n\t\t\tparametros.put(\"PARAM_STR_FI\", FuncionesFechas.getFormatDateDDMMYYYY(fCargaI));\n\t\t\tparametros.put(\"PARAM_STR_FF\", FuncionesFechas.getFormatDateDDMMYYYY(fCargaF));\n\t\t\tlistaMarcacionPDF=marcacionDespatch.reporteMisMarcaciones(parametros);\n\t\t} catch (Exception e) {\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n }",
"public MMCAgent() {\n\n\t}",
"public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}",
"public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}",
"public BuscarArtG() {\n\t\tvista = new MenuBuscarArtG(this);\n\n\t\t/* Asociamos controlador a la vista */\n\t\t((MenuBuscarArtG) vista).setControlador(this);\n\t}",
"private void limpiarDatos() {\n\t\t\n\t}",
"public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }",
"public ManagedRegistroSolicitudMateriales() {\n }",
"protected MedicoDao() {\n super(Medico.class);\n }",
"public void buscarGestor(){\r\n\t\t\r\n\t}",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public Caso_de_uso () {\n }",
"public Sistema(){\r\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }",
"public Principal() {\n initComponents();\n setResizable(false);\n setLocationRelativeTo(null);\n asignarListeners();\n listaGatos = Utilidad.leerArchivoGatos();\n listaPerros = Utilidad.leerArchivoPerros();\n // Actualizacion al iniciar el proyecto, carga de informacion de los\n // archivos planos\n actualizarListas();\n }",
"@Override\n\tpublic DAOIncidencias CrearInformesMedicos() {\n\t\treturn null;\n\t}",
"Obligacion createObligacion();",
"public contrustor(){\r\n\t}",
"public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}",
"private Celda rastrearAPacman() {\n // TODO implement here\n return null;\n }",
"public AjusteSaldoAFavorRespuesta() {\n\t}",
"public MdrCreater()\n {\n super();\n client = new RawCdrAccess();\n }",
"public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }",
"public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }",
"public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }",
"public Corrida(){\n\n }",
"public PersistenciaCMT() {\n\n }",
"public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }",
"public Principal(String caminhoArquivoRecebido) {\n this.caminhoArquivo = caminhoArquivoRecebido;\n }",
"public Coloca_imagen(){\n \n \n }",
"protected EmpleadoPlantilla(com.matisse.reflect.MtClass mtCls) {\n super(mtCls);\n }",
"protected T getManusia(){\r\n return Manusia;\r\n }",
"protected Doodler() {\n\t}",
"public CntCuentasAdicionarModificarBacking() {\n }",
"private OMUtil() { }",
"public ControladorCatalogoEstado() {\r\n }",
"public controladorCategorias() {\r\n }",
"public BuscaMedicamento() {\n initComponents();\n }",
"public AgregarClientes(Directorio directorio) {\n initComponents();\n this.directorio=directorio;\n \n \n }",
"public RepositorioTransacaoHBM() {\n\n\t}",
"private Ambulancia() {\n this.estado = new DisponibleState(this);\n }",
"public Corso() {\n\n }",
"public InventarioControlador() {\n }",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"public CTematicaBienestar() {\r\n\t}",
"public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }",
"public ControladorUsuario() {\n }"
] |
[
"0.6267831",
"0.6267831",
"0.6246712",
"0.61906713",
"0.61732095",
"0.6125016",
"0.61215615",
"0.60992527",
"0.6063809",
"0.60508287",
"0.6045583",
"0.59996814",
"0.5996882",
"0.59821695",
"0.5967791",
"0.5942489",
"0.59371734",
"0.5927277",
"0.590969",
"0.5880425",
"0.58756864",
"0.587448",
"0.5873798",
"0.5865862",
"0.58331436",
"0.5832883",
"0.5798782",
"0.5798098",
"0.57957864",
"0.5785628",
"0.5771403",
"0.57649887",
"0.5756404",
"0.5743156",
"0.57328093",
"0.57142997",
"0.5713054",
"0.57051706",
"0.5699827",
"0.5698265",
"0.56875217",
"0.56860197",
"0.56702054",
"0.5653352",
"0.56346726",
"0.5627566",
"0.5618125",
"0.5616822",
"0.5613429",
"0.5599796",
"0.55905193",
"0.5589994",
"0.55863863",
"0.5574147",
"0.55723405",
"0.5568795",
"0.55620074",
"0.5554982",
"0.55469143",
"0.5545422",
"0.5541803",
"0.55373025",
"0.5535401",
"0.55338573",
"0.55333024",
"0.55316985",
"0.5525451",
"0.55165005",
"0.5513867",
"0.551103",
"0.55105096",
"0.55081147",
"0.5493623",
"0.54918236",
"0.5489595",
"0.54792947",
"0.54697526",
"0.54675674",
"0.54666024",
"0.5464637",
"0.54491305",
"0.5445486",
"0.54424524",
"0.5438128",
"0.5434981",
"0.5434053",
"0.54258364",
"0.54248357",
"0.5424641",
"0.5424359",
"0.5422712",
"0.54222393",
"0.5418291",
"0.5414532",
"0.54141253",
"0.5412612",
"0.5409767",
"0.54095656",
"0.5402103",
"0.53934765",
"0.5390705"
] |
0.0
|
-1
|
Clase que busca nuestra posicion
|
public void miUbicacion() { //Funcion que recupera la ubicacion
if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&
ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
return;
}
LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); //Se accede al sistema para el servicio de locatizacion
Location location = locationManager.getLastKnownLocation(GPS_PROVIDER); //Se recupera la ultima localizacion conocida
if(location != null) {
new DownloadWebPageTask(location).execute("http://api.openweathermap.org/data/2.5/weather?lat=" + location.getLatitude() + "&lon=" + location.getLongitude() +
"&units=metric&lang=fr&appid=5bdfb081811a28abc515bc673fc0d20f");
}
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 20000,0,locListenner); //Esto se hace cada 10s
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Position_ordonnee createPosition_ordonnee();",
"Vaisseau_positionner createVaisseau_positionner();",
"Position_changerOrdonnee createPosition_changerOrdonnee();",
"Negacion createNegacion();",
"Position_abscisse createPosition_abscisse();",
"Position_changerAbscisse createPosition_changerAbscisse();",
"Secuencia createSecuencia();",
"public PosicionArista() {\n this(new Posicion(), OrientacionArista.Este);\n }",
"SpacesInvaders_positionnerUnNouveauVaisseau createSpacesInvaders_positionnerUnNouveauVaisseau();",
"SpacesInvaders_positionnerUnNouveauVaisseau createSpacesInvaders_positionnerUnNouveauVaisseau();",
"@Override\n\tpublic void nuevo() {\n\n\t}",
"Position_Position createPosition_Position();",
"private Posicion posicionAlDesarmarMenasor(Posicion posicion) {\n\t\t\t\tPosicion posAux;\n\t\t\t\ttry{\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t\t\t}catch(ErrorPosicionInvalida e){\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn posAux;\n\t\t\t}",
"private Posicion posicionAlDesarmarSuperion(Posicion posicion) {\n\t\tPosicion posAux;\n\t\ttry{\n\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t}catch(ErrorPosicionInvalida e){\n\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t}\n\t\t\n\t\treturn posAux;\n\t}",
"private void BajarPiezaAlInstante() {\n int newY = posicionY;\r\n while (newY > 0) {\r\n if (!Mover(piezaActual, posicionX, newY - 1)) {\r\n break;\r\n }\r\n --newY;\r\n }\r\n BajarPieza1posicion();\r\n }",
"public void iniciarNovaPartida(Integer posicao);",
"OperacionColeccion createOperacionColeccion();",
"private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"Position createPosition();",
"Operacion createOperacion();",
"public void descolaPosicao();",
"Position getNewPosition();",
"Compuesta createCompuesta();",
"@Override\n\tpublic void insertar() {\n\t\t\n\t}",
"public void setPosicion(int posicion){\n _posicion = posicion;\n }",
"Oracion createOracion();",
"Lancamento persistir(Lancamento lancamento);",
"public Pedina(final TipoPedina tipoPedina, final Posizione pos) {\n this.tipo = tipoPedina;\n this.posizione = pos;\n this.isDama = false;\n }",
"public abstract Anuncio creaAnuncioIndividualizado();",
"public ListaPalabras() {\n\n //pos=0;\n }",
"public void mostrarTareasEnPosicionImpar(){}",
"ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);",
"public CrearQuedadaVista() {\n }",
"@Override\n\tpublic void recreo() {\n\n\t}",
"public POS(int position) {\n \t\tthis.position = position;\n \t}",
"public Position() {\n\n\t}",
"public abstract void leerPersistencia();",
"@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"SpacesInvaders_aUnVaisseauQuiOccupeLaPosition createSpacesInvaders_aUnVaisseauQuiOccupeLaPosition();",
"private ControleurAcceuil(){ }",
"Vaisseau_occupeLaPosition createVaisseau_occupeLaPosition();",
"@Override\n\tpublic void posSave() {\n\t\t\n\t}",
"@Override\n\tpublic void posSave() {\n\t\t\n\t}",
"public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}",
"Obligacion createObligacion();",
"private TAPosition()\n {\n\n }",
"public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }",
"public Prova() {}",
"private Vector2d generateNewPositionForChild()\n {\n\n Random generator = new Random();\n List<Vector2d> freePositions = new LinkedList<>(); //tutaj przechowywane sa wolne pozycje wokol\n Vector2d position;\n Directions directionToAdd;\n\n for(int i = 0; i<8; i++)\n {\n directionToAdd = new Directions(i); //wykorzystujemy klase directions do generowania pozycji wokol\n position = this.position.add(directionToAdd.move());\n if(map.animalsAt(position).isEmpty())\n {\n freePositions.add(position);\n }\n }\n\n if(freePositions.isEmpty()) //jezeli nie ma wolnych pozycji\n {\n //jesli nie ma wolnych pozycji\n int x = generator.nextInt(8);\n directionToAdd = new Directions(x);\n return this.position.add(directionToAdd.move());\n }\n\n //jezeli mamy wolne pozycje to generujemy dowolna z listy\n int x = generator.nextInt(freePositions.size());\n Vector2d newPosition = freePositions.get(x);\n\n return newPosition;\n }",
"Persistencia() {\n\t}",
"public Integer addPosition(Position1 pos) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(pos);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return id;\n }",
"public prueba()\r\n {\r\n }",
"public void insertarPos(int pos,Nodo nNodo) throws Exception {\n if(pos>this.size || pos<0){\r\n throw new Exception(\"Posicion invalida\");\r\n //Si la posicion es igual al tamaño de la lista, quiere decir que se\r\n //quiere insertar al final\r\n } else if(pos==this.size){\r\n this.agregarNodo(nNodo);\r\n //Se inserta en cualquer lugar\r\n } else {\r\n size++;\r\n Nodo temp = nIni;\r\n if(pos ==0){\r\n nIni.setnAnt(nNodo);\r\n nNodo.setnSig(nIni);\r\n nIni = nNodo;\r\n } else{\r\n for (int i = 0; i < pos-1; i++) {\r\n temp=temp.getnSig();\r\n }\r\n temp.getnSig().setnAnt(nNodo);\r\n nNodo.setnSig(temp.getnSig());\r\n nNodo.setnAnt(temp);\r\n temp.setnSig(nNodo);\r\n }\r\n }\r\n }",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"private UsineJoueur() {}",
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"SpacesInvaders_recupererMarqueDeLaPosition createSpacesInvaders_recupererMarqueDeLaPosition();",
"public ControladorPrueba() {\r\n }",
"Motivo create(Motivo motivo);",
"@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}",
"public void Ordenamiento() {\n\n\t}",
"public AntrianPasien() {\r\n\r\n }",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }",
"ParqueaderoEntidad agregar(String nombre);",
"private void populaFaixaEtariaCat()\n {\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Até 15 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 16 a 19 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 20 a 30 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 31 a 45 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 46 a 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Mais de 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Todas as idades\"));\n\n }",
"public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}",
"public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }",
"public Medidor nuevoMedidor(TipoMedidor tipo, CoordenadaGPS pos){\r\n\t\tMedidor m;\r\n\t\tif (TipoMedidor.MONOFASICO.equals(tipo))\r\n\t\t\tm = new MedidorMonofasico(pos);\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tmedidores.add(m);\r\n\t\treturn m;\r\n\t}",
"public void setPos(Punto pos) {\n\t\tthis.pos = pos;\n\t}",
"public Exposicao() {\n obras = new TreeSet<Obra>();\n }",
"public VotacaoSegundoDia() {\n\n\t}",
"public Pasien() {\r\n }",
"@Override\n public boolean create(Revue objet) {\n return false;\n }",
"public boolean createPalvelupiste(Palvelupiste palvelupiste);",
"public Produto() {}",
"private void ajouterPion(Pion unPion, Position unePosition) {\n\t\tmesPions.put(unePosition, unPion); \n }",
"public void case4_Position() {\r\n Position testPosition = new Position(0,0);\r\n\r\n }",
"void adicionaComentario(Comentario comentario);",
"public void setPosicion(){\n ejeX = 0;\n ejeY = 0;\n }",
"public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }",
"public Propuestas() {}",
"public void setPosEnSaliente(Position<Arco<E>> pos){\r\n\t\tposV1 = pos;\r\n\t}",
"public Position create() {\n\t\tfinal Actor actorLogged = this.actorService.findActorLogged();\n\t\tAssert.notNull(actorLogged);\n\t\tthis.actorService.checkUserLoginCompany(actorLogged);\n\n\t\tPosition result;\n\n\t\tresult = new Position();\n\t\tfinal Collection<Problem> problems = new HashSet<>();\n\t\tfinal Collection<Application> applications = new HashSet<>();\n\n\t\t// R4\n\t\tfinal String ticker = \"\"; //Será generado en el reconstruct\n\n\t\tresult.setTicker(ticker);\n\t\tresult.setProblems(problems);\n\t\tresult.setApplications(applications);\n\t\tresult.setIsFinalMode(false);\n\t\tresult.setIsCancelled(false);\n\n\t\treturn result;\n\t}",
"public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }",
"public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }",
"public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}",
"public void nouveau(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public Joueur(int id, int pa)\r\n/* */ {\r\n/* 34 */ this.id_joueur = id;\r\n/* 35 */ this.points_action = pa;\r\n/* */ }",
"public String crearPostulante() {\n\t\tString r = \"\";\n\t\ttry {\n\t\t\tif (edicion) {\n\t\t\t\tsetPos_password(Utilidades.Encriptar(getPos_password()));// PASS\n\t\t\t\tmanagergest.editarPostulante(pos_id.trim(), pos_nombre.trim(),\n\t\t\t\t\t\tpos_apellido.trim(), pos_direccion.trim(),\n\t\t\t\t\t\tpos_correo.trim(), pos_telefono.trim(),\n\t\t\t\t\t\tpos_celular.trim(), pos_password.trim(), \"A\");\n\t\t\t\tpos_id = \"\";\n\t\t\t\tpos_nombre = \"\";\n\t\t\t\tpos_apellido = \"\";\n\t\t\t\tpos_direccion = \"\";\n\t\t\t\tpos_correo = \"\";\n\t\t\t\tpos_password = \"\";\n\t\t\t\tpos_telefono = \"\";\n\t\t\t\tpos_celular = \"\";\n\t\t\t\tpos_institucion = \"\";\n\t\t\t\tpos_gerencia = \"\";\n\t\t\t\tpos_area = \"\";\n\t\t\t\tMensaje.crearMensajeINFO(\"Modificado - Editado\");\n\t\t\t\tr = \"home?faces-redirect=true\";\n\t\t\t} else {\n\t\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn r;\n\t}",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"Long crear(Prestamo prestamo);",
"public Alojamiento() {\r\n\t}",
"Petunia() {\r\n\t\t}",
"Long crear(Espacio espacio);",
"@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }"
] |
[
"0.7406169",
"0.6928704",
"0.68151015",
"0.6747484",
"0.6725877",
"0.6576269",
"0.6436119",
"0.6370246",
"0.6336626",
"0.6336626",
"0.63272625",
"0.63259226",
"0.6290285",
"0.6239038",
"0.6235272",
"0.62278664",
"0.6204389",
"0.61685705",
"0.6164385",
"0.6138979",
"0.61321235",
"0.61240315",
"0.61062914",
"0.60999966",
"0.6085929",
"0.60493565",
"0.6047022",
"0.60296416",
"0.59867156",
"0.597514",
"0.5954066",
"0.5932897",
"0.5922029",
"0.58997256",
"0.5888008",
"0.58837306",
"0.58721274",
"0.5863417",
"0.5854868",
"0.5844938",
"0.5843528",
"0.58324236",
"0.5825932",
"0.5823154",
"0.5823154",
"0.58195764",
"0.5816186",
"0.5815406",
"0.57953304",
"0.5784753",
"0.57834554",
"0.57819873",
"0.5766325",
"0.5764017",
"0.5749402",
"0.57436574",
"0.57399213",
"0.57389694",
"0.5729237",
"0.572606",
"0.5720055",
"0.570649",
"0.5693353",
"0.56897104",
"0.5658107",
"0.5648507",
"0.56457627",
"0.56442976",
"0.5640659",
"0.56394404",
"0.56350887",
"0.56326777",
"0.5626537",
"0.56126",
"0.5604221",
"0.56035787",
"0.5594251",
"0.55917114",
"0.5584372",
"0.5584071",
"0.55742407",
"0.557257",
"0.557175",
"0.55693114",
"0.5569187",
"0.5565568",
"0.5565507",
"0.55634373",
"0.55595005",
"0.55539834",
"0.55403775",
"0.55377203",
"0.5536603",
"0.5532885",
"0.55231327",
"0.5522474",
"0.5522108",
"0.5519717",
"0.5518795",
"0.55087525",
"0.55087405"
] |
0.0
|
-1
|
Se crea una variable que escucha nuestra ubicacion cuando:
|
@Override
public void onLocationChanged(Location location) {
//Aqui creamos la funcion DownloadWebPageTask para poder descargar los archivos desde la pagina del api
DownloadWebPageTask task = new DownloadWebPageTask(location);
task.execute(new String[] { "http://api.openweathermap.org/data/2.5/weather?lat="+location.getLatitude()+
"&lon="+location.getLongitude()+"&units=metric&lang=fr&appid=5bdfb081811a28abc515bc673fc0d20f" });
Log.d("DEBUGGGGGGGGGGGGGGGGGG", String.valueOf(location.getLatitude()));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void crearImagenes() {\n try {\n fondoJuego1 = new Imagenes(\"/fondoJuego1.png\",39,-150,-151);\n fondoJuego2 = new Imagenes(\"/fondoJuego2.png\",40,150,149);\n regresar = new Imagenes(\"/regresar.png\",43,90,80);\n highLight = new Imagenes(\"/cursorSubmenus.png\",43,90,80);\n juegoNuevo = new Imagenes(\"/juegoNuevo.png\",44,90,80);\n continuar = new Imagenes(\"/continuar.png\",45,90,80);\n tituloJuegoNuevo = new Imagenes(\"/tituloJuegoNuevo.png\",200,100,165);\n tituloContinuar = new Imagenes(\"/tituloContinuar.png\",201,100,40);\n tituloRegresar = new Imagenes(\"/tituloRegresar.png\",202,20,100);\n\t} catch(IOException e){\n e.printStackTrace();\n }\n }",
"public void crearRutaImgPublicacion(){\n \n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n //Obtener el codigo del usuario de la sesion actual\n //este es utilizado para ubicar la carpeta que le eprtenece\n String codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"post\"+File.separatorChar+codUsuario+File.separatorChar+\"all\"+File.separatorChar;\n //Asignacion de la ruta creada\n this.rutaImgPublicacion=ruta;\n }",
"void create_MB(String nombre){\n if (Globales.UltimoIndiceMailbox == 6){\r\n PantallaError pe = new PantallaError(\"Ya hay 6 buzones (mailbox) en ejecución, no puede crear más.\");\r\n }\r\n else{\r\n Mailbox mb = new Mailbox(\"MB\"+nombre);\r\n Globales.mails[Globales.UltimoIndiceMailbox]=mb;\r\n //System.out.println(\"Globales.mails[\"+Globales.UltimoIndiceMailbox+\"] = \"+Globales.mails[Globales.UltimoIndiceMailbox].nombre);\r\n Globales.UltimoIndiceMailbox++;\r\n //System.out.println(\"creó el mb: \"+mb.nombre+\" y lo insertó el el arreglo global de mb\");\r\n }\r\n }",
"private void prepararImagenYStorage() {\n mImageBitmap = null;\n\n //this.capturarFotoButton = (Button) findViewById(R.id.capturarFotoButton);\n// setBtnListenerOrDisable(\n// this.capturarFotoButton,\n// mTakePicSOnClickListener,\n// MediaStore.ACTION_IMAGE_CAPTURE\n// );\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {\n mAlbumStorageDirFactory = new FroyoAlbumDirFactory();\n } else {\n mAlbumStorageDirFactory = new BaseAlbumDirFactory();\n }\n }",
"public void creaRutaImgPerfil(){\n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta de uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n \n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"users\"+File.separatorChar;\n \n //Asignacion de la ruta creada\n this.rutaImgPerfil=ruta;\n }",
"public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}",
"public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}",
"private void crearDimensionContable()\r\n/* 201: */ {\r\n/* 202:249 */ this.dimensionContable = new DimensionContable();\r\n/* 203:250 */ this.dimensionContable.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 204:251 */ this.dimensionContable.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 205:252 */ this.dimensionContable.setNumero(getDimension());\r\n/* 206:253 */ verificaDimension();\r\n/* 207: */ }",
"protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }",
"Compuesta createCompuesta();",
"public void creation(){\n\t for(int i=0; i<N;i++) {\r\n\t\t for(int j=0; j<N;j++) {\r\n\t\t\t tab[i][j]=0;\r\n\t\t }\r\n\t }\r\n\t resDiagonale(); \r\n \r\n\t //On remplit le reste \r\n\t conclusionRes(0, nCarre); \r\n \t\t\r\n\t \r\n\t isDone=true;\r\n }",
"public void inicializarVariables(boolean inicializa){\n\t\tif(inicializa){\n\t\t\tx = 1;\n\t\t\ty = 3*x;\n\t\t\t//TODO cómo se resuelve este problema?\n\t\t\tDouble temp = Math.pow(x, 2) + y;\n\n\t\t\tz = temp.intValue(); \n\t\t\tSystem.out.println(\"Valor de z\"+z);\n\t\t}else{\n\t\t\t// No hacer nada\n\t\t}\t\t\n\t}",
"private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }",
"public void inicializar();",
"public void agregarBodega(String nombre_bodega){\n Nodo_Bodega Nueva_bodega = new Nodo_Bodega(Size,nombre_bodega);\n if(Nodo_bodega_inicial==null){\n Nodo_bodega_inicial = Nueva_bodega;\n Nodo_bodega_final = Nueva_bodega;\n Nodo_bodega_actual = Nueva_bodega;\n }else{\n Nueva_bodega.definirAnterior(Nodo_bodega_final);\n Nodo_bodega_final.definirSiguiente(Nueva_bodega);\n Nodo_bodega_final = Nueva_bodega;\n }\n Size++;\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}",
"private void inicializarConexoesDaSegundaCamada() {\n conexoesSegundaCamada = new double[numeroNeuroniosPrimeiraCamada + 1];\n for (int i = 0; i < conexoesSegundaCamada.length; i++) {\n conexoesSegundaCamada[i] = Math.random();\n //conexoesSegundaCamada[i] = 1.0;\n }\n }",
"private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}",
"private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }",
"private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"public void createValue() {\n value = new AES_GetBusa_Lib_1_0.AES_GetBusa_Request();\n }",
"@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }",
"private static void createFileUmidade() throws IOException {\r\n\t\tInteger defaultUmidade = 30;\r\n\t\tarqUmidade = new File(pathUmidade);\r\n\t\tif(!arqUmidade.exists()) {\r\n\t\t\tarqUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {\r\n\t\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"private void crearNave(String accion) {\n\t\tthis.naveCreada=true;\n\t\tpausa = false;\n\t\t\n\t\tString [] info = accion.split(\"#\");\n\t\tString [] xA = info[3].split(\"=\");\n\t\tString [] yA = info[4].split(\"=\");\n\t\tString [] vxA = info[5].split(\"=\");\n\t\tString [] vyA = info[6].split(\"=\");\n\t\tString [] anA = info[7].split(\"=\");\n\t\t\n\t\tdouble x = Double.valueOf(xA[1]);\n\t\tdouble y = Double.valueOf(yA[1]);\n\t\tdouble velocidadx = Double.valueOf(vxA[1]);\n\t\tdouble velocidady = Double.valueOf(vyA[1]);\n\t\tdouble an = Double.valueOf(anA[1]);\n\t\t\n\t\tthis.nave = new Nave (x, y, an, 0.2, 0.98, 0.05, 20, this);\n\t\tnave.setVelocidadX(velocidadx);\n\t\tnave.setVelocidadY(velocidady);\n\t}",
"public void agregarFruta(){\n\t\tcontenidos[14][17] = new Fruta();\n\t}",
"Long crear(Prestamo prestamo);",
"void makeAvocado() {\n this.hungerDeltaPcrntArray.add(0.17f);\n this.speedDeltaPcrntArray.add(0.50f);\n this.pointsDeltaArray.add(600);\n this.imageLocationArray.add(\"avocado.png\");\n }",
"private void InicializaGrafo() {\n\t\t\n\t\tnumeroVertices = ruas.length + 1;\n\t\tgrafo = new Grafo(numeroVertices);\n\t\t\n\t\tfor (int i = 0; i < numeroVertices - 1; i++) {\n\t\t\t\n\t\t\tint u = ruas[i];\n\t\t\tint v = (i + 1);\n\t\t\t\n\t\t\tgrafo.AdicionaAresta(u, v);\n\t\t\t\n\t\t} // Fim for int i = 0\n\t\t\n\t}",
"private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }",
"public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }",
"Compleja createCompleja();",
"public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6.jpg\"));\n }\n if(oportunidades==2){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado5.jpg\"));\n }\n if(oportunidades==3){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado4.jpg\"));\n }\n if(oportunidades==4){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado3.jpg\"));\n }\n if(oportunidades==5){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado2.jpg\"));\n }\n if(oportunidades==6){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado1.jpg\"));\n }\n if(oportunidades==7){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado0.jpg\"));\n }\n this.imgAhorcado=respuesta; \n }",
"public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }",
"public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }",
"public void testCrearDispositivo() {\n\t\tString referencia = \"A0021R\";\n\t\tString nombre = \"Motorola G primera generacion\";\n\t\tString descripcion = \"1 GB de RAM\";\n\t\tint tipo = 1;\n\t\tString foto = \"url\";\n\t\tString emailAdministrador = \"[email protected]\";\n\t\ttry {\n\t\t\tdispositivoBL.crearDispositivo(referencia, nombre, descripcion, tipo, foto, emailAdministrador);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private File crearAchivoDeImagen() throws IOException {\n String fecha = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String nombreImagen = \"respaldo_\" + fecha + \"_\";\n File directorio = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File imagen = File.createTempFile(nombreImagen, \".jpg\", directorio);\n\n imagePath = imagen.getAbsolutePath();\n Log.d(\"Retrofit\",imagePath);\n return imagen;\n }",
"private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }",
"public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }",
"public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"private void inicializarPartida(int nivel) {\r\n\t\tif(nivel == PRINCIPIANTE) {\r\n\t\t\tcasillas = new Casilla [FILAS_PRINCIPIANTE] [COLUMNAS_PRINCIPIANTE];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_PRINCIPANTE;\r\n\t\t\t\r\n\t\t}\r\n\t\tif(nivel == INTERMEDIO) {\r\n\t\t\tcasillas = new Casilla [FILAS_INTERMEDIO] [COLUMNAS_INTERMEDIO];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_INTERMEDIO;\r\n\t\t}\r\n\t\tif(nivel == EXPERTO) {\r\n\t\t\tcasillas = new Casilla [FILAS_EXPERTO] [COLUMNAS_EXPERTO] ;\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_EXPERTO;\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void prepareBloque(){\n\t\tBloque b= game.getBloque();\n\t\timage = b.getImage();\n\t\ttemporal = image.getImage().getScaledInstance(b.getAncho(), b.getAlto(), Image.SCALE_SMOOTH);\n\t\tb.setImage(new ImageIcon(temporal));\n\t}",
"public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }",
"public Fogon (String cocineroActual){\n Cocinero = cocineroActual;\n grados = 0; \n }",
"public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}",
"public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }",
"public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}",
"public JefeAvion() {\r\n\t\tsuper(2000, 2, new ImageIcon(url), 1275, 636);\r\n\t\trn = new Random();\r\n\t\tx = 400 - defaultWidth/2;\r\n\t\ty = - defaultHeight;\r\n\t\tdelay = 2;\r\n\t\tint cantTorretasDobles = 8;\r\n\t\tint cantTorretasSimples = 3;\r\n\t\tint cantTorretasInvisibles = 12;\r\n\t\tint cantTorretasGrandes = 6;\r\n\t\t\r\n\t\tString boundsDouble = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasDobles.txt\";\r\n\t\tString boundsSimple = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasSimples.txt\";\r\n\t\tString boundsInvisible = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasInvisibles.txt\";\r\n\t\tString boundsGrande = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasGrandes.txt\";\r\n\t\t\r\n\t\tinit = System.currentTimeMillis();\r\n\t\tcargarArchivoTorretas(boundsDouble, new FabricaTorretasDobles(), cantTorretasDobles);\r\n\t\tcargarArchivoTorretas(boundsSimple, new FabricaTorretasSimples(), cantTorretasSimples);\r\n\t\tcargarArchivoTorretas(boundsInvisible,new FabricaTorretasInvisibles(), cantTorretasInvisibles);\r\n\t\tcargarArchivoTorretas(boundsGrande,new FabricaTorretasGrandes(), cantTorretasGrandes);\r\n\t\tpuntaje = 500;\r\n\t\tsetearParametrosDefecto(2000, 2, 1275, 636);\r\n\t\t\r\n\t\t\r\n\t}",
"public Image meurt() {\n\t\t\tString str;//va contenir le nom de l'image\n\t\t\tImageIcon ico;//nom de la nouvelle instance de la methode ImageIcon\n\t\t\tImage img;//va etre egale a ico, et va retourner l'image voulu\n\t\t\t\n\t\t\tstr = \"/images/bouleDeFeu.png\";\n\t\t\tthis.compteurMort++;//on incremente un compteur\n\t\t\tif(this.compteurMort > 100) {//si le compteur arrive jusqu'a 100, mario meurt, \n\t\t\t\tstr = \"/images/mortDEMario.png\";//donc on change d'image\n\t\t\t\tthis.setY(this.getY() - 1);//fait monter l'image de la mort de mario vers le ciel\n\t\t\t}\n\t\t\tico = new ImageIcon(getClass().getResource(str));\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\n\t\t}",
"public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }",
"public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t\tPath path;\r\n\t\t\r\n\t\tinsertNIIValues(bundleNii, strBundle);\r\n\t\tb.setNii(bundleNii);\r\n\r\n\t\twhile (finished == 1){\r\n\t\t\tpath = new Path();\r\n\t\t\tcreatePath(path);\r\n\t\t\tpathList.add(path);\r\n\t\t\tfinished = checkContinue(\"path\");\r\n\t\t}\t\t\r\n\t\tb.setPath(pathList);\r\n\t\t// Add bundle to map\r\n\t\tbundles.put(b.getId(), b);\r\n\t\tindex++;\r\n\t}",
"private void inicializareVariablesManejoHilos() {\n\t\tmanejadorHilos = Executors.newFixedThreadPool(LONGITUD_COLA);\n\t\tbloqueoJuego = new ReentrantLock();\n\t\tesperarInicio = bloqueoJuego.newCondition();\n\t\tesperarTurno = bloqueoJuego.newCondition();\n\t\tfinalizar = bloqueoJuego.newCondition();\n\t\tjugadores = new Jugador[LONGITUD_COLA];\n\t}",
"public void prepareSorpresas(){\n\t\tfor( int x= 0 ; x < game.getAmountSorpresas();x++){\n\t\t\tSorpresa s = game.getSorpresa(x);\n\t\t\timage = s.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(s.getAncho(), s.getAlto(), Image.SCALE_SMOOTH);\n\t\t\ts.setImage(new ImageIcon(temporal));\n\t\t}\n\t}",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }",
"public final void addUniverso() {\n GraphicsConfigTemplate3D gct3D = new GraphicsConfigTemplate3D();\n gct3D.setSceneAntialiasing(GraphicsConfigTemplate3D.REQUIRED);\n GraphicsConfiguration gc = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(gct3D);\n\n Canvas3D cv = new Canvas3D(gc);\n add(cv, \"Center\");\n // SimpleUniverse define los elementos basicos de una escena 3D \n // y lo asocia al plano 2D\n universo = new SimpleUniverse(cv);\n // Define la ubicación predeterminada de la vista\n // Mueve el centro (0,0,0) a una distancia de 2.\n universo.getViewingPlatform().setNominalViewingTransform();\n creaRamaContenido();\n }",
"public Coloca_imagen(){\n \n \n }",
"public void disparoDireccional(int tipo) {\n float x = super.getSprite().getPosicion().getX() + 48 - 58;\n float y = super.getSprite().getPosicion().getY() + 52 - 72;\n switch(tipo) {\n case 1: \n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, 1, -1);\n break;\n case 2:\n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, -1, 0);\n break;\n case 3: \n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, -1, 0);\n crearProyectilG(x, y, -1, 1); \n break;\n case 4:\n crearProyectilG(x, y, -1, 0); \n crearProyectilG(x, y, -1, 1);\n crearProyectilG(x, y, 0, 1);\n break;\n case 5:\n crearProyectilG(x, y, -1, 1); \n crearProyectilG(x, y, 0, 1);\n crearProyectilG(x, y, 1, 1);\n break;\n case 6:\n crearProyectilG(x, y, 0, 1); \n crearProyectilG(x, y, 1, 1);\n crearProyectilG(x, y, 1, 0);\n break;\n case 7:\n crearProyectilG(x, y, 1, -1); \n crearProyectilG(x, y, 1, 0);\n crearProyectilG(x, y, 1, 1);\n break;\n case 8:\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, 1, -1);\n crearProyectilG(x, y, 1, 0);\n break;\n }\n }",
"Vaisseau_positionner createVaisseau_positionner();",
"SpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche createSpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche();",
"public void inicializar(String negocio) {\n\t\t\n\t\tSystem.out.println(\"Estoy incializando...\");\n\t}",
"private void inicializaQuadricula(EstadoAmbiente estado) {\n\t\tfor(int i = 0 ; i < this.quadricula.length ; i++) {\n\t\t\tfor (int j = 0 ; j < this.quadricula[0].length ; j++) {\n\t\t\t\tthis.quadricula[i][j] = estado;\n\t\t\t}\n\t\t}\t\t\n\t}",
"public String adicionarubicacion(ubicacion ubicacion) {\n String miRespuesta;\n Conexion miConexion = new Conexion();\n Connection nuevaCon;\n nuevaCon = miConexion.getConn();\n \n //sentecia \n PreparedStatement sentencia;\n //try-catch \n try {\n // consulta \n String Query = \"INSERT INTO ubicacion (Departamento,municipio)\"\n + \"VALUES (?,?)\";\n sentencia = nuevaCon.prepareStatement(Query);\n sentencia.setString(1,ubicacion.getDepartamento());\n sentencia.setString(2,ubicacion.getMunicipio());\n \n sentencia.execute();\n miRespuesta = \"\";\n } catch (Exception ex){\n miRespuesta = ex.getMessage();\n System.err.println(\"Ocurrio un problea en ubicacionDAO\\n \" + ex.getMessage());\n }\n \n return miRespuesta;\n }",
"public void prepareImagenes(){\n\t\tpreparePersonajes();\n\t\tprepareSorpresas();\n\t\tprepareObjetivos();\n\t\tprepareBloque();\n\t\t\n\t}",
"private void aumentarPilha() {\n this.pilhaMovimentos++;\n }",
"GenerateurDeCartesImages(String nomDuTheme, String[] Tableau){\n\t\tsuper(nomDuTheme);\n\t\tthis.nomDuTheme=nomDuTheme;\n\t\tthis.optionsDeImage=Tableau;\n\t\tinitializePickedCardsArray();\n\t}",
"private void generarPNG(String nombre, String entrada) {\n try {\n String ruta = this.pathGuardado + \"/\" + nombre + \".dot\";\n File file = new File(ruta);\n // Si el archivo no existe es creado\n if (!file.exists()) {\n file.createNewFile();\n }\n FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(entrada);\n bw.close();\n// //Generar Imagen creada por .dot\n ControlTerminal controlTer = new ControlTerminal(ruta, this.pathGuardado + \"/\" + nombre + \".png\");\n controlTer.generarImagen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}",
"public void createValue() {\n value = new GisInfoCaptureDO();\n }",
"Long crear(Espacio espacio);",
"private void posicionInicial(int ancho){\r\n posicionX = ancho;\r\n Random aleatroio = new Random();\r\n int desplazamiento = aleatroio.nextInt(150)+100;\r\n \r\n \r\n cazaTie = new Rectangle2D.Double(posicionX, desplazamiento, anchoEnemigo, alturaEnemigo);\r\n }",
"private void initImage() {\n BufferedImage closebtn = null;\n BufferedImage mulaiBtn = null;\n try {\n mulaiBtn = ImageIO.read(new File(\"image\\\\button\\\\mulai_btn.png\"));\n closebtn = ImageIO.read(new File(\"image\\\\button\\\\closeX_btn.png\"));\n ImageIcon mulaiBtnImage = new ImageIcon(mulaiBtn.getScaledInstance(126, 32, Image.SCALE_SMOOTH));\n ImageIcon closeBtnImage = new ImageIcon(closebtn.getScaledInstance(42, 42, Image.SCALE_SMOOTH));\n button_mulai.setIcon(mulaiBtnImage);\n button_close.setIcon(closeBtnImage);\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n button_mulai.setText(\"\");\n button_close.setText(\"\");\n }\n }",
"private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}",
"protected void generar() {\n generar(1, 1);\n }",
"void crear(Tonelaje tonelaje);",
"private void generarNombre() {\r\n\t\tthis.nombre = NOMBRES[(int) (Math.random() * NOMBRES.length)];\r\n\t}",
"SpaceInvaderTest_test_VaisseauImmobile_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauImmobile_DeplacerVaisseauVersLaDroite();",
"public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}",
"private String crearCodigoRuta(String nombre){\n String fecha = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n Random randomGenerator = new Random();\n int RndNum = randomGenerator.nextInt(1000);\n\n return nombre+\"_\"+fecha+\"_\"+RndNum;\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"private void inicializar() {\n\t\treporte = new Jasperreport();\n\t\tdiv = new Div();\n\t}",
"Vaisseau_longueur createVaisseau_longueur();",
"@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public Boite(String path, int x_de_base, int y_de_base, int id) {\r\n \tRandom r = new Random();\r\n \tint valeur = 1 + r.nextInt(3 - 1);\r\n \tthis.value = valeur;\r\n \tthis.s= new Sprite(path);\r\n\tImageIcon im_mun = new ImageIcon(s.getImage().getScaledInstance(50,50,Image.SCALE_DEFAULT));\r\n\ts.setImageIcon(im_mun);\r\n\ts.setImage(im_mun);\r\n \tthis.coordonneX= x_de_base;\r\n \tthis.coordonneY= y_de_base;\r\n \tthis.hb = new Hitbox(this);\r\n \tthis.id = id; // Numero du perso tue dans l'arraylist AfficherPersonnage\r\n \tafficher = 0;\r\n }",
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"Variables createVariables();",
"@Override\n\t\tpublic Image marche(String nom, int frequence) {\n\t\t\t\n\t\t\tString str;\n\t\t\tImageIcon ico;\n\t\t\tImage img;\n\t\t\t\n\t\t\tif(this.marche == false || Main.level.getxPos() <= 0 || Main.level.getxPos() > 4430) {//si le personnage est arreter ou completement a gauche\n\t\t\t\tif(this.versDroite == true) {//si vers la droite image de droite\n\t\t\t\t\tstr = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}//si non image de gauche\n\t\t\t}else {//ou le personnage se deplace, on incremente donc le compteur a chaque fois que la scene est redessiné\n\t\t\t\tthis.compteur++;\n\t\t\t\tif(this.compteur / frequence == 0) {//si compteur/par frequence est = a 0 c'est que le personnage est a l'arret donc:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}\n\t\t\t\t}else {\t//si non c'est que le personnage se deplace:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"MarcheDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"MarcheGauche.png\";}\n\t\t\t\t}\n\t\t\t\tif(this.compteur == 2 * frequence) {this.compteur = 0;}//si compteur est = a 2fois la frequence ont remet le compteur a zero\t\n\t\t\t}\n\t\t\t//affichage de l'image du personnage\n\t\t\tico = new ImageIcon(getClass().getResource(str));//TROUVER LE PROBLEME LIÉ A CETTE LIGNE.....\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\t\n\t\t\t\t\t\n\t\t}",
"public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }",
"public static void crearPartida() throws FileNotFoundException, IOException, ExcepcionesFich {\n\t\tLecturaFicheros.AllLecture(\"C:\\\\Users\\\\Erick\\\\pruebaPOO.txt\");\n\t\tinterfaz = new GUI(0);\t\t\n\t}",
"@Override\n\tpublic void crearPoblacion() {\n\t\tif(this.terminales == null || this.funciones == null) {\n\t\t\tSystem.out.println(\"Error. Los terminales y las funciones tienen que estar inicializados\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpoblacion = new ArrayList<>();\n\t\tfor(int i = 0; i < this.numIndividuos; i++) {\n\t\t\tIndividuo ind = new Individuo();\n\t\t\tind.crearIndividuoAleatorio(this.profundidad, this.terminales, this.funciones);\n\t\t\tthis.poblacion.add(ind);\n\t\t}\n\t}",
"void inicializarDiccionarioMultiple();",
"public void creationPlateau() {\n for (int i = 0; i < 10; i++) {\n int X = rand.nextInt(14);\n int Y = rand.nextInt(14);\n if (plateau[X][Y] == null && espacementMonstre(X,Y,plateau)) {\n int monstreAleatoire = 1 + (int)(Math.random() * ((3 - 1) + 1));\n switch (monstreAleatoire) {\n case 1:\n Personnage monstreD = new Dragonnet(X,Y);\n plateau[X][Y] = monstreD;\n this.monstre.add(monstreD);\n System.out.println(\"Dragonnet ajouté en position : \"+X+\" \"+Y);\n break;\n case 2:\n Personnage monstreL = new Loup(X,Y);\n plateau[X][Y] = monstreL;\n this.monstre.add(monstreL);\n System.out.println(\"Loup ajouté en position : \"+X+\" \"+Y);\n\n break;\n case 3:\n Personnage monstreO = new Orque(X,Y);\n plateau[X][Y] = monstreO;\n this.monstre.add(monstreO);\n System.out.println(\"Orque ajouté en position : \"+X+\" \"+Y);\n break;\n }\n } else {\n i --;\n }\n }\n }",
"public void cargarImagenes() {\n try {\n\n variedad = sp.getString(\"variedad\", \"\");\n gDia = sp.getFloat(\"gDia\", 0);\n dia = sp.getInt(\"dia\", 0);\n idVariedad = sp.getLong(\"IdVariedad\", 0);\n idFinca = sp.getLong(\"IdFinca\",0);\n\n\n\n imageAdmin iA = new imageAdmin();\n List<fenologiaTab> fi = forGradoloc(dia, gDia, idVariedad);\n\n path = getExternalFilesDir(null) + File.separator;\n String path2 = \"/storage/emulated/0/Pictures/fenologias/\"+idFinca+\"/\";\n\n iA.getImage(path2,jpgView1, idVariedad, fi.get(0).getImagen());\n datos(txt1, fi.get(0).getDiametro_boton(), fi.get(0).getLargo_boton(), fi.get(0).getGrados_dia(), fi.get(0).getImagen());\n\n iA.getImage(path2,jpgView2, idVariedad, fi.get(1).getImagen());\n datos(txt2, fi.get(1).getDiametro_boton(), fi.get(1).getLargo_boton(), fi.get(1).getGrados_dia(), fi.get(1).getImagen());\n\n iA.getImage(path2,jpgView3, idVariedad, fi.get(2).getImagen());\n datos(txt3, fi.get(2).getDiametro_boton(), fi.get(2).getLargo_boton(), fi.get(2).getGrados_dia(), fi.get(2).getImagen());\n\n iA.getImage(path2,jpgView4, idVariedad, fi.get(3).getImagen());\n datos(txt4, fi.get(3).getDiametro_boton(), fi.get(3).getLargo_boton(), fi.get(3).getGrados_dia(), fi.get(3).getImagen());\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error \\n\" + e, Toast.LENGTH_LONG).show();\n }\n }",
"Position_abscisse createPosition_abscisse();",
"public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }"
] |
[
"0.5988537",
"0.59462",
"0.5865674",
"0.57898307",
"0.57586485",
"0.5651397",
"0.5627655",
"0.5568716",
"0.5532822",
"0.55203515",
"0.54756534",
"0.5464288",
"0.5423958",
"0.54142845",
"0.54126066",
"0.54112935",
"0.5404458",
"0.53930116",
"0.5369485",
"0.5360179",
"0.53588915",
"0.5357465",
"0.53455216",
"0.5341702",
"0.5340157",
"0.53356665",
"0.53251785",
"0.5324232",
"0.531677",
"0.53155124",
"0.5303662",
"0.52950287",
"0.52946466",
"0.527458",
"0.5268454",
"0.5250382",
"0.5246953",
"0.5246516",
"0.5244282",
"0.52359945",
"0.5222465",
"0.5219013",
"0.52156687",
"0.52099514",
"0.5206842",
"0.52023643",
"0.520049",
"0.51971513",
"0.5195637",
"0.5181367",
"0.51785076",
"0.51745015",
"0.51728636",
"0.5172826",
"0.5166282",
"0.5162408",
"0.51567703",
"0.5148545",
"0.5148316",
"0.51462835",
"0.5145208",
"0.5143711",
"0.51433927",
"0.51402116",
"0.5134955",
"0.5107827",
"0.51049376",
"0.5104",
"0.50961804",
"0.50954336",
"0.5083664",
"0.5081804",
"0.5070504",
"0.5070054",
"0.5066702",
"0.5066195",
"0.5065877",
"0.50544137",
"0.50496805",
"0.5046723",
"0.50443906",
"0.50436145",
"0.5034191",
"0.50322294",
"0.50299454",
"0.50286937",
"0.50276035",
"0.502753",
"0.5019739",
"0.50192416",
"0.50170535",
"0.50141966",
"0.5013111",
"0.50102687",
"0.50053596",
"0.5001176",
"0.49997997",
"0.49964127",
"0.49954253",
"0.49919027",
"0.4989607"
] |
0.0
|
-1
|
DIBUJO DE LA PANTALLA
|
@Override
public View getInfoContents(Marker marker) {
//PARAMS GENERALES
int size = 18;
//DIBUJAMOS dentro de los elementos que tenemos
View popupView = inflater.inflate(R.layout.popupmap, null);
Meteo meteo = (Meteo) marker.getTag();
TextView ttvTitle = (TextView) popupView.findViewById(R.id.title);
TextView txtDesc = (TextView) popupView.findViewById(R.id.desc);
TextView txtTemp = (TextView) popupView.findViewById(R.id.temp);
TextView txtTempMin = (TextView) popupView.findViewById(R.id.tempMin);
TextView txtTempMax = (TextView) popupView.findViewById(R.id.tempMax);
ImageView imageView = (ImageView) popupView.findViewById(R.id.imageView);
TextView txtWind = (TextView) popupView.findViewById(R.id.wind);
//TITLE and PARAMS
ttvTitle.setText(meteo.getName());
ttvTitle.setTextSize(25);
ttvTitle.setTextColor(Color.WHITE);
ttvTitle.setBackgroundColor(Color.BLUE);
//IMAGE
imageView.setImageDrawable(getDrawable(getResources().getIdentifier("_" + meteo.getWeather().get(0).getIcon(), "drawable", getPackageName())));
//TEXT VIEWS
txtDesc.setText("Description: " + meteo.getWeather().get(0).getDescription());
txtTemp.setText("Température: " + meteo.getMain().getTemp() + "°C");
txtTempMax.setText("MAX: " + meteo.getMain().getTemp_max() + "°C");
txtTempMin.setText("MIN: " + meteo.getMain().getTemp_min() + "°C");
txtWind.setText("Force du vent: " + meteo.getWind().getSpeed() + " Deg: " + meteo.getWind().getDeg());
//PARAMS TEXT VIEWS
txtDesc.setTextSize(size);
txtTemp.setTextSize(size);
txtTempMax.setTextSize(size);
txtTempMin.setTextSize(size);
txtWind.setTextSize(size);
return popupView ;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}",
"public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"@Override\r\n\tpublic String getTipoPersona() {\n\t\treturn \"alumno del curso \" + curso + \" de \" + grupo + \" de \" + tipoEstudios ;\r\n\t\t\r\n\t}",
"public VotacaoSegundoDia() {\n\n\t}",
"public void generTirarDados() {\n\r\n\t}",
"public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }",
"private DittaAutonoleggio(){\n \n }",
"public DetalleTablaComplementario() {\r\n }",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public void Ordenamiento() {\n\n\t}",
"@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}",
"public Persona()\n\t{\n\t\tnombre = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tapellido = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tedad = 0; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\talias = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\t\t\n\t}",
"public TelaCadastroPlano() {\n initComponents();\n campoNome.setDocument(new CaixaAlta());\n setLocationRelativeTo(null);\n preencheTabela();\n campoCodigo.setText(Integer.toString(fachada.proximoCodigo()));\n setModalidades();\n }",
"public void cargarTitulos1() throws SQLException {\n\n tabla1.addColumn(\"CLAVE\");\n tabla1.addColumn(\"NOMBRE\");\n tabla1.addColumn(\"DIAS\");\n tabla1.addColumn(\"ESTATUS\");\n\n this.tbpercep.setModel(tabla1);\n\n TableColumnModel columnModel = tbpercep.getColumnModel();\n\n columnModel.getColumn(0).setPreferredWidth(15);\n columnModel.getColumn(1).setPreferredWidth(150);\n columnModel.getColumn(2).setPreferredWidth(50);\n columnModel.getColumn(3).setPreferredWidth(70);\n\n }",
"public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }",
"public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }",
"@Override\n public void pintarPantalla(Graphics g) {\n //ESTABLECEMOS COLOR PARA FONDO DE LA PANTALLA\n g.setColor(colorInicio);\n g.fillRect(0, 0, p.getWidth(), p.getHeight());\n\n //ESTABLECEMOS COLOR Y POSICION PARA EL TITULO DEL JUEGO\n g.setColor(colorLetra);\n g.setFont(fuenteGrande);\n g.drawString(\"NAVES NODRIZAS\", (anchoPantalla / 2) - (p.getWidth() / 2), (altoPantalla / 2) - (p.getHeight() / 2));\n\n //ESTABLECEMOS COLOR Y POSICION PARA EL MENSAJE\n g.setColor(colorLetra);\n g.setFont(fuenteGrande);\n g.drawString(\"Haga clic para jugar\", 100, 200);\n }",
"public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }",
"public Propiedad() {\n bdPropiedad = new DaoPropiedad();\n bdComentario = new DaoComentario();\n }",
"@Override\n\tpublic void tipoMovimento() {\n\t\tSystem.out.println(super.getNome() + \" anda com 4 patas.\");\n\t}",
"public String tipoConta() {\n return \"Conta Comum\";\n }",
"private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }",
"public void leerPlanDieta(int id_paciente);",
"public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}",
"public Dipendente() {\r\n\t\tsetnMat();\r\n\t}",
"int getNombreColonnesPlateau();",
"public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }",
"public String getIdbasedatos() {\n return idbasedatos;\n }",
"private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }",
"public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"public String Dime_datos_generales() {\n\t\t\n\t\treturn \"la plataforma del veiculo tiene \"+ rueda+\" ruedas\"+\n\t\t\"\\nmide \"+ largo/1000+\" metros con un ancho de \"+ancho+\n\t\t\"cm\"+\"\\nun peso de platafrorma de \"+peso;\n\t}",
"public PantallaPrincipal() {\n gestor= new Gestor();\n initComponents();\n inicializarTablaCarreras();\n inicializarTablaCorredorTotales();\n inicializarTablaCorredor();\n mostrarCarreras();\n mostrarCorredoresTotales();\n \n \n }",
"public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}",
"public int getIDDETARQUEO() {\r\n return this.IDDETARQUEO;\r\n }",
"private void dibujarPuntos() {\r\n for (int x = 0; x < 6; x++) {\r\n for (int y = 0; y < 6; y++) {\r\n panelTablero[x][y].add(obtenerIcono(partida.getTablero()\r\n .getTablero()[x][y].getColor()));\r\n }\r\n }\r\n }",
"private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"private void limpiarDatos() {\n\t\t\n\t}",
"public void construirTabla(String tipo) {\r\n\r\n\t\t\r\n\t\tif(tipo == \"lis\") {\r\n\t\t\tlistaPersonas = datarPersonas();\r\n\t\t} else if (tipo == \"bus\") {\r\n\t\t\tlistaPersonas = datarPersonasBusqueda();\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<String> titulosList=new ArrayList<>();\r\n\t\t\r\n\t\t//Estos son los encabezados de las columnas\r\n\t\t\r\n\t\ttitulosList.add(\"DNI\");\r\n\t\ttitulosList.add(\"NOMBRE\");\r\n\t\ttitulosList.add(\"APELLIDO\");\r\n\t\ttitulosList.add(\"CUENTA BANCARIA\");\r\n\t\ttitulosList.add(\"PASSWORD\");\r\n\t\ttitulosList.add(\"FECHA DE NACIMIENTO\");\r\n\t\ttitulosList.add(\"TELEFONO\");\r\n\t\ttitulosList.add(\"CORREO ELECTRONICO\");\r\n\t\ttitulosList.add(\"ROL\");\r\n\t\ttitulosList.add(\"Modificar\");\r\n\t\ttitulosList.add(\"Eliminar\"); \r\n\t\t\t\t\r\n\t\t//se asignan los tÃtulos de las columnas para enviarlas al constructor de la tabla\r\n\t\t\r\n\t\tString titulos[] = new String[titulosList.size()];\r\n\t\tfor (int i = 0; i < titulos.length; i++) {\r\n\t\t\ttitulos[i]=titulosList.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tObject[][] data = arrayDatos(titulosList);\r\n\t\tcrearTabla(titulos,data);\r\n\t\t\r\n\t}",
"public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }",
"@Override\n\tvoid geraDados() {\n\n\t}",
"protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }",
"@Override\r\n public String toString() {\r\n return \"Datos de Jugador: \"\r\n + \"\\n\" + \"Alias : \" + this.getAlias()\r\n + \"\\n\" + \"Nombre: \" + this.getNombre()\r\n + \"\\n\" + \"Edad : \" + this.getEdad()\r\n + \"\\n\" + \"Partidas Ganadas: \" + this.getPartidasGanadasToString()\r\n + \"\\n\" + \"Partidas Perdidas: \" + this.getPartidasPerdidasToString()\r\n + \"\\n\" + \"Partidas Empatadas: \" + this.getPartidasEmpatadasToString();\r\n }",
"public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }",
"public void SolicitarDatos() {\n\t\t\r\n\t\tSystem.out.println(\"nombre:\");\r\n\t\tSystem.out.println(\"apellido\");\r\n\t\tSystem.out.println(\"numCedula\");\r\n\t\t\r\n\t}",
"public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }",
"@Override\n public String toString() {\n return nome + placa;\n }",
"@Override\n\tpublic String getTareas() {\n\t\treturn \"TAREA COMERCIAL 3: VENDE MUCHO TODOS LOS DÍAS\";\n\t}",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}",
"public telaCadastro() {\n initComponents();\n populaTabela();\n }",
"private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }",
"public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }",
"@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }",
"public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}",
"public BitacoraHotelera() {\n initComponents();\n tabla();\n this.setTitle(\"BITACORA DEL ÁREA DE HOTELERIA\");\n }",
"Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }",
"public JanelaTipoContato() {\r\n initComponents();\r\n try {\r\n\r\n List<TipoContato> tipoContatos = (List<TipoContato>) (Object) tipoContatoDao.pesquisarTodos();\r\n adicionarListaTipoContatosTabela(tipoContatos);\r\n } catch (Exception exception) {\r\n }\r\n }",
"public String getPoblacion() {\r\n\t\treturn poblacion;\r\n\t}",
"private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"public TipoUsuario(int id_tipousuario) {\n this.id_tipousuario = id_tipousuario;\n }",
"public TelaCidadaoDescarte() {\n initComponents();\n }",
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"public NodoArbolSintactico(String nombre, int tipo) {\r\n hijos = new ArrayList<>();\r\n this.nombre = nombre;\r\n accion = null;\r\n this.tipo = tipo;\r\n }",
"Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();",
"protected String getTitoloPaginaMadre() {\n return VUOTA;\n }",
"public TipoUsuario(int id_tipousuario, String usuario) {\n this.id_tipousuario = id_tipousuario;\n this.usuario = usuario;\n }",
"public String darPlaca() {\n\t\treturn placa;\n\t}",
"private ControleurAcceuil(){ }",
"public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }",
"public janela() {\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 380, 200);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel dimensao_label = new JLabel(\"Dimensão:\");\n\t\tdimensao_label.setBounds(22, 24, 124, 14);\n\t\tcontentPane.add(dimensao_label);\n\n\t\t\n\t\tdimensao_textField = new JTextField();\n\t\tdimensao_textField.setBounds(138, 21, 86, 20);\n\t\tcontentPane.add(dimensao_textField);\n\t\tdimensao_textField.setColumns(10);\n\t\tdimensao_textField.setText(\"11\");\n\n\t\tnrDragoes_textField = new JTextField();\n\t\tnrDragoes_textField.setBounds(138, 52, 86, 20);\n\t\tcontentPane.add(nrDragoes_textField);\n\t\tnrDragoes_textField.setColumns(10);\n\t\tnrDragoes_textField.setText(\"1\");\t\t\n\n\t\tJLabel nrDragoes_label = new JLabel(\"Nº Dragoes:\");\n\t\tnrDragoes_label.setBounds(22, 55, 105, 14);\n\t\tcontentPane.add(nrDragoes_label);\n\n\t\tJLabel tipoDragao_label = new JLabel(\"Comportamento:\");\n\t\ttipoDragao_label.setBounds(22, 86, 97, 14);\n\t\tcontentPane.add(tipoDragao_label);\n\n\t\tfinal JComboBox tipoDragao_comboBox = new JComboBox<String>();\n\t\ttipoDragao_comboBox.setBounds(138, 83, 86, 20);\n\t\tcontentPane.add(tipoDragao_comboBox);\n\t\ttipoDragao_comboBox.addItem(\"Estatico\");\n\t\ttipoDragao_comboBox.addItem(\"Dinamico\");\n\t\ttipoDragao_comboBox.addItem(\"Misto\");\n\n\t\tfinal JTextArea tabuleiro_textArea = new JTextArea();\n\t\ttabuleiro_textArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 11));\n\t\ttabuleiro_textArea.setBounds(22, 158, 0, 0);\t\t\n\t\tcontentPane.add(tabuleiro_textArea);\t\n\n\t\tfinal JLabel estado_label = new JLabel(\"Estado\");\n\t\testado_label.setBounds(22, 133, 387, 14);\n\t\testado_label.setText(\"Insira os dados pertendidos e selecione uma opção.\");\n\t\tcontentPane.add(estado_label);\n\n\t\tJButton terminar_botao = new JButton(\"Terminar\");\n\t\tterminar_botao.setBounds(250, 20, 99, 23);\n\t\tcontentPane.add(terminar_botao);\n\t\tterminar_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton cima_botao = new JButton(\"Cima\");\n\t\tcima_botao.setBounds(310, 192, 89, 23);\n\t\tcontentPane.add(cima_botao);\n\t\tcima_botao.setVisible(false);\n\n\n\t\tfinal JButton baixo_botao = new JButton(\"Baixo\");\n\t\tbaixo_botao.setBounds(310, 243, 89, 23);\n\t\tcontentPane.add(baixo_botao);\n\t\tbaixo_botao.setVisible(false);\n\n\n\t\tfinal JButton esquerda_botao = new JButton(\"Esquerda\");\n\t\tesquerda_botao.setVerticalAlignment(SwingConstants.TOP);\n\t\tesquerda_botao.setBounds(262, 218, 84, 23);\n\t\tcontentPane.add(esquerda_botao);\t\n\t\tesquerda_botao.setVisible(false);\n\n\t\tfinal JButton direita_botao = new JButton(\"Direita\");\n\t\tdireita_botao.setBounds(356, 218, 72, 23);\n\t\tcontentPane.add(direita_botao);\n\t\tdireita_botao.setVisible(false);\n\n\t\tbaixo_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(2);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1)\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\n\n\n\t\tcima_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(1);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1){\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\t\n\n\n\t\t\t}\n\t\t});\n\n\t\tesquerda_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(3);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1)\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\t\t\t\t\n\n\t\t\t}\n\t\t});\n\n\t\tdireita_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(4);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1)\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton novoJogo_botao = new JButton(\"Novo Jogo\");\n\t\tnovoJogo_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif(\n\t\t\t\t\t\t(Integer.parseInt(dimensao_textField.getText()) >= 7 &&\n\t\t\t\t\t\tInteger.parseInt(dimensao_textField.getText()) < 26 &&\n\t\t\t\t\t\tInteger.parseInt(dimensao_textField.getText()) % 2 != 0 &&\n\t\t\t\t\t\tInteger.parseInt(nrDragoes_textField.getText()) > 0 &&\n\t\t\t\t\t\tInteger.parseInt(nrDragoes_textField.getText()) < Math.pow(Integer.parseInt(dimensao_textField.getText()), 2) / 40) || \n\t\t\t\t\t\t(playingEditor == 1)\n\t\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tif(jogografico != null)\n\t\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(editor != null)\n\t\t\t\t\t\teditor.dispose();\n\t\t\t\t\tif(playingEditor == 0)\n\t\t\t\t\t tabuleiro = new Tabuleiro(Labirinto.geraLabirinto(Integer.parseInt(dimensao_textField.getText()), Integer.parseInt(nrDragoes_textField.getText())));\n\t\t\t\t\telse playingEditor = 0;\n\t\t\t\t\ttabuleiro_textArea.setBounds(22, 158, tabuleiro.getSize()*14, tabuleiro.getSize()*16);\n\t\t\t\t\tesquerda_botao.setBounds(262+tabuleiro.getSize()*14-200, 218, 84, 23);\n\t\t\t\t\tdireita_botao.setBounds(356+tabuleiro.getSize()*14-200, 218, 72, 23);\n\t\t\t\t\tcima_botao.setBounds(310+tabuleiro.getSize()*14-200, 192, 89, 23);\n\t\t\t\t\tbaixo_botao.setBounds(310+tabuleiro.getSize()*14-200, 243, 89, 23);\n\t\t\t\t\tsetBounds(100, 100, 450+tabuleiro.getSize()*14-170, 400+tabuleiro.getSize()*16-185);\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\ttabuleiro.setModo(tipoDragao_comboBox.getSelectedIndex()+1);\n\t\t\t\t\testado_label.setText(\"Pronto a jogar!\");\n\t\t\t\t\tcima_botao.setVisible(true);\n\t\t\t\t\tbaixo_botao.setVisible(true);\n\t\t\t\t\tesquerda_botao.setVisible(true);\n\t\t\t\t\tdireita_botao.setVisible(true);\n\t\t\t\t\tcima_botao.setEnabled(true);\n\t\t\t\t\tbaixo_botao.setEnabled(true);\n\t\t\t\t\tesquerda_botao.setEnabled(true);\n\t\t\t\t\tdireita_botao.setEnabled(true);\n\t\t\t\t\t//desenha nova janela grafica para jogo\n\n\t\t\t\t\tjogografico = new JFrame();\n\t\t\t\t\tjogografico.setBounds(100, 100, 100+tabuleiro.getSize()*15, 100+tabuleiro.getSize()*15);\n\t\t\t\t\tjogografico.setPreferredSize(new Dimension(100+tabuleiro.getSize()*40, 100+tabuleiro.getSize()*40+100));\n\t\t\t\t\t//jogografico.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\tJogoGrafico panel = new JogoGrafico(tabuleiro);\n\t\t\t\t\tjogografico.getContentPane().add(panel);\n\t\t\t\t\tpanel.addKeyListener(new KeyListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\t\t\t//System.out.println(\"x=\" + x);\n\t\t\t\t\t\t\tswitch(e.getKeyCode()){\n\t\t\t\t\t\t\tcase KeyEvent.VK_LEFT: \n\t\t\t\t\t\t\t\tesquerda_botao.doClick(1);\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\t\t\t\t\tdireita_botao.doClick(1);\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase KeyEvent.VK_UP: \n\t\t\t\t\t\t\t\tcima_botao.doClick(1);\t\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase KeyEvent.VK_DOWN: \n\t\t\t\t\t\t\t\tbaixo_botao.doClick(1);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\tjogografico.pack();\n\t\t\t\t\tjogografico.setVisible(true);\n\t\t\t\t\tpanel.requestFocus();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\testado_label.setText(\"Input Invalido!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tnovoJogo_botao.setBounds(250, 51, 99, 23);\n\t\tcontentPane.add(novoJogo_botao);\n\n\t\t\n\n\t\tfinal JButton gerarLabirinto_botao = new JButton(\"Criar Mapa\");\n\t\tgerarLabirinto_botao.setBounds(250, 83, 99, 23);\n\t\tcontentPane.add(gerarLabirinto_botao);\n\t\tgerarLabirinto_botao.setVisible(true);\n\t\tgerarLabirinto_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif(editor != null)\n\t\t\t\t\teditor.dispose();\n\n\t\t\t\tif(jogografico != null)\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\teditor = new JFrame();\n\t\t\t\tfinal editor frame = new editor(Integer.parseInt(dimensao_textField.getText()), Integer.parseInt(nrDragoes_textField.getText()));\n\n\t\t\t\teditor.setBounds(100, 100, 100+Integer.parseInt(dimensao_textField.getText())*15, 100+Integer.parseInt(dimensao_textField.getText())*15);\n\t\t\t\teditor.setPreferredSize(new Dimension(100+Integer.parseInt(dimensao_textField.getText())*40, 100+Integer.parseInt(dimensao_textField.getText())*40+100));\n\t\t\t\t//editor.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\teditor.getContentPane().add(frame);\n\n\t\t\t\tframe.addKeyListener(new KeyListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\t\tswitch(e.getKeyCode()){\n\t\t\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\t\t\tif(frame.getTabuleiro() != null){\n\t\t\t\t\t\t\t\ttabuleiro = new Tabuleiro(frame.getTabuleiro());\n\t\t\t\t\t\t\t\tplayingEditor = 1;\n\t\t\t\t\t\t\t\teditor.dispose();\n\t\t\t\t\t\t\t\tnovoJogo_botao.doClick(1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\n\t\t\t\n\t\t\t\teditor.pack();\n\t\t\t\teditor.setVisible(true);\n\t\t\t\tframe.requestFocus();\n\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t\n\n\t}",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void datos_elegidos(){\n\n\n }",
"public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"public MENU_ADMINISTRADOR() {\n this.setContentPane(fondo);\n initComponents();\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n this.textField1.setText(dateFormat.format(date));\n System.out.println(\"almacenado DPI:\" + datos_solicitud_seguro.getA()[0]);\n }",
"private void cargarTablaConPaquetes() {\n tcId.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"codigo\"));\n tcdescripcion.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"descripcion\"));\n tcDestino.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"destino\"));\n tcEntregado.setCellValueFactory(\n new PropertyValueFactory<Paquete, Boolean>(\"entregado\"));\n\n tbPaqueteria.setItems(data);\n tbPaqueteria.getSelectionModel().selectFirst();\n\n //TODO futura implementacion\n //setDobleClickFila();\n }",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }",
"public jugador(){\n\t\tnombre=\"Dave\";\n\t\ttipo=\"jugador\";\n\t\tpoderataque=6;\n\t\tpuntosvida=20;\n\t}",
"public Gestionnaire_Bdd(){\n\t\ttry {\n\t\t\t//Chargement driver hsqldb\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\").newInstance();\n\t\t\t\n\t\t\tconnexion = DriverManager.getConnection(\"jdbc:hsqldb:file:BiblioBDD\", \"sa\", \"\");\n\t\t\trequete = connexion.createStatement();\n\t\t\tcreerTables();\n\t\t\t\n\t\t\tselection(new String[]{\"niveau\", \"professeur\"}, \"classes\");\n\t\t\trafraichir_tableau();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private TipoAtaque generateTipoAtaque() {\n\t\treturn null;\r\n\t}",
"public int getTipoAtaque(){return tipoAtaque;}",
"@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}",
"public PnAlunos() {\n initComponents();\n listarAlunos();\n }",
"public PantallaInicio(PanelJuego p){\n this.p = p;\n colorLetra = Color.WHITE;\n colorInicio = Color.BLACK;\n fuenteGrande = new Font(\"Arial\", Font.BOLD, 30);\n }",
"String getTabela();",
"public Nodo_m_ario getPadre() {\n\t\treturn padre;\n\t}",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"public String datosAlumno() {\n\t\treturn \"alumno: \" + this.getNombre() + \" \" + this.getApellido() + \" genero: \" + this.getGenero()\n\t\t+ \" condicion: \" + this.getCondicion() + \" notaFinal: \" + this.getNotaFinal();\n\t}",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public String getContrasena() {return contrasena;}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }",
"public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }",
"public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }"
] |
[
"0.6472401",
"0.63609755",
"0.6357936",
"0.6330003",
"0.6310159",
"0.62482274",
"0.62398535",
"0.62291396",
"0.6222348",
"0.6202957",
"0.61873436",
"0.61800486",
"0.61617744",
"0.61418605",
"0.61370367",
"0.6130127",
"0.6121649",
"0.6120053",
"0.6116944",
"0.6113533",
"0.6111685",
"0.61055046",
"0.6094206",
"0.6088735",
"0.60803956",
"0.6065966",
"0.606324",
"0.60528094",
"0.60430855",
"0.6039382",
"0.6035842",
"0.6031648",
"0.6027567",
"0.60264885",
"0.60251105",
"0.602462",
"0.60217005",
"0.60208225",
"0.60137707",
"0.6010772",
"0.600542",
"0.5997171",
"0.5990425",
"0.59848475",
"0.59803766",
"0.5980033",
"0.5976319",
"0.596681",
"0.5964247",
"0.5962725",
"0.5954948",
"0.59544694",
"0.59395844",
"0.5937628",
"0.5935184",
"0.5929436",
"0.5929205",
"0.59266555",
"0.5926404",
"0.5920162",
"0.59194666",
"0.5919234",
"0.59154004",
"0.5911652",
"0.590927",
"0.5909163",
"0.5908541",
"0.5904439",
"0.5902289",
"0.58910894",
"0.5888866",
"0.58888173",
"0.5885593",
"0.588462",
"0.5883624",
"0.5874941",
"0.58741397",
"0.58739346",
"0.5873895",
"0.5872098",
"0.5867179",
"0.5863293",
"0.58608234",
"0.5860302",
"0.5859522",
"0.5852516",
"0.58515424",
"0.58513385",
"0.58508235",
"0.58485276",
"0.5847571",
"0.58465964",
"0.5846327",
"0.5844799",
"0.58391505",
"0.5836223",
"0.5835798",
"0.58352625",
"0.58324814",
"0.5831381",
"0.58294"
] |
0.0
|
-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.