Codota Logo
UserByEmailAddressGrantee
Code IndexAdd Codota to your IDE (free)

How to use
UserByEmailAddressGrantee
in
org.jets3t.service.acl.gs

Best Java code snippets using org.jets3t.service.acl.gs.UserByEmailAddressGrantee (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

  @Override
  public String toString() {
    return "UserByEmail [email=" + getIdentifier()
      + (name != null ? ", name=" + getName() : "")
      + "]";
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

public UserByEmailAddressGrantee(String emailAddress, String name) {
  super(emailAddress);
  setName(name);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

@Override
public void startElement(String name, Attributes attrs) {
  if (name.equals("Owner")) {
    owner = new GSOwner();
  } else if (name.equals("Entries")) {
    accessControlList = new GSAccessControlList();
    accessControlList.setOwner(owner);
    insideACL = true;
  } else if (name.equals("Scope")) {
    scopeType = attrs.getValue("type");
    if (scopeType.equals("UserById")) {
      currentGrantee = new UserByIdGrantee();
    } else if (scopeType.equals("UserByEmail")) {
      currentGrantee = new UserByEmailAddressGrantee();
    } else if (scopeType.equals("GroupById")) {
      currentGrantee = new GroupByIdGrantee();
    } else if (scopeType.equals("GroupByEmail")) {
      currentGrantee = new GroupByEmailAddressGrantee();
    } else if (scopeType.equals("GroupByDomain")) {
      currentGrantee = new GroupByDomainGrantee();
    } else if (scopeType.equals("AllUsers")) {
      currentGrantee = new AllUsersGrantee();
    } else if (scopeType.equals("AllAuthenticatedUsers")) {
      currentGrantee = new AllAuthenticatedUsersGrantee();
    }
  }
}
origin: net.java.dev.jets3t/jets3t

@Override
public void startElement(String name, Attributes attrs) {
  if (name.equals("Owner")) {
    owner = new GSOwner();
  } else if (name.equals("Entries")) {
    accessControlList = new GSAccessControlList();
    accessControlList.setOwner(owner);
    insideACL = true;
  } else if (name.equals("Scope")) {
    scopeType = attrs.getValue("type");
    if (scopeType.equals("UserById")) {
      currentGrantee = new UserByIdGrantee();
    } else if (scopeType.equals("UserByEmail")) {
      currentGrantee = new UserByEmailAddressGrantee();
    } else if (scopeType.equals("GroupById")) {
      currentGrantee = new GroupByIdGrantee();
    } else if (scopeType.equals("GroupByEmail")) {
      currentGrantee = new GroupByEmailAddressGrantee();
    } else if (scopeType.equals("GroupByDomain")) {
      currentGrantee = new GroupByDomainGrantee();
    } else if (scopeType.equals("AllUsers")) {
      currentGrantee = new AllUsersGrantee();
    } else if (scopeType.equals("AllAuthenticatedUsers")) {
      currentGrantee = new AllAuthenticatedUsersGrantee();
    }
  }
}
origin: net.java.dev.jets3t/jets3t

  @Override
  public String toString() {
    return "UserByEmail [email=" + getIdentifier()
      + (name != null ? ", name=" + getName() : "")
      + "]";
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

acl.grantPermission(new UserByEmailAddressGrantee("someone@somewhere.com"),
  Permission.PERMISSION_FULL_CONTROL);
origin: net.java.dev.jets3t/jets3t

public UserByEmailAddressGrantee(String emailAddress, String name) {
  super(emailAddress);
  setName(name);
}
origin: net.java.dev.jets3t/jets3t

@Override
public XMLBuilder toXMLBuilder() throws TransformerException,
  ParserConfigurationException, FactoryConfigurationError
{
  XMLBuilder builder =
    XMLBuilder.create("Scope")
      .attr("type", "UserByEmail")
      .element("EmailAddress").text(getIdentifier()).up();
  if (getName() != null) {
    builder.element("Name").text(getName());
  }
  return builder;
}
origin: net.java.dev.jets3t/jets3t

acl.grantPermission(new UserByEmailAddressGrantee("someone@somewhere.com"),
  Permission.PERMISSION_FULL_CONTROL);
origin: net.java.dev.jets3t/jets3t

  ((UserByIdGrantee) currentGrantee).setName(elementText);
} else if (currentGrantee instanceof UserByEmailAddressGrantee) {
  ((UserByEmailAddressGrantee) currentGrantee).setName(elementText);
} else if (currentGrantee instanceof GroupByIdGrantee) {
  ((GroupByIdGrantee) currentGrantee).setName(elementText);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

@Override
public XMLBuilder toXMLBuilder() throws TransformerException,
  ParserConfigurationException, FactoryConfigurationError
{
  XMLBuilder builder =
    XMLBuilder.create("Scope")
      .attr("type", "UserByEmail")
      .element("EmailAddress").text(getIdentifier()).up();
  if (getName() != null) {
    builder.element("Name").text(getName());
  }
  return builder;
}
origin: iterate-ch/cyberduck

list.grantPermission(new UserByEmailAddressGrantee(userAndRole.getUser().getIdentifier()),
    Permission.parsePermission(userAndRole.getRole().getName()));
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

  ((UserByIdGrantee) currentGrantee).setName(elementText);
} else if (currentGrantee instanceof UserByEmailAddressGrantee) {
  ((UserByEmailAddressGrantee) currentGrantee).setName(elementText);
} else if (currentGrantee instanceof GroupByIdGrantee) {
  ((GroupByIdGrantee) currentGrantee).setName(elementText);
org.jets3t.service.acl.gsUserByEmailAddressGrantee

Javadoc

Represents an User By Email Grantee, that is a grantee identified by their email address.

Most used methods

  • <init>
  • getIdentifier
  • getName
  • setName

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • orElseThrow (Optional)
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now