Examples of Profile


Examples of Utils.Profile

                InputBox inProfile=new InputBox(mwcMain, "Enter the name of this profile:", "The profile name could not be empty!");
                inProfile.setCheckEmpty(true);
                inProfile.setVisible(true);
                if(inProfile.getResult()==null)
                    return;
                Profile prfMain=new Profile(inProfile.getResult());
                inProfile=null;
                FileWriter fwDBWriter;
                if(!fdCreate.getSelectedFile().exists())
                {
                    if((!fdCreate.getSelectedFile().getName().toLowerCase().endsWith(".vcd"))&&(!(new File(fdCreate.getSelectedFile().getName()+".vcd")).exists()))
View Full Code Here

Examples of ar.com.AmberSoft.iEvenTask.backend.entities.Profile

    map.put(ParamsConst.PAGING_LOAD_RESULT, Boolean.TRUE);
    return map;
  }

  private void addPerfil(Collection list, Boolean permiso1, Boolean permiso2) {
    Profile perfil = new Profile();
    perfil.setGroupLDAP("Grupo" + perfil.getId().toString());
    list.add(perfil);
  }
View Full Code Here

Examples of ca.jimr.gae.profiler.MiniProfiler.Profile

  public void testProfileNotStarted()
  {
    Step s = MiniProfiler.step("Test");
    s.close();

    Profile p = MiniProfiler.stop();
    assertNull("No profile should be generated", p);
  }
View Full Code Here

Examples of ca.uhn.fhir.model.dstu.resource.Profile

  public synchronized Profile toProfile() {
    if (myProfileDef != null) {
      return myProfileDef;
    }

    Profile retVal = new Profile();
   
    RuntimeResourceDefinition def = this;

    if (StringUtils.isNotBlank(myId)) {
      retVal.setId(new IdDt(myId));
    }else {
      throw new ConfigurationException("Resource class " + getImplementingClass().getCanonicalName() + " has no ID specified");
    }
   
    // Scan for extensions
    scanForExtensions(retVal, def);
    Collections.sort(retVal.getExtensionDefn(), new Comparator<ExtensionDefn>() {
      @Override
      public int compare(ExtensionDefn theO1, ExtensionDefn theO2) {
        return theO1.getCode().compareTo(theO2.getCode());
      }
    });

    // Scan for children
    retVal.setName(getName());
    Structure struct = retVal.addStructure();
    LinkedList<String> path = new LinkedList<String>();

    StructureElement element = struct.addElement();
    element.getDefinition().setMin(1);
    element.getDefinition().setMax("1");

    fillProfile(struct, element, def, path, null);

    retVal.getStructure().get(0).getElement().get(0).getDefinition().addType().getCode().setValue("Resource");

    myProfileDef = retVal;

    return retVal;
  }
View Full Code Here

Examples of classes.Profile

            }
            else {

                DAO dao = DAO.getInstance();
                /*We find the corresponding user profile*/
                Profile profile = (Profile) dao.get(2, username);

                /*we modify the profile accordingly*/
                profile.setFirstName(firstName);
                profile.setLastName(lastName);
                profile.setEmail(email);
                profile.setPhone(phone);

                if (!street.isEmpty())
                    profile.setStreet(street);
                if (!city.isEmpty())
                    profile.setCity(city);
                if (!department.isEmpty())
                    profile.setDepartment(department);

                /*we overwrite the profile in the database*/
                dao.put(profile);

                request.setAttribute("errorMessage", "<font size=\"3\" "
View Full Code Here

Examples of com.alibaba.sample.petstore.dal.dataobject.Profile

        assertUser(user, true, roles);
    }

    private void assertUser(User user, boolean checkUserId, String... roles) {
        Account account = user.getAccount();
        Profile profile = user.getProfile();

        // user
        if (checkUserId) {
            assertTrue(arrayContains(new String[] { "j2ee", "admin" }, user.getUserId()));
        }

        assertEquals(null, user.getPassword()); // 密码不可查询

        if (isEmptyArray(roles)) {
            assertTrue(isEmptyArray(user.getRoles()));
        } else {
            assertArrayEquals(roles, user.getRoles());
        }

        // account
        assertEquals("yourname@yourdomain.com", account.getEmail());
        assertEquals("ABC", account.getFirstName());
        assertEquals("XYX", account.getLastName());
        assertEquals("OK", account.getStatus());
        assertEquals("901 San Antonio Road", account.getAddress1());
        assertEquals("MS UCUP02-206", account.getAddress2());
        assertEquals("Palo Alto", account.getCity());
        assertEquals("CA", account.getState());
        assertEquals("94303", account.getZip());
        assertEquals("US", account.getCountry());
        assertEquals("555-555-5555", account.getPhone());
        assertEquals("1234567", account.getCreditCardNumber());
        assertEquals("Visa", account.getCreditCardType());
        assertEquals("2005-12-15", new SimpleDateFormat("yyyy-MM-dd").format(account.getCreditCardExpiry()));
        assertEquals(12, account.getCreditCardExpiryMonth());
        assertEquals(2005, account.getCreditCardExpiryYear());

        // profile
        assertEquals("english", profile.getLanguagePreference());
        assertEquals("DOGS", profile.getFavoriteCategoryId());
    }
View Full Code Here

Examples of com.amazonaws.auth.profile.internal.Profile

        public ProfilesConfigFileWriterHelper(Writer writer, Map<String, Profile> modifications) {
            this.writer = writer;

            for (Entry<String, Profile> entry : modifications.entrySet()) {
                String profileName = entry.getKey();
                Profile profile    = entry.getValue();

                if (profile == null) {
                    deletedProfiles.add(profileName);
                } else {
                    newProfiles.put(profileName, profile);
View Full Code Here

Examples of com.google.devrel.training.conference.domain.Profile

        conferenceApi.getProfile(null);
    }

    @Test
    public void testGetProfileFirstTime() throws Exception {
        Profile profile = ofy().load().key(Key.create(Profile.class, user.getUserId())).now();
        assertNull(profile);
        profile = conferenceApi.getProfile(user);
        assertNull(profile);
    }
View Full Code Here

Examples of com.groupon.odo.proxylib.models.Profile

            results = queryStatement.executeQuery();

            while (results.next()) {
                profileId = results.getInt(Constants.GENERIC_PROFILE_ID);

                Profile profile = ProfileService.getInstance().findProfile(profileId);
               
                returnProfiles.add(profile);
            }
        } catch (SQLException e) {
            throw e;
View Full Code Here

Examples of com.groupon.odo.proxylib.models.backup.Profile

    private List<Profile> getProfiles() throws Exception {
        ArrayList<Profile> profiles = new ArrayList<Profile>();

        for (com.groupon.odo.proxylib.models.Profile sourceProfile : ProfileService.getInstance().findAllProfiles()) {
            Profile profile = new Profile();
            profile.setName(sourceProfile.getName());

            // get paths
            profile.setPaths(PathOverrideService.getInstance().getPaths(sourceProfile.getId(), Constants.PROFILE_CLIENT_DEFAULT_ID, null));

            // get default servers
            profile.setServers(ServerRedirectService.getInstance().tableServers(sourceProfile.getId(), 0));

            //get server groups
            profile.setServerGroups(ServerRedirectService.getInstance().tableServerGroups(sourceProfile.getId()));

            // set active
            profile.setActive(ProfileService.getInstance().isActive(sourceProfile.getId()));
            profiles.add(profile);
        }
        return profiles;
    }
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.