Examples of ArchivaArtifactModelKey


Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

    public ArchivaArtifact getArtifact( String groupId, String artifactId, String version, String classifier,
                                        String type, String repositoryId )
        throws ObjectNotFoundException, ArchivaDatabaseException
    {
        ArchivaArtifactModelKey key = new ArchivaArtifactModelKey();
        key.setGroupId( groupId );
        key.setArtifactId( artifactId );
        key.setVersion( version );
        key.setClassifier( classifier );
        key.setType( type );
        key.setRepositoryId( repositoryId );

        ArchivaArtifactModel model = (ArchivaArtifactModel) jdo.getObjectById( ArchivaArtifactModel.class, key, null );

        return new ArchivaArtifact( model );
    }
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

    public ArchivaArtifact getArtifact( String groupId, String artifactId, String version, String classifier,
                                        String type )
        throws ObjectNotFoundException, ArchivaDatabaseException
    {
        ArchivaArtifactModelKey key = new ArchivaArtifactModelKey();
        key.setGroupId( groupId );
        key.setArtifactId( artifactId );
        key.setVersion( version );
        key.setClassifier( classifier );
        key.setType( type );

        ArchivaArtifactModel model = (ArchivaArtifactModel) jdo.getObjectById( ArchivaArtifactModel.class, key, null );

        return new ArchivaArtifact( model );
    }
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

    public ArchivaArtifact getArtifact( String groupId, String artifactId, String version, String classifier,
                                        String type )
        throws ObjectNotFoundException, ArchivaDatabaseException
    {
        ArchivaArtifactModelKey key = new ArchivaArtifactModelKey();
        key.setGroupId( groupId );
        key.setArtifactId( artifactId );
        key.setVersion( version );
        key.setClassifier( classifier );
        key.setType( type );

        ArchivaArtifactModel model = (ArchivaArtifactModel) jdo.getObjectById( ArchivaArtifactModel.class, key, null );

        return new ArchivaArtifact( model );
    }
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

    public ArchivaArtifact getArtifact( String groupId, String artifactId, String version, String classifier,
                                        String type, String repositoryId )
        throws ObjectNotFoundException, ArchivaDatabaseException
    {
        ArchivaArtifactModelKey key = new ArchivaArtifactModelKey();
        key.setGroupId( groupId );
        key.setArtifactId( artifactId );
        key.setVersion( version );
        key.setClassifier( classifier );
        key.setType( type );
        key.setRepositoryId( repositoryId );

        ArchivaArtifactModel model = (ArchivaArtifactModel) jdo.getObjectById( ArchivaArtifactModel.class, key, null );

        return new ArchivaArtifact( model );
    }
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

        Object o = JDOImplHelper.getInstance().newObjectIdInstance( ArchivaArtifactModel.class, "foo:bar:1.0::jar:testrepo" );
        assertNotNull( "Key should not be null.", o );
        assertTrue( "Key should be an instance of " + ArchivaArtifactModelKey.class.getName(),
                    ( o instanceof ArchivaArtifactModelKey ) );

        ArchivaArtifactModelKey key = (ArchivaArtifactModelKey) o;
        assertEquals( "foo", key.groupId );
        assertEquals( "bar", key.artifactId );
        assertEquals( "1.0", key.version );
        assertEquals( "", key.classifier );
        assertEquals( "jar", key.type );
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

        Object o = JDOImplHelper.getInstance().newObjectIdInstance( ArchivaArtifactModel.class, "foo:bar:1.0::jar" );
        assertNotNull( "Key should not be null.", o );
        assertTrue( "Key should be an instance of " + ArchivaArtifactModelKey.class.getName(),
                    ( o instanceof ArchivaArtifactModelKey ) );

        ArchivaArtifactModelKey key = (ArchivaArtifactModelKey) o;
        assertEquals( "foo", key.groupId );
        assertEquals( "bar", key.artifactId );
        assertEquals( "1.0", key.version );
        assertEquals( "", key.classifier );
        assertEquals( "jar", key.type );
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

    public ArchivaArtifact getArtifact( String groupId, String artifactId, String version, String classifier,
                                        String type )
        throws ObjectNotFoundException, ArchivaDatabaseException
    {
        ArchivaArtifactModelKey key = new ArchivaArtifactModelKey();
        key.setGroupId( groupId );
        key.setArtifactId( artifactId );
        key.setVersion( version );
        key.setClassifier( classifier );
        key.setType( type );

        ArchivaArtifactModel model = (ArchivaArtifactModel) jdo.getObjectById( ArchivaArtifactModel.class, key, null );

        return new ArchivaArtifact( model );
    }
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

        Object o = JDOImplHelper.getInstance().newObjectIdInstance( ArchivaArtifactModel.class, "foo:bar:1.0::jar" );
        assertNotNull( "Key should not be null.", o );
        assertTrue( "Key should be an instance of " + ArchivaArtifactModelKey.class.getName(),
                    ( o instanceof ArchivaArtifactModelKey ) );

        ArchivaArtifactModelKey key = (ArchivaArtifactModelKey) o;
        assertEquals( "foo", key.groupId );
        assertEquals( "bar", key.artifactId );
        assertEquals( "1.0", key.version );
        assertEquals( "", key.classifier );
        assertEquals( "jar", key.type );
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

        Object o = JDOImplHelper.getInstance().newObjectIdInstance( ArchivaArtifactModel.class, "foo:bar:1.0::jar:testrepo" );
        assertNotNull( "Key should not be null.", o );
        assertTrue( "Key should be an instance of " + ArchivaArtifactModelKey.class.getName(),
                    ( o instanceof ArchivaArtifactModelKey ) );

        ArchivaArtifactModelKey key = (ArchivaArtifactModelKey) o;
        assertEquals( "foo", key.groupId );
        assertEquals( "bar", key.artifactId );
        assertEquals( "1.0", key.version );
        assertEquals( "", key.classifier );
        assertEquals( "jar", key.type );
View Full Code Here

Examples of org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey

    public ArchivaArtifact getArtifact( String groupId, String artifactId, String version, String classifier,
                                        String type, String repositoryId )
        throws ObjectNotFoundException, ArchivaDatabaseException
    {
        ArchivaArtifactModelKey key = new ArchivaArtifactModelKey();
        key.setGroupId( groupId );
        key.setArtifactId( artifactId );
        key.setVersion( version );
        key.setClassifier( classifier );
        key.setType( type );
        key.setRepositoryId( repositoryId );

        ArchivaArtifactModel model = (ArchivaArtifactModel) jdo.getObjectById( ArchivaArtifactModel.class, key, null );

        return new ArchivaArtifact( model );
    }
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.