Examples of Profile


Examples of org.eclipse.uml2.uml.Profile

   */
  private static Boolean isProfileApplied(Package currentPackage, String profileQualifiedName) {
    final EList<Profile> allProfiles = currentPackage.getAllAppliedProfiles();
    final Iterator<Profile> it = allProfiles.iterator();
    while (it.hasNext()) {
      Profile cur = it.next();
      if (profileQualifiedName.equalsIgnoreCase(cur.getQualifiedName()))
        return true;
    }
    return false;
  }
View Full Code Here

Examples of org.encuestame.utils.enums.Profile

    /**
     * Test profile enum.
     */
    @Test
    public void testProfile(){
        final Profile emailOpt = Profile.findProfile("EMAIL");
        assertEquals("Should be equals", "email", emailOpt.toString());

        final Profile usernameOpt = Profile.findProfile("USERNAME");
        assertEquals("Should be equals", "username", usernameOpt.toString());

        final Profile languageOpt = Profile.findProfile("LANGUAGE");
        assertEquals("Should be equals", "language", languageOpt.toString());

        final Profile pictureOpt = Profile.findProfile("PICTURE");
        assertEquals("Should be equals", "picture", pictureOpt.toString());

        final Profile privateOpt = Profile.findProfile("PRIVATE");
        assertEquals("Should be equals", "private", privateOpt.toString());

        final Profile realNameOpt = Profile.findProfile("REAL_NAME");
        assertEquals("Should be equals", "completeName", realNameOpt.toString());
    }
View Full Code Here

Examples of org.fao.geonet.domain.Profile

                  : settingMan.get("harvesting/id:"+id, -1);
    if (result == null) {
            return null;
        }

        Profile profile = context.getUserSession().getProfile();
    if (id != null) {
            // you're an Administrator
            if (profile == Profile.Administrator) {
          result = transform(result);
          addInfo(result);
View Full Code Here

Examples of org.jboss.forge.classloader.mock.collections.Profile

      Object delegate = foreignProfileType.newInstance();
      ProfileFactory factory = (ProfileFactory) ClassLoaderAdapterBuilder.callingLoader(thisLoader)
               .delegateLoader(dep1Loader).whitelist(Sets.toSet(Arrays.asList(dep1Loader, dep2Loader)))
               .enhance(delegate);

      Profile profile = factory.createProfile();

      ProfileManager manager = factory.createProfileManager();

      manager.setProfileListCallGet(Arrays.asList(profile));
   }
View Full Code Here

Examples of org.jboss.profileservice.spi.Profile

    */
   public String[] listDeployedURLs() {
      final Collection<String> names = new HashSet<String>();
      for(final ProfileKey key : actionController.getActiveProfiles()) {
        final ManagedProfile managed = actionController.getManagedProfile(key);
        final Profile profile = managed.getProfile();
        final Set<String> deploymentNames = profile.getDeploymentNames();
        if(deploymentNames != null && deploymentNames.isEmpty() == false) {
          names.addAll(deploymentNames)
        }
      }
      return names.toArray(new String[names.size()]);
View Full Code Here

Examples of org.jbox2d.dynamics.Profile

          Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;


      statsList.clear();
      Profile p = getWorld().getProfile();
      p.toDebugStrings(statsList);

      for (String s : statsList) {
        debugDraw.drawString(5, m_textLine, s, Color3f.WHITE);
        m_textLine += TEXT_LINE_SPACE;
      }
View Full Code Here

Examples of org.jclouds.rackspace.cloudbigdata.v1.domain.Profile

                           .build()))
                           .credentialsUsername("jdoe")
                           .credentialsApiKey("df23gkh34h52gkdgfakgf")
                           .build();

         Profile profile = api.create(createProfile);

         /*
          * Check request
          */
         assertAuthentication(server);
         assertRequest(server.takeRequest(), "POST", "/v1.0/888888/profile", "/profile_create_request.json");

         /*
          * Check response
          */
         assertNotNull(profile);
         assertEquals(profile.getUsername(), "john.doe");
         assertEquals(profile.getUserId(), "12346");
         assertEquals(profile.getTenantId(), "123456");
         assertEquals(profile.getSSHKeys().get(0).getName(), "t@test");
         assertEquals(profile.getSSHKeys().get(0).getPublicKey(), "ssh-rsa .....");
         assertEquals(profile.getCredentialsUsername(), "jdoe");
         assertNull(profile.getCredentialsApiKey());
         assertEquals(profile.getLinks().get(0).getHref(), new URI("https://dfw.bigdata.api.rackspacecloud.com/v1.0/123456/profile"));
      } finally {
         server.shutdown();
      }
   }
View Full Code Here

Examples of org.jruby.Profile

        ScriptingContainer instance = new ScriptingContainer(LocalContextScope.THREADSAFE);
        instance.setError(pstream);
        instance.setOutput(pstream);
        instance.setWriter(writer);
        instance.setErrorWriter(writer);
        Profile expResult = Profile.DEFAULT;
        Profile result = instance.getProfile();
        assertEquals(expResult, result);

        instance = null;
    }
View Full Code Here

Examples of org.libreplan.business.users.entities.Profile

    }

    @Test
    @Transactional
    public void testNavigateFromOrderAuthorizationToProfile() {
        Profile profile = createValidProfile();
        profileDAO.save(profile);
        ProfileOrderAuthorization profileOrderAuthorization = createValidProfileOrderAuthorization();
        profileOrderAuthorization.setProfile(profile);
        orderAuthorizationDAO.save(profileOrderAuthorization);
        assertEquals(profile.getId(), profileOrderAuthorization.getProfile().getId());
    }
View Full Code Here

Examples of org.milyn.profile.Profile

        }
        return 1;
      } else {
        // Is the "expressionToken" referencing the base profile, a sub-profile,
        // or is it a wildcard token.
        Profile profile = profileSet.getProfile(expressionToken);

        if(profileSet.getBaseProfile().equalsIgnoreCase(expressionToken)) {
          return 100;
        } else if(profile != null) {
          // If it's a HTTP "Accept" header media profile, multiple
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.