Update Permission entity

Update Permission entity as it is a read only entity, also update its
fields.
Add search functionality to the Permission entity.
Add tests for all touched areas.
I guess you want: ``If you search by using both name and resource_type then the default behavior is to search by resource_type.``?