org.squashtest.tm.service.customfield
Interface CustomFieldFinderService

All Known Subinterfaces:
CustomFieldManagerService

@Transactional(readOnly=true)
public interface CustomFieldFinderService

Facade service for custom fields read only access methods

Author:
mpagnon

Method Summary
 List<org.squashtest.tm.domain.customfield.CustomField> findAllOrderedByName()
          Will find all custom fields available and return them into a list ordered by custom field's name.
 org.squashtest.tm.domain.customfield.CustomField findById(Long customFieldId)
           
 org.squashtest.tm.domain.customfield.CustomField findByName(String name)
           
 org.squashtest.tm.domain.customfield.SingleSelectField findSingleSelectFieldById(Long customFieldId)
          Will find the SingleSelectField of the given id
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.customfield.CustomField>> findSortedCustomFields(org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)
          Will find all custom fields available and return them ordered according to the given parameters.
 

Method Detail

findAllOrderedByName

List<org.squashtest.tm.domain.customfield.CustomField> findAllOrderedByName()
Will find all custom fields available and return them into a list ordered by custom field's name.

Returns:
the list of all existing CustomField ordered by CustomField.getName()

findSortedCustomFields

org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.customfield.CustomField>> findSortedCustomFields(org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)
Will find all custom fields available and return them ordered according to the given parameters.

Parameters:
filter - the PagingAndSorting that holds order and paging params.
Returns:
the filtered collection of all custom field available in squash

findSingleSelectFieldById

org.squashtest.tm.domain.customfield.SingleSelectField findSingleSelectFieldById(Long customFieldId)
Will find the SingleSelectField of the given id

Parameters:
customFieldId - the id of the SingleSelectField
Returns:
the SingleSelectField or null

findByName

org.squashtest.tm.domain.customfield.CustomField findByName(@NotNull
                                                            String name)
Parameters:
name -
Returns:

findById

org.squashtest.tm.domain.customfield.CustomField findById(Long customFieldId)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.