Package com.google.gdata.data.appsforyourdomain.generic

Examples of com.google.gdata.data.appsforyourdomain.generic.GenericEntry.addProperty()


    GenericEntry entry = new GenericEntry();
    entry.addProperty(APPS_PROP_GROUP_ID, groupId);
    entry.addProperty(APPS_PROP_GROUP_NAME, groupName);
    entry.addProperty(APPS_PROP_GROUP_DESC, groupDescription);
    entry.addProperty(APPS_PROP_GROUP_PERMISSION, emailPermission);
    return insert(new URL(baseDomainUrl), entry);
  }

  /**
   * Updates the group properties. When a null or empty value is sent, the field
View Full Code Here


      String groupDescription, String emailPermission)
      throws AppsForYourDomainException, MalformedURLException, IOException,
      ServiceException {
    GenericEntry entry = new GenericEntry();
    if (!(groupName == null || groupName.equals(""))) {
      entry.addProperty(APPS_PROP_GROUP_NAME, groupName);
    }
    if (!(groupDescription == null || groupDescription.equals(""))) {
      entry.addProperty(APPS_PROP_GROUP_DESC, groupDescription);
    }
    if (!(emailPermission == null || emailPermission.equals(""))) {
View Full Code Here

    GenericEntry entry = new GenericEntry();
    if (!(groupName == null || groupName.equals(""))) {
      entry.addProperty(APPS_PROP_GROUP_NAME, groupName);
    }
    if (!(groupDescription == null || groupDescription.equals(""))) {
      entry.addProperty(APPS_PROP_GROUP_DESC, groupDescription);
    }
    if (!(emailPermission == null || emailPermission.equals(""))) {
      entry.addProperty(APPS_PROP_GROUP_PERMISSION, emailPermission);
    }
    if (entry.getAllProperties().size() == 0) {
View Full Code Here

    }
    if (!(groupDescription == null || groupDescription.equals(""))) {
      entry.addProperty(APPS_PROP_GROUP_DESC, groupDescription);
    }
    if (!(emailPermission == null || emailPermission.equals(""))) {
      entry.addProperty(APPS_PROP_GROUP_PERMISSION, emailPermission);
    }
    if (entry.getAllProperties().size() == 0) {
      // All null or empty values. Nothing will be updated.
      return retrieveGroup(groupId);
    }
View Full Code Here

   */
  public GenericEntry addMemberToGroup(String groupId, String memberName)
      throws AppsForYourDomainException, MalformedURLException, IOException,
      ServiceException {
    GenericEntry entry = new GenericEntry();
    entry.addProperty(APPS_PROP_GROUP_MEMBER_ID, memberName);
    return insert(new URL(baseDomainUrl + groupId + "/member"), entry);
  }

  /**
   * Removes member subscription to the group.
View Full Code Here

   */
  public GenericEntry addOwnerToGroup(String groupId, String ownerName)
      throws AppsForYourDomainException, MalformedURLException, IOException,
      ServiceException {
    GenericEntry entry = new GenericEntry();
    entry.addProperty("email", ownerName);
    return insert(new URL(baseDomainUrl + groupId + "/owner"), entry);
  }

  /**
   * Removes an owner from the group.
View Full Code Here

   */
  public GenericEntry createOrganizationUnit(String customerId, String orgUnitName,
      String parentOrgUnitPath, String description, boolean blockInheritance)
      throws AppsForYourDomainException, MalformedURLException, IOException, ServiceException {
    GenericEntry entry = new GenericEntry();
    entry.addProperty("parentOrgUnitPath", parentOrgUnitPath);
    entry.addProperty("description", description);
    entry.addProperty("name", orgUnitName);
    entry.addProperty("blockInheritance", String.valueOf(blockInheritance));
    entry =
        service.insert(new URL("https://apps-apis.google.com/a/feeds/orgunit/2.0/" + customerId),
View Full Code Here

  public GenericEntry createOrganizationUnit(String customerId, String orgUnitName,
      String parentOrgUnitPath, String description, boolean blockInheritance)
      throws AppsForYourDomainException, MalformedURLException, IOException, ServiceException {
    GenericEntry entry = new GenericEntry();
    entry.addProperty("parentOrgUnitPath", parentOrgUnitPath);
    entry.addProperty("description", description);
    entry.addProperty("name", orgUnitName);
    entry.addProperty("blockInheritance", String.valueOf(blockInheritance));
    entry =
        service.insert(new URL("https://apps-apis.google.com/a/feeds/orgunit/2.0/" + customerId),
            entry);
View Full Code Here

      String parentOrgUnitPath, String description, boolean blockInheritance)
      throws AppsForYourDomainException, MalformedURLException, IOException, ServiceException {
    GenericEntry entry = new GenericEntry();
    entry.addProperty("parentOrgUnitPath", parentOrgUnitPath);
    entry.addProperty("description", description);
    entry.addProperty("name", orgUnitName);
    entry.addProperty("blockInheritance", String.valueOf(blockInheritance));
    entry =
        service.insert(new URL("https://apps-apis.google.com/a/feeds/orgunit/2.0/" + customerId),
            entry);
    return entry;
View Full Code Here

      throws AppsForYourDomainException, MalformedURLException, IOException, ServiceException {
    GenericEntry entry = new GenericEntry();
    entry.addProperty("parentOrgUnitPath", parentOrgUnitPath);
    entry.addProperty("description", description);
    entry.addProperty("name", orgUnitName);
    entry.addProperty("blockInheritance", String.valueOf(blockInheritance));
    entry =
        service.insert(new URL("https://apps-apis.google.com/a/feeds/orgunit/2.0/" + customerId),
            entry);
    return entry;
  }
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.