Package org.enhydra.shark.api.internal.repositorypersistence

Examples of org.enhydra.shark.api.internal.repositorypersistence.RepositoryException


        GenericValue value = this.getXpdlValue(xpdlId, xpdlVersion, true);
        if (value != null) {
            try {
                value.remove();
            } catch (GenericEntityException e) {
                throw new RepositoryException(e);
            }
        }
    }
View Full Code Here


        Debug.log("XPDL Clear Repository", module);
        GenericDelegator delegator = SharkContainer.getDelegator();
        try {
            delegator.removeAll(org.ofbiz.shark.SharkConstants.WfRepository);
        } catch (GenericEntityException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

        List lookupList = this.getXpdlValues(xpdlId, null, false);
        GenericValue value = EntityUtil.getFirst(lookupList);
        if (value != null) {
            return value.getString(org.ofbiz.shark.SharkConstants.xpdlVersion);
        } else {
            throw new RepositoryException("XPDL not found in repository!");
        }
    }
View Full Code Here

    public String getNextVersion(RepositoryTransaction t, String xpdlId) throws RepositoryException {
        try {
            return nextVersions.getNextVersion(xpdlId);
         } catch (Exception ex) {
            throw new RepositoryException(ex);
         }
    }
View Full Code Here

        List lookupList = this.getXpdlValues(xpdlId, null, false);
        GenericValue value = EntityUtil.getFirst(lookupList);
        if (value != null) {
            return value.getBytes(org.ofbiz.shark.SharkConstants.serializedPkg);
        } else {
            throw new RepositoryException("XPDL not found in repository!");
        }
    }
View Full Code Here

        Debug.log("XPDL Get : " + xpdlId + "/" + xpdlVersion, module);
        GenericValue value = this.getXpdlValue(xpdlId, xpdlVersion, false);
        if (value != null) {
            return value.getBytes(org.ofbiz.shark.SharkConstants.xpdlData);
        } else {
            throw new RepositoryException("XPDL not found in repository!");
        }
    }
View Full Code Here

        List refs = null;
        try {
            refs = delegator.findByAnd(org.ofbiz.shark.SharkConstants.WfRepositoryRef, UtilMisc.toMap(org.ofbiz.shark.SharkConstants.refXpdlId, referredXPDLId));
           
        } catch (GenericEntityException e) {
            throw new RepositoryException(e);
        }
        if (!UtilValidate.isEmpty(refs)) {
            Iterator i = refs.iterator();
            while (i.hasNext()) {
                GenericValue v = (GenericValue) i.next();
View Full Code Here

        List referringVers = new ArrayList();
        List refs = null;
        try {
            refs = delegator.findByAnd(org.ofbiz.shark.SharkConstants.WfRepositoryRef, UtilMisc.toMap(org.ofbiz.shark.SharkConstants.refXpdlId, referredXPDLId, org.ofbiz.shark.SharkConstants.xpdlId, referringXPDLId));
        } catch (GenericEntityException e) {
            throw new RepositoryException(e);
        }
        if (!UtilValidate.isEmpty(refs)) {
            Iterator i = refs.iterator();
            while (i.hasNext()) {
                GenericValue v = (GenericValue) i.next();
View Full Code Here

        List referringIds = new ArrayList();
        List refs = null;
        try {
            refs = delegator.findByAnd(org.ofbiz.shark.SharkConstants.WfRepositoryRef, UtilMisc.toMap(org.ofbiz.shark.SharkConstants.xpdlId, referringXPDLId, org.ofbiz.shark.SharkConstants.xpdlVersion, referringXPDLVersion));
        } catch (GenericEntityException e){
            throw new RepositoryException(e);
        }
        try
        {
            if (!UtilValidate.isEmpty(refs)) {
                Iterator i = refs.iterator();
View Full Code Here

            if (!includeHistorical && xpdl.get(org.ofbiz.shark.SharkConstants.isHistorical) != null && xpdl.getString(org.ofbiz.shark.SharkConstants.isHistorical).equalsIgnoreCase("Y")) {
                xpdl = null;

            }
        } catch (GenericEntityException e) {
            throw new RepositoryException(e);
        }
        return xpdl;
    }
View Full Code Here

TOP

Related Classes of org.enhydra.shark.api.internal.repositorypersistence.RepositoryException

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.