Examples of allow()


Examples of ch.entwine.weblounge.common.impl.content.page.PageSecurityContext.allow()

    // Create the security context
    SecurityContextImpl context = new PageSecurityContext();
    context.init(path, config);

    // Deny all
    context.allow(publish, editor);

    // Test (publish, editor) - expected: success
    if (!context.check(publish, editor)) {
      fail("Check for permission " + publish + " and role " + editor + " failed while it shouldn't");
    }
View Full Code Here

Examples of com.intridea.io.vfs.operations.Acl.allow()

      // Set permissions for groups
      if (item.getGrantee() instanceof GroupGrantee) {
        GroupGrantee grantee = (GroupGrantee) item.getGrantee();
        if (GroupGrantee.AllUsers.equals(grantee)) {
          // Allow rights to GUEST
          myAcl.allow(Acl.Group.EVERYONE, rights);
        } else if (GroupGrantee.AuthenticatedUsers.equals(grantee)) {
          // Allow rights to AUTHORIZED
          myAcl.allow(Acl.Group.AUTHORIZED, rights);
        }
      } else if (item.getGrantee() instanceof CanonicalGrantee) {
View Full Code Here

Examples of com.linkedin.databus2.core.filter.DbusKeyCompositeFilter.allow()

    List<DbusEvent> passedEvents = new ArrayList<DbusEvent>();
    List<DbusEvent> failedEvents = new ArrayList<DbusEvent>();

    for (DbusEvent event :  dbusEvents)
    {
      if ( filter.allow(event))
      {
        passedEvents.add(event);
      } else {
        failedEvents.add(event);
      }
View Full Code Here

Examples of com.linkedin.databus2.core.filter.DbusKeyFilter.allow()

    List<DbusEvent> passedEvents = new ArrayList<DbusEvent>();
    List<DbusEvent> failedEvents = new ArrayList<DbusEvent>();

    for (DbusEvent event :  dbusEvents)
    {
      if ( filter.allow(event))
      {
        passedEvents.add(event);
      } else {
        failedEvents.add(event);
      }
View Full Code Here

Examples of com.linkedin.databus2.core.filter.DbusKeyFilter.allow()

    List<DbusEvent> passedEvents = new ArrayList<DbusEvent>();
    List<DbusEvent> failedEvents = new ArrayList<DbusEvent>();

    for (DbusEvent event : dbusEvents)
    {
      if ( filter.allow(event))
      {
        passedEvents.add(event);
      } else {
        failedEvents.add(event);
      }
View Full Code Here

Examples of com.linkedin.databus2.core.filter.DbusKeyFilter.allow()

    List<DbusEvent> passedEvents = new ArrayList<DbusEvent>();
    List<DbusEvent> failedEvents = new ArrayList<DbusEvent>();

    for (DbusEvent event : dbusEvents)
    {
      if (filter.allow(event))
      {
        passedEvents.add(event);
      } else {
        failedEvents.add(event);
      }
View Full Code Here

Examples of com.linkedin.databus2.core.filter.DbusKeyFilter.allow()

    List<DbusEvent> passedEvents = new ArrayList<DbusEvent>();
    List<DbusEvent> failedEvents = new ArrayList<DbusEvent>();

    for (DbusEvent event : dbusEvents)
    {
      if (filter.allow(event))
      {
        passedEvents.add(event);
      } else {
        failedEvents.add(event);
      }
View Full Code Here

Examples of com.linkedin.databus2.core.filter.DbusKeyFilter.allow()

    List<DbusEvent> passedEvents = new ArrayList<DbusEvent>();
    List<DbusEvent> failedEvents = new ArrayList<DbusEvent>();

    for (DbusEvent event : dbusEvents)
    {
      if (filter.allow(event))
      {
        passedEvents.add(event);
      } else {
        failedEvents.add(event);
      }
View Full Code Here

Examples of com.linkedin.databus2.core.filter.SourceDbusFilter.allow()

    sources.add(23);
    sources.add(45);
    DbusEvent e = RngUtils.randomEvent((short) 23);
    LOG.debug(e);
    SourceDbusFilter sdFilter = new SourceDbusFilter(sources);
    assertTrue(sdFilter.allow(e));
  }

}
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.security.ORole.allow()

        json.beginCollection(3, true, "rules");
        for (Entry<String, Byte> rule : role.getRules().entrySet()) {
          json.beginObject(4);
          json.writeAttribute(4, true, "name", rule.getKey());
          json.writeAttribute(4, false, "create", role.allow(rule.getKey(), ORole.PERMISSION_CREATE));
          json.writeAttribute(4, false, "read", role.allow(rule.getKey(), ORole.PERMISSION_READ));
          json.writeAttribute(4, false, "update", role.allow(rule.getKey(), ORole.PERMISSION_UPDATE));
          json.writeAttribute(4, false, "delete", role.allow(rule.getKey(), ORole.PERMISSION_DELETE));
          json.endObject(4, true);
        }
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.