Package org.wso2.carbon.registry.core

Examples of org.wso2.carbon.registry.core.ResourcePath.parameterExists()


     */
    public Resource get(RequestContext requestContext) throws RegistryException {

        ResourcePath resourcePath = requestContext.getResourcePath();
        Resource resource;
        if (resourcePath.parameterExists(RegistryConstants.BROWSE_PROPERTY)) {

            resource = generateBrowseView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.EDIT_PROPERTY)) {

View Full Code Here


        Resource resource;
        if (resourcePath.parameterExists(RegistryConstants.BROWSE_PROPERTY)) {

            resource = generateBrowseView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.EDIT_PROPERTY)) {

            resource = generateEditView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.NEW_PROPERTY)) {
View Full Code Here

        } else if (resourcePath.parameterExists(RegistryConstants.EDIT_PROPERTY)) {

            resource = generateEditView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.NEW_PROPERTY)) {

            resource = generateNewView(resourcePath, requestContext);

        } else {
            resource = getRawResource(requestContext);
View Full Code Here

     */
    public boolean handleGet(RequestContext requestContext) throws RegistryException {

        // check if the request is for new resource
        ResourcePath resourcePath = requestContext.getResourcePath();
        if (resourcePath.parameterExists("new")) {
            String mediaType = resourcePath.getParameterValue("mediaType");
            return (mediaType != null && (invert != this.mediaType.equals(mediaType)));
        }

        Resource resource = requestContext.getResource();
View Full Code Here

        TagsDAO tagsDAO = registryContext.getDataAccessManager().getDAOManager().
                getTagsDAO(StaticConfiguration.isVersioningTags());

        ResourcePath resourcePath = requestContext.getResourcePath();

        if (resourcePath.parameterExists("tags") &&
                resourcePath.getParameterValue("tags") == null) {

            String path = resourcePath.getPath();
            String tagStr = "";
View Full Code Here

        RatingsDAO ratingsDAO = registryContext.getDataAccessManager().getDAOManager().
                getRatingsDAO(StaticConfiguration.isVersioningRatings());

        ResourcePath resourcePath = requestContext.getResourcePath();

        if (resourcePath.parameterExists("ratings") &&
                resourcePath.getParameterValue("ratings") == null) {
            ResourceImpl resourceImpl = resourceDAO.getResourceMetaData(resourcePath.getPath());
            String[] ratedUserNames = ratingsDAO.getRatedUserNames(resourceImpl);

            CollectionImpl resource = new CollectionImpl();
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.