Examples of RegistryService


Examples of javax.xml.registry.RegistryService

   
    Collection<ServiceBinding> serviceBindings = new ArrayList<ServiceBinding>();
    Connection connection = JAXRConnectionSingleton.getConnection(jaxrConnectionFactory);
    try {
      final Concept jbossTModel = getJBossESBTModel(connection);
      RegistryService rs = connection.getRegistryService();
      BusinessQueryManager bqm = rs.getBusinessQueryManager();
      BusinessLifeCycleManager blm = rs.getBusinessLifeCycleManager();
      Collection<String> findQualifiers = null;
      //Collection<String> findQualifiers = new ArrayList<String>();
      //findQualifiers.add(FindQualifier.SORT_BY_DATE_ASC);
      ArrayList<SpecificationLink> specs = new ArrayList<SpecificationLink>();
            SpecificationLink sl = new SpecificationLinkImpl(blm);
View Full Code Here

Examples of org.apache.jetspeed.services.registry.RegistryService

        }

        //
        // get a handle to the exporter service
        //
        RegistryService exporterService = getService("Registry", "Exporter");
        RegistryService importerService = getService("RegistryImporter", "Importer");

        if (exporterService.getClass().getName().equals(importerService.getClass().getName()))
        {
            String msg =
                "Registry Importer Error: Importer Class cannot equal Exporter Class.";
            logAndPrintError(msg, null);
            System.exit(1);
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.registry.RegistryService

    filePlan.setProperty("rma:vitalRecordReviewPeriod", vitalRecordReview);
    return filePlan;
  }
 
  public void testStartupWithOldDataStructure() throws Exception {
     RegistryService registry = (RegistryService) container.getComponentInstanceOfType(RegistryService.class);
     String pathDefault = RegistryService.EXO_SERVICES + "/Audit/defaultIdentity";
     String pathAdmin = RegistryService.EXO_SERVICES + "/Audit/adminIdentity";
     SessionProvider sessionProvider = SessionProvider.createSystemProvider();
     try {
        // A value is expected for the default identity
        RegistryEntry registryEntry = registry.getEntry(sessionProvider, pathDefault);
        Document doc = registryEntry.getDocument();
        Element element = doc.getDocumentElement();
        String defaultIdentity;
        assertNotNull(defaultIdentity = element.getAttribute( "value"));
       
        // A value is expected for the admin identity
        registryEntry = registry.getEntry(sessionProvider, pathAdmin);
        doc = registryEntry.getDocument();
        element = doc.getDocumentElement();
        String adminIdentity;
        assertNotNull(adminIdentity = element.getAttribute( "value"));
       
        // We remove the new entry to simulate old data structure
        registry.removeEntry(sessionProvider, pathDefault);
       
        AuditServiceImpl as = (AuditServiceImpl) service;
        // We restart the service to make sure that it doesn't fail at startup
        as.stop();
        as.start();
       
        // The same value is expected for the default identity
        registryEntry = registry.getEntry(sessionProvider, pathDefault);
        doc = registryEntry.getDocument();
        element = doc.getDocumentElement();
        assertEquals(defaultIdentity, element.getAttribute( "value"));

        // The same value is expected for the admin identity
        registryEntry = registry.getEntry(sessionProvider, pathAdmin);
        doc = registryEntry.getDocument();
        element = doc.getDocumentElement();
        assertEquals(adminIdentity, element.getAttribute( "value"));
     }
     finally {
View Full Code Here

Examples of org.jboss.as.clustering.registry.RegistryService

        builder.addDependency(SharedLocalYieldingClusterLockManagerService.getServiceName(this.cacheContainerName), SharedLocalYieldingClusterLockManager.class, this.lockManager);
        builder.addDependency(ClusteredBackingCacheEntryStoreSourceService.getClientMappingRegistryServiceName(this.cacheContainerName), Registry.class, this.registry);

        InjectedValue<Cache> cache = new InjectedValue<Cache>();
        InjectedValue<Registry.RegistryEntryProvider> provider = new InjectedValue<Registry.RegistryEntryProvider>();
        target.addService(ClusteredBackingCacheEntryStoreSourceService.getClientMappingRegistryServiceName(this.cacheContainerName), new RegistryService(cache, provider))
                .addDependency(EJBRemotingConnectorClientMappingsEntryProviderService.SERVICE_NAME, Registry.RegistryEntryProvider.class, provider)
                .addDependency(CacheService.getServiceName(this.cacheContainerName, this.clientMappingsCacheName), Cache.class, cache)
                .setInitialMode(ServiceController.Mode.ON_DEMAND)
                .install()
        ;
View Full Code Here

Examples of org.jboss.as.clustering.registry.RegistryService

    @SuppressWarnings({ "unchecked", "rawtypes" })
    @Override
    public Collection<ServiceController<?>> installServices(ServiceTarget target) {
        InjectedValue<Cache> cache = new InjectedValue<Cache>();
        InjectedValue<Registry.RegistryEntryProvider> providerValue = new InjectedValue<Registry.RegistryEntryProvider>();
        ServiceController<?> controller = target.addService(JVM_ROUTE_REGISTRY_SERVICE_NAME, new RegistryService(cache, providerValue))
                .addDependency(CacheService.getServiceName(DEFAULT_CACHE_CONTAINER, null), Cache.class, cache)
                .addDependency(DistributedCacheManagerFactoryService.JVM_ROUTE_REGISTRY_ENTRY_PROVIDER_SERVICE_NAME, Registry.RegistryEntryProvider.class, providerValue)
                .setInitialMode(ServiceController.Mode.ON_DEMAND)
                .install()
        ;
View Full Code Here

Examples of org.ogce.gfac.registry.RegistryService

  public boolean execute(InvocationContext context) throws GfacException {

    /*
     * Load host and app description from registry
     */
    RegistryService registryService = context.getExecutionContext().getRegistryService();
    String serviceMapStr = registryService.getServiceMap(context.getServiceName());
    System.out.println(serviceMapStr);
    if (serviceMapStr != null) {
      try {

        ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapStr).getServiceMap();
        QName appName = GfacUtils.findApplcationName(serviceMap);

        // host name
        String hostName = findHostFromServiceMap(registryService, appName);

        // app
        String appDesc = registryService.getAppDesc(appName.toString(), hostName);
        ApplicationDescriptionType appDescType = ApplicationDescriptionDocument.Factory.parse(appDesc).getApplicationDescription();

        // host desc
        String hostDesc = registryService.getHostDesc(hostName);
        HostDescriptionType hostDescType = HostDescriptionDocument.Factory.parse(hostDesc).getHostDescription();

        // application deployment
        DeploymentDescriptionType deploymentDesc = appDescType.getDeploymentDescription();
        String tmpDir = deploymentDesc.getTmpDir();
View Full Code Here

Examples of org.ogce.gfac.registry.RegistryService

    String hostName = null;

    /*
     * Load host and app description from registry
     */
    RegistryService registryService = context.getExecutionContext().getRegistryService();
    String serviceMapStr = registryService.getServiceMap(context.getServiceName());

    if (serviceMapStr != null) {
      try {
       
        ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapStr).getServiceMap();
View Full Code Here

Examples of org.wso2.carbon.registry.api.RegistryService

            }
            int tenantId = tenantManager.getTenantId(tenantDomain);
            carbonContextHolder.setTenantId(tenantId);
            carbonContextHolder.setProperty(CarbonContextHolder.USER_REALM,
                                            userRealmService.getTenantUserRealm(tenantId));
            RegistryService registryService = OSGiEnvironmentDataHolder.getRegistryService();
            carbonContextHolder.setProperty(CarbonContextHolder.CONFIG_SYSTEM_REGISTRY_INSTANCE,
                                            new GhostRegistry(registryService, tenantId,
                                                              RegistryType.SYSTEM_CONFIGURATION));
            carbonContextHolder.setProperty(CarbonContextHolder.GOVERNANCE_SYSTEM_REGISTRY_INSTANCE,
                                            new GhostRegistry(registryService, tenantId,
View Full Code Here

Examples of org.wso2.carbon.registry.core.service.RegistryService

            outputStream.write(("<h4>Service " + serviceName +
                                " is inactive. Cannot retrieve certificate.</h4>").getBytes());
            outputStream.flush();
        } else {

            RegistryService registryService = dataHolder.getRegistryService();
            Registry registry = registryService.getConfigSystemRegistry();

            String servicePath = RegistryResources.SERVICE_GROUPS
            + axisService.getAxisServiceGroup().getServiceGroupName()
            + RegistryResources.SERVICES + axisService.getName();
View Full Code Here

Examples of org.wso2.carbon.registry.core.service.RegistryService

    }

    public boolean authenticateUser(String userName, String password) throws CarbonException,
            UserStoreException {
        RealmService realmService = IdentitySTSServiceComponent.getRealmService();
        RegistryService registryService = IdentitySTSServiceComponent.getRegistryService();
        boolean isAuthenticated = false;
        UserRealm realm = AnonymousSessionUtil.getRealmByUserName(registryService, realmService,
                userName);
        userName = UserCoreUtil.getTenantLessUsername(userName);
        isAuthenticated = realm.getUserStoreManager().authenticate(userName, password);
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.