rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
model.setDest(this.getUsefulRequestURI());
model.dest = this.getUsefulRequestURI();
protected final void execute2() throws Exception { if (this.isLoggedIn()) { this.authExecute(); } else { Login.Model model = new Login.Model(); model.setDest(this.getUsefulRequestURI()); if (log.isDebugEnabled()) log.debug("Destination will be: " + model.getDest()); this.getCtx().getRequest(...
log.debug("Destination will be: " + model.getDest());
log.debug("Destination will be: " + model.dest);
protected final void execute2() throws Exception { if (this.isLoggedIn()) { this.authExecute(); } else { Login.Model model = new Login.Model(); model.setDest(this.getUsefulRequestURI()); if (log.isDebugEnabled()) log.debug("Destination will be: " + model.getDest()); this.getCtx().getRequest(...
setText("Scheme file header");
setText("Insert header comment");
public FileHeaderCommentAction(SchemeEditor editor) { mEditor = editor; setText("Scheme file header"); setToolTipText("Insert a Scheme file header comment"); }
tpDescription.setText("This program will guide you through the process of publishing your photographs to the web. The result will be a directory with .html and .jpg / .png files that you can upload to your current web host.\n\nPress the next button below and follow the steps on each screen.");
tpDescription.setText("This program will guide you through the process of publishing your photographs to the web. The result will be a directory with .html and .jpg / .gif files that you can upload to your current web host.\n\nPress the next button below and follow the steps on each screen.\n\nTo know about new releas...
private void initComponents() {//GEN-BEGIN:initComponents tpDescription = new javax.swing.JTextPane(); pnlTitle = new javax.swing.JPanel(); lblTitle = new javax.swing.JLabel();// lblCompany = new javax.swing.JLabel(); pnlBottom = new javax.swing.JPanel(); cbSkipIntro = new ...
lblTitle.setText(Constants.APP_NAME);
lblTitle.setText("Java Image Album");
private void initComponents() {//GEN-BEGIN:initComponents tpDescription = new javax.swing.JTextPane(); pnlTitle = new javax.swing.JPanel(); lblTitle = new javax.swing.JLabel();// lblCompany = new javax.swing.JLabel(); pnlBottom = new javax.swing.JPanel(); cbSkipIntro = new ...
String hash = MD5.crypt(email + System.currentTimeMillis()); um.writeLostPasswordHash(email, hash);
String hash = MD5.crypt(user.getEmail() + System.currentTimeMillis()); um.writeLostPasswordHash(user.getEmail(), hash);
public User prepareLostPassword(String username, String email) throws Exception { User user = null; UserModel um = DataAccessDriver.getInstance().newUserModel(); if (email != null && !email.trim().equals("")) { username = um.getUsernameByEmail(email); } if (username != null && !username.trim().equals("")) { L...
double start = context.sequenceToGraphics(source.getMax()); double end = context.sequenceToGraphics(dest.getMin()+1);
double start = context.sequenceToGraphics(source.getMax()+1); double end = context.sequenceToGraphics(dest.getMin());
private void renderLink( Graphics2D g, Feature f, Location source, Location dest, SequenceRenderContext context ) { Line2D line = new Line2D.Double(); Point2D startP; Point2D midP; Point2D endP; double half = blockDepth * 0.5; if(context.getDirection() == SequenceRenderContext.HORIZONTAL) { ...
double start = context.sequenceToGraphics(dest.getMin()); double end = context.sequenceToGraphics(source.getMax()+1);
double start = context.sequenceToGraphics(dest.getMin()+1); double end = context.sequenceToGraphics(source.getMax());
private void renderLink( Graphics2D g, Feature f, Location source, Location dest, SequenceRenderContext context ) { Line2D line = new Line2D.Double(); Point2D startP; Point2D midP; Point2D endP; double half = blockDepth * 0.5; if(context.getDirection() == SequenceRenderContext.HORIZONTAL) { ...
throw new BioException("Running BlastLikeHomologyBuilder with null query SequenceDB");
throw new BioException("Running with null query SequenceDB");
protected Sequence makeQueryViewSequence(String queryID) throws BioException { if (querySeqHolder == null) throw new BioException("Running BlastLikeHomologyBuilder with null query SequenceDB"); if (queryViewCache.containsKey(queryID)) { return (Sequence) queryVie...
throw new BioException("Running BlastLikeHomologyBuilder with null subject SequenceDB installation");
throw new BioException("Running with null subject SequenceDB installation");
protected Sequence makeSubjectViewSequence(String subjectID) throws BioException { if (subjectDBs == null) throw new BioException("Running BlastLikeHomologyBuilder with null subject SequenceDB installation"); SequenceDBLite subjectDB = subjectDBs.getSequenceDB(subjectID); /...
SequenceDBLite subjectDB = subjectDBs.getSequenceDB(subjectID);
SequenceDBLite subjectDB = subjectDBs.getSequenceDB(databaseID);
protected Sequence makeSubjectViewSequence(String subjectID) throws BioException { if (subjectDBs == null) throw new BioException("Running BlastLikeHomologyBuilder with null subject SequenceDB installation"); SequenceDBLite subjectDB = subjectDBs.getSequenceDB(subjectID); /...
+ subjectID + "' (sequence was null)");
+ databaseID + "' (database was null)");
protected Sequence makeSubjectViewSequence(String subjectID) throws BioException { if (subjectDBs == null) throw new BioException("Running BlastLikeHomologyBuilder with null subject SequenceDB installation"); SequenceDBLite subjectDB = subjectDBs.getSequenceDB(subjectID); /...
if(methods == null) { boolean stopHere = true; }
private CMethod findInitialDeclaration(CMethod orig, CContext context) { CClass ownerSuperClass = orig.getOwner().getSuperClass(); CMethod lastFound = orig; while(ownerSuperClass != null) { CMethod[] methods = ownerSuperClass.getMethods(); i...
String message = strings().getString(HJBStrings.REGISTRATION_IGNORED, "factory " + name); LOG.info(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.REGISTRATION_IGNORED, "factory " + name); LOG.debug(message); }
public void registerConnectionFactory(String name) { synchronized (factories) { ConnectionFactory f = (ConnectionFactory) locate(name); if (factories.containsKey(name)) { String message = strings().getString(HJBStrings.REGISTRATION_IGNORED, ...
String message = strings().getString(HJBStrings.REGISTRATION_IGNORED, "destination " + name); LOG.info(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.REGISTRATION_IGNORED, "destination " + name); LOG.debug(message); }
public void registerDestination(String name) { synchronized (destinations) { Destination d = (Destination) locate(name); if (destinations.containsKey(name)) { String message = strings().getString(HJBStrings.REGISTRATION_IGNORED, ...
model.lists = Backend.instance().getAdmin().getLists(model.getSkip(), model.getCount());
model.lists = Backend.instance().getAdmin().getListsPlus(model.getSkip(), model.getCount());
public void authExecute() throws Exception { Model model = (Model)this.getCtx().getModel(); if (model.query.trim().length() == 0) { model.lists = Backend.instance().getAdmin().getLists(model.getSkip(), model.getCount()); model.setTotalCount(Backend.instance().getAdmin().countLists()); } else { model.list...
model.lists = Backend.instance().getAdmin().searchLists(model.query, model.getSkip(), model.getCount());
model.lists = Backend.instance().getAdmin().searchListsPlus(model.query, model.getSkip(), model.getCount());
public void authExecute() throws Exception { Model model = (Model)this.getCtx().getModel(); if (model.query.trim().length() == 0) { model.lists = Backend.instance().getAdmin().getLists(model.getSkip(), model.getCount()); model.setTotalCount(Backend.instance().getAdmin().countLists()); } else { model.list...
public void list() throws Exception
public void list()
public void list() throws Exception { }
public void redirect() throws Exception
public void redirect()
public void redirect() throws Exception { int bannerId = this.request.getIntParameter("banner_id"); if(!(new BannerCommon()).canBannerDisplay(bannerId)) { JForumExecutionContext.setRedirect(""); return; } BannerDAO dao = DataAccessDriver.getInstance().newBannerDAO(); Banner banner = dao.selectById(bannerId);...
String command = null; command = reader.readLine();
String command = reader.readLine();
public void run() { session = new Session(); try { this.sendResponse("220 " + server.getHostName() + " ESMTP " + server.getName()); while (session.isActive()) { String command = null; command = reader.readLine(); this.server.getCommandHandler().handleCommand(this, command); if (command == null) ...
if (command == null) { session.quit(); } else { writer.flush(); }
lastActiveTime = System.currentTimeMillis();
public void run() { session = new Session(); try { this.sendResponse("220 " + server.getHostName() + " ESMTP " + server.getName()); while (session.isActive()) { String command = null; command = reader.readLine(); this.server.getCommandHandler().handleCommand(this, command); if (command == null) ...
try { try { writer.close(); input.close(); } finally { socket.close(); } } catch (IOException e) { log.debug(e); }
closeConnection();
public void run() { session = new Session(); try { this.sendResponse("220 " + server.getHostName() + " ESMTP " + server.getName()); while (session.isActive()) { String command = null; command = reader.readLine(); this.server.getCommandHandler().handleCommand(this, command); if (command == null) ...
Set props = new HashSet(); props.addAll(getProperties()); props.addAll(ann.keys());
public boolean instanceOf(Annotation ann) { for (Iterator i = getProperties().iterator(); i.hasNext();) { Object key = i.next(); PropertyConstraint con = getPropertyConstraint(key); Location card = getCardinalityConstraint(key); if(!validate(ann, key, con, ca...
sb.append(" [*, " + getDefaultPropertyConstraint() + ", " + getDefaultCardinalityConstraint() + "]");
public String toString() { StringBuffer sb = new StringBuffer("AnnotationType: {"); for(Iterator i = getProperties().iterator(); i.hasNext(); ) { Object key = i.next(); PropertyConstraint pc = getPropertyConstraint(key); Location cc = getCardinalityCo...
public void generate() throws Exception
public void generate()
public void generate() throws Exception { JForumExecutionContext.enableCustomContent(true); JForumExecutionContext.setContentType("image/jpg"); Captcha.getInstance().writeCaptchaImage(); }
public void list() throws Exception
public void list()
public void list() throws Exception { this.generate(); }
listener.endElement(biojavaUri, "Detail", biojavaUri + ":Detail");
staxenv.listener.endElement(biojavaUri, "Detail", biojavaUri + ":Detail");
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // generate end of <biojava:HSPCollection> listener.endElement(biojavaUri, "Detail", biojavaUri + ":Detail"); }
listener.startElement(biojavaUri, "Detail", biojavaUri + ":Detail", new AttributesImpl());
staxenv.listener.startElement(biojavaUri, "Detail", biojavaUri + ":Detail", new AttributesImpl());
public void startElementHandler( String nsURI, String localName, String qName, Attributes attrs) throws SAXException { // generate start of <biojava:Detail> listener.startElement(biojavaUri, "Detail", biojavaUri + ":Detail", new AttributesImpl...
"/com/javaimagealbum/images/icon.gif")
"/com/javaimagealbum/images/icon.png")
public JavaImageAlbumFrame( PublishManager publishManager ) { this.publishManager = publishManager; initComponents (); setIconImage( new javax.swing.ImageIcon( getClass().getResource( "/com/javaimagealbum/images/icon.gif") ).getImage()); pack (); ...
btnRestart.setMnemonic('r'); btnRestart.setText("Restart");
btnRestart.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("RESTART")); btnRestart.setActionCommand("res.getString(\"RESTART\")");
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlCurrent = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnRestart = new javax.swing.JButton(); btnBack = new javax.swing.JButton(); btnNext = new javax.swing.JButton(); ...
btnBack.setText("<< Back");
btnBack.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("BACK"));
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlCurrent = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnRestart = new javax.swing.JButton(); btnBack = new javax.swing.JButton(); btnNext = new javax.swing.JButton(); ...
btnNext.setText("Next >>");
btnNext.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("NEXT"));
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlCurrent = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnRestart = new javax.swing.JButton(); btnBack = new javax.swing.JButton(); btnNext = new javax.swing.JButton(); ...
btnCancel.setText("Cancel");
btnCancel.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("CANCEL"));
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlCurrent = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnRestart = new javax.swing.JButton(); btnBack = new javax.swing.JButton(); btnNext = new javax.swing.JButton(); ...
panels = new JPanel[6];
panels = new JPanel[7];
private void initPanels() { boolean skipIntro = Settings.getInstance().getProperty( Constants.SKIP_INTRO, "false" ).toLowerCase().equals( "true" ); panels = new JPanel[6]; panels[0] = new IntroPanel(); panels[1] = new PickPhotosPanel( publishManager ); panels[2...
panels[4] = new OutputOptionsPanel( publishManager ); panels[5] = new SummaryPanel( publishManager );
panels[4] = new OutputDescriptionPanel( publishManager ); panels[5] = new OutputOptionsPanel( publishManager ); panels[6] = new SummaryPanel( publishManager );
private void initPanels() { boolean skipIntro = Settings.getInstance().getProperty( Constants.SKIP_INTRO, "false" ).toLowerCase().equals( "true" ); panels = new JPanel[6]; panels[0] = new IntroPanel(); panels[1] = new PickPhotosPanel( publishManager ); panels[2...
btnCancel.setText( "Close" );
btnCancel.setText( res.getString("CANCEL") );
private void updateButtons() { WizardPanel wizPanel = (WizardPanel)currentPanel; btnBack.setEnabled( currentPanelIndex > 0 ); btnNext.setEnabled( ( (wizPanel != null) && wizPanel.isSatisfied() ) && ( currentPanelIndex < (panels.length - 1) ) ); btnRestart.se...
static synchronized void activityProgress(Object source, int current, int target) {
public static synchronized void activityProgress(Object source, int current, int target) {
static synchronized void activityProgress(Object source, int current, int target) { for (Iterator i = activityListeners.iterator(); i.hasNext(); ) { ActivityListener al = (ActivityListener) i.next(); al.activityProgress(source, current, target); } }
DAS.completedActivity(dsnURL);
private void addDasURLImpl(URL dasURL) throws BioException, ChangeVetoException { try { URL dsnURL = new URL(dasURL, "dsn"); HttpURLConnection huc = (HttpURLConnection) dsnURL.openConnection(); huc.connect(); int status = DASSequenceDB.tolerantIntHeader(huc, "X-DAS-Status"); // int status...
static synchronized void completedActivity(Object source) {
public static synchronized void completedActivity(Object source) {
static synchronized void completedActivity(Object source) { for (Iterator i = activityListeners.iterator(); i.hasNext(); ) { ActivityListener al = (ActivityListener) i.next(); al.completedActivity(source); } }
static synchronized void startedActivity(Object source) {
public static synchronized void startedActivity(Object source) {
static synchronized void startedActivity(Object source) { for (Iterator i = activityListeners.iterator(); i.hasNext(); ) { ActivityListener al = (ActivityListener) i.next(); al.startedActivity(source); } }
this.closed = true;
boolean prevClosed = isPrevClosed();
public synchronized void close() { this.closed = true; if (isPrevClosed()) { flushBuffer(); } if (next != null && isPrevClosed()) { next.prevClosed(); } }
if (isPrevClosed()) {
if (prevClosed) {
public synchronized void close() { this.closed = true; if (isPrevClosed()) { flushBuffer(); } if (next != null && isPrevClosed()) { next.prevClosed(); } }
if (next != null && isPrevClosed()) {
if (next != null && prevClosed) {
public synchronized void close() { this.closed = true; if (isPrevClosed()) { flushBuffer(); } if (next != null && isPrevClosed()) { next.prevClosed(); } }
this.closed = true;
public synchronized void close() { this.closed = true; if (isPrevClosed()) { flushBuffer(); } if (next != null && isPrevClosed()) { next.prevClosed(); } }
private final boolean isPrevClosed() { if (prevClosed) { return true; }
private synchronized boolean isPrevClosed() {
private final boolean isPrevClosed() { if (prevClosed) { return true; } if (prev == null) { prevClosed = true; return true; } else { prevClosed = prev.isClosed(); return prevClosed; } }
prevClosed = true;
private final boolean isPrevClosed() { if (prevClosed) { return true; } if (prev == null) { prevClosed = true; return true; } else { prevClosed = prev.isClosed(); return prevClosed; } }
prevClosed = prev.isClosed();
private final boolean isPrevClosed() { if (prevClosed) { return true; } if (prev == null) { prevClosed = true; return true; } else { prevClosed = prev.isClosed(); return prevClosed; } }
prevClosed = true;
protected synchronized void prevClosed() { flushBuffer(); if (closed && next != null) { next.prevClosed(); } }
cloneFeatures(this,newSeq);
SequenceTools.addAllFeatures(newSeq, this);
public Object clone(){ SymbolList sl = new SimpleSymbolList(this); Sequence newSeq = new SimpleSequence(sl,this.getURN(),this.getName(),this.getAnnotation()); try{ cloneFeatures(this,newSeq); } catch ( BioException e){ throw new BioError( "Error while cloning RevCom...
} catch (ChangeVetoException cve) { throw new BioError(cve, "Couldn't modify newly created SimpleSequence");
public Object clone(){ SymbolList sl = new SimpleSymbolList(this); Sequence newSeq = new SimpleSequence(sl,this.getURN(),this.getName(),this.getAnnotation()); try{ cloneFeatures(this,newSeq); } catch ( BioException e){ throw new BioError( "Error while cloning RevCom...
ft.location = pfh.getProjectedLocation(ft.location);
ft.location = ProjectionUtils.transformLocation(ft.location, length() + 1, true);
public Feature createFeature(Feature.Template ft) throws ChangeVetoException,BioException{ ft.location = pfh.getProjectedLocation(ft.location); if (ft instanceof StrandedFeature.Template){ ((StrandedFeature.Template)ft).strand = pfh.getProjectedStrand(((StrandedFeature.Template)ft).strand);...
((StrandedFeature.Template)ft).strand = pfh.getProjectedStrand(((StrandedFeature.Template)ft).strand);
((StrandedFeature.Template)ft).strand = ProjectionUtils.flipStrand(((StrandedFeature.Template)ft).strand);
public Feature createFeature(Feature.Template ft) throws ChangeVetoException,BioException{ ft.location = pfh.getProjectedLocation(ft.location); if (ft instanceof StrandedFeature.Template){ ((StrandedFeature.Template)ft).strand = pfh.getProjectedStrand(((StrandedFeature.Template)ft).strand);...
Feature pFeature; Feature oFeature; for (Iterator i = origSeq.features();i.hasNext();){ oFeature = (Feature)i.next(); pFeature = pfh.projectFeature(oFeature); if (pFeature.equals(f)){ return oFeature; } } return null;
return ((Projection) f).getViewedFeature();
public Feature getFeatureFromOriginal(Feature f){ Feature pFeature; Feature oFeature; for (Iterator i = origSeq.features();i.hasNext();){ oFeature = (Feature)i.next(); pFeature = pfh.projectFeature(oFeature); if (pFeature.equals(f)){ return oFeatur...
try {
/*
public String execute(String commandString, Session session) { String[] args = getArgs(commandString); if (args.length < 2) { return "501 Syntax: HELO <hostname>"; } String remoteHost = args[1]; // http://cr.yp.to/smtp/helo.html#helo // "I recommend that they use bracketed IP addresses:" remoteHost = remot...
}
/* }
public String execute(String commandString, Session session) { String[] args = getArgs(commandString); if (args.length < 2) { return "501 Syntax: HELO <hostname>"; } String remoteHost = args[1]; // http://cr.yp.to/smtp/helo.html#helo // "I recommend that they use bracketed IP addresses:" remoteHost = remot...
*/
public String execute(String commandString, Session session) { String[] args = getArgs(commandString); if (args.length < 2) { return "501 Syntax: HELO <hostname>"; } String remoteHost = args[1]; // http://cr.yp.to/smtp/helo.html#helo // "I recommend that they use bracketed IP addresses:" remoteHost = remot...
String expectedOutput = "/testProvider/testFactory/connection-1" + CR + "/testProvider/testFactory/connection-0" + CR;
testFactory.getConnection(0).createSession(true, Session.AUTO_ACKNOWLEDGE); testFactory.getConnection(0).createSession(true, Session.AUTO_ACKNOWLEDGE); String expectedOutput = "/testProvider/testFactory:" + CR + "total 2" + CR + "connection-1" + CR + '\t' + "clientId=, " + HJBConstants.CREATION_TIME + "=" + defaultCloc...
protected String createSomeConnections() { testFactory.createConnection(); testFactory.createConnection(); String expectedOutput = "/testProvider/testFactory/connection-1" + CR + "/testProvider/testFactory/connection-0" + CR; return expectedOutput; }
+ "/testProvider/testFactory/connection-1" + CR + CR + "/testProvider/testFactory/connection-0" + CR;
+ "/testProvider/testFactory/connection-1:" + CR + "total 0" + CR + CR + "/testProvider/testFactory/connection-0:" + CR + "total 2" + CR + "session-1" + CR + "\tacknowledgement-mode=(int 1), " + HJBConstants.CREATION_TIME + "=" + defaultClockTimeAsHJBEncodedLong() + ", transacted=(boolean false)" + CR + "session-0" + C...
public void testRecurseListingAddsSessionListings() { StringWriter sw = new StringWriter(); String expectedOutput = createSomeConnections(); expectedOutput = expectedOutput + CR + "/testProvider/testFactory/connection-1" + CR + CR + "/testProvider/testFactory/conne...
System.err.println(sw.toString());
public void testRecurseListingAddsSessionListings() { StringWriter sw = new StringWriter(); String expectedOutput = createSomeConnections(); expectedOutput = expectedOutput + CR + "/testProvider/testFactory/connection-1" + CR + CR + "/testProvider/testFactory/conne...
int count = multi.getCount(); multi.addBodyPart(part, count);
public void onSend(SubEthaMessage msg, SendFilterContext ctx) throws IgnoreException, MessagingException { if (log.isDebugEnabled()) log.debug("AppendFooterFilter: onSend()"); try { String footerContent = (String) ctx.getArgument(ARG_FOOTER); // Add a link to the message in the archive into the context. ...
setFault(e);
recordFault(e);
public void execute() { assertNotCompleted(); try { messagesOnQueue = getMessenger().viewQueue(getBrowserIndex()); } catch (RuntimeException e) { setFault(e); } completed(); }
if (!username.equals(oldName) || !cryptedPassword.equals(oldPassword)) {
boolean userChanged = false; if (!username.equals(oldName)) { if (SystemGlobals.getBoolValue(ConfigKeys.EXTERNAL_UNIQUE_NAMES)) { updateName(username, new HashSet()); }
private void checkNamePasswordChange(User user, String username, String cryptedPassword) throws Exception { String oldName = user.getUsername(); String oldPassword = user.getPassword(); if (!username.equals(oldName) || !cryptedPassword.equals(oldPassword)) { user.setUsername(username); user.setPassword(cryptedP...
userChanged = true; } if (userChanged) {
private void checkNamePasswordChange(User user, String username, String cryptedPassword) throws Exception { String oldName = user.getUsername(); String oldPassword = user.getPassword(); if (!username.equals(oldName) || !cryptedPassword.equals(oldPassword)) { user.setUsername(username); user.setPassword(cryptedP...
Contract.pre(annotation != null, "annotation was null");
public SequenceDBSearchHit(final double score, final double eValue, final double pValue, final int queryStart, final int queryEnd, final Strand queryStrand, ...
this.SMTPServerContext = SMTPServerContext;
this.smtpServerContext = SMTPServerContext;
public CommandDispatcher(SMTPServerContext SMTPServerContext) { this.SMTPServerContext = SMTPServerContext; }
return SMTPServerContext;
return smtpServerContext;
public SMTPServerContext getServerContext() { return SMTPServerContext; }
session.flush(SMTPServerContext);
try { session.flush(smtpServerContext); } catch (TooMuchDataException e) { return "552 Too much mail data."; } catch (IOException e) { return "554 Transaction failed."; }
private String handleDataMode(String commandString, Session session) { if (".".equals(commandString)) { session.flush(SMTPServerContext); return "250 Ok: message passed to handler"; } if (commandString.startsWith(".")) { commandString = commandString.substring(1); } session.addData(commandString); return...
this.SMTPServerContext = SMTPServer;
this.smtpServerContext = SMTPServer;
public void setServerContext(SMTPServerContext SMTPServer) { this.SMTPServerContext = SMTPServer; }
/* LOCAL VARIABLES NOT USED
private CodeSequence() { instructions = new Instruction[org.caesarj.classfile.ClassfileConstants2.MAX_CODE_PER_METHOD]; handlers = new ArrayList(); lines = new ArrayList(); /* LOCAL VARIABLES NOT USED locals = new Hashtable(); LOCAL VARIABLES NOT USED */ }
LOCAL VARIABLES NOT USED */
private CodeSequence() { instructions = new Instruction[org.caesarj.classfile.ClassfileConstants2.MAX_CODE_PER_METHOD]; handlers = new ArrayList(); lines = new ArrayList(); /* LOCAL VARIABLES NOT USED locals = new Hashtable(); LOCAL VARIABLES NOT USED */ }
this.last = insn;
public final void plantInstruction(Instruction insn) { instructions[pc++] = insn; labelAtEnd = false; if (lineNumber != lastLine) { lastLine = lineNumber; lines.add(new LineNumberInfo((short)lineNumber, insn)); } }
return this.url.substring(0, pos + "/se".length());
return this.url.substring(0, pos + "/se/".length());
public String getUrlBase() { //TODO: make this a constant somewhere int pos = this.url.indexOf("/se/list/"); if (pos < 0) throw new IllegalStateException("Malformed list url"); return this.url.substring(0, pos + "/se".length()); }
public List selectAllByForumByLimit(int forumId, int startFrom, int count) throws Exception
public List selectAllByForumByLimit(int forumId, int startFrom, int count)
public List selectAllByForumByLimit(int forumId, int startFrom, int count) throws Exception { List l = new ArrayList(); String top = SystemGlobals.getSql("GenericModel.selectByLimit"); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement((top + " " + count + " " + SystemGlobals.getSql("To...
List l = new ArrayList();
public List selectAllByForumByLimit(int forumId, int startFrom, int count) throws Exception { List l = new ArrayList(); String top = SystemGlobals.getSql("GenericModel.selectByLimit"); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement((top + " " + count + " " + SystemGlobals.getSql("To...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement((top + " " + count + " " + SystemGlobals.getSql("TopicModel.selectAllByForumByLimit1") + " " + top + " " + startFrom + " " + SystemGlobals.getSql("TopicModel.selectAllByForumByLimit2"))); p.setInt(1, forumId); p.setInt(2, forumId);
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement((top + " " + count + " " + SystemGlobals.getSql("TopicModel.selectAllByForumByLimit1") + " " + top + " " + startFrom + " " + SystemGlobals.getSql("TopicModel.selectAllByForumByLimit2"))); p.setInt(1, forumId); p.setInt(2, forum...
public List selectAllByForumByLimit(int forumId, int startFrom, int count) throws Exception { List l = new ArrayList(); String top = SystemGlobals.getSql("GenericModel.selectByLimit"); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement((top + " " + count + " " + SystemGlobals.getSql("To...
return super.fillTopicsData(p); }
List list = super.fillTopicsData(p); p=null; return list; } catch (SQLException e) { String es = "Erorr selectAllByForumByLimit()"; log.error(es, e); throw new RuntimeException(es, e); } finally { DbUtils.close( p); } }
public List selectAllByForumByLimit(int forumId, int startFrom, int count) throws Exception { List l = new ArrayList(); String top = SystemGlobals.getSql("GenericModel.selectByLimit"); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement((top + " " + count + " " + SystemGlobals.getSql("To...
public List selectRecentTopics (int limit) throws Exception
public List selectRecentTopics (int limit)
public List selectRecentTopics (int limit) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GenericModel.selectByLimit") + " " + limit + " " + SystemGlobals.getSql("TopicModel.selectRecentTopicsByLimit")); return this....
List l = new ArrayList();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GenericModel.selectByLimit") + " " + limit + " " + SystemGlobals.getSql("TopicModel.selectRecentTopicsByLimit"));
public List selectRecentTopics (int limit) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GenericModel.selectByLimit") + " " + limit + " " + SystemGlobals.getSql("TopicModel.selectRecentTopicsByLimit")); return this....
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GenericModel.selectByLimit") + " " + limit + " " + SystemGlobals.getSql("TopicModel.selectRecentTopicsByLimit")); return this.fillTopicsData(p); }
List list = this.fillTopicsData(p); p=null; return list; } catch (SQLException e) { String es = "Erorr selectRecentTopics()"; log.error(es, e); throw new RuntimeException(es, e); } finally { DbUtils.close( p); } }
public List selectRecentTopics (int limit) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GenericModel.selectByLimit") + " " + limit + " " + SystemGlobals.getSql("TopicModel.selectRecentTopicsByLimit")); return this....
public int addNew(Category category) throws Exception {
public int addNew(Category category) {
public int addNew(Category category) throws Exception { // TODO Auto-generated method stub return 0; }
public boolean canDelete(int categoryId) throws Exception {
public boolean canDelete(int categoryId) {
public boolean canDelete(int categoryId) throws Exception { // TODO Auto-generated method stub return false; }
public void delete(int categoryId) throws Exception {
public void delete(int categoryId) {
public void delete(int categoryId) throws Exception { // TODO Auto-generated method stub }
public Category selectById(int categoryId) throws Exception {
public Category selectById(int categoryId) {
public Category selectById(int categoryId) throws Exception { // TODO Auto-generated method stub return null; }
public void setOrderDown(Category c, Category c2) throws Exception {
public void setOrderDown(Category c, Category c2) {
public void setOrderDown(Category c, Category c2) throws Exception { // TODO Auto-generated method stub }
public void setOrderUp(Category c, Category c2) throws Exception {
public void setOrderUp(Category c, Category c2) {
public void setOrderUp(Category c, Category c2) throws Exception { // TODO Auto-generated method stub }
public void update(Category category) throws Exception {
public void update(Category category) {
public void update(Category category) throws Exception { // TODO Auto-generated method stub }
g2.translate(leadingBorder.getSize() - minAcross + insets.left, insets.top);
g2.translate(leadingBorder.getSize() - minAcross + insets.left + getX(), insets.top + getY());
public synchronized void paintComponent(Graphics g) { if(!isActive()) { return; } Graphics2D g2 = (Graphics2D) g; if(hints != null){ g2.setRenderingHints(hints); } super.paintComponent(g); AffineTransform oldTransform = g2.getT...
g2.translate(insets.left, leadingBorder.getSize() - minAcross + insets.top);
g2.translate(insets.left + getX(), leadingBorder.getSize() - minAcross + insets.top + getY());
public synchronized void paintComponent(Graphics g) { if(!isActive()) { return; } Graphics2D g2 = (Graphics2D) g; if(hints != null){ g2.setRenderingHints(hints); } super.paintComponent(g); AffineTransform oldTransform = g2.getT...
String destinationProviderName)
String destinationProviderName, boolean throwOnFailure)
protected void assertIsSameProvider(String sessionProviderName, String destinationProviderName) throws HJBClientException { if (!destinationProviderName.equals(sessionProviderName)) { String message = strings().getString(HJBStrings.CAN_NOT_USE_DEST...
String message = strings().getString(HJBStrings.CAN_NOT_USE_DESTINATION, destinationProviderName, sessionProviderName); LOG.error(message); throw new HJBClientException(message);
if (throwOnFailure) { String message = strings().getString(HJBStrings.CAN_NOT_USE_DESTINATION, destinationProviderName, sessionProviderName); LOG.error(message); throw new HJBClientException(message); } else if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.CAN_NOT_USE_DESTINATION, destination...
protected void assertIsSameProvider(String sessionProviderName, String destinationProviderName) throws HJBClientException { if (!destinationProviderName.equals(sessionProviderName)) { String message = strings().getString(HJBStrings.CAN_NOT_USE_DEST...
protected void assertIsValidDestinationURL(Object rawDestinationURL)
protected boolean assertIsValidDestinationURL(Object rawDestinationURL, boolean throwOnFailure)
protected void assertIsValidDestinationURL(Object rawDestinationURL) throws HJBClientException { if (!(rawDestinationURL instanceof String)) { String message = strings().getString(HJBStrings.INVALID_DESTINATION_URL, rawDestinationURL); ...
if (!(rawDestinationURL instanceof String)) {
if (rawDestinationURL instanceof String) { return true; } if (throwOnFailure) {
protected void assertIsValidDestinationURL(Object rawDestinationURL) throws HJBClientException { if (!(rawDestinationURL instanceof String)) { String message = strings().getString(HJBStrings.INVALID_DESTINATION_URL, rawDestinationURL); ...
return false;
protected void assertIsValidDestinationURL(Object rawDestinationURL) throws HJBClientException { if (!(rawDestinationURL instanceof String)) { String message = strings().getString(HJBStrings.INVALID_DESTINATION_URL, rawDestinationURL); ...
String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "acknowledgement mode", rawValue, new Integer(HJBServletConstants.DEFAULT_ACKNOWLEDGEMENT_MODE)); LOG.warn(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "acknowledgement mode", rawValue, new Integer(HJBServletConstants.DEFAULT_ACKNOWLEDGEMENT_MODE)); LOG.debug(message); }
public int findAcknowledgementMode(Map decodedParameters) { Integer rawValue = findInteger(decodedParameters, HJBServletConstants.SESSION_ACKNOWLEDGEMENT_MODE, "acknowledgement mode", new Integer...
String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.warn(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.debug(message); } rawValue = defaultValue;
protected Boolean findBoolean(Map decodedParameters, String key, String name, Object defaultValue) { Object rawValue = decodedParameters.get(key); if (!(rawValue instanceof Boolean)) { String ...
String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "delivery mode", rawValue, null); LOG.warn(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "delivery mode", rawValue, null); LOG.debug(message); }
public Integer findDeliveryMode(Map decodedParameters) { Integer rawValue = findInteger(decodedParameters, HJBServletConstants.DELIVERY_MODE, "delivery mode", null); if (null == rawValue) ...
String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.warn(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.debug(message); } rawValue = defaultValue;
protected Integer findInteger(Map decodedParameters, String key, String name, Object defaultValue) { Object rawValue = decodedParameters.get(key); if (!(rawValue instanceof Integer)) { String ...
String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.warn(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.debug(message); } rawValue = defaultValue;
protected Long findLong(Map decodedParameters, String key, String name, Object defaultValue) { Object rawValue = decodedParameters.get(key); if (!(rawValue instanceof Long)) { String message = strings().getStri...
return findRequiredDestination(decodedParameters, root, sessionProviderName);
return findRequiredDestination(decodedParameters, root, sessionProviderName, false);
public Destination findOptionalDestination(Map decodedParameters, HJBRoot root, String sessionProviderName) { try { return findRequiredDestination(decodedParameters, root, sessionProviderName); } cat...
String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "priority", rawValue, null); LOG.warn(message);
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "priority", rawValue, null); LOG.debug(message); }
public Integer findPriority(Map decodedParameters) { Integer rawValue = findInteger(decodedParameters, HJBServletConstants.PRIORITY, "priority", null); if (null == rawValue) return null; ...