Examples of SAcl


Examples of com.cloud.bridge.model.SAcl

      List<SAcl> itemAclData = aclDao.listGrants( target, itemId );
      if (null != itemAclData)
      {
          ListIterator it = itemAclData.listIterator();
        while( it.hasNext()) {
           SAcl oneTag = (SAcl)it.next();
           aclDao.delete( oneTag );
        }
    }
  }
View Full Code Here

Examples of com.cloud.bridge.model.SAcl

      List<SAcl> bucketAclData = aclDao.listGrants( "SBucket", bucketId );
      if (null != bucketAclData)
      {
          ListIterator it = bucketAclData.listIterator();
        while( it.hasNext()) {
           SAcl oneTag = (SAcl)it.next();
           aclDao.delete( oneTag );
        }
    }
  }
View Full Code Here

Examples of com.cloud.bridge.model.SAcl

  {
        ListIterator it = priviledges.listIterator();
        while( it.hasNext())
        {
           // -> is the requested permission "contained" in one or the granted rights for this user
           SAcl rights = (SAcl)it.next();
           int permission = rights.getPermission();
           if (requestedPermission == (permission & requestedPermission)) return true;
        }
        return false;
  }
View Full Code Here

Examples of com.cloud.bridge.model.SAcl

      }
    }
  }
 
  public SAcl save(String target, long targetId, S3Grant grant, int grantOrder) {
    SAcl aclEntry = new SAcl();
    aclEntry.setTarget(target);
    aclEntry.setTargetId(targetId);
    aclEntry.setGrantOrder(grantOrder);
   
    int grantee = grant.getGrantee();
    aclEntry.setGranteeType(grantee);
    aclEntry.setPermission(grant.getPermission());
    aclEntry.setGranteeCanonicalId(grant.getCanonicalUserID());
   
    Date ts = new Date();
    aclEntry.setCreateTime(ts);
    aclEntry.setLastModifiedTime(ts);
    PersistContext.getSession().save(aclEntry);
    return aclEntry;
  }
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.