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.apache.karaf.eik.core.features.Repository

            }

            final Element element = (Element) object;

            if (element.getName().equalsIgnoreCase("repository")) {
                return new Repository(element);
            } else if (element.getName().equalsIgnoreCase("feature")) {
                return new Feature(element);
            } else if (element.getName().equalsIgnoreCase("bundle")) {
                return new Bundle(element);
            } else if (element.getName().equalsIgnoreCase("features")) {
    View Full Code Here

    Examples of org.apache.karaf.features.Repository

        @Override
        public void create(String repoName, List<String> features, PrintStream console) {
            FileOutputStream fos = null;
            JarOutputStream jos = null;
            try {
                Repository repo = featuresService.getRepository(repoName);
                if (repo == null) {
                    throw new RuntimeException("Could not find a repository with name " + repoName);
                }
                String karPath = storage + File.separator + repoName + ".kar";
                File karFile = new File(karPath);
                karFile.getParentFile().mkdirs();
                fos = new FileOutputStream(karFile);
                Manifest manifest = createNonAutoStartManifest(repo.getURI());
                jos = new JarOutputStream(new BufferedOutputStream(fos, 100000), manifest);
               
                Map<URI, Integer> locationMap = new HashMap<URI, Integer>();
                copyResourceToJar(jos, repo.getURI(), locationMap);
           
                Map<String, Feature> featureMap = new HashMap<String, Feature>();
                for (Feature feature : repo.getFeatures()) {
                    featureMap.put(feature.getName(), feature);
                }
               
                Set<Feature> featuresToCopy = getFeatures(featureMap, features, 1);
               
    View Full Code Here

    Examples of org.apache.karaf.tooling.features.model.Repository

            }
            if (includeMvnBasedDescriptors) {
                bundles.add(uri);
            }
            URI repoURI = URI.create(translateFromMaven(uri.replaceAll(" ", "%20")));
            Repository repo = new Repository(repoURI, defaultStartLevel);
            for (Feature f : repo.getFeatures()) {
                featuresMap.put(f.getName() + "/" + f.getVersion(), f);
            }
            if (resolveDefinedRepositoriesRecursively) {
                for (String r : repo.getDefinedRepositories()) {
                    retrieveDescriptorsRecursively(r, bundles, featuresMap);
                }
            }
        }
    View Full Code Here

    Examples of org.apache.maven.bootstrap.model.Repository

                repositories.addAll( ( (Model) i.next() ).getRepositories() );
            }

            for ( Iterator i = repositories.iterator(); i.hasNext(); )
            {
                Repository remoteRepo = (Repository) i.next();

                boolean snapshot = isSnapshot( dep );
                if ( snapshot && !remoteRepo.isSnapshots() )
                {
                    continue;
                }
                if ( !snapshot && !remoteRepo.isReleases() )
                {
                    continue;
                }

                // The username and password parameters are not being used here.
                String url = remoteRepo.getBasedir() + "/" + remoteRepo.getArtifactPath( dep );

                // Attempt to retrieve the artifact and set the checksum if retrieval
                // of the checksum file was successful.
                try
                {
                    String version = dep.getVersion();
                    if ( snapshot )
                    {
                        String filename = "maven-metadata-" + remoteRepo.getId() + ".xml";
                        File localFile = getLocalRepository().getMetadataFile( dep.getGroupId(), dep.getArtifactId(),
                                                                               dep.getVersion(), dep.getType(),
                                                                               "maven-metadata-local.xml" );
                        File remoteFile = getLocalRepository().getMetadataFile( dep.getGroupId(), dep.getArtifactId(),
                                                                                dep.getVersion(), dep.getType(), filename );
                        String metadataPath = remoteRepo.getMetadataPath( dep.getGroupId(), dep.getArtifactId(),
                                                                          dep.getVersion(), dep.getType(),
                                                                          "maven-metadata.xml" );
                        String metaUrl = remoteRepo.getBasedir() + "/" + metadataPath;
                        log( "Downloading " + metaUrl );
                        try
                        {
                            HttpUtils.getFile( metaUrl, remoteFile, ignoreErrors, true, proxyHost, proxyPort, proxyUserName,
                                               proxyPassword, false );
                        }
                        catch ( IOException e )
                        {
                            log( "WARNING: remote metadata version not found, using local: " + e.getMessage() );
                            remoteFile.delete();
                        }

                        File file = localFile;
                        if ( remoteFile.exists() )
                        {
                            if ( !localFile.exists() )
                            {
                                file = remoteFile;
                            }
                            else
                            {
                                RepositoryMetadata localMetadata = RepositoryMetadata.read( localFile );

                                RepositoryMetadata remoteMetadata = RepositoryMetadata.read( remoteFile );

                                if ( remoteMetadata.getLastUpdatedUtc() > localMetadata.getLastUpdatedUtc() )
                                {
                                    file = remoteFile;
                                }
                                else
                                {
                                    file = localFile;
                                }
                            }
                        }

                        if ( file.exists() )
                        {
                            log( "Using metadata: " + file );

                            RepositoryMetadata metadata = RepositoryMetadata.read( file );

                            if ( !file.equals( localFile ) )
                            {
                                version = metadata.constructVersion( version );
                            }
                            log( "Resolved version: " + version );
                            dep.setResolvedVersion( version );
                            if ( !version.endsWith( "SNAPSHOT" ) )
                            {
                                String ver =
                                    version.substring( version.lastIndexOf( "-", version.lastIndexOf( "-" ) - 1 ) + 1 );
                                String extension = url.substring( url.length() - 4 );
                                url = getSnapshotMetadataFile( url, ver + extension );
                            }
                            else if ( destinationFile.exists() )
                            {
                                // It's already there
                                return true;
                            }
                        }
                    }
                    if ( !"pom".equals( dep.getType() ) )
                    {
                        String name = dep.getArtifactId() + "-" + dep.getResolvedVersion() + ".pom";
                        File file = getLocalRepository().getMetadataFile( dep.getGroupId(), dep.getArtifactId(),
                                                                          dep.getVersion(), dep.getType(), name );

                        file.getParentFile().mkdirs();

                        if ( !file.exists() || version.indexOf( "SNAPSHOT" ) >= 0 )
                        {
                            String filename = dep.getArtifactId() + "-" + version + ".pom";
                            String metadataPath = remoteRepo.getMetadataPath( dep.getGroupId(), dep.getArtifactId(),
                                                                              dep.getVersion(), dep.getType(), filename );
                            String metaUrl = remoteRepo.getBasedir() + "/" + metadataPath;
                            log( "Downloading " + metaUrl );

                            try
                            {
                                HttpUtils.getFile( metaUrl, file, ignoreErrors, false, proxyHost, proxyPort, proxyUserName,
    View Full Code Here

    Examples of org.apache.maven.model.Repository

                validateStringNotEmpty( prefix + "[" + repository.getId() + "].url", problems, Severity.ERROR,
                                        repository.getUrl(), repository );

                String key = repository.getId();

                Repository existing = index.get( key );

                if ( existing != null )
                {
                    Severity errOn30 = getSeverity( request, ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_3_0 );

                    addViolation( problems, errOn30, prefix + ".id", null, "must be unique: " + repository.getId() + " -> "
                        + existing.getUrl() + " vs " + repository.getUrl(), repository );
                }
                else
                {
                    index.put( key, repository );
                }
    View Full Code Here

    Examples of org.apache.maven.plugin.assembly.model.Repository

        public void testMergeComponentWithAssembly_ShouldAddOneRepositoryToExistingListOfTwo()
        {
            final Assembly assembly = new Assembly();

            Repository repo = new Repository();
            repo.setScope( Artifact.SCOPE_RUNTIME );

            assembly.addRepository( repo );

            repo = new Repository();
            repo.setScope( Artifact.SCOPE_COMPILE );

            assembly.addRepository( repo );

            final Component component = new Component();

            repo = new Repository();
            repo.setScope( Artifact.SCOPE_SYSTEM );

            component.addRepository( repo );

            new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly );
    View Full Code Here

    Examples of org.apache.maven.profiles.Repository

                if ( ( profile.getRepositories() != null ) && ( profile.getRepositories().size() > 0 ) )
                {
                    serializer.startTag( NAMESPACE, "repositories" );
                    for ( Iterator iter = profile.getRepositories().iterator(); iter.hasNext(); )
                    {
                        Repository o = (Repository) iter.next();
                        writeRepository( o, "repository", serializer );
                    }
                    serializer.endTag( NAMESPACE, "repositories" );
                }
                if ( ( profile.getPluginRepositories() != null ) && ( profile.getPluginRepositories().size() > 0 ) )
                {
                    serializer.startTag( NAMESPACE, "pluginRepositories" );
                    for ( Iterator iter = profile.getPluginRepositories().iterator(); iter.hasNext(); )
                    {
                        Repository o = (Repository) iter.next();
                        writeRepository( o, "pluginRepository", serializer );
                    }
                    serializer.endTag( NAMESPACE, "pluginRepositories" );
                }
                serializer.endTag( NAMESPACE, tagName );
    View Full Code Here

    Examples of org.apache.maven.project.Repository

         * @param parser
         */
        private Repository parseRepository(String tagName, XmlPullParser parser, boolean strict, String encoding)
            throws IOException, XmlPullParserException
        {
            Repository repository = new Repository();
            repository.setModelEncoding( encoding );
            java.util.Set parsed = new java.util.HashSet();
            while ( parser.nextTag() == XmlPullParser.START_TAG )
            {
                if ( parser.getName().equals( "connection" )  )
                {
                    if ( parsed.contains( "connection" ) )
                    {
                        throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
                    }
                    parsed.add( "connection" );
                    repository.setConnection( getTrimmedValue( parser.nextText()) );
                }
                else if ( parser.getName().equals( "developerConnection" )  )
                {
                    if ( parsed.contains( "developerConnection" ) )
                    {
                        throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
                    }
                    parsed.add( "developerConnection" );
                    repository.setDeveloperConnection( getTrimmedValue( parser.nextText()) );
                }
                else if ( parser.getName().equals( "url" )  )
                {
                    if ( parsed.contains( "url" ) )
                    {
                        throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
                    }
                    parsed.add( "url" );
                    repository.setUrl( getTrimmedValue( parser.nextText()) );
                }
                else
                {
                    if ( strict )
                    {
    View Full Code Here

    Examples of org.apache.maven.settings.Repository

                {
                    profile.setId( "stagedLocalRepo" + entropy.nextLong() );
                }
                while ( settings.getProfilesAsMap().containsKey( profile.getId() ) );

                Repository repository = new Repository();
                repository.setId( profile.getId() + entropy.nextLong() );
                RepositoryPolicy policy = new RepositoryPolicy();
                policy.setEnabled( true );
                policy.setChecksumPolicy( "ignore" );
                policy.setUpdatePolicy( "never" );
                repository.setReleases( policy );
                repository.setSnapshots( policy );
                repository.setLayout( "default" );
                repository.setName( "Original Local Repository" );
                repository.setUrl( toUrl( localRepo ) );
                profile.addPluginRepository( repository );
                profile.addRepository( repository );
                settings.addProfile( profile );
                settings.addActiveProfile( profile.getId() );
                settings.setLocalRepository( stagedLocalRepo.getAbsolutePath() );
    View Full Code Here

    Examples of org.apache.maven.wagon.repository.Repository

        }

        public void putDirectory( Wagon wagon, File sourceDirectory, String destinationDirectory )
            throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
        {
            Repository repository = wagon.getRepository();

            String basedir = repository.getBasedir();

            String destDir = StringUtils.replace( destinationDirectory, "\\", "/" );

            String path = getPath( basedir, destDir );
            try
            {
                if ( repository.getPermissions() != null )
                {
                    String dirPerms = repository.getPermissions().getDirectoryMode();

                    if ( dirPerms != null )
                    {
                        String umaskCmd = "umask " + PermissionModeUtils.getUserMaskFor( dirPerms );
                        executor.executeCommand( umaskCmd );
                    }
                }

                //String mkdirCmd = "mkdir -p " + path;
                String mkdirCmd = "mkdir -p \"" + path + "\"";

                executor.executeCommand( mkdirCmd );
            }
            catch ( CommandExecutionException e )
            {
                throw new TransferFailedException( "Error performing commands for file transfer", e );
            }

            File zipFile;
            try
            {
                zipFile = File.createTempFile( "wagon", ".zip" );
                zipFile.deleteOnExit();

                List<String> files = FileUtils.getFileNames( sourceDirectory, "**/**", "", false );

                createZip( files, zipFile, sourceDirectory );
            }
            catch ( IOException e )
            {
                throw new TransferFailedException( "Unable to create ZIP archive of directory", e );
            }

            wagon.put( zipFile, getPath( destDir, zipFile.getName() ) );

            try
            {
                //executor.executeCommand(
                //    "cd " + path + "; unzip -q -o " + zipFile.getName() + "; rm -f " + zipFile.getName() );
                executor.executeCommand( "cd \"" + path + "\"; unzip -q -o \"" + zipFile.getName() + "\"; rm -f \"" + zipFile.getName() + "\"" );

                zipFile.delete();

                RepositoryPermissions permissions = repository.getPermissions();

                if ( permissions != null && permissions.getGroup() != null )
                {
                    //executor.executeCommand( "chgrp -Rf " + permissions.getGroup() + " " + path );
                    executor.executeCommand( "chgrp -Rf " + permissions.getGroup() + " \"" + path + "\"" );
    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.