Examples of Repository

@source $URL$
  • org.guvnor.common.services.project.model.Repository
  • org.guvnor.structure.repositories.Repository
  • org.infoglue.cms.entities.management.Repository
  • org.jboss.gravia.repository.Repository
    A repository that contains {@link Resource resources}. @author thomas.diesler@jboss.com @since 11-May-2012
  • org.jboss.profileservice.spi.repository.Repository
    Mirror the OBR Repository @author Scott.Stark@jboss.org @version $Revision: 65457 $
  • org.jbpm.designer.repository.Repository
    Repository is responsible for managing its components that are as follows:
  • org.jdesktop.wonderland.common.modules.ModuleRepository.Repository
  • org.jfree.repository.Repository
    Creation-Date: 13.11.2006, 11:37:44 @author Thomas Morgner
  • org.jpublish.Repository
  • org.lilyproject.repository.api.Repository
    A Repository is a set of tables, tables contain records.

    This interface is here for backwards compatibility with pre-2.2 Lily versions. In Lily 2.2, the functionality has been split out over 2 new interfaces: {@link LRepository} and {@link LTable}, from which Repository extends. New code should be written against either {@link LRepository} or {@link LTable}.

    A Repository object represents one specific table within one specific named repository. It is obtained by:

  • casting the result of calling on {@link RepositoryManager#getRepository(String)} or related methodsto Repository (this will then use the default 'record' table)
  • casting the result of calling {@link LRepository#getTable(String)} to Repository.
  • For backwards compatibility, Repository extends from LTable. The methods of LTable will in this case be executed against the table for which this repository has been retrieved: either the default table called "record" or another table in case this Repository instance was cast from a call on {@link Repository#getTable(String)}.

    While Repository extends from Closeable, you don't need to call close on it. When using LilyClient, Repositories are closed as part of closing LilyClient, and when embedded in the lily-server process, the lifecycle is also managed automatically.

  • org.locationtech.geogig.repository.Repository
    A repository is a collection of commits, each of which is an archive of what the project's working tree looked like at a past date, whether on your machine or someone else's.

    It also defines HEAD (see below), which identifies the branch or commit the current working tree stemmed from. Lastly, it contains a set of branches and tags, to identify certain commits by name.

    @see WorkingTree
  • org.modeshape.jcr.api.Repository
    An extension of JCR 2.0's Repository interface, with a few ModeShape-specific enhancements.
  • org.moxie.Repository
  • org.omg.CORBA.Repository
  • org.openide.filesystems.Repository
  • org.openrdf.repository.Repository
    A Sesame repository that contains RDF data that can be queried and updated. Access to the repository can be acquired by openening a connection to it. This connection can then be used to query and/or update the contents of the repository. Depending on the implementation of the repository, it may or may not support multiple concurrent connections.

    Please note that a repository needs to be initialized before it can be used and that it should be shut down before it is discarded/garbage collected. Forgetting the latter can result in loss of data (depending on the Repository implementation)! @author Arjohn Kampman

  • org.opensolaris.opengrok.history.Repository
    An interface for an external repository. @author Trond Norbye
  • org.osgi.service.obr.Repository
    Represents a repository. @version $Revision: 1.3 $
  • org.osgi.service.repository.Repository
    A repository service that contains {@link Resource resources}.

    Repositories may be registered as services and may be used as by a resolve context during resolver operations.

    Repositories registered as services may be filtered using standard service properties. @ThreadSafe @noimplement @author $Id: 0ce322be0d7242d30e47b7f972057d90e9b57c5e $

  • org.outerj.daisy.repository.Repository
  • org.pentaho.di.repository.Repository
  • org.pentaho.reporting.libraries.repository.Repository
    A repository represents a abstract view on a filesystem. It always has a single root-entry and grants access to a repository-specific mime-registry. @author Thomas Morgner
  • org.platformlayer.images.model.Repository
  • org.ringojs.repository.Repository
    Repository represents an abstract container of resources (e.g. code, skins, ...). In addition to resources, repositories may contain other repositories, building a hierarchical structure.
  • org.sonatype.nexus.client.core.subsystem.repository.Repository
    A Nexus repository. @since 2.3
  • org.sonatype.nexus.proxy.repository.Repository
    Repository interface used by Proximity. It is an extension of ResourceStore iface, allowing to make direct RepositoryItemUid based requests which bypasses AccessManager. Also, defines some properties. @author cstamas
  • org.springframework.roo.project.Repository
    Simplified immutable representation of a repository.

    Structured after the model used by Maven and Ivy. @author Stefan Schmidt @since 1.1

  • org.stringtree.Repository
  • org.uberfire.backend.repositories.Repository
  • org.wso2.carbon.registry.core.jdbc.Repository
    Encapsulates the retrieving, storing, modifying and deleting of resources. This class only deals with the current versions of resources and it is unaware of any versioning or snapshot activity. Only the current version related tables are accessed and updated from the methods of this class.
  • se.jbee.inject.Repository
    Manages the already created instances. @author Jan Bernitt (jan@jbee.se)
  • uk.ac.osswatch.simal.model.jena.Repository

  • Examples of org.omg.CORBA.Repository

          // If there is an interface repository, then get
          // the homeInterfaceDef from the IR
          InterfaceDef homeInterfaceDef = null;
          if (iri != null) {
                Repository ir = iri.getReference();
                homeInterfaceDef =
                   InterfaceDefHelper.narrow(ir.lookup_id(homeRepositoryIds[0]));
          }

          // Instantiate home servant, bind it to the servant registry, and
          // create CORBA reference to the EJBHome.
          homeServantRegistry =
                servantRegistries.getServantRegistry(registryWithPersistentPOA);


          String homeServantLoggerName =
             EjbHomeCorbaServant.class.getName() + '.'+ jndiName;

          ServantWithMBeanServer homeServant =
             new EjbHomeCorbaServant(container.getJmxName(),
                                     container.getClassLoader(),
                                     homeMethodMap,
                                     homeRepositoryIds,
                                     homeInterfaceDef,
                                     Logger.getLogger(homeServantLoggerName));

          homeReferenceFactory = homeServantRegistry.bind(homeServantName(jndiName), homeServant, policies);

          org.omg.CORBA.Object corbaRef =
             homeReferenceFactory.createReference(homeRepositoryIds[0]);
          ejbHome = (EJBHome)PortableRemoteObject.narrow(corbaRef, EJBHome.class);
          ((EjbHomeCorbaServant)homeServant).setHomeHandle(
                                                 new HomeHandleImplIIOP(ejbHome));

          // Initialize beanPOA and create metadata depending on the kind of bean
          if (container.getBeanMetaData() instanceof EntityMetaData) {

             // This is an entity bean (lifespan: persistent)
             beanServantRegistry =
                servantRegistries.getServantRegistry(registryWithPersistentPOA);

             Class pkClass;
             EntityMetaData metaData = (EntityMetaData)container.getBeanMetaData();
             String pkClassName = metaData.getPrimaryKeyClass();
             try {
                if (pkClassName != null)
                   pkClass = container.getClassLoader().loadClass(pkClassName);
                else
                   pkClass = container.getClassLoader().loadClass(
                         metaData.getEjbClass()).getField(
                               metaData.getPrimKeyField()).getClass();
             }
             catch (NoSuchFieldException e) {
                logger.error("Unable to identify Bean's Primary Key class! "
                             + "Did you specify a primary key class and/or field? "
                             + "Does that field exist?");
                throw new Exception("Primary Key Problem");
             }
             catch (NullPointerException e) {
                logger.error("Unable to identify Bean's Primary Key class! "
                             + "Did you specify a primary key class and/or field? "
                             + "Does that field exist?");
                throw new Exception("Primary Key Problem");
             }

             ejbMetaData = new EJBMetaDataImplIIOP(
                   ((EJBProxyFactoryContainer)container).getRemoteClass(),
                   ((EJBProxyFactoryContainer)container).getHomeClass(),
                   pkClass,
                   false, // Session
                   false, // Stateless
                   ejbHome);
          }
          else {

             // This is a session bean (lifespan: transient)
             beanServantRegistry =
                servantRegistries.getServantRegistry(registryWithTransientPOA);

             if (((SessionMetaData)container.getBeanMetaData()).isStateless()) {

                // Stateless session bean
                ejbMetaData = new EJBMetaDataImplIIOP(
                      ((EJBProxyFactoryContainer)container).getRemoteClass(),
                      ((EJBProxyFactoryContainer)container).getHomeClass(),
                      null, // No PK
                      true, // Session
                      true, // Stateless
                      ejbHome);

             }
             else {

                // Stateful session bean
                ejbMetaData = new EJBMetaDataImplIIOP(
                      ((EJBProxyFactoryContainer)container).getRemoteClass(),
                      ((EJBProxyFactoryContainer)container).getHomeClass(),
                      null,  // No PK
                      true,  // Session
                      false, // Stateless
                      ejbHome);
             }
          }

          // If there is an interface repository, then get
          // the beanInterfaceDef from the IR
          InterfaceDef beanInterfaceDef = null;
          if (iri != null) {
                Repository ir = iri.getReference();
                beanInterfaceDef =
                   InterfaceDefHelper.narrow(ir.lookup_id(beanRepositoryIds[0]));
          }

          String beanServantLoggerName =
             EjbObjectCorbaServant.class.getName() + '.'+ jndiName;
    View Full Code Here

    Examples of org.openide.filesystems.Repository

        }

        private FileSystem addDocumentToRepository(File rootFile, boolean writeable)
            throws IOException, PropertyVetoException
        {
            Repository repo = Repository.getDefault();
            OpenOfficeDocFileSystem oofs;
            oofs = (OpenOfficeDocFileSystem)getMountedDocument(rootFile);
            if(oofs != null)
                repo.removeFileSystem(oofs);
            oofs = new OpenOfficeDocFileSystem();
            oofs.setDocument(rootFile);
            repo.addFileSystem(oofs);
            return oofs;
        }
    View Full Code Here

    Examples of org.openrdf.repository.Repository

      {
        // Create test suite
        TestSuite suite = new TestSuite(TriGParserTestCase.class.getName());

        // Add the manifest for positive test cases to a repository and query it
        Repository repository = new SailRepository(new MemoryStore());
        repository.initialize();
        RepositoryConnection con = repository.getConnection();

        URL url = TriGParserTestCase.class.getResource(MANIFEST_GOOD_URL);
        con.add(url, base(url.toExternalForm()), RDFFormat.TURTLE);

        String query = "SELECT testName, inputURL, outputURL " + "FROM {} mf:name {testName}; "
            + "        mf:result {outputURL}; " + "        mf:action {} qt:data {inputURL} "
            + "USING NAMESPACE " + "  mf = <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#>, "
            + "  qt = <http://www.w3.org/2001/sw/DataAccess/tests/test-query#>";

        TupleResult queryResult = con.prepareTupleQuery(QueryLanguage.SERQL, query).evaluate();

        // Add all positive parser tests to the test suite
        while (queryResult.hasNext()) {
          BindingSet bindingSet = queryResult.next();
          String testName = bindingSet.getValue("testName").toString();
          String inputURL = bindingSet.getValue("inputURL").toString();
          String outputURL = bindingSet.getValue("outputURL").toString();

          String baseURL = BASE_URL + testName + ".ttl";

          suite.addTest(new PositiveParserTest(testName, inputURL, outputURL, baseURL));
        }

        queryResult.close();

        // Add the manifest for negative test cases to a repository and query it
        con.clear();
        url = TriGParserTestCase.class.getResource(MANIFEST_BAD_URL);
        con.add(url, base(url.toExternalForm()), RDFFormat.TURTLE);

        query = "SELECT testName, inputURL " + "FROM {} mf:name {testName}; "
            + "        mf:action {} qt:data {inputURL} " + "USING NAMESPACE "
            + "  mf = <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#>, "
            + "  qt = <http://www.w3.org/2001/sw/DataAccess/tests/test-query#>";
        queryResult = con.prepareTupleQuery(QueryLanguage.SERQL, query).evaluate();

        // Add all negative parser tests to the test suite
        while (queryResult.hasNext()) {
          BindingSet bindingSet = queryResult.next();
          String testName = bindingSet.getValue("testName").toString();
          String inputURL = bindingSet.getValue("inputURL").toString();

          String baseURL = BASE_URL + testName + ".ttl";

          suite.addTest(new NegativeParserTest(testName, inputURL, baseURL));
        }

        queryResult.close();
        con.close();
        repository.shutDown();

        return suite;
      }
    View Full Code Here

    Examples of org.opensolaris.opengrok.history.Repository

            env.setSourceRoot(repository.getSourceRoot());
            env.setDataRoot(repository.getDataRoot());
            HistoryGuru.getInstance().addRepositories(repository.getSourceRoot());

            List<RepositoryInfo> repos = env.getRepositories();
            Repository r = null;
            for (RepositoryInfo ri : repos) {
                if (ri.getDirectoryName().equals(repository.getSourceRoot() + "/rfe2575")) {
                    r = RepositoryFactory.getRepository(ri);
                    break;
                }
            }

            if (r != null && r.isWorking() && env.validateExuberantCtags()) {
                Project project = new Project();
                project.setPath("/rfe2575");
                IndexDatabase idb = new IndexDatabase(project);
                assertNotNull(idb);
                MyIndexChangeListener listener = new MyIndexChangeListener();
    View Full Code Here

    Examples of org.osgi.service.obr.Repository

                try
                {
                    json.put( "status", true ); //$NON-NLS-1$
                    json.put( "details", details ); //$NON-NLS-1$

                    final Repository repositories[] = admin.listRepositories();
                    for ( int i = 0; repositories != null && i < repositories.length; i++ )
                    {
                        json.append( "repositories", new JSONObject() //$NON-NLS-1$
                            .put( "lastModified", repositories[i].getLastModified() ) //$NON-NLS-1$
                            .put( "name", repositories[i].getName() ) //$NON-NLS-1$
    View Full Code Here

    Examples of org.osgi.service.repository.Repository

                    String label = null;
                    Image image = null;
                    Styler styler = null;

                    Repository repo = (Repository) element;
                    label = repo.toString();
                    image = repoImg;

                    if (repo instanceof WorkspaceR5Repository) {
                        image = projectImg;
                    }
    View Full Code Here

    Examples of org.outerj.daisy.repository.Repository

                branch = DEFFAULT_BRANCH;
            }

            RepositoryManager repositoryManager = new RemoteRepositoryManager(
                "http://lilyproject.org:9263", new Credentials("guest", "guest"));
            Repository repository =
                repositoryManager.getRepository(new Credentials("guest", "guest"));
            QueryManager queryManager = repository.getQueryManager();
            RepositorySchema schema = repository.getRepositorySchema();

            String query = "select id, name where InCollection('" + collection + "') and branch = '" + branch + "'";
            VariantKey[] keys = queryManager.performQueryReturnKeys(query, Locale.getDefault());

            for (VariantKey key : keys) {
                Document doc = repository.getDocument(key, false);
                Version version = doc.getLiveVersion();
                if (version == null) {
                    continue;
                }
    View Full Code Here

    Examples of org.pentaho.di.repository.Repository

        // Sadly Kettle always insists on creating a log-file. There is no way around it (yet).
        final LogWriter logWriter = LogWriter.getInstance("Kettle-reporting-datasource", false);
        try
        {
          final Repository repository = connectToRepository(logWriter);
          try
          {
            final TransMeta transMeta = loadTransformation(repository, resourceManager, resourceKey);
            transMeta.setArguments(params);
            final Trans trans = new Trans(transMeta);
            for (int i = 0; i < definedVariableNames.length; i++)
            {
              final ParameterMapping mapping = definedVariableNames[i];
              final String sourceName = mapping.getName();
              final String variableName = mapping.getAlias();
              final Object value = parameters.get(sourceName);
              if (value != null)
              {
                trans.setParameterValue(variableName, String.valueOf(value));
              }
            }

            transMeta.setInternalKettleVariables();
            trans.prepareExecution(transMeta.getArguments());

            TableProducer tableProducer = null;
            final List stepList = trans.getSteps();
            for (int i = 0; i < stepList.size(); i++)
            {
              final StepMetaDataCombi metaDataCombi = (StepMetaDataCombi) stepList.get(i);
              if (stepName.equals(metaDataCombi.stepname) == false)
              {
                continue;
              }
              final RowMetaInterface row = transMeta.getStepFields(stepName);
              tableProducer = new TableProducer(row, queryLimit, stopOnError);
              metaDataCombi.step.addRowListener(tableProducer);
              break;
            }

            if (tableProducer == null)
            {
              throw new ReportDataFactoryException("Cannot find the specified transformation step " + stepName);
            }

            currentlyRunningTransformation = trans;
            trans.startThreads();
            trans.waitUntilFinished();
            trans.cleanup();
            return tableProducer.getTableModel();
          }
          finally
          {
            currentlyRunningTransformation = null;
            if (repository != null)
            {
              repository.disconnect();
            }
          }
        }
        finally
        {
    View Full Code Here

    Examples of org.pentaho.reporting.libraries.repository.Repository

      }

      public String rewrite(final ContentEntity sourceDocument, final ContentEntity dataEntity)
          throws URLRewriteException
      {
        final Repository dataRepository = dataEntity.getRepository();
        if (dataRepository instanceof UrlRepository == false)
        {
          // cannot proceed ..
          throw new URLRewriteException("DataRepository is no URL-Repository.");
        }

        final UrlRepository dataUrlRepo = (UrlRepository) dataRepository;
        final String dataPath = buildPath(dataEntity);
        final URL dataItemUrl;
        try
        {
          dataItemUrl = new URL(dataUrlRepo.getURL(), dataPath);
        }
        catch (MalformedURLException e)
        {
          // cannot proceed ..
          throw new URLRewriteException("DataEntity has no valid URL.");
        }

        final Repository documentRepository = sourceDocument.getRepository();
        if (documentRepository instanceof UrlRepository == false)
        {
          // If at least the data entity has an URL, we can always fall back
          // to an global URL..
          return dataItemUrl.toExternalForm();
    View Full Code Here

    Examples of org.platformlayer.images.model.Repository

      @Override
      public void addTo(DiskImageRecipe recipe) {
        if (version.equals("6")) {
          // TODO: What if it's not debian squeeze??
          Repository repository = new Repository();
          repository.setKey("debian-non-free");
          repository.getSource().add("deb http://ftp.us.debian.org/debian squeeze non-free");
          recipe.getRepository().add(repository);

          DiskImageRecipeBuilder.addPreconfigure(recipe, "sun-java6-bin", "shared/accepted-sun-dlj-v1-1", "boolean",
              "true");
          DiskImageRecipeBuilder.addPreconfigure(recipe, "sun-java6-bin", "shared/accepted-sun-dlj-v1-1", "boolean",
    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.