Examples of ProfileDTO


Examples of io.fabric8.api.jmx.ProfileDTO

    }

    @GET
    public ProfileDTO details() {
        String overlay = profile.isOverlay() ? null : getLink("overlay");
        return new ProfileDTO(profile, getLink("containers"), overlay, getLink("requirements"), getLink("fileNames"));
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.ProfileDTO

    @Rollback(true)
    // if false, database is full after test launch
    public void testSaveProfile() throws Exception {
        authenticationService.login(ADMIN_EMAIL, ADMIN_PWD);

        ProfileDTO dto = new ProfileDTO();
        dto.setName("baby");
        dto.setAdministrator(false);
        dto.setLicensesConsultation(false);
        dto.setLicensesEdition(false);
        dto.setProgramsConsultation(false);
        Long id = adminCRUDService.saveProfile(dto);
        assertNotNull(id);
        assertTrue(id >= 0);
        dto.setId(id);
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.ProfileDTO

     *            The UzerProfile containing a Uzer and a Profile.
     * @param path
     *            The path.
     */
    public UzerProfileDTO(UzerProfile uzerProfile, DTOPath path) {
        setProfile(new ProfileDTO(uzerProfile.getProfile(), path));
        if (uzerProfile.getUzer() != null) {
            setUzer(new UzerDTO(uzerProfile.getUzer(), path));
        }
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.ProfileDTO

    @DatabaseSetup(value = DATASET_SERVICE_ADMIN_DOCUMENT_X1)
    @DatabaseTearDown(value = DATASET_SERVICE_ADMIN_DOCUMENT_X1_UPDATEDOWNER, type = DatabaseOperation.DELETE)
    public void testUpdateOwnerViaUpdate() throws Exception {
        List<DocumentDTO> documents = documentService.findAllByName("document 1");
        DocumentDTO document;
        ProfileDTO profile = new ProfileDTO();
        UzerDTO uzer = new UzerDTO();

        profile.setId(1L);
        uzer.setId(1L);
        assertNotNull(documents);
        assertSame(1, documents.size());
        document = documents.get(0);
        assertNotNull(document);
        assertNotNull(documents);
        assertSame(1, documents.size());
        document = documents.get(0);
        assertNotNull(document);
        profile.setAdministrator(true);
        profile.setLicensesConsultation(true);
        profile.setLicensesEdition(true);
        profile.setProgramsConsultation(true);
        profile.setProgramsEdition(true);
        profile.setName("Ahdmin");
        uzer.setProfile(profile);
        uzer.setEmail("a@a.a");
        uzer.setFirstname("ah");
        uzer.setName("Ah!");
        uzer.setPassword("a");
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.ProfileDTO

    @DatabaseSetup(value = DATASET_SERVICE_ADMIN_DOCUMENT_X1)
    @DatabaseTearDown(value = DATASET_SERVICE_ADMIN_DOCUMENT_X1_UPDATED, type = DatabaseOperation.DELETE)
    public void testUpdate() throws Exception {
        List<DocumentDTO> documents = documentService.findAllByName("document 1");
        DocumentDTO document;
        ProfileDTO profile = new ProfileDTO();
        UzerDTO uzer = new UzerDTO();

        profile.setId(1L);
        uzer.setId(1L);
        assertNotNull(documents);
        assertSame(1, documents.size());
        document = documents.get(0);
        assertNotNull(document);
        profile.setAdministrator(true);
        profile.setLicensesConsultation(true);
        profile.setLicensesEdition(true);
        profile.setProgramsConsultation(true);
        profile.setProgramsEdition(true);
        profile.setName("Ahdmin");
        uzer.setProfile(profile);
        uzer.setEmail("a@a.a");
        uzer.setFirstname("ah");
        uzer.setName("Ah!");
        uzer.setPassword("a");
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.ProfileDTO

    @Test
    @DatabaseSetup(value = DATASET_SERVICE_ADMIN_EMPTY)
    @DatabaseTearDown(value = DATASET_SERVICE_ADMIN_DSP5_X1, type = DatabaseOperation.DELETE)
    public void testSaveDocument() throws Exception {
        DocumentDTO document = new DocumentDTO();
        ProfileDTO profile = new ProfileDTO();
        UzerDTO owner = new UzerDTO();

        profile.setId(1L);
        owner.setId(1L);
        profile.setAdministrator(true);
        profile.setLicensesConsultation(true);
        profile.setLicensesEdition(true);
        profile.setProgramsConsultation(true);
        profile.setProgramsEdition(true);
        profile.setName("Ahdmin");
        owner.setEmail("a@a.a");
        owner.setPassword("a");
        owner.setFirstname("ah");
        owner.setName("Ah!");
        owner.setPhone("0123456789");
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.ProfileDTO

        }
    }

    @Override
    public ProfileDTO loadProfile(Long id) throws Exception {
        return new ProfileDTO(profileDAO.find(id), DTOPath.NOTHING_TO_SAY);
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.ProfileDTO

     */
    public List<ProfileDTO> refreshProfileSimpleList() throws Exception {
        List<Profile> profiles = profileDAO.findAll();
        List<ProfileDTO> dtos = new ArrayList<ProfileDTO>();
        for (Profile p : profiles) {
            dtos.add(new ProfileDTO(p, DTOPath.PROFILE_NAME));
        }
        return dtos;
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "getProfiles(java.lang.String)", versionId);
            J4pExecResponse response = getJolokiaClient().execute(request);
            List<Map<String, Object>> values = response.getValue();
            for (Map<String, Object> value : values) {
              ProfileDTO p = new ProfileDTO(fabricFacade, value);
              if (p.isHidden()) {
                continue; // don't return hidden profiles
              }
              profiles.add(p);
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

  /* (non-Javadoc)
   * @see org.fusesource.ide.fabric8.core.connector.Fabric8ConnectorType#getProfile(java.lang.String, java.lang.String)
   */
  @Override
  public ProfileDTO getProfile(String versionId, String profileId) {
    ProfileDTO profile = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "getProfile(java.lang.String, java.lang.String)", versionId, profileId);
            J4pExecResponse response = getJolokiaClient().execute(request);
            Map<String, Object> values = response.getValue();
            profile = new ProfileDTO(this.fabricFacade, values);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to fetch profile with id '" + profileId + "' and version id '" + versionId + "'.", e);
        }
      return profile;
  }
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.