Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java Fri Mar 6 17:31:13 2009 @@ -154,7 +154,7 @@ input.clearInput(); pos.showDialog("dialog/error/invalidcardnumber"); } - } else if (msrInfo == null && (securityCodeInfo == null) ){ + } else if (msrInfo == null && (securityCodeInfo == null) ) { // test expiration date if (UtilValidate.isNotEmpty(input.value()) && (input.value().length() == 4)) { // ask for Security Code, put in SECURITYCODE @@ -168,7 +168,7 @@ input.clearInput(); pos.showDialog("dialog/error/invalidexpirationdate"); } - }else if (msrInfo == null && (postalCodeInfo == null) ){ + }else if (msrInfo == null && (postalCodeInfo == null) ) { // test security code - allow blank for illegible cards if (UtilValidate.isEmpty(input.value()) || (UtilValidate.isNotEmpty(input.value()) && (input.value().length() <= 4))) { @@ -184,12 +184,12 @@ } } else { String msrInfoStr = null; - if (msrInfo == null){ + if (msrInfo == null) { input.clearLastFunction(); input.setFunction("POSTALCODE"); postalCodeInfo = input.getFunction("POSTALCODE"); - if(UtilValidate.isNotEmpty(crtInfo[1])){ - if(UtilValidate.isNotEmpty(creditExpirationInfo[1])){ + if(UtilValidate.isNotEmpty(crtInfo[1])) { + if(UtilValidate.isNotEmpty(creditExpirationInfo[1])) { // setup keyed transaction msrInfoStr = crtInfo[1] + "|" + creditExpirationInfo[1]; }else { @@ -229,14 +229,14 @@ if (pmId != null) { trans.addPayment(pmId, amount); } - if (track2Info != null && UtilValidate.isNotEmpty(track2Info[1])){ + if (track2Info != null && UtilValidate.isNotEmpty(track2Info[1])) { // if swiped trans.setPaymentTrack2(pmId, null, track2Info[1]); }else{ //keyed - if(securityCodeInfo != null && UtilValidate.isNotEmpty(securityCodeInfo[1])){ + if(securityCodeInfo != null && UtilValidate.isNotEmpty(securityCodeInfo[1])) { trans.setPaymentSecurityCode(pmId, null, securityCodeInfo[1]); } - if(postalCodeInfo != null && UtilValidate.isNotEmpty(postalCodeInfo[1])){ + if(postalCodeInfo != null && UtilValidate.isNotEmpty(postalCodeInfo[1])) { trans.setPaymentPostalCode(pmId, null, postalCodeInfo[1]); } } Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java Fri Mar 6 17:31:13 2009 @@ -53,7 +53,7 @@ numericKeypad.setMinus(true); numericKeypad.setPercent(false); String results = numericKeypad.openDlg(); - }catch(Exception e){ + }catch(Exception e) { Debug.logError(e, module); } Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java Fri Mar 6 17:31:13 2009 @@ -143,15 +143,15 @@ m_dialog.closeDlg(); } - private void resetButtons(){ + private void resetButtons() { Object[] questions = questionHashMap.values().toArray(); - for(Object question : questions){ + for(Object question : questions) { ((Question)question).reset(); } return; } - private void showItem(){ + private void showItem() { DefaultListModel listModel = null; listModel = new DefaultListModel(); @@ -162,13 +162,13 @@ if(questions==null) ; // no questions, we shouldn't be here else{ Iterator iter = questions.iterator(); - while(iter.hasNext()){ + while(iter.hasNext()) { ConfigItem question = (ConfigItem)iter.next(); List options = question.getOptions(); Iterator itero = options.iterator(); - while(itero.hasNext()){ + while(itero.hasNext()) { ConfigOption configoption = (ConfigOption)itero.next(); - if (configoption.isSelected()){ + if (configoption.isSelected()) { listModel.addElement(" "+configoption.getDescription()); } } @@ -178,7 +178,7 @@ return; } - private void displayQuestions(){ + private void displayQuestions() { QuestionFactory qf = new QuestionFactory(); questionHashMap = new Hashtable(); @@ -188,12 +188,12 @@ else{ Iterator iter = questions.iterator(); Iterator buttons = m_buttonList.iterator(); - while(iter.hasNext()){ + while(iter.hasNext()) { Question buttonQuestion = qf.get((ConfigItem)iter.next()); XButton button = (XButton)buttons.next(); questionHashMap.put(button.getName(), buttonQuestion ); buttonQuestion.setupButton(button); - if(buttonQuestion instanceof ListQuestion){ + if(buttonQuestion instanceof ListQuestion) { ((ListQuestion)buttonQuestion).setupListPane(m_optionListPane); } XEventHelper.addMouseHandler(this, button, "buttonPressed"); @@ -202,10 +202,10 @@ return; } - private void getButtons(){ + private void getButtons() { ArrayList buttonList = new ArrayList(); - for(String[] buttonSingleArray : buttonArray ){ - for(String buttonName : buttonSingleArray){ + for(String[] buttonSingleArray : buttonArray ) { + for(String buttonName : buttonSingleArray) { //Debug.logInfo("ButtonName: "+buttonName, module); XButton button = (XButton) m_dialog.findComponent(buttonName); buttonList.add(button); @@ -214,7 +214,7 @@ m_buttonList = buttonList; } - private void debugQuestions(){ + private void debugQuestions() { //Debug.logInfo("debugQuestions",module); GenericValue gv = m_pcw.getProduct(); @@ -224,7 +224,7 @@ if(questions==null) return; // no questions, return Iterator iter = questions.iterator(); - while(iter.hasNext()){ + while(iter.hasNext()) { ConfigItem question = (ConfigItem)iter.next(); /*Debug.logInfo("Question: " + question.getQuestion(), module); Debug.logInfo("IsFirst: "+question.isFirst()+ @@ -236,7 +236,7 @@ List options = question.getOptions(); Iterator itero = options.iterator(); - while(itero.hasNext()){ + while(itero.hasNext()) { ConfigOption configoption = (ConfigOption)itero.next(); /*Debug.logInfo("Found option " + configoption.getDescription(), module); Debug.logInfo("IsAvailable: "+configoption.isAvailable()+ @@ -269,11 +269,11 @@ protected class QuestionFactory{ - public Question get(ConfigItem question){ + public Question get(ConfigItem question) { List options = question.getOptions(); - if(question.isSingleChoice()){ - if(options.size()>2){ + if(question.isSingleChoice()) { + if(options.size()>2) { return new ListButtonQuestion(question); }else{ //TODO: this doesn't handle the case of @@ -303,15 +303,15 @@ private ConfigItem question = null; private int showOption = 0; - public SingleButtonQuestion(ConfigItem question){ + public SingleButtonQuestion(ConfigItem question) { this.question = question; return; } - public void setupButton(XButton button){ + public void setupButton(XButton button) { this.button = button; List options = question.getOptions(); - if(question.isSelected()){ + if(question.isSelected()) { ConfigOption selectedOption = question.getSelected(); showOption = options.indexOf(selectedOption); } @@ -320,11 +320,11 @@ return; } - /*public void setupListPane(XScrollPane m_optionListPane){ + /*public void setupListPane(XScrollPane m_optionListPane) { return; } */ - public void buttonClicked(){ + public void buttonClicked() { //only two choices, if the button is clicked, toggle List options = question.getOptions(); ConfigOption unselectedoption = (ConfigOption)options.get(showOption); @@ -336,10 +336,10 @@ return; } - public void reset(){ + public void reset() { showOption = 0; List options = question.getOptions(); - if(question.isSelected()){ + if(question.isSelected()) { ConfigOption selectedOption = question.getSelected(); showOption = options.indexOf(selectedOption); } @@ -354,29 +354,29 @@ private XScrollPane scrollpane = null; private ConfigItem question = null; - public ListButtonQuestion(ConfigItem question){ + public ListButtonQuestion(ConfigItem question) { this.question = question; return; } - public void setupButton(XButton button){ + public void setupButton(XButton button) { this.button = button; int showOption = 0; button.setText(question.getQuestion()); return; } - public void setupListPane(XScrollPane m_optionListPane){ + public void setupListPane(XScrollPane m_optionListPane) { scrollpane = m_optionListPane; return; } - public void buttonClicked(){ + public void buttonClicked() { Iterator options = question.getOptions().iterator(); DefaultListModel listModel = new DefaultListModel(); - while(options.hasNext()){ + while(options.hasNext()) { ConfigOption configoption = (ConfigOption)options.next(); listModel.addElement(configoption.getDescription()); //Debug.logInfo("Found option " + configoption.getDescription(), module); @@ -395,7 +395,7 @@ return; } - public void reset(){ + public void reset() { return; } } @@ -403,7 +403,7 @@ protected class LBQSelectionHandler implements ListSelectionListener { private ConfigItem question = null; - public void setQuestion(ConfigItem question){ + public void setQuestion(ConfigItem question) { this.question = question; } @@ -411,23 +411,23 @@ try{ JList jlist = (JList)event.getSource(); boolean isAdjusting = event.getValueIsAdjusting(); - if(!isAdjusting){ + if(!isAdjusting) { int[] selected = jlist.getSelectedIndices(); - //for(int i: selected){ + //for(int i: selected) { // Debug.logInfo(""+i, module); //} List<ConfigOption> options = (List<ConfigOption>)question.getOptions(); - for (ConfigOption option: options){ + for (ConfigOption option: options) { option.setSelected(false); } - for(int i: selected){ + for(int i: selected) { ConfigOption option = options.get(i); option.setSelected(true); } m_configureItem.listPressed(); } } - catch(Exception ex){ + catch(Exception ex) { Debug.logInfo(ex.getMessage(), module); ex.printStackTrace(); } Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java Fri Mar 6 17:31:13 2009 @@ -19,7 +19,7 @@ boolean m_minus = false; boolean m_percent = false; - public NumericKeypad(PosScreen pos){ + public NumericKeypad(PosScreen pos) { m_pos = pos; return; } @@ -41,34 +41,34 @@ } //call before openDlg - public void setMinus(boolean minus){ + public void setMinus(boolean minus) { m_minus = minus; } - public boolean getMinus(){ + public boolean getMinus() { return m_minus; } //call before openDlg - public void setPercent(boolean percent){ + public void setPercent(boolean percent) { m_percent = percent; } - public boolean getPercent(){ + public boolean getPercent() { return m_percent; } - private void disableButton(String button){ + private void disableButton(String button) { XButton xbutton = (XButton) m_dialog.findComponent(button); xbutton.setVisible(false); } - private void enableButton(String button){ + private void enableButton(String button) { XButton xbutton = (XButton) m_dialog.findComponent(button); xbutton.setVisible(true); } - private void setupEvents(){ + private void setupEvents() { XButton button = (XButton) m_dialog.findComponent("numOne"); XEventHelper.addMouseHandler(this, button, "triggerOne"); button = (XButton) m_dialog.findComponent("numTwo"); @@ -96,13 +96,13 @@ button = (XButton) m_dialog.findComponent("menuEnter"); XEventHelper.addMouseHandler(this, button, "triggerEnter"); - if(getMinus()){ + if(getMinus()) { button = (XButton) m_dialog.findComponent("numMinus"); XEventHelper.addMouseHandler(this, button, "triggerMinus"); }else{ disableButton("numMinus"); } - if(getPercent()){ + if(getPercent()) { button = (XButton) m_dialog.findComponent("numPercent"); XEventHelper.addMouseHandler(this, button, "triggerMinus"); }else{ @@ -187,18 +187,18 @@ prependUnique('%'); } - private synchronized void prependUnique(char c){ - if(wasMouseClicked()){ + private synchronized void prependUnique(char c) { + if(wasMouseClicked()) { String text = ""; try{ text = m_edit.getText(); - }catch (NullPointerException e){ + }catch (NullPointerException e) { // getText throws exception if no text text = ""; }finally{ text=c+text; } - if(countChars(text, c) > 1){ + if(countChars(text, c) > 1) { text = stripChars(text, c); } m_edit.setText(text); @@ -208,36 +208,36 @@ } } - private int countChars(String string, char c){ + private int countChars(String string, char c) { int count = 0; - for(int i=0; i<string.length(); i++){ - if (string.charAt(i) == c){ + for(int i=0; i<string.length(); i++) { + if (string.charAt(i) == c) { count++; } } return count; } - private String stripChars(String string, char c){ + private String stripChars(String string, char c) { StringBuffer buf = new StringBuffer(); - for(int i=0; i<string.length(); i++){ + for(int i=0; i<string.length(); i++) { char current = string.charAt(i); - if (current != c){ + if (current != c) { buf.append(current); } } return buf.toString(); } - private synchronized void close(){ - if(wasMouseClicked()){ + private synchronized void close() { + if(wasMouseClicked()) { m_dialog.closeDlg(); return; } } - private synchronized void clear(){ - if(wasMouseClicked()){ + private synchronized void clear() { + if(wasMouseClicked()) { String text = ""; m_edit.setText(text); m_dialog.repaint(); @@ -245,12 +245,12 @@ } } - private synchronized void append(char c){ - if(wasMouseClicked()){ + private synchronized void append(char c) { + if(wasMouseClicked()) { String text = ""; try{ text = m_edit.getText(); - }catch (NullPointerException e){ + }catch (NullPointerException e) { // getText throws exception if no text text = ""; }finally{ @@ -262,12 +262,12 @@ } } - private synchronized void append(String c){ - if(wasMouseClicked()){ + private synchronized void append(String c) { + if(wasMouseClicked()) { String text = ""; try{ text = m_edit.getText(); - }catch (NullPointerException e){ + }catch (NullPointerException e) { // getText throws exception if no text text = ""; }finally{ Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java Fri Mar 6 17:31:13 2009 @@ -145,14 +145,14 @@ } } - public synchronized void editAmount(){ + public synchronized void editAmount() { if (wasMouseClicked() && ShowKeyboardInSaveSale) { try { NumericKeypad numericKeypad = new NumericKeypad(m_pos); numericKeypad.setMinus(true); numericKeypad.setPercent(false); m_amountEdit.setText(numericKeypad.openDlg()); - }catch(Exception e){ + }catch(Exception e) { Debug.logError(e, module); } m_dialog.repaint(); Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosDialog.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosDialog.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosDialog.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosDialog.java Fri Mar 6 17:31:13 2009 @@ -335,11 +335,11 @@ return new Point(maxX, maxY); } - public void posDialogSetVisible(boolean visible){ + public void posDialogSetVisible(boolean visible) { posDialogVisible = visible; SwingUtilities.invokeLater( new Runnable() { - public void run(){ + public void run() { dialog.setVisible(posDialogVisible); } } Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java Fri Mar 6 17:31:13 2009 @@ -127,13 +127,13 @@ } } - public synchronized void editSaleName(){ + public synchronized void editSaleName() { if (wasMouseClicked() && ShowKeyboardInSaveSale) { try { Keyboard keyboard = new Keyboard(m_pos); keyboard.setText(m_saleName.getText()); m_saleName.setText(keyboard.openDlg()); - }catch(Exception e){ + }catch(Exception e) { Debug.logError(e, module); } m_dialog.repaint(); Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/XFocusDialog.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/XFocusDialog.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/XFocusDialog.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/XFocusDialog.java Fri Mar 6 17:31:13 2009 @@ -39,10 +39,10 @@ // setFocus(); // } // -// public void setFocus(){ +// public void setFocus() { // SwingUtilities.invokeLater( // new Runnable() { -// public void run(){ +// public void run() { // Debug.logInfo( "isEditable in setFocus :" + m_focused.isEditable(), "======================================" ); // Debug.logInfo( "isEnabled in setFocus: " + m_focused.isEnabled(), "======================================" ); // Debug.logInfo( "isFocusable in setFocus :" + m_focused.isFocusable(), "======================================" ); Modified: ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java (original) +++ ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java Fri Mar 6 17:31:13 2009 @@ -100,12 +100,12 @@ public static double calculateActualHours(GenericDelegator delegator, String timesheetId) { List actuals = FastList.newInstance(); double actualHours = 0.00; - if(timesheetId != null){ + if(timesheetId != null) { try { actuals = delegator.findByAnd("TimeEntry", UtilMisc.toMap("timesheetId", timesheetId)); - if(actuals.size() > 0){ + if(actuals.size() > 0) { Iterator ite = actuals.iterator(); - while(ite.hasNext()){ + while(ite.hasNext()) { GenericValue actual =(GenericValue)ite.next(); Double hour = (Double) actual.get("hours"); double hours = hour.doubleValue(); Modified: ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java Fri Mar 6 17:31:13 2009 @@ -121,7 +121,7 @@ Tool tool = (Tool)tools.next(); cus.info("Activity"+activity.toString()+" - Executing tool [id="+tool.getId()+"]"); // implement me - /*if (tool.get("Type").toValue().toString().equals("APPLICATION")){ + /*if (tool.get("Type").toValue().toString().equals("APPLICATION")) { } else {*/ try { invokeApplication(tool); @@ -245,7 +245,7 @@ // copy the return values into the workflow data Map newData=new HashMap(); - for(int i = 0; i < returnValues.length; i++){ + for(int i = 0; i < returnValues.length; i++) { if (returnValues[i].the_mode.equals(XPDLConstants.FORMAL_PARAMETER_MODE_OUT) || returnValues[i].the_mode.equals(XPDLConstants.FORMAL_PARAMETER_MODE_INOUT)) { String name = returnValues[i].the_actual_name; Modified: ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/GenericAuthenticationMgr.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/GenericAuthenticationMgr.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/GenericAuthenticationMgr.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/GenericAuthenticationMgr.java Fri Mar 6 17:31:13 2009 @@ -54,9 +54,9 @@ String registeredPwd = sharkUser.getString(org.ofbiz.shark.SharkConstants.passwd); if (password.equals(registeredPwd)) { return true; - } else if (LoginServices.getPasswordHash(password).equals(registeredPwd)){ + } else if (LoginServices.getPasswordHash(password).equals(registeredPwd)) { return true; - } else if (LoginServices.getPasswordHash(registeredPwd).equals(password)){ + } else if (LoginServices.getPasswordHash(registeredPwd).equals(password)) { return true; } else { return false; Modified: ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/OfbizAuthenticationMgr.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/OfbizAuthenticationMgr.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/OfbizAuthenticationMgr.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/auth/OfbizAuthenticationMgr.java Fri Mar 6 17:31:13 2009 @@ -61,9 +61,9 @@ if (adminUser != null) { if (password.equals(p)) { return true; - } else if (LoginServices.getPasswordHash(password).equals(p)){ + } else if (LoginServices.getPasswordHash(password).equals(p)) { return true; - } else if (LoginServices.getPasswordHash(p).equals(password)){ + } else if (LoginServices.getPasswordHash(p).equals(password)) { return true; } else { return false; Modified: ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/container/SharkContainer.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/container/SharkContainer.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/container/SharkContainer.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/container/SharkContainer.java Fri Mar 6 17:31:13 2009 @@ -211,7 +211,7 @@ if (dispatcher != null) { dispatcher.deregister(); } - if(p != null){ + if(p != null) { p.destroy(); } Modified: ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java Fri Mar 6 17:31:13 2009 @@ -333,12 +333,12 @@ while(st.hasMoreElements()) { Elem = (String)st.nextElement(); - if(Elem.equalsIgnoreCase(org.ofbiz.shark.SharkConstants.packageId)){ + if(Elem.equalsIgnoreCase(org.ofbiz.shark.SharkConstants.packageId)) { st.nextElement(); strtoc = new StringTokenizer((String)st.nextElement(), "\'"); pkgId = strtoc.nextToken(); - for(int i = 0; i < l.size(); i++){ - if(((ProcessMgr)l.get(i)).getPackageId().equalsIgnoreCase(pkgId)){ + for(int i = 0; i < l.size(); i++) { + if(((ProcessMgr)l.get(i)).getPackageId().equalsIgnoreCase(pkgId)) { returnList.add((ProcessMgr)l.get(i)); } } @@ -1053,7 +1053,7 @@ String e = (String)st.nextElement(); strtoc = new StringTokenizer(e, "\'"); state = strtoc.nextToken(); - } else if(element.equals("ActivityDefinitionId")){ + } else if(element.equals("ActivityDefinitionId")) { st.nextElement(); String e = (String)st.nextElement(); strtoc = new StringTokenizer(e, "\'"); @@ -1065,10 +1065,10 @@ for(int i = 0; i < act_list.size(); i ++) { - if((state == null) && (defId != null)){ + if((state == null) && (defId != null)) { if(((Activity)act_list.get(i)).getActivityDefinitionId().equalsIgnoreCase(defId)) returnList.add(act_list.get(i)); - } else if((state != null) && (defId == null)){ + } else if((state != null) && (defId == null)) { if(((Activity)act_list.get(i)).getState().startsWith(new String(state.substring(0, state.length()-1)))) returnList.add(act_list.get(i)); } else if ((state != null) && (defId != null)) { @@ -1164,10 +1164,10 @@ List createdList = new ArrayList(); List tmpList = null; tmpList = getAllVariablesForProcess(processId, trans); - if(tmpList != null){ - for(int i =0; i < tmpList.size(); i++){ - for(int j =0; j < varList.size(); j++){ - if(((String)varList.get(j)).equalsIgnoreCase(((ProcessVariable)tmpList.get(i)).getDefinitionId())){ + if(tmpList != null) { + for(int i =0; i < tmpList.size(); i++) { + for(int j =0; j < varList.size(); j++) { + if(((String)varList.get(j)).equalsIgnoreCase(((ProcessVariable)tmpList.get(i)).getDefinitionId())) { createdList.add(tmpList.get(i)); } } @@ -1184,10 +1184,10 @@ List createdList = new ArrayList(); List tmpList = null; tmpList = getAllVariablesForActivity(activityId, trans); - if(tmpList != null){ - for(int i =0; i < tmpList.size(); i++){ - for(int j =0; j < varList.size(); j++){ - if(((String)varList.get(j)).equalsIgnoreCase(((ActivityVariable)tmpList.get(i)).getDefinitionId())){ + if(tmpList != null) { + for(int i =0; i < tmpList.size(); i++) { + for(int j =0; j < varList.size(); j++) { + if(((String)varList.get(j)).equalsIgnoreCase(((ActivityVariable)tmpList.get(i)).getDefinitionId())) { createdList.add(tmpList.get(i)); } } Modified: ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java Fri Mar 6 17:31:13 2009 @@ -253,7 +253,7 @@ List refs = null; try { refs = delegator.findByAnd(org.ofbiz.shark.SharkConstants.WfRepositoryRef, UtilMisc.toMap(org.ofbiz.shark.SharkConstants.xpdlId, referringXPDLId, org.ofbiz.shark.SharkConstants.xpdlVersion, referringXPDLVersion)); - } catch (GenericEntityException e){ + } catch (GenericEntityException e) { throw new RepositoryException(e); } try @@ -324,7 +324,7 @@ long xpdlClassVer) throws RepositoryException { Debug.log("XPDL Upload : " + xpdlId, module); - //try{throw new Exception ("XPDL Upload");}catch(Exception e){e.printStackTrace();}; + //try{throw new Exception ("XPDL Upload");}catch(Exception e) {e.printStackTrace();}; String newVersion = null; try { newVersion = nextVersions.updateNextVersion(xpdlId); Modified: ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/requester/LoggingRequester.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/requester/LoggingRequester.java?rev=750993&r1=750992&r2=750993&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/requester/LoggingRequester.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/requester/LoggingRequester.java Fri Mar 6 17:31:13 2009 @@ -40,7 +40,7 @@ static GenericValue gv = null; - public LoggingRequester(){ + public LoggingRequester() { super(gv); } |
Free forum by Nabble | Edit this page |