Examples of canAccess()


Examples of cc.plural.jsonij.reflect.ClassProperty.ClassPropertyAccessor.canAccess()

        for (ClassProperty property : properties) {
//            if(property.isCollector()) {
//                continue;
//            }
            ClassPropertyAccessor accessor = property.getAccessor();
            if (accessor == null || !accessor.canAccess()) {
                continue;
            }

            if (accessor.fieldType()) {
                try {
View Full Code Here

Examples of cc.plural.jsonij.reflect.ClassProperty.ClassPropertyAccessor.canAccess()

        for (ClassProperty property : properties) {
//            if(property.isCollector()) {
//                continue;
//            }
            ClassPropertyAccessor accessor = property.getAccessor();
            if (accessor == null || !accessor.canAccess()) {
                continue;
            }

            if (accessor.fieldType()) {
                try {
View Full Code Here

Examples of mekanism.common.tile.TileEntityElectricChest.canAccess()

      {
        TileEntityElectricChest electricChest = (TileEntityElectricChest)tileEntity;

        if(!(entityplayer.isSneaking() || world.isSideSolid(x, y + 1, z, ForgeDirection.DOWN)))
        {
          if(electricChest.canAccess())
          {
            MekanismUtils.openElectricChestGui((EntityPlayerMP)entityplayer, electricChest, null, true);
          }
          else if(!electricChest.authenticated)
          {
View Full Code Here

Examples of mekanism.common.tile.TileEntityElectricChest.canAccess()

    {
      return blockHardness;
    }
    else {
      TileEntityElectricChest tileEntity = (TileEntityElectricChest)world.getTileEntity(x, y, z);
      return tileEntity.canAccess() ? 3.5F : -1;
    }
  }

  @Override
  public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest)
View Full Code Here

Examples of mondrian.olap.Role.canAccess()

                    }
                }
            );
        final Role role = olap4jConnection.getMondrianConnection().getRole();
        for (Hierarchy hierarchy : schema.getSharedHierarchies()) {
            if (role.canAccess(hierarchy)) {
                dimensions.add(
                    olap4jConnection.toOlap4j(hierarchy.getDimension()));
            }
        }
        NamedList<MondrianOlap4jDimension> list =
View Full Code Here

Examples of net.md_5.bungee.api.config.ServerInfo.canAccess()

        {
            ServerInfo server = servers.get( args[0] );
            if ( server == null )
            {
                player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server" ) );
            } else if ( !server.canAccess( player ) )
            {
                player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server_permission" ) );
            } else
            {
                player.connect( server );
View Full Code Here

Examples of org.apache.sling.jcr.jackrabbit.server.security.accessmanager.WorkspaceAccessManagerPlugin.canAccess()

        WorkspaceAccessManagerPlugin plugin = null;
        if (this.sanityCheck()) {
            plugin = this.accessManagerPlugin.getWorkspaceAccessManager();
        }
        if (plugin != null) {
            return plugin.canAccess(workspaceName);
        }
        return super.canAccess(workspaceName);
    }

    private boolean sanityCheck() throws RepositoryException {
View Full Code Here

Examples of org.apache.sling.jcr.jackrabbit.server.security.accessmanager.WorkspaceAccessManagerPlugin.canAccess()

        WorkspaceAccessManagerPlugin plugin = null;
        if (this.sanityCheck()) {
            plugin = this.accessManagerPlugin.getWorkspaceAccessManager();
        }
        if (plugin != null) {
            return plugin.canAccess(workspaceName);
        } else {
            return super.canAccess(workspaceName);
        }
    }
View Full Code Here

Examples of org.candlepin.auth.UserPrincipal.canAccess()

        when(o.getKey()).thenReturn("testOwner");
        when(oc.lookupByKey(eq("testOwner"))).thenReturn(o);
        when(c.getType()).thenReturn(cType);
        when(c.getName()).thenReturn("testConsumer");
        when(ctc.lookupByLabel(eq("person"))).thenReturn(cType);
        when(up.canAccess(eq(o), eq(SubResource.CONSUMERS), eq(Access.CREATE))).
            thenReturn(true);
        // usa.findByLogin() will return null by default no need for a when

        ConsumerResource cr = new ConsumerResource(null, ctc,
            null, null, null, null, null, i18n, null, null, null, null,
View Full Code Here

Examples of org.geoserver.security.DataAccessManager.canAccess()

   
    public void testComplex() throws Exception {
        DataAccessManager wo = buildLegacyAccessManager("complex.properties");
       
        // check non configured ws inherits root configuration, auth read, nobody write
        assertFalse(wo.canAccess(anonymous, nurcWs, AccessMode.READ));
        assertFalse(wo.canAccess(anonymous, nurcWs, AccessMode.WRITE));
        assertTrue(wo.canAccess(roUser, nurcWs, AccessMode.READ));
        assertFalse(wo.canAccess(rwUser, nurcWs, AccessMode.WRITE));
        assertTrue(wo.canAccess(root, nurcWs, AccessMode.WRITE));
       
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.