Examples of CollectionContentBean


Examples of org.apache.stratos.theme.mgt.stub.registry.resource.stub.beans.xsd.CollectionContentBean


    public CollectionContentBean getCollectionContent(HttpServletRequest request) throws Exception {

        String path = RegistryUtil.getPath(request);
        CollectionContentBean bean = null;
        try {
            bean = stub.getCollectionContent(path);

        } catch (Exception e) {
            String msg = "Failed to get collection content from the resource service. " +
View Full Code Here

Examples of org.wso2.carbon.registry.resource.beans.CollectionContentBean

                throw new RegistryException(msg);
            }

            Collection collection = (Collection) resource;
            String[] childPaths = collection.getChildren();
            CollectionContentBean bean = new CollectionContentBean();
            bean.setChildPaths(childPaths);
            bean.setChildCount(childPaths.length);
            bean.setCollectionTypes(getCollectionTypes());
            if (registry.getRegistryContext() != null) {
                List remoteInstances =  registry.getRegistryContext().
                        getRemoteInstances();
                String[] instances = new String[remoteInstances.size()];
                for(int i=0; i<instances.length; i++) {
                    instances[i] = ((RemoteConfiguration)remoteInstances.get(i)).getId();
                }
                bean.setRemoteInstances(instances);
            }
            ResourcePath resourcePath = new ResourcePath(path);
            bean.setPathWithVersion(resourcePath.getPathWithVersion());
            bean.setVersionView(!resourcePath.isCurrentVersion());

            return bean;

        } catch (Exception e) {
            String msg = "Failed to get content details of the resource " + path +
View Full Code Here

Examples of org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean


    public CollectionContentBean getCollectionContent(HttpServletRequest request) throws Exception {

        String path = RegistryUtil.getPath(request);
        CollectionContentBean bean = null;
        try {
            bean = stub.getCollectionContent(path);

        } catch (Exception e) {
            String msg = "Failed to get collection content from the resource service. " +
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.