Search in sources :

Example 1 with ObsProposalEntityT

use of alma.xmljbind.test.obsproposal.ObsProposalEntityT in project ACS by ACS-Community.

the class XmlComponentImpl method createObsProposal.

/**
	 * from IDL: <code>ObsProposal createObsProposal();</code>
	 * 
	 * @see alma.demo.XmlComponentJ#createObsProposal()
	 */
public ObsProposal createObsProposal() {
    ObsProposal obsProp = new ObsProposal();
    try {
        ObsProposalEntityT entity = new ObsProposalEntityT();
        m_containerServices.assignUniqueEntityId(entity);
        obsProp.setObsProposalEntity(entity);
        obsProp.setScientificJustification("peak performance enduring a 24-7-365 schedule.");
    } catch (AcsJContainerServicesEx e) {
        m_logger.log(Level.SEVERE, "failed to create ObsProposal. ", e);
    }
    return obsProp;
}
Also used : ObsProposalEntityT(alma.xmljbind.test.obsproposal.ObsProposalEntityT) ObsProposal(alma.xmljbind.test.obsproposal.ObsProposal) AcsJContainerServicesEx(alma.JavaContainerError.wrappers.AcsJContainerServicesEx)

Example 2 with ObsProposalEntityT

use of alma.xmljbind.test.obsproposal.ObsProposalEntityT in project ACS by ACS-Community.

the class TestEntityFactory method getObsProposal.

ObsProposal getObsProposal() {
    ObsProposal prop = null;
    prop = new ObsProposal();
    ObsProposalEntityT entity = new ObsProposalEntityT();
    prop.setObsProposalEntity(entity);
    entity.setEntityId("uid://X1230000000000000/X00000002");
    ObsProjectRefT ref = new ObsProjectRefT();
    ref.setEntityId("uid://X1230000000000000/X00000001");
    prop.setObsProjectRef(ref);
    return prop;
}
Also used : ObsProjectRefT(alma.xmljbind.test.obsproject.ObsProjectRefT) ObsProposalEntityT(alma.xmljbind.test.obsproposal.ObsProposalEntityT) ObsProposal(alma.xmljbind.test.obsproposal.ObsProposal)

Aggregations

ObsProposal (alma.xmljbind.test.obsproposal.ObsProposal)2 ObsProposalEntityT (alma.xmljbind.test.obsproposal.ObsProposalEntityT)2 AcsJContainerServicesEx (alma.JavaContainerError.wrappers.AcsJContainerServicesEx)1 ObsProjectRefT (alma.xmljbind.test.obsproject.ObsProjectRefT)1