Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGBackendException


        }
        else if (_entity instanceof FileContainer) {
            hqlQuery = "select cf from ContainerFileMeta cf where cf.parentcontainer=:entity and cf.name=:name";
        }
        else {
            throw new WGBackendException("Unknown entity type " + _entity.getClass().getName());
        }
       
        Query query = _parent.getSession().createQuery(hqlQuery);
        query.setParameter("entity", _entity);
        query.setParameter("name", strFile);
View Full Code Here


            }

            return readItemValue(item);
        }
        catch (HibernateException e) {
            throw new WGBackendException("Exception retrieving item " + strName, e);
        }

    }
View Full Code Here

        }
        return value;
       
        }
        catch (HibernateException e) {
            throw new WGBackendException("Exception retrieving metadata field " + name, e);
        }
       
    }
View Full Code Here

            session.delete(_entity);
            _parent.commitHibernateTransaction();
            session.evict(_entity);
        }
        catch (ConstraintViolationException e) {
            throw new WGBackendException("Deletion of document failed because of database constraint violation", e);
        }
        catch (HibernateException e) {
            _parent.rollbackHibernateTransaction();
            throw new WGBackendException("Error deleting entity", e);
        }
        return true;

    }
View Full Code Here

            _attachedFiles.clear();
            return true;
        }
        catch (HibernateException e) {
            _parent.rollbackHibernateTransaction();
            throw new WGBackendException("Error saving hibernate document.", e);
        }
        catch (WGAPIException e) {
            _parent.rollbackHibernateTransaction();
            throw e;
        } catch (IOException e) {
      _parent.rollbackHibernateTransaction();
      throw new WGBackendException("Error saving hibernate document.", e);
    }
   
    }
View Full Code Here

            else if (_entity instanceof FileContainer) {
                return ((FileContainer)_entity).getFiles().containsKey(convertedFileName);
              
            }
            else {
                throw new WGBackendException("Unknown entity type " + _entity.getClass().getName());
            }
        }
       
        else {
            return fetchFileEntity(file).hasNext();
View Full Code Here

           
            long timeAfter = System.currentTimeMillis();
            setExecutionTime(timeAfter - timeBefore);
        }
        catch (WGNotSupportedException e) {
            throw new WGBackendException("Exception creating language choosing resultset", e);
        }
        catch (WGAPIException e) {
            throw new WGBackendException("Exception creating language choosing resultset", e);
        }
       
    }
View Full Code Here

            _sessionFactory.close();
            // set factory explicit to null to ensure gc of hibernate objects
            _sessionFactory = null;
        }
        catch (HibernateException e) {
            throw new WGBackendException("Error closing hibernate session factory", e);
        }

       
        _dbUpdatesByUser.clear();
    }
View Full Code Here

            }
           
            _sessionStatus.set(null);
        }
        catch (HibernateException e) {
            throw new WGBackendException("Error closing hibernate session", e);
        }
    }
View Full Code Here

            }

            return fileCopies;
        }
        catch (IOException e) {
            throw new WGBackendException("Error cloning content files.", e);
        }
        catch (SQLException e) {
            throw new WGBackendException("Error cloning content files.", e);
        }

    }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGBackendException

Copyright © 2018 www.massapicom. 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.