Examples of Organization


Examples of org.jboss.as.test.integration.jpa.hibernate.envers.Organization

    @InSequence(1)
    public void testEnversforValidityStrategy() throws Exception {

        SLSBValidityStrategyOrg slsbvalidityOrg = lookup("SLSBValidityStrategyOrg", SLSBValidityStrategyOrg.class);

        Organization o1 = slsbvalidityOrg.createOrg("REDHAT", "Software Co", "10/10/1994", "eternity", "Raleigh");
        Organization o2 = slsbvalidityOrg.createOrg("HALDIRAMS", "Food Co", "10/10/1974", "eternity", "Delhi");
        o2.setStartDate("10/10/1924");
        o2.setName("BIKANER");

        slsbvalidityOrg.updateOrg(o2);

        Organization ret1 = slsbvalidityOrg.retrieveOldOrgbyId(o2.getId());
        // check that property startDate is audited
        Assert.assertEquals("10/10/1974", ret1.getStartDate());
        Assert.assertEquals("HALDIRAMS", ret1.getName());
        // check that property location is notaudited
        Assert.assertNull(ret1.getLocation());

    }
View Full Code Here

Examples of org.joget.directory.model.Organization

    }

    public Boolean assignUserToOrganization(String userId, String organizationId) {
        try {
            User user = userDao.getUserById(userId);
            Organization organization = organizationDao.getOrganization(organizationId);

            //get only 1st employment
            if (user != null && user.getEmployments() != null && user.getEmployments().size() > 0 && organization != null) {
                Employment employment = (Employment) user.getEmployments().iterator().next();
                if (!organization.getId().equals(employment.getOrganizationId())) {
                    if (employment.getHods() != null && !employment.getHods().isEmpty() && employment.getDepartment() != null) {
                        Department orgDepartment = employment.getDepartment();
                        orgDepartment.setHod(null);
                        departmentDao.updateDepartment(orgDepartment);
                    }
                   
                    employment.setOrganizationId(organization.getId());
                    employment.setDepartmentId(null);
                    employment.setGradeId(null);
                    employment.getHods().clear();
                    saveOrUpdate("Employment", employment);
                }
View Full Code Here

Examples of org.openbravo.model.common.enterprise.Organization

        // Client
        iOrder.setClient(extPos.getClient());

        // Organization
        final Organization syncOrgSel = (Organization) OBDal.getInstance().get(
                "Organization", erp_org);
        iOrder.setOrganization(syncOrgSel);

        // Sales representative
        iOrder.setSalesRepresentative(extPos.getSalesRepresentative());
View Full Code Here

Examples of org.opensaml.saml2.metadata.Organization

    /**
     * {@inheritDoc}
     */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        Organization org = (Organization) xmlObject;

        Attr attribute;
        for (Entry<QName, String> entry : org.getUnknownAttributes().entrySet()) {
            attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), entry.getKey());
            attribute.setValue(entry.getValue());
            domElement.setAttributeNodeNS(attribute);
            if (Configuration.isIDAttribute(entry.getKey()) || org.getUnknownAttributes().isIDAttribute(entry.getKey())) {
                attribute.getOwnerElement().setIdAttributeNode(attribute, true);
            }
        }
    }
View Full Code Here

Examples of org.openspp.dto.Organization

    OrganizationDAOImpl orgDao = (OrganizationDAOImpl)appContext.getBean("OrganizationDAO") ;
    RouteRecordDAOImpl rteRecDao = (RouteRecordDAOImpl)appContext.getBean("RouteRecordDAO") ;
    DestinationGroupDAOImpl dgDao = (DestinationGroupDAOImpl)appContext.getBean("DestinationGroupDAO") ;
   
    // add Registrant rant2 ;
    Organization org = new Organization() ;
    org.setOrganizationName("rgtest1") ;
    orgDao.createOrganization(org) ;
   
    // Add routerecord rr2
    NAPTR rec = new NAPTR() ;
    rec.setOrganizationName("rgtest1") ;
View Full Code Here

Examples of org.owasp.dependencycheck.jaxb.pom.generated.Organization

        if (addAsIdentifier) {
            dependency.addIdentifier("maven", String.format("%s:%s:%s", originalGroupID, originalArtifactID, version), null, Confidence.LOW);
        }

        // org name
        final Organization org = pom.getOrganization();
        if (org != null && org.getName() != null) {
            foundSomething = true;
            final String orgName = interpolateString(org.getName(), pomProperties);
            if (orgName != null && !orgName.isEmpty()) {
                dependency.getVendorEvidence().addEvidence("pom", "organization name", orgName, Confidence.HIGH);
                addMatchingValues(classes, orgName, dependency.getVendorEvidence());
            }
        }
View Full Code Here

Examples of ru.portnyagin.helpdeskru.model.Organization

    public Object getAsObject(FacesContext context, UIComponent component, String value) {
        if (value == null || value.length() == 0){
            return null;
        }

        Organization structPodr = organizationService.find(Long.valueOf(value));

        if (structPodr == null) {
            throw new ConverterException(new FacesMessage("Unknown Organization ID: " + value));
        }
View Full Code Here

Examples of scrumdo.model.Organization

        List<Organization> organizations = api.getOrganizations();

        System.out.println("found = " + organizations.size());

        Organization ours = organizations.get(0);

        System.out.println("found.2 = " + ours);
        System.out.println("found.2 = " + ours.id);
        System.out.println("found.2 = " + ours.resource_uri);
View Full Code Here

Examples of zendeskapi.models.organizations.Organization

  @Test
  public void testGetOrganisations() throws Exception {
    List<Organization> organizations = API.getOrganizations().getOrganizations().getOrganizations();
    Assert.assertTrue(organizations.size() > 0);
   
    Organization organization = API.getOrganizations().getOrganization(organizations.get(0).getId()).getOrganization();
    Assert.assertTrue(organization.getId() > 0);
  }
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.