Package org.apache.maven.archiva.model

Examples of org.apache.maven.archiva.model.Organization


        model.setCiManagement( ci );
        IssueManagement issue = new IssueManagement();
        issue.setSystem( TEST_ISSUE_SYSTEM );
        issue.setUrl( TEST_ISSUE_URL );
        model.setIssueManagement( issue );
        Organization org = new Organization();
        org.setName( TEST_ORGANIZATION_NAME );
        org.setUrl( TEST_ORGANIZATION_URL );
        model.setOrganization( org );
        License l = new License();
        l.setName( TEST_LICENSE_NAME );
        l.setUrl( TEST_LICENSE_URL );
        model.addLicense( l );
View Full Code Here


        throws XMLException
    {
        Element elemOrg = xml.getElement( "//project/organization" );
        if ( elemOrg != null )
        {
            Organization org = new Organization();

            org.setName( elemOrg.elementTextTrim( "name" ) );
            org.setUrl( elemOrg.elementTextTrim( "url" ) );

            return org;
        }

        return null;
View Full Code Here

        if ( mainOrganization == null )
        {
            return ArchivaModelCloner.clone( parentOrganization );
        }

        Organization merged = new Organization();

        merged.setFavicon( merge( mainOrganization.getFavicon(), parentOrganization.getFavicon() ) );
        merged.setName( merge( mainOrganization.getName(), parentOrganization.getName() ) );
        merged.setUrl( merge( mainOrganization.getUrl(), parentOrganization.getUrl() ) );

        return merged;
    }
View Full Code Here

        if ( mainOrganization == null )
        {
            return ArchivaModelCloner.clone( parentOrganization );
        }

        Organization merged = new Organization();

        merged.setFavicon( merge( mainOrganization.getFavicon(), parentOrganization.getFavicon() ) );
        merged.setOrganizationName( merge( mainOrganization.getOrganizationName(), parentOrganization.getOrganizationName() ) );
        merged.setName( merge( mainOrganization.getName(), parentOrganization.getName() ) );
        merged.setUrl( merge( mainOrganization.getUrl(), parentOrganization.getUrl() ) );

        return merged;
    }
View Full Code Here

        throws XMLException
    {
        Element elemOrg = xml.getElement( "//project/organization" );
        if ( elemOrg != null )
        {
            Organization org = new Organization();

            org.setName( elemOrg.elementTextTrim( "name" ) );
            org.setUrl( elemOrg.elementTextTrim( "url" ) );
            // TODO: Handle <logo />

            return org;
        }
View Full Code Here

        throws XMLException
    {
        Element elemOrg = xml.getElement( "//project/organization" );
        if ( elemOrg != null )
        {
            Organization org = new Organization();

            org.setName( elemOrg.elementTextTrim( "name" ) );
            org.setUrl( elemOrg.elementTextTrim( "url" ) );

            return org;
        }

        return null;
View Full Code Here

        model.setCiManagement( ci );
        IssueManagement issue = new IssueManagement();
        issue.setSystem( TEST_ISSUE_SYSTEM );
        issue.setUrl( TEST_ISSUE_URL );
        model.setIssueManagement( issue );
        Organization org = new Organization();
        org.setName( TEST_ORGANIZATION_NAME );
        org.setUrl( TEST_ORGANIZATION_URL );
        model.setOrganization( org );
        License l = new License();
        l.setName( TEST_LICENSE_NAME );
        l.setUrl( TEST_LICENSE_URL );
        model.addLicense( l );
View Full Code Here

        throws XMLException
    {
        Element elemOrg = xml.getElement( "//project/organization" );
        if ( elemOrg != null )
        {
            Organization org = new Organization();

            org.setName( elemOrg.elementTextTrim( "name" ) );
            org.setUrl( elemOrg.elementTextTrim( "url" ) );

            return org;
        }

        return null;
View Full Code Here

        throws XMLException
    {
        Element elemOrg = xml.getElement( "//project/organization" );
        if ( elemOrg != null )
        {
            Organization org = new Organization();

            org.setName( elemOrg.elementTextTrim( "name" ) );
            org.setUrl( elemOrg.elementTextTrim( "url" ) );
            // TODO: Handle <logo />

            return org;
        }
View Full Code Here

        if ( mainOrganization == null )
        {
            return ArchivaModelCloner.clone( parentOrganization );
        }

        Organization merged = new Organization();

        merged.setFavicon( merge( mainOrganization.getFavicon(), parentOrganization.getFavicon() ) );
        merged.setName( merge( mainOrganization.getName(), parentOrganization.getName() ) );
        merged.setUrl( merge( mainOrganization.getUrl(), parentOrganization.getUrl() ) );

        return merged;
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.model.Organization

Copyright © 2018 www.massapicom. 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.