Examples of BrowserBean


Examples of org.infoglue.deliver.util.BrowserBean

    public BasicTemplateController getTemplateController(DatabaseWrapper databaseWrapper, Integer siteNodeId, Integer languageId, Integer contentId) throws SystemException, Exception
  {
        BasicTemplateController templateController = new BasicTemplateController(databaseWrapper, this.getInfoGluePrincipal());
    templateController.setStandardRequestParameters(siteNodeId, languageId, contentId)
    templateController.setHttpRequest(getRequest())
    templateController.setBrowserBean(new BrowserBean());
    templateController.setDeliveryControllers(NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId), null, IntegrationDeliveryController.getIntegrationDeliveryController(siteNodeId,languageId, contentId))
    return templateController;   
  }
View Full Code Here

Examples of org.infoglue.deliver.util.BrowserBean

   *
   */

  public final BrowserBean getBrowserBean()
  {
    BrowserBean browserBean = new BrowserBean();
    browserBean.setRequest(this.request);
    return browserBean;
  }
View Full Code Here

Examples of org.infoglue.deliver.util.BrowserBean

   * masterlanguage for that site if not specifying.
   */
  
  private void validateAndModifyInputParameters(Database db) throws PageNotFoundException, SystemException, Exception
  {
    this.browserBean = new BrowserBean();
    this.browserBean.setRequest(getRequest());
   
    this.principal = (Principal)this.getHttpSession().getAttribute("infogluePrincipal");
    /*
    boolean enforceJ2EEPrincipal = AuthenticationModule.getAuthenticationModule(null, null).enforceJ2EEContainerPrincipal();
View Full Code Here

Examples of org.openqreg.bean.BrowserBean

* @return A populated BrowserBean
*
* @throws SQLException
*/
protected static BrowserBean populate(ResultSet rs) throws SQLException {
BrowserBean valueObject = new BrowserBean();
valueObject.setId((Long)rs.getObject(1));
valueObject.setBrowsername((String)rs.getObject(2));
valueObject.setBrowserdisplayname((String)rs.getObject(3));
valueObject.setStatus((Integer)rs.getObject(4));
return valueObject;
}
View Full Code Here

Examples of org.openqreg.bean.BrowserBean

* @throws SQLException
*/
public static Collection<BrowserBean> findAll(Connection con) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
BrowserBean valueObject = null;
Collection<BrowserBean> col = Collections.synchronizedList(new ArrayList<BrowserBean>());
try{
pStmt = con.prepareStatement(FIND_ALL_STATEMENT);
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
col.add(valueObject);
}
return col;
}finally{
if(null!=rs){
View Full Code Here

Examples of org.openqreg.bean.BrowserBean

* @throws SQLException
*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
BrowserBean valueObject = null;
BrowserKey primaryKey = (BrowserKey) key;
try{
pStmt = con.prepareStatement(BrowserBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getId());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
return valueObject;
}finally{
if(null!=rs){
rs.close();
View Full Code Here

Examples of org.openqreg.bean.BrowserBean

    if (hasService(userId, service)) {
      Connection con = null;
      try {
        con = DbHandler.getConnection();
        con.setAutoCommit(false);
        BrowserBean browser = (BrowserBean) BrowserFinderBase
            .findByPrimaryKey(con, new BrowserKey(browserId));
        browser.remove(con);
        con.commit();

      } catch (SQLException sqle) {
        try {
          if (null != con) {
View Full Code Here

Examples of org.openqreg.bean.BrowserBean

    if (hasService(userId, service)) {
      Connection con = null;
      try {
        con = DbHandler.getConnection();
        con.setAutoCommit(true);
        BrowserBean browser = new BrowserBean();
        browser.setBrowsername(browserName);
        browser.setBrowserdisplayname(browserDisplayName);
        browser.setStatus(browserStatus);
       
        browser.create(con);
      } catch (SQLException sqle) {
        try {
          if (null != con) {
            con.rollback();
          }
View Full Code Here

Examples of org.openqreg.bean.BrowserBean

    if (hasService(userId, service)) {
      Connection con = null;
      try {
        con = DbHandler.getConnection();
        con.setAutoCommit(true);
        BrowserBean browser = (BrowserBean)BrowserFinderBase.findByPrimaryKey(new BrowserKey(browserId));
        browser.setStatus(newStatus);
        browser.store(con);
      } catch (SQLException sqle) {
        try {
          if (null != con) {
            con.rollback();
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.