Tabnine Logo
AccessControlList.findGrantsForGrantee
Code IndexAdd Tabnine to your IDE (free)

How to use
findGrantsForGrantee
method
in
org.jclouds.s3.domain.AccessControlList

Best Java code snippets using org.jclouds.s3.domain.AccessControlList.findGrantsForGrantee (Showing top 12 results out of 315)

origin: Nextdoor/bender

/**
* @param granteeId
* @return the permissions assigned to a grantee, as identified by the given ID.
*/
public Collection<String> getPermissions(String granteeId) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(granteeId);
 return Collections2.transform(grantsForGrantee, new Function<Grant, String>() {
   public String apply(Grant g) {
    return g.getPermission();
   }
 });
}
origin: org.jclouds.api/s3

/**
* @param granteeId
* @return the permissions assigned to a grantee, as identified by the given ID.
*/
public Collection<String> getPermissions(String granteeId) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(granteeId);
 return Collections2.transform(grantsForGrantee, new Function<Grant, String>() {
   public String apply(Grant g) {
    return g.getPermission();
   }
 });
}
origin: jclouds/legacy-jclouds

/**
* @param granteeId
* @return the permissions assigned to a grantee, as identified by the given ID.
*/
public Collection<String> getPermissions(String granteeId) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(granteeId);
 return Collections2.transform(grantsForGrantee, new Function<Grant, String>() {
   public String apply(Grant g) {
    return g.getPermission();
   }
 });
}
origin: org.apache.jclouds.api/s3

/**
* @param granteeId
* @return the permissions assigned to a grantee, as identified by the given ID.
*/
public Collection<String> getPermissions(String granteeId) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(granteeId);
 return Collections2.transform(grantsForGrantee, new Function<Grant, String>() {
   public String apply(Grant g) {
    return g.getPermission();
   }
 });
}
origin: apache/jclouds

/**
* @param granteeId
* @return the permissions assigned to a grantee, as identified by the given ID.
*/
public Collection<String> getPermissions(String granteeId) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(granteeId);
 return Collections2.transform(grantsForGrantee, new Function<Grant, String>() {
   public String apply(Grant g) {
    return g.getPermission();
   }
 });
}
origin: jclouds/legacy-jclouds

/**
* Revoke all the permissions granted to the given grantee.
* 
* @param grantee
*/
public AccessControlList revokeAllPermissions(Grantee grantee) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(grantee.getIdentifier());
 grants.removeAll(grantsForGrantee);
 return this;
}
origin: apache/jclouds

/**
* Revoke all the permissions granted to the given grantee.
* 
* @param grantee
*/
public AccessControlList revokeAllPermissions(Grantee grantee) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(grantee.getIdentifier());
 grants.removeAll(grantsForGrantee);
 return this;
}
origin: org.apache.jclouds.api/s3

/**
* Revoke all the permissions granted to the given grantee.
* 
* @param grantee
*/
public AccessControlList revokeAllPermissions(Grantee grantee) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(grantee.getIdentifier());
 grants.removeAll(grantsForGrantee);
 return this;
}
origin: org.jclouds.api/s3

/**
* Revoke all the permissions granted to the given grantee.
* 
* @param grantee
*/
public AccessControlList revokeAllPermissions(Grantee grantee) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(grantee.getIdentifier());
 grants.removeAll(grantsForGrantee);
 return this;
}
origin: Nextdoor/bender

/**
* Revoke all the permissions granted to the given grantee.
* 
* @param grantee
*/
public AccessControlList revokeAllPermissions(Grantee grantee) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(grantee.getIdentifier());
 grants.removeAll(grantsForGrantee);
 return this;
}
origin: org.jclouds.api/s3

/**
* Revoke a permission for the given grantee, if this specific permission was granted.
* 
* Note that you must be very explicit about the permissions you revoke, you cannot revoke
* partial permissions and expect this class to determine the implied remaining permissions. For
* example, if you revoke the {@link Permission#READ} permission from a grantee with
* {@link Permission#FULL_CONTROL} access, <strong>the revocation will do nothing</strong> and
* the grantee will retain full access. To change the access settings for this grantee, you must
* first remove the {@link Permission#FULL_CONTROL} permission the add back the
* {@link Permission#READ} permission.
* 
* @param grantee
* @param permission
*/
public AccessControlList revokePermission(Grantee grantee, String permission) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(grantee.getIdentifier());
 for (Grant grant : grantsForGrantee) {
   if (grant.getPermission().equals(permission)) {
    grants.remove(grant);
   }
 }
 return this;
}
origin: jclouds/legacy-jclouds

/**
* Revoke a permission for the given grantee, if this specific permission was granted.
* 
* Note that you must be very explicit about the permissions you revoke, you cannot revoke
* partial permissions and expect this class to determine the implied remaining permissions. For
* example, if you revoke the {@link Permission#READ} permission from a grantee with
* {@link Permission#FULL_CONTROL} access, <strong>the revocation will do nothing</strong> and
* the grantee will retain full access. To change the access settings for this grantee, you must
* first remove the {@link Permission#FULL_CONTROL} permission the add back the
* {@link Permission#READ} permission.
* 
* @param grantee
* @param permission
*/
public AccessControlList revokePermission(Grantee grantee, String permission) {
 Collection<Grant> grantsForGrantee = findGrantsForGrantee(grantee.getIdentifier());
 for (Grant grant : grantsForGrantee) {
   if (grant.getPermission().equals(permission)) {
    grants.remove(grant);
   }
 }
 return this;
}
org.jclouds.s3.domainAccessControlListfindGrantsForGrantee

Javadoc

Find all the grants for a given grantee, identified by an ID which allows all Grantee types to be searched.

Popular methods of AccessControlList

  • hasPermission
  • <init>
  • addPermission
    Add a permission for the given grantee.
  • getGrants
  • getOwner
  • getPermissions
  • toString
  • revokePermission
    Revoke a permission for the given grantee, if this specific permission was granted. Note that you mu
  • setOwner
  • fromCannedAccessPolicy
    Converts a canned access control policy into the equivalent access control list.
  • revokeAllPermissions
    Revoke all the permissions granted to the given grantee.
  • revokeAllPermissions

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ImageIO (javax.imageio)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now