Examples of Permission


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

    final Integer id = json.getInt("id");
    final String key = json.getString("key");
    final String name = json.getString("name");
    final String description = json.getString("description");
    final boolean havePermission = json.getBoolean("havePermission");
    return new Permission(id, key, name, description, havePermission);
  }
View Full Code Here

Examples of com.avaje.tests.model.m2m.Permission

    Tenant t = new Tenant();
    t.setName("tenant");

    Ebean.save(t);

    Permission p1 = new Permission();
    Permission p2 = new Permission();

    p1.setName("p1");
    p2.setName("p2");

    Ebean.save(p1);

    Ebean.save(p2);
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.Permission

  }


 
  public static boolean hasCartPerms(SignChangeActionEvent event){
    Permission perm;
    for (char cart : (event.getLine(2) + event.getLine(3)).toCharArray()) {
      perm = minecartPerms.get(Character.toString(cart));
      if (perm.handleMsg(event.getPlayer(), ChatColor.RED + "You do not have permission to create minecarts of this type")){
        continue;
      }
      else{
        return false;
      }
View Full Code Here

Examples of com.cosmo.security.Permission

               "ORDER BY " + TABLE_ROLE_ACTIVITIES + ".actid";

         ResultSet rs = conn.executeSql(sql);
         while (rs.next())
         {
            permissions.add(new Permission(readActivity(rs), true));
         }
      }
      catch (Exception ex)
      {
         throw new AuthorizationException(ex.getMessage(), ex);
View Full Code Here

Examples of com.dotmarketing.beans.Permission

  private static FileAsset saveFile(User user, Host host, java.io.File uploadedFile, String folderPath, String title) throws Exception {

    Folder folder = APILocator.getFolderAPI().findFolderByPath(folderPath, host,APILocator.getUserAPI().getSystemUser(),false);
    if(!InodeUtils.isSet(folder.getInode() )){
      folder = APILocator.getFolderAPI().createFolders(folderPath, host,user,false);
      Permission newPerm = new Permission();
      newPerm.setPermission(perAPI.PERMISSION_PUBLISH);
      newPerm.setRoleId(APILocator.getRoleAPI().loadCMSAnonymousRole().getId());
      newPerm.setInode(folder.getInode());
      perAPI.save(newPerm, folder, APILocator.getUserAPI().getSystemUser(), false);
    }

    byte[] bytes = FileUtil.getBytes(uploadedFile);
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.api.wrapper.Permission

    CChannelClientPermList list = new CChannelClientPermList(channelId,
        clientDBId);
    if (query.doCommand(list)) {
      List<Permission> permissions = new ArrayList<>();
      for (HashMap<String, String> opt : list.getResponse()) {
        permissions.add(new Permission(opt));
      }
      return permissions;
    }
    return null;
  }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter11.entity.Permission

        JdbcTemplateUtils.jdbcTemplate().update("delete from sys_users_roles");
        JdbcTemplateUtils.jdbcTemplate().update("delete from sys_roles_permissions");


        //1、新增权限
        p1 = new Permission("user:create", "用户模块新增", Boolean.TRUE);
        p2 = new Permission("user:update", "用户模块修改", Boolean.TRUE);
        p3 = new Permission("menu:create", "菜单模块新增", Boolean.TRUE);
        permissionService.createPermission(p1);
        permissionService.createPermission(p2);
        permissionService.createPermission(p3);
        //2、新增角色
        r1 = new Role("admin", "管理员", Boolean.TRUE);
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter12.entity.Permission

        jdbcTemplate.update("delete from sys_users_roles");
        jdbcTemplate.update("delete from sys_roles_permissions");


        //1、新增权限
        p1 = new Permission("user:create", "用户模块新增", Boolean.TRUE);
        p2 = new Permission("user:update", "用户模块修改", Boolean.TRUE);
        p3 = new Permission("menu:create", "菜单模块新增", Boolean.TRUE);
        permissionService.createPermission(p1);
        permissionService.createPermission(p2);
        permissionService.createPermission(p3);
        //2、新增角色
        r1 = new Role("admin", "管理员", Boolean.TRUE);
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter6.entity.Permission

        JdbcTemplateUtils.jdbcTemplate().update("delete from sys_users_roles");
        JdbcTemplateUtils.jdbcTemplate().update("delete from sys_roles_permissions");


        //1、新增权限
        p1 = new Permission("user:create", "用户模块新增", Boolean.TRUE);
        p2 = new Permission("user:update", "用户模块修改", Boolean.TRUE);
        p3 = new Permission("menu:create", "菜单模块新增", Boolean.TRUE);
        permissionService.createPermission(p1);
        permissionService.createPermission(p2);
        permissionService.createPermission(p3);
        //2、新增角色
        r1 = new Role("admin", "管理员", Boolean.TRUE);
View Full Code Here

Examples of com.google.api.ads.dfa.axis.v1_19.Permission

    userRole.setSubnetworkId(subnetworkId);
    userRole.setParentUserRoleId(parentUserRoleId);

    // Create a permission object to represent each permission this user role
    // has.
    Permission permission1 = new Permission();
    permission1.setId(permission1Id);
    Permission permission2 = new Permission();
    permission2.setId(permission2Id);
    Permission[] permissions = new Permission[] {permission1, permission2};

    // Add the permissions to the user role.
    userRole.setPermissions(permissions);
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.