From: Jorg J. <jj...@us...> - 2004-04-18 05:45:18
|
Update of /cvsroot/compiere/dbPort/src/org/compiere/process In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27246/src/org/compiere/process Modified Files: DocAction.java DocumentEngine.java Log Message: . Index: DocAction.java =================================================================== RCS file: /cvsroot/compiere/dbPort/src/org/compiere/process/DocAction.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DocAction.java 28 Mar 2004 06:59:58 -0000 1.5 --- DocAction.java 18 Apr 2004 05:45:02 -0000 1.6 *************** *** 190,192 **** --- 190,197 ---- public int getAD_Org_ID(); + /** + * Save Document + * @return true if saved + */ + public boolean save(); } // DocAction Index: DocumentEngine.java =================================================================== RCS file: /cvsroot/compiere/dbPort/src/org/compiere/process/DocumentEngine.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DocumentEngine.java 28 Mar 2004 06:59:58 -0000 1.5 --- DocumentEngine.java 18 Apr 2004 05:45:02 -0000 1.6 *************** *** 541,589 **** } // isValidAction /************************************************************************* * Get Summary ! * @return Summary of Document */ public String getSummary () { ! throw new IllegalStateException("Document Engine is no Document"); } /** * Get Document Owner ! * @return AD_User_ID */ public int getDoc_User_ID() { ! throw new IllegalStateException("Document Engine is no Document"); } /** * Get Document Currency ! * @return C_Currency_ID */ public int getC_Currency_ID() { ! throw new IllegalStateException("Document Engine is no Document"); } /** * Get Document Approval Amount ! * @return amount */ public BigDecimal getApprovalAmt() { ! throw new IllegalStateException("Document Engine is no Document"); } /** * Get Document Organization ! * @return AD_Org_ID */ public int getAD_Org_ID() { ! throw new IllegalStateException("Document Engine is no Document"); } } // Doc --- 541,599 ---- } // isValidAction + /** Document Exception Message */ + private static String EXCEPTION_MSG = "Document Engine is no Document"; /************************************************************************* * Get Summary ! * @return throw exception */ public String getSummary () { ! throw new IllegalStateException(EXCEPTION_MSG); } /** * Get Document Owner ! * @return throw exception */ public int getDoc_User_ID() { ! throw new IllegalStateException(EXCEPTION_MSG); } /** * Get Document Currency ! * @return throw exception */ public int getC_Currency_ID() { ! throw new IllegalStateException(EXCEPTION_MSG); } /** * Get Document Approval Amount ! * @return throw exception */ public BigDecimal getApprovalAmt() { ! throw new IllegalStateException(EXCEPTION_MSG); } /** * Get Document Organization ! * @return throw exception */ public int getAD_Org_ID() { ! throw new IllegalStateException(EXCEPTION_MSG); } + /** + * Save Document + * @return throw exception + */ + public boolean save() + { + throw new IllegalStateException(EXCEPTION_MSG); + } } // Doc |