Examples of Project


Examples of com.art.anette.datamodel.dataobjects.managed.Project

                projects.addAll(d.getProjects());
            }

            if (importMode) {
                for (Iterator<Project> it = projects.iterator(); it.hasNext();) {
                    Project p = it.next();
                    if (!user.isAllowedToDelete(p)) {
                        it.remove();
                    }
                }
            }
View Full Code Here

Examples of com.atlassian.jira.project.Project

    public boolean matches(User user) {
      if (myProjectId == 0 || myRoleId == 0) {
        return false;
      }
      ProjectManager pm = ComponentAccessor.getProjectManager();
      Project project = pm.getProjectObj(myProjectId);
      if (project == null) {
        return false;
      }
      ProjectRoleManager rm = ComponentAccessor.getComponentOfType(ProjectRoleManager.class);
      com.atlassian.jira.security.roles.ProjectRole role = rm.getProjectRole(myRoleId);
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Project

  public final ExpectedException exception = ExpectedException.none();

  @JiraBuildNumberDependent(ServerVersionConstants.BN_JIRA_4_4)
  @Test
  public void testGetProjectRoleWithRoleKeyFromAnonymousProject() {
    final Project anonProject = client.getProjectClient().getProject(ANONYMOUS_PROJECT_KEY).claim();
    final ProjectRole role = client.getProjectRolesRestClient().getRole(anonProject.getSelf(), 10000l).claim();
    assertNotNull(role);
    assertEquals("Users", role.getName());
    assertEquals("A project role that represents users in a project", role.getDescription());
    final RoleActor actor = Iterables.getOnlyElement(role.getActors());
    assertEquals("jira-users", actor.getDisplayName());
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Project

    final Collection<Version> versions = JsonParseUtil.parseJsonArray(json.getJSONArray("versions"), versionJsonParser);
    final Collection<BasicComponent> components = JsonParseUtil.parseJsonArray(json.getJSONArray("components"), componentJsonParser);
    final JSONArray issueTypesArray = json.optJSONArray("issueTypes");
    final OptionalIterable<IssueType> issueTypes = JsonParseUtil.parseOptionalJsonArray(issueTypesArray, issueTypeJsonParser);
    final Collection<BasicProjectRole> projectRoles = basicProjectRoleJsonParser.parse(JsonParseUtil.getOptionalJsonObject(json, "roles"));
    return new Project(self, key, name, id, description, lead, uri, versions, components, issueTypes, projectRoles);
  }
View Full Code Here

Examples of com.cburch.logisim.proj.Project

    }
  }

  private void doPrintFile(File file) {
    if (initialized) {
      Project toPrint = ProjectActions.doOpen(null, null, file);
      Print.doPrint(toPrint);
      toPrint.getFrame().dispose();
    } else {
      filesToPrint.add(file);
    }
  }
View Full Code Here

Examples of com.cloud.projects.Project

        if (projectId != null) {
            if (projectId == -1) {
                permittedAccounts.addAll(_projectMgr.listPermittedProjectAccounts(caller.getId()));
            } else {
                permittedAccounts.clear();
                Project project = _projectMgr.getProject(projectId);
                if (project == null) {                   
                    throw new InvalidParameterValueException("Unable to find project by specified id");
                }
                if (!_projectMgr.canAccessProjectAccount(caller, project.getProjectAccountId())) {
                    // getProject() returns type ProjectVO.
                    InvalidParameterValueException ex = new InvalidParameterValueException("Account " + caller + " cannot access specified project id");
                    ex.addProxyObject(project, projectId, "projectId");                   
                    throw ex;
                }
                permittedAccounts.add(project.getProjectAccountId());
            }
            skipProjectNetworks = false;
        }

        if (domainId != null) {
View Full Code Here

Examples of com.consol.citrus.admin.model.Project

        if (!validateProjectHome(projectHomeDir)) {
            throw new CitrusAdminRuntimeException("Invalid project home - not a proper Citrus project");
        }

        System.setProperty(PropertyConstants.PROJECT_HOME, projectHomeDir);
        project = new Project(projectHomeDir);
        project.setup();

        project.setTestCount(testCaseService.getTestCount(project));
    }
View Full Code Here

Examples of com.dianping.cat.core.dal.Project

    }

    for (ScheduledReport report : reports) {
      try {
        String domain = report.getDomain();
        Project project = m_projectService.findByDomain(domain);

        if (project == null) {
          project = m_projectService.findByCmdbDomain(domain);
        }

        if (project != null) {
          String cmdbDomain = project.getCmdbDomain();

          if (StringUtils.isNotEmpty(cmdbDomain) && !report.getDomain().equals(cmdbDomain)
                && !m_reports.containsKey(cmdbDomain)) {
            ScheduledReport entity = m_scheduledReportDao.createLocal();
View Full Code Here

Examples of com.din.din.model.entities.Project

    }
  }
 
  public synchronized ProjectWizard getWizard() {
    if(wizard == null) {
      Project project = getProject();
      if(project != null) {
        wizard = new ProjectWizard(project, cache);
      } else {
        wizard = new ProjectWizard(cache);
      }
View Full Code Here

Examples of com.eastidea.qaforum.entity.Project

    return (Long) getId();
  }

  @Override
  protected Project createInstance() {
    Project project = new Project();
    return project;
  }
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.