Package org.sonatype.nexus.component.model

Examples of org.sonatype.nexus.component.model.EntityId.asUniqueString()


    // create component document using source data
    ODocument componentDocument = db.newInstance(new OClassNameBuilder().type(componentClass).build());
    componentAdapter.populateDocument(sourceComponent, componentDocument);

    // amend component document with system-managed data
    componentDocument.field(EntityAdapter.P_ID, componentId.asUniqueString());
    Set<ORID> assets = ImmutableSet.of();
    componentDocument.field(P_ASSETS, assets);

    // store component document
    componentDocument.save();
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.