Package org.onesocialweb.model.acl

Examples of org.onesocialweb.model.acl.AclAction


  }
 
  @Override
  public boolean equals(Object obj) {
    if (obj instanceof AclAction) {
      AclAction other = (AclAction) obj;
      return (other.getPermission().equals(permission) && other.getName()
          .equals(name));
    } else {
      return false;
    }
  }
View Full Code Here


        return profile;
      } else {
        // We should filter all fields that the requestor is not
        // supposed to see and strip all data related to ACLs.
       
        final AclAction viewAction = aclFactory.aclAction(AclAction.ACTION_VIEW, AclAction.PERMISSION_GRANT);
        List<Field> fields =profile.getFields();
        List<Field> canSeefields= new ArrayList<Field>();
        for (Field field: fields)
        {
          boolean canSee=false;
View Full Code Here

    return new ArrayList<String>();
  }

  private boolean canSee(String fromJID, ActivityEntry entry, String viewer) throws UserNotFoundException  {
    // Get a view action
    final AclAction viewAction = aclFactory.aclAction(AclAction.ACTION_VIEW, AclAction.PERMISSION_GRANT);
    AclRule rule = null;
    for (AclRule aclRule : entry.getAclRules()) {
      if (aclRule.hasAction(viewAction)) {
        rule = aclRule;
        break;
View Full Code Here

TOP

Related Classes of org.onesocialweb.model.acl.AclAction

Copyright © 2018 www.massapicom. 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.