<?php
/**
 * Copyright 2015 Adobe
 * All Rights Reserved.
 */
namespace Magento\Customer\Api;

use Magento\Customer\Api\Data\AttributeMetadataInterface;

/**
 * Interface for managing attributes metadata.
 * @api
 * @since 100.0.2
 */
interface MetadataManagementInterface
{
    /**
     * Check whether attribute is searchable in admin grid and it is allowed
     *
     * @param AttributeMetadataInterface $attribute
     * @return bool
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    public function canBeSearchableInGrid(AttributeMetadataInterface $attribute);

    /**
     * Check whether attribute is filterable in admin grid and it is allowed
     *
     * @param AttributeMetadataInterface $attribute
     * @return bool
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    public function canBeFilterableInGrid(AttributeMetadataInterface $attribute);
}
