Examples of implies()


Examples of macromedia.asc.semantics.Slot.implies()

                        Slot inheritedSlot = baseobj.getSlot(cx,slot_id);

                        // Hack
                        inheritedSlot.setVarIndex(-1);

                        int index = inheritedSlot.implies(cx,EMPTY_TOKEN);
                        Slot inheritedCallSlot = baseobj.getSlot(cx,index);

                        index = inheritedSlot.implies(cx,NEW_TOKEN);
                        Slot inheritedConstructorSlot = baseobj.getSlot(cx,index);
View Full Code Here

Examples of net.bytten.metazelda.Condition.implies()

            Symbol switchSym = new Symbol(Symbol.SWITCH);
           
            Room switchRoom = null;
            for (Room room: rooms) {
                if (room.getItem() == null &&
                        baseRoomCond.implies(room.getPrecond()) &&
                        constraints.roomCanFitItem(room.id, switchSym)) {
                    switchRoom = room;
                    break;
                }
            }
View Full Code Here

Examples of net.jini.security.GrantPermission.implies()

  // ...but unresolved FooPerm, BarPerm should imply unresolved FooPerm
  if (!gp4.implies(gp1)) {
      throw new Error();
  }
  // disjoint unresolved perms shouldn't imply or equal each other
  if (gp1.implies(gp5) || gp5.implies(gp1) || gp1.equals(gp5)) {
      throw new Error();
  }
  // sanity check
  if (!gp4.implies(gp5)) {
      throw new Error();
View Full Code Here

Examples of net.jini.security.policy.DynamicPolicyProvider.implies()

  PermissionCollection pc =
      policy.getPermissions((ProtectionDomain) null);
  if (pc.elements().hasMoreElements()) {
      throw new Error("permissions returned for null protection domain");
  }
  if (policy.implies(null, new RuntimePermission("foo"))) {
      throw new Error();
  }
    }
}
View Full Code Here

Examples of net.jini.security.policy.PolicyFileProvider.implies()

  PermissionCollection pc =
      policy.getPermissions((ProtectionDomain) null);
  if (pc.elements().hasMoreElements()) {
      throw new Error("permissions returned for null protection domain");
  }
  if (policy.implies(null, new RuntimePermission("foo"))) {
      throw new Error();
  }
    }
}
View Full Code Here

Examples of org.apache.derby.security.DatabasePermission.implies()

            for (int j = 0; j < dbp0.length; j++) {
                final DatabasePermission p1 = dbp1[j];
                assertEquals("test: " + p0 + ".implies" + p1,
                             dirPathImplications[i][j], p0.implies(p1));
                assertEquals("test: " + p1 + ".implies" + p0,
                             dirPathImplications[j][i], p1.implies(p0));
            }
        }
    }
   
    /**
 
View Full Code Here

Examples of org.apache.derby.security.SystemPermission.implies()

        assertTrue(!sp0.equals(null));
        assertTrue(!sp0.equals(new Object()));

        // test SystemPermission.implies()
        assertTrue(sp0.implies(sp1));
        assertTrue(sp1.implies(sp0));

        // test SystemPermission for authorized user against policy file
        final DatabasePrincipal authorizedUser
            = new DatabasePrincipal("authorizedSystemUser");
        execute(authorizedUser, new ShutdownEngineAction(sp0), true);
View Full Code Here

Examples of org.apache.felix.framework.security.util.Permissions.implies()

        Bundle bundle)
    {
        Permissions permissionsObject = m_permissions
            .getPermissions(permissions);

        return permissionsObject.implies(permission, bundle);
    }

    public void setDefaultPermissions(PermissionInfo[] permissions)
    {
        Object sm = System.getSecurityManager();
View Full Code Here

Examples of org.apache.hadoop.fs.permission.FsAction.implies()

  private static boolean checkPermissionOfOther(FileSystem fs, Path path,
      FsAction action) throws IOException {
    FileStatus status = fs.getFileStatus(path);
    FsPermission perms = status.getPermission();
    FsAction otherAction = perms.getOtherAction();
    if (otherAction.implies(action)) {
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.apache.isis.security.shiro.authorization.IsisPermission.implies()

    @Test
    public void xxx() throws Exception {
        IsisPermission ip = new IsisPermission("schwartz/com.mycompany.myapp:Order:submit:*");
        IsisPermission ip2 = new IsisPermission("com.mycompany.myapp:Customer:remove:r");
       
        assertThat(ip2.implies(ip), is(false));
        assertThat(ip.implies(ip2), is(false));
    }

}
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.