|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface FieldManager
Field Summary | |
---|---|
static String |
CUSTOM_FIELD_PREFIX
|
Method Summary | |
---|---|
Set<NavigableField> |
getAllAvailableNavigableFields()
|
Set<SearchableField> |
getAllSearchableFields()
Return all the searchable fields in the system. |
Set<CustomField> |
getAvailableCustomFields(com.atlassian.crowd.embedded.api.User remoteUser,
Issue issue)
Retrieves custom fields in scope for the given issue |
Set<NavigableField> |
getAvailableNavigableFields(com.atlassian.crowd.embedded.api.User remoteUser)
|
Set<NavigableField> |
getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user)
Gets all the available fields that the user can see, this is providing no context scope. |
Set<NavigableField> |
getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user,
QueryContext queryContext)
Gets all the available fields within the defined scope of the QueryContext. |
ColumnLayoutManager |
getColumnLayoutManager()
Deprecated. Declare your dependency and let PicoContainer resolve it instead |
ConfigurableField |
getConfigurableField(String id)
|
CustomField |
getCustomField(String id)
Get a CustomField by its text key (eg 'customfield_10000'). |
Field |
getField(String id)
Get a field by its id. |
FieldLayoutManager |
getFieldLayoutManager()
Deprecated. Declare your dependency and let PicoContainer resolve it instead |
HideableField |
getHideableField(String id)
|
IssueTypeField |
getIssueTypeField()
Retrieve the IssueType system Field. |
NavigableField |
getNavigableField(String id)
|
Set<NavigableField> |
getNavigableFields()
|
OrderableField |
getOrderableField(String id)
|
Set<OrderableField> |
getOrderableFields()
|
ProjectField |
getProjectField()
Retrieve the Project system Field. |
RequirableField |
getRequiredField(String id)
|
Set<SearchableField> |
getSystemSearchableFields()
Return all the searchable systems fields. |
Set<Field> |
getUnavailableFields()
|
boolean |
isCustomField(Field field)
|
boolean |
isCustomField(String id)
|
boolean |
isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser,
Field field)
|
boolean |
isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser,
String fieldId)
Determines whether the field with id of fieldId is NOT hidden in AT LEAST one FieldLayout that the user can see
(assigned to projects for which the user has the Permissions.BROWSE permission). |
boolean |
isHideableField(Field field)
|
boolean |
isHideableField(String id)
|
boolean |
isMandatoryField(Field field)
|
boolean |
isMandatoryField(String id)
|
boolean |
isNavigableField(Field field)
|
boolean |
isNavigableField(String id)
|
boolean |
isOrderableField(Field field)
|
boolean |
isOrderableField(String id)
|
boolean |
isRenderableField(Field field)
|
boolean |
isRenderableField(String id)
|
boolean |
isRequirableField(Field field)
|
boolean |
isRequirableField(String id)
|
boolean |
isTimeTrackingOn()
|
boolean |
isUnscreenableField(Field field)
|
boolean |
isUnscreenableField(String id)
|
void |
refresh()
|
Field Detail |
---|
static final String CUSTOM_FIELD_PREFIX
Method Detail |
---|
Field getField(String id)
getField
in interface FieldAccessor
id
- An IssueFieldConstants
constant, or custom field key (eg. "customfield_10010")
boolean isCustomField(String id)
isCustomField
in interface FieldAccessor
boolean isCustomField(Field field)
isCustomField
in interface FieldAccessor
CustomField getCustomField(String id)
getCustomField
in interface FieldAccessor
id
- Eg. 'customfield_10000'
CustomField
or null if not found.boolean isHideableField(String id)
isHideableField
in interface FieldAccessor
boolean isHideableField(Field field)
isHideableField
in interface FieldAccessor
HideableField getHideableField(String id)
getHideableField
in interface FieldAccessor
boolean isOrderableField(String id)
isOrderableField
in interface FieldAccessor
boolean isOrderableField(Field field)
isOrderableField
in interface FieldAccessor
OrderableField getOrderableField(String id)
getOrderableField
in interface FieldAccessor
ConfigurableField getConfigurableField(String id)
getConfigurableField
in interface FieldAccessor
Set<OrderableField> getOrderableFields()
getOrderableFields
in interface FieldAccessor
Set<NavigableField> getNavigableFields()
getNavigableFields
in interface FieldAccessor
boolean isNavigableField(String id)
isNavigableField
in interface FieldAccessor
boolean isNavigableField(Field field)
isNavigableField
in interface FieldAccessor
NavigableField getNavigableField(String id)
getNavigableField
in interface FieldAccessor
boolean isRequirableField(String id)
isRequirableField
in interface FieldAccessor
boolean isRequirableField(Field field)
isRequirableField
in interface FieldAccessor
boolean isMandatoryField(String id)
isMandatoryField
in interface FieldAccessor
boolean isMandatoryField(Field field)
isMandatoryField
in interface FieldAccessor
boolean isRenderableField(String id)
isRenderableField
in interface FieldAccessor
boolean isRenderableField(Field field)
isRenderableField
in interface FieldAccessor
boolean isUnscreenableField(String id)
isUnscreenableField
in interface FieldAccessor
boolean isUnscreenableField(Field field)
isUnscreenableField
in interface FieldAccessor
RequirableField getRequiredField(String id)
getRequiredField
in interface FieldAccessor
@Deprecated FieldLayoutManager getFieldLayoutManager()
@Deprecated ColumnLayoutManager getColumnLayoutManager()
void refresh()
Set<Field> getUnavailableFields()
getUnavailableFields
in interface FieldAccessor
boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser, Field field)
isFieldHidden
in interface FieldAccessor
boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser, String fieldId)
FieldLayout
that the user can see
(assigned to projects for which the user has the Permissions.BROWSE
permission).
isFieldHidden
in interface FieldAccessor
remoteUser
- the remote user.fieldId
- The Field ID
Set<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user) throws FieldException
getAvailableNavigableFieldsWithScope
in interface FieldAccessor
user
- the remote user.
FieldException
- thrown if there is a problem looking up the fieldsSet<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user, QueryContext queryContext) throws FieldException
getAvailableNavigableFieldsWithScope
in interface FieldAccessor
user
- the user making the requestqueryContext
- the context of the search request.
FieldException
- thrown if there is a problem looking up the fieldsSet<CustomField> getAvailableCustomFields(com.atlassian.crowd.embedded.api.User remoteUser, Issue issue) throws FieldException
getAvailableCustomFields
in interface FieldAccessor
remoteUser
- Remote Userissue
- Issue
FieldException
- if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projectsSet<NavigableField> getAllAvailableNavigableFields() throws FieldException
getAllAvailableNavigableFields
in interface FieldAccessor
FieldException
Set<NavigableField> getAvailableNavigableFields(com.atlassian.crowd.embedded.api.User remoteUser) throws FieldException
getAvailableNavigableFields
in interface FieldAccessor
FieldException
Set<SearchableField> getAllSearchableFields()
getAllSearchableFields
in interface FieldAccessor
Set<SearchableField> getSystemSearchableFields()
getSystemSearchableFields
in interface FieldAccessor
IssueTypeField getIssueTypeField()
getIssueTypeField
in interface FieldAccessor
ProjectField getProjectField()
getProjectField
in interface FieldAccessor
boolean isTimeTrackingOn()
isTimeTrackingOn
in interface FieldAccessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |