rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public void addExtension(AttachmentExtension e) throws Exception
public void addExtension(AttachmentExtension extension)
public void addExtension(AttachmentExtension e) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtension")); p.setInt(1, e.getExtensionGroupId()); p.setString(2, e.getComment()); p.setString(3, e.getUploadIcon()); p.set...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtension")); p.setInt(1, e.getExtensionGroupId()); p.setString(2, e.getComment()); p.setString(3, e.getUploadIcon()); p.setString(4, e.getExtension().toLowerCase()); p.setInt(5, e.isAllow() ? 1 : 0);...
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtension")); p.setInt(1, extension.getExtensionGroupId()); p.setString(2, extension.getComment()); p.setString(3, extension.getUploadIcon()); p.setString(4, extension.getExtension().toL...
public void addExtension(AttachmentExtension e) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtension")); p.setInt(1, e.getExtensionGroupId()); p.setString(2, e.getComment()); p.setString(3, e.getUploadIcon()); p.set...
public void addExtensionGroup(AttachmentExtensionGroup g) throws Exception
public void addExtensionGroup(AttachmentExtensionGroup g)
public void addExtensionGroup(AttachmentExtensionGroup g) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtensionGroup")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUploadIcon())...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtensionGroup")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUploadIcon()); p.setInt(4, g.getDownloadMode()); p.executeUpdate(); p.close();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtensionGroup")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUploadIcon()); p.setInt(4, g.getDownloadMode()); p.executeUpdate(); } catch (SQLExce...
public void addExtensionGroup(AttachmentExtensionGroup g) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addExtensionGroup")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUploadIcon())...
public void addQuotaLimit(QuotaLimit limit) throws Exception
public void addQuotaLimit(QuotaLimit limit)
public void addQuotaLimit(QuotaLimit limit) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.executeUpda...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.executeUpdate(); p.close(); }
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.executeUpdate(); } catch (SQLException e) { String es = "Erorr addQuo...
public void addQuotaLimit(QuotaLimit limit) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.addQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.executeUpda...
public void cleanGroupQuota() throws Exception
public void cleanGroupQuota()
public void cleanGroupQuota() throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.deleteGroupQuota")); p.executeUpdate(); p.close(); }
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.deleteGroupQuota")); p.executeUpdate(); p.close();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.deleteGroupQuota")); p.executeUpdate(); } catch (SQLException e) { String es = "Erorr cleanGroupQuota()"; log.error(es, e); throw new RuntimeException(es, e); } finally { DbUtils.close(p); ...
public void cleanGroupQuota() throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.deleteGroupQuota")); p.executeUpdate(); p.close(); }
public Map extensionsForSecurity() throws Exception
public Map extensionsForSecurity()
public Map extensionsForSecurity() throws Exception { Map m = new HashMap(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.extensionsForSecurity")); ResultSet rs = p.executeQuery(); while (rs.next()) { int allow = rs.getInt("group_allo...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.extensionsForSecurity")); ResultSet rs = p.executeQuery(); while (rs.next()) { int allow = rs.getInt("group_allow"); if (allow == 1) { allow = rs.getInt("allow"); } m.put(rs.getString("extension"), new...
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.extensionsForSecurity")); rs = p.executeQuery(); while (rs.next()) { int allow = rs.getInt("group_allow"); if (allow == 1) { allow = rs.getInt("allow"); } m.put(rs.getS...
public Map extensionsForSecurity() throws Exception { Map m = new HashMap(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.extensionsForSecurity")); ResultSet rs = p.executeQuery(); while (rs.next()) { int allow = rs.getInt("group_allo...
protected Attachment getAttachment(ResultSet rs) throws Exception
protected Attachment getAttachment(ResultSet rs) throws SQLException
protected Attachment getAttachment(ResultSet rs) throws Exception { Attachment a = new Attachment(); a.setId(rs.getInt("attach_id")); a.setPostId(rs.getInt("post_id")); a.setPrivmsgsId(rs.getInt("privmsgs_id")); AttachmentInfo ai = new AttachmentInfo(); ai.setComment(rs.getString("description")); ai.setDownlo...
protected AttachmentExtension getExtension(ResultSet rs) throws Exception
protected AttachmentExtension getExtension(ResultSet rs) throws SQLException
protected AttachmentExtension getExtension(ResultSet rs) throws Exception { AttachmentExtension e = new AttachmentExtension(); e.setAllow(rs.getInt("allow") == 1); e.setComment(rs.getString("description")); e.setExtension(rs.getString("extension")); e.setExtensionGroupId(rs.getInt("extension_group_id")); e.setId...
protected AttachmentExtensionGroup getExtensionGroup(ResultSet rs) throws Exception
protected AttachmentExtensionGroup getExtensionGroup(ResultSet rs) throws SQLException
protected AttachmentExtensionGroup getExtensionGroup(ResultSet rs) throws Exception { AttachmentExtensionGroup g = new AttachmentExtensionGroup(); g.setId(rs.getInt("extension_group_id")); g.setName(rs.getString("name")); g.setUploadIcon(rs.getString("upload_icon")); g.setAllow(rs.getInt("allow") == 1); g.setDow...
protected QuotaLimit getQuotaLimit(ResultSet rs) throws Exception
protected QuotaLimit getQuotaLimit(ResultSet rs) throws SQLException
protected QuotaLimit getQuotaLimit(ResultSet rs) throws Exception { QuotaLimit ql = new QuotaLimit(); ql.setDescription(rs.getString("quota_desc")); ql.setId(rs.getInt("quota_limit_id")); ql.setSize(rs.getInt("quota_limit")); ql.setType(rs.getInt("quota_type")); return ql; }
public boolean isPhysicalDownloadMode(int extensionGroupId) throws Exception
public boolean isPhysicalDownloadMode(int extensionGroupId)
public boolean isPhysicalDownloadMode(int extensionGroupId) throws Exception { boolean result = true; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.isPhysicalDownloadMode")); p.setInt(1, extensionGroupId); ResultSet rs = p.executeQuery...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.isPhysicalDownloadMode")); p.setInt(1, extensionGroupId); ResultSet rs = p.executeQuery(); if (rs.next()) { result = (rs.getInt("download_mode") == 2); } rs.close(); p.close(); return result; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.isPhysicalDownloadMode")); p.setInt(1, extensionGroupId); rs = p.executeQuery(); if (rs.next()) { result = (rs.getInt("download_mode") == 2); } return result; } catch ...
public boolean isPhysicalDownloadMode(int extensionGroupId) throws Exception { boolean result = true; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.isPhysicalDownloadMode")); p.setInt(1, extensionGroupId); ResultSet rs = p.executeQuery...
public void removeAttachment(int id, int postId) throws Exception
public void removeAttachment(int id, int postId)
public void removeAttachment(int id, int postId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeAttachmentInfo")); p.setInt(1, id); p.executeUpdate(); p.close(); p = JForumExecutionContext.getConnection().prepareSt...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeAttachmentInfo")); p.setInt(1, id); p.executeUpdate(); p.close(); p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeAttachment")); p.setInt(1...
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeAttachmentInfo")); p.setInt(1, id); p.executeUpdate(); p.close(); p=null;
public void removeAttachment(int id, int postId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeAttachmentInfo")); p.setInt(1, id); p.executeUpdate(); p.close(); p = JForumExecutionContext.getConnection().prepareSt...
ResultSet rs = p.executeQuery(); if (rs.next()) { this.updatePost(postId, rs.getInt(1)); } rs.close(); p.close(); }
p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeAttachment")); p.setInt(1, id); p.executeUpdate(); p.close(); p=null; p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.countPostAttachments")); p.setInt(1, postId);...
public void removeAttachment(int id, int postId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeAttachmentInfo")); p.setInt(1, id); p.executeUpdate(); p.close(); p = JForumExecutionContext.getConnection().prepareSt...
public void removeExtensionGroups(String[] ids) throws Exception
public void removeExtensionGroups(String[] ids)
public void removeExtensionGroups(String[] ids) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtensionGroups")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); ...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtensionGroups")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); } p.close();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtensionGroups")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); } } catch (SQLException e) { String es = "Erorr removeExtensionGr...
public void removeExtensionGroups(String[] ids) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtensionGroups")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); ...
public void removeExtensions(String[] ids) throws Exception
public void removeExtensions(String[] ids)
public void removeExtensions(String[] ids) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtension")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); } p.close();...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtension")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); } p.close();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtension")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); } } catch (SQLException e) { String es = "Erorr removeExtensions()"; log...
public void removeExtensions(String[] ids) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.removeExtension")); for (int i = 0; i < ids.length; i++) { p.setInt(1, Integer.parseInt(ids[i])); p.executeUpdate(); } p.close();...
public void removeQuotaLimit(int id) throws Exception
public void removeQuotaLimit(int id)
public void removeQuotaLimit(int id) throws Exception { this.removeQuotaLimit(new String[] { Integer.toString(id) }); }
private AttachmentExtension searchExtension(String paramName, Object paramValue) throws Exception
private AttachmentExtension searchExtension(String paramName, Object paramValue)
private AttachmentExtension searchExtension(String paramName, Object paramValue) throws Exception { String sql = SystemGlobals.getSql("AttachmentModel.selectExtension"); sql = sql.replaceAll("\\$field", paramName); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(sql); p.setObject(1,...
String sql = SystemGlobals.getSql("AttachmentModel.selectExtension"); sql = sql.replaceAll("\\$field", paramName); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(sql); p.setObject(1, paramValue); AttachmentExtension e = new AttachmentExtension(); ResultSet rs = p.executeQuery(); if (rs...
PreparedStatement p=null; ResultSet rs=null; try { String sql = SystemGlobals.getSql("AttachmentModel.selectExtension"); sql = sql.replaceAll("\\$field", paramName); p = JForumExecutionContext.getConnection().prepareStatement(sql); p.setObject(1, paramValue); AttachmentExtension e = new AttachmentExtension(); rs = p...
private AttachmentExtension searchExtension(String paramName, Object paramValue) throws Exception { String sql = SystemGlobals.getSql("AttachmentModel.selectExtension"); sql = sql.replaceAll("\\$field", paramName); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(sql); p.setObject(1,...
public Attachment selectAttachmentById(int attachId) throws Exception
public Attachment selectAttachmentById(int attachId)
public Attachment selectAttachmentById(int attachId) throws Exception { Attachment e = null; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachmentById")); p.setInt(1, attachId); ResultSet rs = p.executeQuery(); if (rs.next()) {...
Attachment e = null; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachmentById")); p.setInt(1, attachId); ResultSet rs = p.executeQuery(); if (rs.next()) { e = this.getAttachment(rs); } rs.close(); p.close(); return e; }
ResultSet rs=null; PreparedStatement p=null; try { Attachment e = null; p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachmentById")); p.setInt(1, attachId); rs = p.executeQuery(); if (rs.next()) { e = this.getAttachment(rs); } return e; } catch (SQLExcept...
public Attachment selectAttachmentById(int attachId) throws Exception { Attachment e = null; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachmentById")); p.setInt(1, attachId); ResultSet rs = p.executeQuery(); if (rs.next()) {...
public List selectAttachments(int postId) throws Exception
public List selectAttachments(int postId)
public List selectAttachments(int postId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachments")); p.setInt(1, postId); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachments")); p.setInt(1, postId); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getAttachment(rs)); } return l; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachments")); p.setInt(1, postId); rs = p.executeQuery(); while (rs.next()) { l.add(this.getAttachment(rs)); } return l; } catch (SQLException e) { String es = ...
public List selectAttachments(int postId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectAttachments")); p.setInt(1, postId); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add...
public AttachmentExtension selectExtension(String extension) throws Exception
public AttachmentExtension selectExtension(String extension)
public AttachmentExtension selectExtension(String extension) throws Exception { return this.searchExtension(SystemGlobals.getValue(ConfigKeys.EXTENSION_FIELD), extension); }
public List selectExtensionGroups() throws Exception
public List selectExtensionGroups()
public List selectExtensionGroups() throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensionGroups")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtensionGroup(...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensionGroups")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtensionGroup(rs)); } rs.close(); p.close(); return l; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensionGroups")); rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtensionGroup(rs)); } return l; } catch (SQLException e) { String es = "Erorr select...
public List selectExtensionGroups() throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensionGroups")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtensionGroup(...
public List selectExtensions() throws Exception
public List selectExtensions()
public List selectExtensions() throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensions")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtension(rs)); } rs....
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensions")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtension(rs)); } rs.close(); p.close(); return l; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensions")); rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtension(rs)); } return l; } catch (SQLException e) { String es = "Erorr selectExtensions...
public List selectExtensions() throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectExtensions")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getExtension(rs)); } rs....
public Map selectGroupsQuotaLimits() throws Exception
public Map selectGroupsQuotaLimits()
public Map selectGroupsQuotaLimits() throws Exception { Map m = new HashMap(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectGroupsQuotaLimits")); ResultSet rs = p.executeQuery(); while (rs.next()) { m.put(new Integer(rs.getInt("gr...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectGroupsQuotaLimits")); ResultSet rs = p.executeQuery(); while (rs.next()) { m.put(new Integer(rs.getInt("group_id")), new Integer(rs.getInt("quota_limit_id"))); } return m; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectGroupsQuotaLimits")); rs = p.executeQuery(); while (rs.next()) { m.put(new Integer(rs.getInt("group_id")), new Integer(rs.getInt("quota_limit_id"))); } return m; ...
public Map selectGroupsQuotaLimits() throws Exception { Map m = new HashMap(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectGroupsQuotaLimits")); ResultSet rs = p.executeQuery(); while (rs.next()) { m.put(new Integer(rs.getInt("gr...
public List selectQuotaLimit() throws Exception
public List selectQuotaLimit()
public List selectQuotaLimit() throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimit")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getQuotaLimit(rs)); } rs.c...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimit")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getQuotaLimit(rs)); } rs.close(); p.close(); return l; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimit")); rs = p.executeQuery(); while (rs.next()) { l.add(this.getQuotaLimit(rs)); } return l; } catch (SQLException e) { String es = "Erorr selectQuotaLimi...
public List selectQuotaLimit() throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimit")); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(this.getQuotaLimit(rs)); } rs.c...
public QuotaLimit selectQuotaLimitByGroup(int groupId) throws Exception
public QuotaLimit selectQuotaLimitByGroup(int groupId)
public QuotaLimit selectQuotaLimitByGroup(int groupId) throws Exception { QuotaLimit ql = null; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimitByGroup")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); if (rs.next...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimitByGroup")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); if (rs.next()) { ql = this.getQuotaLimit(rs); } rs.close(); p.close(); return ql; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimitByGroup")); p.setInt(1, groupId); rs = p.executeQuery(); if (rs.next()) { ql = this.getQuotaLimit(rs); } return ql; } catch (SQLException e) { String es ...
public QuotaLimit selectQuotaLimitByGroup(int groupId) throws Exception { QuotaLimit ql = null; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.selectQuotaLimitByGroup")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); if (rs.next...
public void setGroupQuota(int groupId, int quotaId) throws Exception
public void setGroupQuota(int groupId, int quotaId)
public void setGroupQuota(int groupId, int quotaId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.setGroupQuota")); p.setInt(1, groupId); p.setInt(2, quotaId); p.executeUpdate(); p.close(); }
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.setGroupQuota")); p.setInt(1, groupId); p.setInt(2, quotaId); p.executeUpdate(); p.close();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.setGroupQuota")); p.setInt(1, groupId); p.setInt(2, quotaId); p.executeUpdate(); } catch (SQLException e) { String es = "Erorr setGroupQuota()"; log.error(es, e); throw new RuntimeException...
public void setGroupQuota(int groupId, int quotaId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.setGroupQuota")); p.setInt(1, groupId); p.setInt(2, quotaId); p.executeUpdate(); p.close(); }
public void updateAttachment(Attachment a) throws Exception
public void updateAttachment(Attachment a)
public void updateAttachment(Attachment a) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateAttachment")); p.setString(1, a.getInfo().getComment()); p.setInt(2, a.getInfo().getDownloadCount()); p.setInt(3, a.getId()); ...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateAttachment")); p.setString(1, a.getInfo().getComment()); p.setInt(2, a.getInfo().getDownloadCount()); p.setInt(3, a.getId()); p.executeUpdate(); p.close(); }
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateAttachment")); p.setString(1, a.getInfo().getComment()); p.setInt(2, a.getInfo().getDownloadCount()); p.setInt(3, a.getId()); p.executeUpdate(); } catch (SQLException e) { String es =...
public void updateAttachment(Attachment a) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateAttachment")); p.setString(1, a.getInfo().getComment()); p.setInt(2, a.getInfo().getDownloadCount()); p.setInt(3, a.getId()); ...
public void updateExtension(AttachmentExtension e) throws Exception
public void updateExtension(AttachmentExtension extension)
public void updateExtension(AttachmentExtension e) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtension")); p.setInt(1, e.getExtensionGroupId()); p.setString(2, e.getComment()); p.setString(3, e.getUploadIcon()); ...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtension")); p.setInt(1, e.getExtensionGroupId()); p.setString(2, e.getComment()); p.setString(3, e.getUploadIcon()); p.setString(4, e.getExtension().toLowerCase()); p.setInt(5, e.isAllow() ? 1 : ...
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtension")); p.setInt(1, extension.getExtensionGroupId()); p.setString(2, extension.getComment()); p.setString(3, extension.getUploadIcon()); p.setString(4, extension.getExtension()....
public void updateExtension(AttachmentExtension e) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtension")); p.setInt(1, e.getExtensionGroupId()); p.setString(2, e.getComment()); p.setString(3, e.getUploadIcon()); ...
public void updateExtensionGroup(AttachmentExtensionGroup g) throws Exception
public void updateExtensionGroup(AttachmentExtensionGroup g)
public void updateExtensionGroup(AttachmentExtensionGroup g) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtensionGroups")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUpload...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtensionGroups")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUploadIcon()); p.setInt(4, g.getDownloadMode()); p.setInt(5, g.getId()); p.executeUpdate(); p....
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtensionGroups")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUploadIcon()); p.setInt(4, g.getDownloadMode()); p.setInt(5, g.getId()); p.execu...
public void updateExtensionGroup(AttachmentExtensionGroup g) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateExtensionGroups")); p.setString(1, g.getName()); p.setInt(2, g.isAllow() ? 1 : 0); p.setString(3, g.getUpload...
protected void updatePost(int postId, int count) throws Exception
protected void updatePost(int postId, int count)
protected void updatePost(int postId, int count) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updatePost")); p.setInt(1, count); p.setInt(2, postId); p.executeUpdate(); p.close(); }
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updatePost")); p.setInt(1, count); p.setInt(2, postId); p.executeUpdate(); p.close(); }
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updatePost")); p.setInt(1, count); p.setInt(2, postId); p.executeUpdate(); } catch (SQLException e) { String es = "Erorr updatePost()"; log.error(es, e); throw new RuntimeException(es, e); ...
protected void updatePost(int postId, int count) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updatePost")); p.setInt(1, count); p.setInt(2, postId); p.executeUpdate(); p.close(); }
public void updateQuotaLimit(QuotaLimit limit) throws Exception
public void updateQuotaLimit(QuotaLimit limit)
public void updateQuotaLimit(QuotaLimit limit) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.setIn...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.setInt(4, limit.getId()); p.executeUpdate(); p.close(); }
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.setInt(4, limit.getId()); p.executeUpdate(); } catch (SQLException...
public void updateQuotaLimit(QuotaLimit limit) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("AttachmentModel.updateQuotaLimit")); p.setString(1, limit.getDescription()); p.setInt(2, limit.getSize()); p.setInt(3, limit.getType()); p.setIn...
for (Iterator ai = ((List) value).iterator(); ai.hasNext();) { ub.append((String) ai.next());
if(value instanceof List) { for (Iterator ai = ((List) value).iterator(); ai.hasNext();) { ub.append((String) ai.next()); } } else { ub.append(value);
public void addSequenceProperty(Object key, Object value) throws ParseException { if (key.equals("LOCUS")) { idb.setLength(0); idb.append("LOCUS " + (String) value); } else if (key.equals("TYPE")) { typeb.append(value); } else if (k...
out.println("!!NA_MULTIPLE_ALIGNMENT"); out.println(); out.print(" MSF: " + align.length() + " Type: "); out.print("N");
out.print("PileUp"+nl); out.print(nl); out.print(" MSF: " + align.length() + " Type: "); out.print("N"); out.print(" Check: "+0+" .."+nl);
public void write(OutputStream os, Alignment align, int fileType) throws BioException, IllegalSymbolException { PrintStream out = new PrintStream(os); Object labels[] = align.getLabels().toArray(); int numSeqs = labels.length; Iterator seqIts[] = new Iterator[numSeqs]; int maxLabe...
out.println("!!AA_MULTIPLE_ALIGNMENT"); out.println(); out.print(" MSF: " + align.length() + " Type: "); out.print("P");
out.print("PileUp"+nl); out.print(nl); out.print(" MSF: " + align.length() + " Type: "); out.print("P"); out.print(" Check: "+0+" .."+nl);
public void write(OutputStream os, Alignment align, int fileType) throws BioException, IllegalSymbolException { PrintStream out = new PrintStream(os); Object labels[] = align.getLabels().toArray(); int numSeqs = labels.length; Iterator seqIts[] = new Iterator[numSeqs]; int maxLabe...
out.print(" .." + nl); out.println();
out.print(nl);
public void write(OutputStream os, Alignment align, int fileType) throws BioException, IllegalSymbolException { PrintStream out = new PrintStream(os); Object labels[] = align.getLabels().toArray(); int numSeqs = labels.length; Iterator seqIts[] = new Iterator[numSeqs]; int maxLabe...
out.print(" Len: " + align.length() + nl);
out.print(" Len: " + align.length() +" Check: "+0+" Weight: "+0+nl);
public void write(OutputStream os, Alignment align, int fileType) throws BioException, IllegalSymbolException { PrintStream out = new PrintStream(os); Object labels[] = align.getLabels().toArray(); int numSeqs = labels.length; Iterator seqIts[] = new Iterator[numSeqs]; int maxLabe...
out.println(" out.println();
out.println(nl+"
public void write(OutputStream os, Alignment align, int fileType) throws BioException, IllegalSymbolException { PrintStream out = new PrintStream(os); Object labels[] = align.getLabels().toArray(); int numSeqs = labels.length; Iterator seqIts[] = new Iterator[numSeqs]; int maxLabe...
public WeightedHostSet() {
public WeightedHostSet(double scoreHighCap) {
public WeightedHostSet() { init(); }
this.scoreHighCap = scoreHighCap;
public WeightedHostSet() { init(); }
sum += wh.getScore();
sum += wh.getTScore();
public synchronized void add(WeightedHost wh) { scores.add(wh); weightedHosts.put(wh.getHost(), wh); sum += wh.getScore(); }
sum -= wh.getScore(); WeightedHost nwh = new WeightedHost(wh.getHost(), newScore);
sum -= wh.getTScore(); WeightedHost nwh = new WeightedHost(wh.getHost(), newScore, wh.getLoad());
public synchronized void changeScore(WeightedHost wh, double newScore) { scores.remove(wh); sum -= wh.getScore(); WeightedHost nwh = new WeightedHost(wh.getHost(), newScore); weightedHosts.put(wh.getHost(), nwh); scores.add(nwh); sum += newScore; }
sum += newScore;
sum += nwh.getTScore();
public synchronized void changeScore(WeightedHost wh, double newScore) { scores.remove(wh); sum -= wh.getScore(); WeightedHost nwh = new WeightedHost(wh.getHost(), newScore); weightedHosts.put(wh.getHost(), nwh); scores.add(nwh); sum += newScore; }
if (this.location!=them.getLocation()) return this.location.compareTo(them.getLocation());
public int compareTo(Object o) { // Hibernate comparison - we haven't been populated yet if (this.docref==null) return -1; // Normal comparison RankedDocRef them = (RankedDocRef)o; if (this.rank!=them.getRank()) return this.rank - them.getRank(); return this.docref.compareT...
this.location.equals(them.getLocation()) &&
public boolean equals(Object obj) { if (this == obj) return true; if (obj==null || !(obj instanceof RankedDocRef)) return false; // Hibernate comparison - we haven't been populated yet if (this.docref==null) return false; // Normal comparison RankedDocRef them = (RankedDocR...
code = 37*code + this.location.hashCode();
public int hashCode() { int code = 17; // Hibernate comparison - we haven't been populated yet if (this.docref==null) return code; // Normal comparison code = 37*code + this.docref.hashCode(); code = 37*code + this.rank; return code; }
private void setRank(int rank) { this.rank = rank; }
public void setRank(int rank) { this.rank = rank; }
private void setRank(int rank) { this.rank = rank; }
System.err.println("Values read " + valuesRead);
if (LOG.isDebugEnabled()) { LOG.debug("The current stack of values read: " + valuesRead); }
protected LinkedList getValuesRead() { System.err.println("Values read " + valuesRead); return valuesRead; }
setFault(e);
recordFault(e);
public void execute() { assertNotCompleted(); try { receiveMessage(); } catch (RuntimeException e) { setFault(e); } completed(); }
String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0"
String expectedOutput = "/testProvider/testFactory/connection-10/session-0:"
protected String createSomeSessionObjects() { addDefaultTestConsumer(); addDefaultTestProducer(); addDefaultTestSubscriber(); addDefaultTestBrowser(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + "/test...
+ "/testProvider/testFactory/connection-10/session-0/subscriber-0[(source mockTopic) (nolocal? false)]"
+ "total 4"
protected String createSomeSessionObjects() { addDefaultTestConsumer(); addDefaultTestProducer(); addDefaultTestSubscriber(); addDefaultTestBrowser(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + "/test...
+ "/testProvider/testFactory/connection-10/session-0/producer-0[(target supplied-by-sender) (priority -4)]"
+ "consumer-0"
protected String createSomeSessionObjects() { addDefaultTestConsumer(); addDefaultTestProducer(); addDefaultTestSubscriber(); addDefaultTestBrowser(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + "/test...
+ "/testProvider/testFactory/connection-10/session-0/browser-0[(source mockQueue)]";
+ "subscriber-0[(source mockTopic) (nolocal? false)]" + CR + "producer-0[(target supplied-by-sender) (priority -4)]" + CR + "browser-0[(source mockQueue)]";
protected String createSomeSessionObjects() { addDefaultTestConsumer(); addDefaultTestProducer(); addDefaultTestSubscriber(); addDefaultTestBrowser(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + "/test...
String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0"
String expectedOutput = "/testProvider/testFactory/connection-10/session-0:"
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
+ "message-selector=testSelector"
+ "subscriber-0[(source mockTopic) (nolocal? false)]"
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
+ "/testProvider/testFactory/connection-10/session-0/subscriber-0[(source mockTopic) (nolocal? false)]" + CR
+ '\t'
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
+ "message-selector=testSelector"
+ "producer-0[(target supplied-by-sender) (priority -4)]"
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
+ "no-local=(boolean false)" + CR + "subscriber-name=testTopic" + CR + "/testProvider/testFactory/connection-10/session-0/producer-0[(target supplied-by-sender) (priority -4)]" + CR
+ '\t'
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
+ "delivery-mode=(int 1)"
+ "browser-0[(source mockQueue)]"
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
+ "disable-message-ids=(boolean false)" + CR + "disable-timestamps=(boolean false)" + CR + "priority=(int -4)" + CR + "time-to-live=(long 1)" + CR + "/testProvider/testFactory/connection-10/session-0/browser-0[(source mockQueue)]" + CR
+ '\t'
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
+ CR + "message-selector=testSelector";
+ ", message-selector=testSelector";
public void testRecurseListingAddsSessionObjectListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + HJBConstants.CREATION_TIME + "...
vctx.put("url", sub.getList().getUrl());
vctx.put("url", sub.getList().getUrlBase());
public void sendAddEmailToken(Person me, String email, String token) { if (log.isDebugEnabled()) log.debug("Sending add email token to " + email); VelocityContext vctx = new VelocityContext(); vctx.put("token", this.token(token)); vctx.put("email", email); vctx.put("person", me); if (me.getSubscriptions()....
vctx.put("url", sub.getList().getUrl());
vctx.put("url", sub.getList().getUrlBase());
public void sendPassword(EmailAddress addy) { if (log.isDebugEnabled()) log.debug("Sending password for " + addy.getId()); VelocityContext vctx = new VelocityContext(); vctx.put("addy", addy); if (addy.getPerson().getSubscriptions().isEmpty()) { String url = (String)this.dao.getConfigValue(Config.ID_SITE_UR...
public static Object newDummy(Class interfaceClass) { return newDummy( interfaceClass, "dummy"+ DynamicUtil.classShortName(interfaceClass) );
public static Object newDummy( Class interfaceClass ) { return newDummy(interfaceClass, "dummy" + Formatting.classShortName(interfaceClass));
public static Object newDummy(Class interfaceClass) { return newDummy( interfaceClass, "dummy"+ DynamicUtil.classShortName(interfaceClass) ); }
uriw.descr += "\n"+ index[i].substring(1);
uriw.descr += '\n' + index[i].substring(1);
private HashMap getFullIndex(String uri) throws Exception { HighLevelSimpleClient hlsc = pr.getHLSimpleClient(); String index[] = new String(hlsc.fetch(new FreenetURI(uri)).asByteArray()).trim().split("\n"); Vector uris = new Vector(); HashMap keywords = new HashMap(); int i; URIWrapper uriw = new URIWrapper...
out.append("Searching for: " + search + "\n");
out.append("Searching for: ").append(search).append('\n');
public String handleHTTPGet(HTTPRequest request) throws PluginHTTPException { StringBuffer out = new StringBuffer(); //int page = request.getIntParam("page", 1); String indexuri = request.getParam("index", DEFAULT_INDEX_URI); String search = request.getParam("search"); if (search.equals("")) { appendDefaultPa...
out.append(" <A HREF=\"" + (o.URI.startsWith("/")?"":"/") + o.URI + "\" title=\""+o.URI+"\">" + showurl + "</A>\n");
out.append(" <A HREF=\"").append(o.URI.startsWith("/") ? "" : "/").append(o.URI).append("\" title=\"").append(o.URI).append("\">").append(showurl).append("</A>\n");
public String handleHTTPGet(HTTPRequest request) throws PluginHTTPException { StringBuffer out = new StringBuffer(); //int page = request.getIntParam("page", 1); String indexuri = request.getParam("index", DEFAULT_INDEX_URI); String search = request.getParam("search"); if (search.equals("")) { appendDefaultPa...
out.append("<pre>" + o.descr + "</pre>\n");
out.append("<pre>").append(o.descr).append("</pre>\n");
public String handleHTTPGet(HTTPRequest request) throws PluginHTTPException { StringBuffer out = new StringBuffer(); //int page = request.getIntParam("page", 1); String indexuri = request.getParam("index", DEFAULT_INDEX_URI); String search = request.getParam("search"); if (search.equals("")) { appendDefaultPa...
out.append("Found: " + results + " results\n");
out.append("Found: ").append(results).append(" results\n");
public String handleHTTPGet(HTTPRequest request) throws PluginHTTPException { StringBuffer out = new StringBuffer(); //int page = request.getIntParam("page", 1); String indexuri = request.getParam("index", DEFAULT_INDEX_URI); String search = request.getParam("search"); if (search.equals("")) { appendDefaultPa...
iae,
public Residue residueAt(int col) { try { return alphabet.getResidue(new ColAsList(col)); } catch (IllegalAlphabetException iae) { throw new BioError( "Somehow my crossproduct alphabet is incompatible with column " + col ); } }
return wrapped.countFeatures();
if (filter != null) { return getProjectedFeatures().countFeatures(); } else { return wrapped.countFeatures(); }
public int countFeatures() { return wrapped.countFeatures(); }
public List selectAll() throws Exception {
public List selectAll() {
private CategoryDAO createCategoryModel() { return new CategoryModelDummy() { private List categories = new ArrayList(); { for (int i = 0; i < categoryNames.length; i++) { this.categories.add(new Category(categoryNames[i], categoryIds[i])); } } public List selectAll() throws Exception { retu...
public List selectAll() throws Exception {
public List selectAll() {
public List selectAll() throws Exception { return this.categories; }
public List selectAll() throws Exception {
public List selectAll() {
private ForumDAO createForumModel() { return new ForumModelDummy() { private List forums = new ArrayList(); { for (int i = 0; i < forumNames.length; i++) { Forum f = new Forum(); f.setId(forumIds[i]); f.setName(forumNames[i]); f.setIdCategories(forumCatIds[i]); this.forums.add(f); ...
public List selectAll() throws Exception {
public List selectAll() {
public List selectAll() throws Exception { return this.forums; }
HJBConnection h = new HJBConnection(testConnection);
HJBConnection h = new HJBConnection(testConnection, 0);
public void testCloseInvokesDecorateeConnection() throws Exception { Mock mockConnection = connectionBuilder.createMockConnection(); registerToVerify(mockConnection); mockConnection.stubs().method("setExceptionListener"); mockConnection.expects(once()).method("close"); Connection ...
HJBConnection h = new HJBConnection(testConnection);
HJBConnection h = new HJBConnection(testConnection, 0);
public void testClosePropagatesJMSException() throws Exception { Mock mockConnection = connectionBuilder.createMockConnection(); registerToVerify(mockConnection); mockConnection.stubs().method("setExceptionListener"); mockConnection.expects(once()).method("close").will(throwException(new...
HJBConnection h = new HJBConnection(testConnection);
HJBConnection h = new HJBConnection(testConnection, 0);
public void testCreateConnectionConsumerAlwaysThrowsHJBException() { Mock mockConnection = connectionBuilder.createMockConnection(); registerToVerify(mockConnection); mockConnection.stubs().method("setExceptionListener"); mockConnection.expects(never()).method("createConnectionConsumer")...
HJBConnection h = new HJBConnection(testConnection);
HJBConnection h = new HJBConnection(testConnection, 0);
public void testCreateDurableConnectionConsumerAlwaysThrowsHJBException() { Mock mockConnection = connectionBuilder.createMockConnection(); registerToVerify(mockConnection); mockConnection.stubs().method("setExceptionListener"); mockConnection.expects(never()).method("createDurableConnec...