Search in sources :

Example 11 with RegistryObjectListType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.

the class RegistryPackageTypeHelperTest method testGetPersonsFromRegistryObjectList.

@Test
public void testGetPersonsFromRegistryObjectList() throws Exception {
    RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
    List<PersonType> persons = rptHelper.getPersons(registryObjectList);
    assertPersons(persons);
}
Also used : RegistryObjectListType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType) RegistryPackageType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType) PersonType(oasis.names.tc.ebxml_regrep.xsd.rim._3.PersonType) Test(org.junit.Test)

Example 12 with RegistryObjectListType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.

the class RegistryPackageTypeHelperTest method testGetBindingTypesFromRegistryObjectList.

@Test
public void testGetBindingTypesFromRegistryObjectList() throws Exception {
    RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
    List<ServiceBindingType> bindings = rptHelper.getBindingTypes(registryObjectList);
    assertBindings(bindings);
}
Also used : RegistryObjectListType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType) ServiceBindingType(oasis.names.tc.ebxml_regrep.xsd.rim._3.ServiceBindingType) RegistryPackageType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType) Test(org.junit.Test)

Example 13 with RegistryObjectListType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.

the class RegistryPackageTypeHelperTest method testGetAssociationsFromRegistryObjectList.

@Test
public void testGetAssociationsFromRegistryObjectList() throws Exception {
    RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
    List<AssociationType1> associations = rptHelper.getAssociations(registryObjectList);
    assertAssociations(associations);
}
Also used : RegistryObjectListType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType) RegistryPackageType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType) AssociationType1(oasis.names.tc.ebxml_regrep.xsd.rim._3.AssociationType1) Test(org.junit.Test)

Example 14 with RegistryObjectListType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.

the class RegistryPackageTypeHelperTest method testGetOrganizationsFromRegistryObjectList.

@Test
public void testGetOrganizationsFromRegistryObjectList() throws Exception {
    RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
    List<OrganizationType> organizations = rptHelper.getOrganizations(registryObjectList);
    assertOrganizations(organizations);
}
Also used : RegistryObjectListType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType) RegistryPackageType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType) OrganizationType(oasis.names.tc.ebxml_regrep.xsd.rim._3.OrganizationType) Test(org.junit.Test)

Example 15 with RegistryObjectListType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.

the class RegistryPackageWebConverterTest method getTestRegistryPackage.

private RegistryPackageType getTestRegistryPackage() {
    RegistryPackageType registryPackage = RIM_FACTORY.createRegistryPackageType();
    registryPackage.setId("urn:uuid:2014ca7f59ac46f495e32b4a67a51276");
    registryPackage.setHome("https://somehost:someport");
    registryPackage.setObjectType("urn:registry:federation:node");
    registryPackage.getExternalIdentifier().add(getFirstExternalIdentifier());
    registryPackage.getExternalIdentifier().add(getSecondExternalIdentifier());
    RegistryObjectListType registryObjectList = RIM_FACTORY.createRegistryObjectListType();
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getFirstExtrinsicObject()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getSecondExtrinsicObject()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getThirdExtrinsicObject()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getFourthExtrinsicObject()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createService(getService()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createOrganization(getFirstOrganization()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createOrganization(getSecondOrganization()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createPerson(getFirstPerson()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createPerson(getSecondPerson()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createPerson(getThirdPerson()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getFirstAssociation()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getSecondAssociation()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getThirdAssociation()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getFourthAssociation()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getFifthAssociation()));
    registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getSixthAssociation()));
    registryPackage.setRegistryObjectList(registryObjectList);
    return registryPackage;
}
Also used : RegistryObjectListType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType) RegistryPackageType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType)

Aggregations

RegistryObjectListType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType)13 RegistryPackageType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType)10 ExtrinsicObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)9 JAXBElement (javax.xml.bind.JAXBElement)6 AssociationType1 (oasis.names.tc.ebxml_regrep.xsd.rim._3.AssociationType1)6 Test (org.junit.Test)6 IdentifiableType (oasis.names.tc.ebxml_regrep.xsd.rim._3.IdentifiableType)5 OrganizationType (oasis.names.tc.ebxml_regrep.xsd.rim._3.OrganizationType)5 PersonType (oasis.names.tc.ebxml_regrep.xsd.rim._3.PersonType)5 ArrayList (java.util.ArrayList)3 RegistryObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectType)3 ServiceType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ServiceType)3 HashMap (java.util.HashMap)2 QName (javax.xml.namespace.QName)2 SubmitObjectsRequest (oasis.names.tc.ebxml_regrep.xsd.lcm._3.SubmitObjectsRequest)2 ClassificationType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ClassificationType)2 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Set (java.util.Set)1 ExternalIdentifierType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExternalIdentifierType)1