Package org.killbill.billing.util.api
Interface CustomFieldUserApi
-
- All Superinterfaces:
KillbillApi
public interface CustomFieldUserApi extends KillbillApi
-
-
Method Summary
-
-
-
Method Detail
-
searchCustomFields
Pagination<CustomField> searchCustomFields(String searchKey, Long offset, Long limit, TenantContext context)
Find all custom fields having their object type, field name or value matching the search key- Parameters:
searchKey- the search keyoffset- the offset of the first resultlimit- the maximum number of results to retrievecontext- the user context- Returns:
- the list of custom fields matching this search key for that tenant
-
searchCustomFields
Pagination<CustomField> searchCustomFields(String fieldName, String fieldValue, ObjectType objectType, Long offset, Long limit, TenantContext context)
- Parameters:
fieldName- the field name to search forfieldValue- the field value to search forobjectType- the object type to search foroffset- the offset of the first resultlimit- the maximum number of results to retrievecontext- the user context- Returns:
- the list of custom fields matching this search for that tenant
-
searchCustomFields
Pagination<CustomField> searchCustomFields(String fieldName, ObjectType objectType, Long offset, Long limit, TenantContext context)
- Parameters:
fieldName- the field name to search forobjectType- the object type to search foroffset- the offset of the first resultlimit- the maximum number of results to retrievecontext- the user context- Returns:
- the list of custom fields matching this search for that tenant
-
getCustomFields
Pagination<CustomField> getCustomFields(Long offset, Long limit, TenantContext context)
- Parameters:
context- the user contextoffset- the offset of the first resultlimit- the maximum number of results to retrieve- Returns:
- the list of custom fields for that tenant
-
addCustomFields
void addCustomFields(List<CustomField> fields, CallContext context) throws CustomFieldApiException
- Parameters:
fields- the list of fields to addcontext- the call context- Throws:
CustomFieldApiException
-
updateCustomFields
void updateCustomFields(List<CustomField> fields, CallContext context) throws CustomFieldApiException
- Parameters:
fields- the list of fields to addcontext- the call context- Throws:
CustomFieldApiException
-
removeCustomFields
void removeCustomFields(List<CustomField> fields, CallContext context) throws CustomFieldApiException
- Parameters:
fields-context-- Throws:
CustomFieldApiException
-
getCustomFieldsForObject
List<CustomField> getCustomFieldsForObject(UUID objectId, ObjectType objectType, TenantContext context)
- Parameters:
objectId- the object idobjectType- the object typecontext- the call context- Returns:
- the list of custom fields associated with that object
-
getCustomFieldsForAccountType
List<CustomField> getCustomFieldsForAccountType(UUID accountId, ObjectType objectType, TenantContext context)
- Parameters:
accountId- the account idobjectType- the object typecontext- the call context- Returns:
- the list of custom fields associated with that account for the specified type
-
getCustomFieldsForAccount
List<CustomField> getCustomFieldsForAccount(UUID accountId, TenantContext context)
- Parameters:
accountId- the account idcontext- the call context- Returns:
- the list of custom fields associated with that account
-
getCustomFieldAuditLogsWithHistoryForId
List<AuditLogWithHistory> getCustomFieldAuditLogsWithHistoryForId(UUID customFieldId, AuditLevel auditLevel, TenantContext context)
Get all the audit entries with history for a given custom field.- Parameters:
customFieldId- the custom field idauditLevel- audit level (verbosity)context- the tenant context- Returns:
- all audit entries with history for a custom field
-
-