Package org.apache.lucene.index

Examples of org.apache.lucene.index.TestIndexableField$CustomField


      Long dropDownCustomFieldId = Long.parseLong("INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE");
      Long customFieldOptionId = Long.parseLong("INSERT_CUSTOM_FIELD_OPTION_ID_HERE");
      Long lineItemId = Long.parseLong("INSERT_LINE_ITEM_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      // Get the drop-down custom field.
      DropDownCustomField dropDownCustomField =
          (DropDownCustomField) customFieldService.getCustomField(dropDownCustomFieldId);
View Full Code Here


      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201308.CUSTOM_FIELD_SERVICE);

      // Create custom fields.
      CustomField customField1 = new CustomField();
      customField1.setName("Customer comments #" + System.currentTimeMillis());
      customField1.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField1.setDataType(CustomFieldDataType.STRING);
      customField1.setVisibility(CustomFieldVisibility.FULL);

      CustomField customField2 = new CustomField();
      customField2.setName("Internal approval status #" + System.currentTimeMillis());
      customField2.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField2.setDataType(CustomFieldDataType.DROP_DOWN);
      customField2.setVisibility(CustomFieldVisibility.FULL);

      // Add custom fields.
      CustomField[] customFields =
          customFieldService.createCustomFields(new CustomField[] {customField1, customField2});
View Full Code Here

      // Set the ID of the custom field to update.
      Long customFieldId = Long.parseLong("INSERT_CUSTOM_FIELD_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      if (customField != null) {
        customField.setDescription(customField.getDescription() == null ? "" : customField
            .getDescription() + " Updated");

        // Update the custom field on the server.
        CustomField[] customFields =
            customFieldService.updateCustomFields(new CustomField[] {customField});
View Full Code Here

      // Set the ID of the custom field to update.
      Long customFieldId = Long.parseLong("INSERT_CUSTOM_FIELD_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      if (customField != null) {
        customField.setDescription(customField.getDescription() == null ? "" : customField
            .getDescription() + " Updated");

        // Update the custom field on the server.
        CustomField[] customFields =
            customFieldService.updateCustomFields(new CustomField[] {customField});
View Full Code Here

      Long dropDownCustomFieldId = Long.parseLong("INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE");
      Long customFieldOptionId = Long.parseLong("INSERT_CUSTOM_FIELD_OPTION_ID_HERE");
      Long lineItemId = Long.parseLong("INSERT_LINE_ITEM_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      // Get the drop-down custom field.
      DropDownCustomField dropDownCustomField =
          (DropDownCustomField) customFieldService.getCustomField(dropDownCustomFieldId);
View Full Code Here

      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201311.CUSTOM_FIELD_SERVICE);

      // Create custom fields.
      CustomField customField1 = new CustomField();
      customField1.setName("Customer comments #" + System.currentTimeMillis());
      customField1.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField1.setDataType(CustomFieldDataType.STRING);
      customField1.setVisibility(CustomFieldVisibility.FULL);

      CustomField customField2 = new CustomField();
      customField2.setName("Internal approval status #" + System.currentTimeMillis());
      customField2.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField2.setDataType(CustomFieldDataType.DROP_DOWN);
      customField2.setVisibility(CustomFieldVisibility.FULL);

      // Add custom fields.
      CustomField[] customFields =
          customFieldService.createCustomFields(new CustomField[] {customField1, customField2});
View Full Code Here

TOP

Related Classes of org.apache.lucene.index.TestIndexableField$CustomField

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.