Examples of RepositoryImpl


Examples of org.exoplatform.services.jcr.impl.core.RepositoryImpl

            + " remove repository close all open sessions");

      try
      {
         RepositoryEntry repconfig = config.getRepositoryConfiguration(name);
         RepositoryImpl repo = (RepositoryImpl)getRepository(name);
         for (WorkspaceEntry wsEntry : repconfig.getWorkspaceEntries())
         {
            repo.internalRemoveWorkspace(wsEntry.getName());
         }
         repconfig.getWorkspaceEntries().clear();
         final RepositoryContainer repositoryContainer = repositoryContainers.get(name);
         SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>()
         {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.RepositoryImpl

      if (!allowRemoveDefaultRepository && name.equals(config.getDefaultRepositoryName()))
      {
         return false;
      }

      RepositoryImpl repo = (RepositoryImpl)getRepository(name);
      try
      {
         RepositoryEntry repconfig = config.getRepositoryConfiguration(name);

         for (WorkspaceEntry wsEntry : repconfig.getWorkspaceEntries())
         {
            // Check non system workspaces
            if (!repo.getSystemWorkspaceName().equals(wsEntry.getName()) && !repo.canRemoveWorkspace(wsEntry.getName()))
               return false;
         }
         // check system workspace
         RepositoryContainer repositoryContainer = repositoryContainers.get(name);
         SessionRegistry sessionRegistry =
            (SessionRegistry)repositoryContainer.getComponentInstance(SessionRegistry.class);
         if (sessionRegistry == null || sessionRegistry.isInUse(repo.getSystemWorkspaceName()))
            return false;

      }
      catch (RepositoryConfigurationException e)
      {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.RepositoryImpl

               {
                  throw new RepositoryConfigurationException("Class not found for repository authentication policy: " + e);
               }

               // Repository
               final RepositoryImpl repository = new RepositoryImpl(RepositoryContainer.this);
               registerComponentInstance(repository);
               return null;
            }
         });
      }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.RepositoryImpl

    * {@inheritDoc}
    */
   @Override
   public synchronized void stop()
   {
      RepositoryImpl repository = (RepositoryImpl)getComponentInstanceOfType(RepositoryImpl.class);

      try
      {
         repository.setState(ManageableRepository.OFFLINE);
      }
      catch (RepositoryException e)
      {
         log.error("Can not switch repository to OFFLINE", e);
      }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.RepositoryImpl

                  throw new RepositoryConfigurationException("Class not found for repository authentication policy: "
                     + e, e);
               }

               // Repository
               final RepositoryImpl repository = new RepositoryImpl(RepositoryContainer.this);
               registerComponentInstance(repository);
               return null;
            }
         });
      }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.RepositoryImpl

      }

      try
      {
         RepositoryEntry repconfig = config.getRepositoryConfiguration(name);
         RepositoryImpl repo = (RepositoryImpl)getRepository(name);
         for (WorkspaceEntry wsEntry : repconfig.getWorkspaceEntries())
         {
            repo.internalRemoveWorkspace(wsEntry.getName());
         }
         repconfig.getWorkspaceEntries().clear();
         final RepositoryContainer repositoryContainer = repositoryContainers.get(name);
         SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>()
         {
View Full Code Here

Examples of org.infoglue.cms.entities.management.impl.simple.RepositoryImpl

        return ent.getValueObject();
    }    

    public Repository create(RepositoryVO vo, Database db) throws ConstraintException, SystemException, Exception
    {
        Repository ent = new RepositoryImpl();
        ent.setValueObject(vo);
        ent = (Repository) createEntity(ent, db);
        return ent;
    }    
View Full Code Here

Examples of org.jboss.osgi.repository.core.RepositoryImpl

        syscontext.registerService(ArtifactProviderPlugin.class.getName(), provider, null);
        // Create the RepositoryCachePlugin
        File cacheFile = syscontext.getDataFile("repository");
        RepositoryCachePlugin cache = new FileBasedRepositoryCachePlugin(cacheFile);
        // Register the Repository
        repository = new RepositoryImpl(new TrackingArtifactProvider(syscontext), cache);
        syscontext.registerService(Repository.class.getName(), repository, null);
    }
View Full Code Here

Examples of org.osgi.impl.bundle.obr.resource.RepositoryImpl

     */
    public ExtractBindexInfo( URI repoFilename, String outFile ) throws MojoExecutionException
    {

        m_resource = null;
        RepositoryImpl repository = null;
        try
        {
            repository = new RepositoryImpl( new File( repoFilename ).getAbsoluteFile().toURL() );
        }
        catch ( MalformedURLException e )
        {
            e.printStackTrace();
            throw new MojoExecutionException( "MalformedURLException" );
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.