Examples of Profile


Examples of org.omg.ETF.Profile

    public Profile decode_corbaloc (String corbaloc)
    {
        final int colon = corbaloc.indexOf (':');
        final String token = corbaloc.substring (0,colon).toLowerCase();
        final Profile result;

        if (token.length() == 0 ||
            "diop".equals(token))
        {
            result = new IIOPProfile(corbaloc);
View Full Code Here

Examples of org.onesocialweb.model.vcard4.Profile

        result.setError(PacketError.Condition.bad_request);
        return result;
      }
     
      // We fetch the profile of the target user
      Profile profile = ProfileManager.getInstance().getProfile(sender.toBareJID(), target.toBareJID());
     
      // Prepare the result packet
      VCard4DomWriter writer = new DefaultVCard4DomWriter();
      DOMDocument domDocument = new DOMDocument();
      IQ result = IQ.createResultIQ(packet);
View Full Code Here

Examples of org.openhab.binding.enocean.internal.profiles.Profile

        EnoceanParameterAddress parameterAddress = enoceanBindingProvider.getParameterAddress(itemName);
        EEPId eep = enoceanBindingProvider.getEEP(itemName);
        esp3Host.addDeviceProfile(parameterAddress.getEnoceanDeviceId(), eep);
        Item item = enoceanBindingProvider.getItem(itemName);
        if (profiles.containsKey(parameterAddress.getAsString())) {
            Profile profile = profiles.get(parameterAddress.getAsString());
            profile.removeItem(item);
        }
        Class<Profile> customProfileClass = enoceanBindingProvider.getCustomProfile(itemName);
        if (customProfileClass != null) {
            Constructor<Profile> constructor;
            Profile profile;
            try {
                constructor = customProfileClass.getConstructor(Item.class, EventPublisher.class);
                profile = constructor.newInstance(item, eventPublisher);
                addProfile(item, parameterAddress, profile);
            } catch (Exception e) {
View Full Code Here

Examples of org.osforce.connect.entity.profile.Profile

  }
 
  @RequestMapping("/detail-view")
  @Permission({"profile-view"})
  public String doDetailView(@RequestAttr Project project, Model model) {
    Profile profile = project.getProfile();
    model.addAttribute(AttributeKeys.PROFILE_KEY_READABLE, profile);
    return "profile/profile-detail";
  }
View Full Code Here

Examples of org.sonar.wsclient.services.Profile

    " pages: " + issues.paging().pages() + " max results reached: " + issues.maxResultsReached());
  }

  private static void testGetProfile() {
    SonarServer sonarServer = SonarServer.create("https://sonar.corp.mobile.de/sonar");
    final Profile profile = sonarServer.getProfile("java", "mobile_relaxed");
    System.out.println("rules count: " + profile.getRules().size());
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.account.Profile

   * @param participant participant to add.
   * @param parentUrl parent URL to prepend to the image URL without host.
   */
  public void addParticipant(ParticipantId participant, String parentUrl,
      ProfileManager profileManger) {
    Profile profile = profileManger.getProfile(participant);
    String imageUrl = "";
    String fullName = participant.getAddress();
    if (profile != null) {
      imageUrl = profile.getImageUrl();
      if (!(imageUrl.startsWith("http://") || imageUrl.startsWith("https://") ||
          imageUrl.startsWith("//"))) {
        imageUrl = parentUrl + imageUrl;
      }
    }
View Full Code Here

Examples of qurtext.domain.Profile

  @SuppressWarnings("unchecked")
  public Profile getProfile(String email) {
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      String query = "select from " + Profile.class.getName() + " where email=='" + email + "'";
      Profile result = ((Collection<Profile>) pm.newQuery(query)
          .execute()).iterator().next();
      return result;
    } catch (NoSuchElementException e) {
      Profile result=new Profile(email);
      pm.makePersistent(result);
      return result;
    } finally {
      pm.close();
    }
View Full Code Here

Examples of ru.org.linux.user.Profile

  private LastMiniNewsDao lastMiniNewsDao;

  @Override
  @RequestMapping("/lastMiniNews.boxlet")
  protected ModelAndView getData(HttpServletRequest request) {
    Profile profile = Template.getTemplate(request).getProf();

    Map<String, Object> params = new HashMap<>();
    params.put("topics", lastMiniNewsDao.getTopics(profile.getMessages()));

    return new ModelAndView("boxlets/lastMiniNews", params);
  }
View Full Code Here

Examples of siia.business.Profile

    private PollableChannel output;

    @Test
    public void verifyTransformation() {
        Passenger payload = new Passenger();
        Profile profile = new Profile();
        profile.setEmailAddress(EMAIL_ADDRESS);
        payload.addProfile(profile);
        Message<Passenger> passengerToTransform = MessageBuilder.withPayload(payload).build();
        input.send(passengerToTransform);
        Message<Passenger> transformedPassenger = (Message<Passenger>) output.receive(0);
        assertEquals(transformedPassenger.getHeaders().get(MailHeaders.TO), EMAIL_ADDRESS);
View Full Code Here

Examples of test.utils.json.Profile

  }
 
  @Test
  public void test12() {
    String json = "{\"totalreadtime\":5,\"notecount\":27,\"timeintervalreadtime\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,4,0,0,0,0,0,0,0],\"bookcollect\":0,\"screenshotshare\":0,\"readbooktype\":{\"测试\":1,\"测试一下\":23},\"bookshare\":0,\"readbookcount\":0,\"noteshare\":0}";
    Profile p = Json.toObject(json, Profile.class);
    Assert.assertThat(p.getTotalreadtime(), is(5));
    Assert.assertThat(p.getNotecount(), is(27));
    Assert.assertThat(p.getTimeintervalreadtime().length, is(24));
    Assert.assertThat(p.getTimeintervalreadtime()[16], is(4));
    Assert.assertThat(p.getReadbooktype().get("测试一下"), is(23));
  }
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.