Examples of Permissions


Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.Permissions

        T result = caseParam(param);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.PERMISSIONS: {
        Permissions permissions = (Permissions)theEObject;
        T result = casePermissions(permissions);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.TEMPLATE: {
View Full Code Here

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

    testError(MyPermissionsInput.withProject("NONEXISTINGPROJECT"), 404);
  }

  private void testWorkIssuePermission(MyPermissionsInput permissionsInput, boolean expectedPermission) {
    // when
    final Permissions permissions = client.getMyPermissionsRestClient().getMyPermissions(permissionsInput).claim();

    // then
    assertThat("Context " + permissionsInput, permissions.havePermission(Permissions.WORK_ISSUE), is(expectedPermission));
  }
View Full Code Here

Examples of com.baasbox.enumerations.Permissions

      }
      Iterator<Entry<String, JsonNode>> itAction = aclJson.fields(); //read,update,delete
      while (itAction.hasNext()){
        Entry<String, JsonNode> nextAction = itAction.next();
        String action = nextAction.getKey();
        Permissions actionPermission = null;
        if (action.equalsIgnoreCase("read"))
          actionPermission=Permissions.ALLOW_READ;
        else if (action.equalsIgnoreCase("update"))
          actionPermission=Permissions.ALLOW_UPDATE;
        else if (action.equalsIgnoreCase("delete"))
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.Permissions

  public void testGetId() throws RepositoryException {
    assertEquals("{" + TestConnection.docId1 + "}", fd.get_Id().toString());
  }

  public void testGetPermissions() throws RepositoryException {
    Permissions perms = new Permissions(fd.get_Permissions());
    assertNotNull(perms);
    boolean authorized = perms.authorize(MockUtil.createAdministratorUser());
    assertTrue("User is not authorized", authorized);
  }
View Full Code Here

Examples of com.google.walkaround.wave.server.conv.PermissionCache.Permissions

    this.permissionCache = permissionCache;
  }

  @Override
  public void checkCanRead(SlobId id) throws AccessDeniedException {
    Permissions perms = getPerms(id);
    if (!perms.canRead()) {
      throw new AccessDeniedException("No read access to " + id + ": " + perms);
    }
  }
View Full Code Here

Examples of com.log4ic.enums.Permissions

            }


            int docId = Integer.parseInt(id);
            LOGGER.info("获取文档权限...");
            Permissions permissions = DocViewer.getAttachmentService().getDocPermissionsById(docId, request);
            LOGGER.info("文档权限:" + permissions);
            if (permissions.equals(Permissions.NONE)) {
                //response.setStatus(404);
                LOGGER.info("无权查看该文档!");
                return;
            }

            response.setContentType("application/json");
            response.setStatus(202);
            response.setHeader("Keep-Alive", "600");
            response.flushBuffer();
            writer = response.getWriter();

            writer.flush();

            LOGGER.info("获取文档页数...");
            int pageCount = DocViewer.getDocPageCount(docId);
            if (pageCount == 0) {
                response.setStatus(404);
                LOGGER.info("空白文档!");
                return;
            }
            LOGGER.info("文档页数:" + pageCount + "页.");
            String docUri;
            String url = "/docviewer?doc=";
            if (!DocViewer.isSplitPage()) {
                docUri = request.getContextPath() + url + id;
            } else {
                docUri = request.getContextPath() + url + id + "-{[*,0]," + pageCount + "}";
            }
            LOGGER.info("回传文档信息...");
            if (DocViewer.isEncryption()) {
                String secretKey = DocViewer.getCurrentSecretKey();
                request.getSession().setAttribute("secretKey", secretKey);
                writer.write("{\"uri\":\"" + docUri + "\",\"key\":\"" + secretKey + "\",\"permissions\":" + permissions.ordinal() + "}");
            } else {
                writer.write("{\"uri\":\"" + docUri + "\",\"permissions\":" + permissions.ordinal() + "}");
            }
        } catch (Exception e) {
            LOGGER.error(e);
            response.setStatus(404);
        } finally {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.protocol.primitives.Permissions

                    item.Flags = descItem.get("flags").asLong();

                    OSDMap perms = (OSDMap)descItem.get("permissions");
                    item.CreatorID = perms.get("creator_id").asUUID();
                    item.LastOwnerID = perms.get("last_owner_id").asUUID();
                    item.Permissions = new Permissions(perms.get("base_mask").asLong(), perms.get("everyone_mask").asLong(), perms.get("group_mask").asLong(), perms.get("next_owner_mask").asLong(), perms.get("owner_mask").asLong());
                    item.GroupOwned = perms.get("is_owner_group").asBoolean();
                    item.GroupID = perms.get("group_id").asUUID();

                    OSDMap sale = (OSDMap)descItem.get("sale_info");
                    item.SalePrice = sale.get("sale_price").asInteger();
View Full Code Here

Examples of com.nijikokun.bukkit.Permissions.Permissions

      throws FileNotFoundException {
    this.server = server;
   
    PluginManager pm = server.getPluginManager();

    Permissions perms;   
   
    try {
      perms = (Permissions)pm.getPlugin("Permissions");
      if (perms == null) {
        throw new FileNotFoundException("Permissions plugin doesn't " +
            "exist on this server. Please make sure Permissions " +
            "exists in the plugins directory");
      }
        // make sure Permissions gets enabled first
        if(!perms.isEnabled())
          server.getPluginManager().enablePlugin(perms);
    }
    catch (ClassCastException e) {
      throw new FileNotFoundException("Permisisons plugins isn't type " +
          "com.nijikokun.bukkit.Permissions.Permissions");
    }
   
    handler = perms.getHandler();
    source = new WritableConfiguration(new File(perms.getDataFolder(),
        FILENAME));
   
    reloadSource();
  }
View Full Code Here

Examples of cu.ftpd.filesystem.permissions.Permissions

        // check the time of last load
        // if the modification time of the file is later than that, load the new file.
        // else just skip
        File permissionFile = new File(settings.getDataDirectory(), "permissions.acl");
        if (permissions == null || permissionFile.lastModified() > permissions.getLoadTime()) {
            permissions = new Permissions(permissionFile);
        }
    }
View Full Code Here

Examples of java.security.Permissions

  /* (non-Javadoc)
   * @see java.security.Policy#getPermissions(java.security.CodeSource)
   */
  @Override
  public PermissionCollection getPermissions(CodeSource codeSource) {
    PermissionCollection result = new Permissions();
    return result;
  }
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.