Examples of TBPermission


Examples of org.cipres.treebase.domain.admin.UserRole.TBPermission

    arowsegment = getRowSegmentService().resurrect(arowsegment);

    Matrix amatrix = arowsegment.getMatrixRow().getMatrix();
    Long submissionId = getSubmissionHome().findByMatrix(amatrix).getId();

    TBPermission perm2 = getSubmissionService().getPermission(username, submissionId);

    if (perm2 == TBPermission.WRITE) {
      getRowSegmentService().deleteRowSegment(
        getRowSegmentService().findByID(arowsegment.getId()));
    } else {
View Full Code Here

Examples of org.cipres.treebase.domain.admin.UserRole.TBPermission

    String username = request.getRemoteUser();

    Long submissionId = getSubmissionHome().findByMatrix(amatrix).getId();

    TBPermission perm2 = getSubmissionService().getPermission(username, submissionId);

    if (perm2 == TBPermission.WRITE) {
      getMatrixService().deleteMatrix(amatrix);
    } else {
View Full Code Here

Examples of org.cipres.treebase.domain.admin.UserRole.TBPermission

      study = mStudyService.findBySubmissionID(Long.parseLong(submission_id));
    }

    if (!TreebaseUtil.isEmpty(submission_id)) {

      TBPermission perm2 = getSubmissionService().getPermission(
        username,
        Long.parseLong(submission_id));
      if (perm2 == TBPermission.WRITE || perm2 == TBPermission.READ_ONLY
        || perm2 == TBPermission.SUBMITTED_WRITE) {
        LOGGER.info("setAuthorizationChecked(true)");
View Full Code Here

Examples of org.cipres.treebase.domain.admin.UserRole.TBPermission

        if (LOGGER.isDebugEnabled()) {
          LOGGER.debug("IN DELETEATREEBLOCKCONTROLLER-SORRY NO SUBMISSION ID--!!!!!!!!");
        }
        return null;
      }
      TBPermission perm2 = getSubmissionService().getPermission(username, submission_id);

      if (perm2 == TBPermission.WRITE) {
        getPhyloTreeHome().deleteTreeBlock(atreeblock);
      } else {
        if (LOGGER.isDebugEnabled()) {
View Full Code Here

Examples of org.cipres.treebase.domain.admin.UserRole.TBPermission

    if (request.getParameter("treeid") != null) {

      Long submission_id = getSubmissionHome().findByTree(atree).getId();

      TBPermission perm2 = getSubmissionService().getPermission(username, submission_id);

      if (perm2 == TBPermission.WRITE) {
        getPhyloTreeService().deletePhyloTree(atree);
      } else {
        return setAttributeAndShowForm(
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.