Class FindAssetsRequest

All Implemented Interfaces:
Serializable

public class FindAssetsRequest extends CursorPagedRequest
The search criteria for assets.

Only parameters that are specified in this request and have not null values are used for filtering. All other parameters are ignored.

The returned assets satisfy all constraints that are specified in this search criteria.

By default a result containing 1000 assets is returned.

See Also:
  • Constructor Details Link icon

    • FindAssetsRequest Link icon

      public FindAssetsRequest()
  • Method Details Link icon

    • builder Link icon

      public static FindAssetsRequest.Builder builder()
    • getName Link icon

      public String getName()
      The name of the asset to search for (either display name or full name).
    • getNameMatchMode Link icon

      public MatchMode getNameMatchMode()
      The match mode used to compare name. If the match mode is EXACT the search is case-sensitive, otherwise the search is case-insensitive. Defaults to ANYWHERE.
    • getDomainId Link icon

      public UUID getDomainId()
      The ID of the domain to find the assets in.
    • getCommunityId Link icon

      public UUID getCommunityId()
      The ID of the community to find the assets in.
    • getTypeIds Link icon

      public List<UUID> getTypeIds()
      The list of IDs of the asset types. The returned assets are of one of types specified by this parameter.
    • getTypePublicIds Link icon

      public List<String> getTypePublicIds()
      The list of IDs of the asset types. The returned assets are of one of types specified by this parameter.
    • getTypeId Link icon

      @Deprecated public List<UUID> getTypeId()
      Deprecated.
      typeId has been deprecated, please use typeIds instead.
      The list of IDs of the asset types. The returned assets are of one of types specified by this parameter.
    • getStatusIds Link icon

      public List<UUID> getStatusIds()
      The list of IDs of the statuses. The returned assets have one of statuses specified by this parameter.
    • getStatusId Link icon

      @Deprecated public List<UUID> getStatusId()
      Deprecated.
      use statusIds instead
      The list of IDs of the statuses. The returned assets have one of statuses specified by this parameter.
    • getTagNames Link icon

      public List<String> getTagNames()
      The list of names of tags. The returned assets have one of tags with names specified by this parameter.
    • isTypeInheritance Link icon

      public boolean isTypeInheritance()
      Whether the type inheritance for the asset type filtering should be applied or not. Defaults to true.
    • isExcludeMeta Link icon

      public boolean isExcludeMeta()
      The exclude meta flag. If this is set to true then the assets from meta domains will not be returned (meta domains are the domains which were not created by the user manually). Defaults to true.
    • getSortField Link icon

      public FindAssetsRequest.SortField getSortField()
      The field on which the results are sorted. Defaults to NAME.
    • getSortOrder Link icon

      public SortOrder getSortOrder()
      The sorting order. Defaults to ASC (ascending).
    • setName Link icon

      public void setName(String name)
      The name of the asset to search for (either display name or full name).
    • setNameMatchMode Link icon

      public void setNameMatchMode(MatchMode nameMatchMode)
      The match mode used to compare name. If the match mode is EXACT the search is case-sensitive, otherwise the search is case-insensitive. Defaults to ANYWHERE.
    • setDomainId Link icon

      public void setDomainId(UUID domainId)
      The ID of the domain to find the assets in.
    • setCommunityId Link icon

      public void setCommunityId(UUID communityId)
      The ID of the community to find the assets in.
    • setTypeIds Link icon

      public void setTypeIds(List<UUID> typeIds)
      The list of IDs of the asset types. The returned assets are of one of types specified by this parameter.
    • setTypePublicIds Link icon

      public void setTypePublicIds(List<String> typePublicIds)
      The list of IDs of the asset types. The returned assets are of one of types specified by this parameter.
    • setTypeId Link icon

      @Deprecated public void setTypeId(List<UUID> typeId)
      Deprecated.
      typeId has been deprecated, please use typeIds instead.
      The list of IDs of the asset types. The returned assets are of one of types specified by this parameter.
    • setStatusIds Link icon

      public void setStatusIds(List<UUID> statusIds)
      The list of IDs of the statuses. The returned assets have one of statuses specified by this parameter.
    • setStatusId Link icon

      @Deprecated public void setStatusId(List<UUID> statusId)
      Deprecated.
      use statusIds instead
      The list of IDs of the statuses. The returned assets have one of statuses specified by this parameter.
    • setTagNames Link icon

      public void setTagNames(List<String> tagNames)
      The list of names of tags. The returned assets have one of tags with names specified by this parameter.
    • setTypeInheritance Link icon

      public void setTypeInheritance(boolean typeInheritance)
      Whether the type inheritance for the asset type filtering should be applied or not. Defaults to true.
    • setExcludeMeta Link icon

      public void setExcludeMeta(boolean excludeMeta)
      The exclude meta flag. If this is set to true then the assets from meta domains will not be returned (meta domains are the domains which were not created by the user manually). Defaults to true.
    • setSortField Link icon

      public void setSortField(FindAssetsRequest.SortField sortField)
      The field on which the results are sorted. Defaults to NAME.
    • setSortOrder Link icon

      public void setSortOrder(SortOrder sortOrder)
      The sorting order. Defaults to ASC (ascending).
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class CursorPagedRequest
    • canEqual Link icon

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class CursorPagedRequest
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class CursorPagedRequest
    • toString Link icon

      public String toString()
      Overrides:
      toString in class CursorPagedRequest