org.squashtest.csp.tm.service.customfield
Interface CustomFieldBindingFinderService

All Known Subinterfaces:
CustomFieldBindingModificationService
All Known Implementing Classes:
CustomFieldBindingModificationServiceImpl

public interface CustomFieldBindingFinderService

An interface for services around CustomField. This is a 'finder' service : those methods are meant to find data, not to modify them. The methods in this service need not to be secured.

Author:
bsiri

Method Summary
 List<CustomField> findAvailableCustomFields()
          returns all the existing custom fields.
 List<CustomField> findAvailableCustomFields(long projectId, BindableEntity entity)
          same as findAvailableCustomFields(), restricted to the given project and bindable entity.
 List<CustomFieldBinding> findCustomFieldsForBoundEntity(BoundEntity boundEntity)
          returns all the custom field bindinds associated to that entity wrt its project and BindableEntity type
 List<CustomFieldBinding> findCustomFieldsForGenericProject(long projectId)
          returns all the custom field bindings associated to a GenericProject.
 List<CustomFieldBinding> findCustomFieldsForProjectAndEntity(long projectId, BindableEntity entity)
          returns all the custom field bindings associated to a project for a given entity type
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<CustomFieldBinding>> findCustomFieldsForProjectAndEntity(long projectId, BindableEntity entity, org.squashtest.tm.core.foundation.collection.Paging paging)
          returns all the custom field bindings associated to a project for a given entity type (paged version)
 

Method Detail

findAvailableCustomFields

List<CustomField> findAvailableCustomFields()
returns all the existing custom fields.

Returns:
what I just said.

findAvailableCustomFields

List<CustomField> findAvailableCustomFields(long projectId,
                                            BindableEntity entity)
same as findAvailableCustomFields(), restricted to the given project and bindable entity. The only returned fields are those who aren't already mapped for that project and entity.

Parameters:
projectId -
entity -
Returns:

findCustomFieldsForGenericProject

List<CustomFieldBinding> findCustomFieldsForGenericProject(long projectId)
returns all the custom field bindings associated to a GenericProject.

Parameters:
projectId -
Returns:

findCustomFieldsForProjectAndEntity

List<CustomFieldBinding> findCustomFieldsForProjectAndEntity(long projectId,
                                                             BindableEntity entity)
returns all the custom field bindings associated to a project for a given entity type

Parameters:
projectId -
Returns:

findCustomFieldsForBoundEntity

List<CustomFieldBinding> findCustomFieldsForBoundEntity(BoundEntity boundEntity)
returns all the custom field bindinds associated to that entity wrt its project and BindableEntity type

Parameters:
boundEntity -
Returns:

findCustomFieldsForProjectAndEntity

org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<CustomFieldBinding>> findCustomFieldsForProjectAndEntity(long projectId,
                                                                                                                                 BindableEntity entity,
                                                                                                                                 org.squashtest.tm.core.foundation.collection.Paging paging)
returns all the custom field bindings associated to a project for a given entity type (paged version)

Parameters:
projectId -
Returns:


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