Package org.wso2.carbon.registry.core

Examples of org.wso2.carbon.registry.core.Registry.resourceExists()


                }
            }else if (key.startsWith(RegistryConstants.LOCAL_REPOSITORY_BASE_PATH)){
                key = key.substring(RegistryConstants.LOCAL_REPOSITORY_BASE_PATH.length());
                Registry registry =
                        registryService.getLocalRepository(tenantId);
                if (registry.resourceExists(key)) {
                    Resource resource = registry.get(key);
                    if (resource != null) {
                        return resource.getContentStream();
                    }
                }
View Full Code Here


        try {
            Registry registry = GadgetServerUserManagementContext.getRegistry(getTenantId(null));

            Resource regAdminDataResource;
            if (registry.resourceExists(
                    DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH)) {
                regAdminDataResource = registry.get(DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH);
            } else {
                regAdminDataResource = registry.newResource();
            }
View Full Code Here

        Registry registry=GadgetServerSocialDataMgtServiceContext.getRegistry();
        Resource oauthResource;
        String resourcePath="/repository/gadget-server/oauth";
        String consumerSecret=null;
        if(registry.resourceExists(resourcePath)){
            oauthResource=registry.get(resourcePath);
            consumerSecret=oauthResource.getProperty("consumer_secret");
        }

View Full Code Here

        try {
            Registry registry = GadgetServerUserManagementContext.getRegistry(getTenantId(tDomain));

            Resource regAdminDataResource;
            if (registry.resourceExists(
                    DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH)) {
                regAdminDataResource = registry.get(
                        DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH);

                String storedValue = regAdminDataResource
View Full Code Here

        try {
            Registry registry = GadgetServerUserManagementContext.getRegistry(getTenantId(null));

            Resource regAdminDataResource;
            if (registry.resourceExists(
                    DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH)) {
                regAdminDataResource = registry.get(
                        DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH);

                String storedValue = regAdminDataResource
View Full Code Here

        try {
            Registry registry = GadgetServerUserManagementContext.getRegistry(getTenantId(null));

            Resource regAdminDataResource;
            if (registry.resourceExists(
                    DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH)) {
                regAdminDataResource = registry.get(
                        DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH);
            } else {
                regAdminDataResource = registry.newResource();
View Full Code Here


    public Boolean isPortalPermissionsSet() {
        try {
            Registry registry = GadgetServerUserManagementContext.getRegistry(getTenantId(null));
            return registry.resourceExists(
                    DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }
View Full Code Here

        try {
            Registry registry = GadgetServerUserManagementContext.getRegistry(getTenantId(tDomain));

            Resource regAdminDataResource;
            if (registry.resourceExists(
                    DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH)) {
                regAdminDataResource = registry.get(
                        DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH);

                String storedValue = regAdminDataResource
View Full Code Here

        try {
            Registry registry = GadgetServerUserManagementContext.getRegistry(getTenantId(null));

            Resource regAdminDataResource;
            if (registry.resourceExists(
                    DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH)) {
                regAdminDataResource = registry.get(
                        DashboardConstants.REGISTRY_ADMIN_PROPERTIES_PATH);
            } else {
                regAdminDataResource = registry.newResource();
View Full Code Here

            // read all claim url values and get the visibility values
            for (int i = 0; i < claimValues.length; i++) {
                fullProfileDataPath = profileDataPath + claimValues[i];
                Resource profileDataResource;
                // try {
                if (registry.resourceExists(fullProfileDataPath)) {
                    profileDataResource = registry.get(fullProfileDataPath);
                    profileData[i] = new PrivacyFieldDTO();
                    profileData[i].setFieldName(claimValues[i]);
                    if (profileDataResource.getProperty(SocialUtils.USER_PROFILE_FIELD_VISIBILITY) != null) {
                        profileData[i].setVisibilityValue((profileDataResource.getProperty
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.