|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.fields.DefaultFieldManager
public class DefaultFieldManager
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.jira.issue.fields.FieldManager |
|---|
CUSTOM_FIELD_PREFIX |
| Constructor Summary | |
|---|---|
DefaultFieldManager(com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | |
|---|---|
Set<NavigableField> |
getAllAvailableNavigableFields()
Returns a set of Fields that are NOT hidden in AT LEAST ONE project in the system. |
Set<SearchableField> |
getAllSearchableFields()
Return all the searchable fields in the system. |
Set<CustomField> |
getAvailableCustomFields(User remoteUser,
org.ofbiz.core.entity.GenericValue issue)
Retrieves custom fields in scope for the given issue |
Set<CustomField> |
getAvailableCustomFields(com.atlassian.crowd.embedded.api.User remoteUser,
Issue issue)
Retrieves custom fields in scope for the given issue |
Set<CustomField> |
getAvailableCustomFields(User remoteUser,
Issue issue)
Retrieves custom fields in scope for the given issue |
Set<NavigableField> |
getAvailableNavigableFields(com.atlassian.crowd.embedded.api.User remoteUser)
Returns a set of Fields that are NOT hidden in AT LEAST ONE project that
the remote user can see (has Permissions.BROWSE permission for). |
Set<NavigableField> |
getAvailableNavigableFields(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(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 remoteUser,
QueryContext queryContext)
Gets all the available fields within the defined scope of the QueryContext. |
Set<NavigableField> |
getAvailableNavigableFieldsWithScope(User remoteUser,
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 key)
Get a CustomField by its text key (eg 'customfield_10000'). |
CustomFieldManager |
getCustomFieldManager()
|
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. |
IssueTypeSystemField |
getIssueTypeSystemField()
Retrieve the IssueType system Field. |
NavigableField |
getNavigableField(String id)
|
OrderableField |
getOrderableField(String id)
|
Set<OrderableField> |
getOrderableFields()
|
ProjectField |
getProjectField()
Retrieve the Project system Field. |
ProjectSystemField |
getProjectSystemField()
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 key)
|
boolean |
isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser,
Field field)
|
boolean |
isFieldHidden(User remoteUser,
Field field)
Determines whether the given Field 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 |
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 |
isFieldHidden(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)
|
protected boolean |
isSubTasksOn()
|
boolean |
isTimeTrackingOn()
|
boolean |
isUnscreenableField(Field field)
|
boolean |
isUnscreenableField(String id)
|
protected boolean |
isVotingOn()
|
void |
onClearCache(ClearCacheEvent event)
|
void |
refresh()
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFieldManager(com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public Field getField(String id)
FieldManager
getField in interface FieldManagerid - An IssueFieldConstants constant, or custom field key (eg. "customfield_10010")
public Set<NavigableField> getAllAvailableNavigableFields()
throws FieldException
Fields that are NOT hidden in AT LEAST ONE project in the system.
NOTE: This method is used in the Admin interface, as admins should be able to configure the
default ColumnLayouts irrespective of their permissions. They should be able to see all fields that
are not hidden in at least one FieldLayout in the system
getAllAvailableNavigableFields in interface FieldManagerFieldException - if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projects
public Set<NavigableField> getAvailableNavigableFields(com.atlassian.crowd.embedded.api.User remoteUser)
throws FieldException
Fields that are NOT hidden in AT LEAST ONE project that
the remote user can see (has Permissions.BROWSE permission for).
The returned set of fields contains all custom fields that are not hidden in AT LEAST one FieldLayout that the
user can see.
NOTE: This method is primarily used for configuring user's ColumnLayout, as the user should be able to
add any field (including custom field) to it that they can see in the system. THe scope of custom fields is ignored
here as the user configures the ColumnLayout outside of scope.
getAvailableNavigableFields in interface FieldManagerremoteUser - the remote user
FieldException - if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projects
public final Set<NavigableField> getAvailableNavigableFields(User remoteUser)
throws FieldException
getAvailableNavigableFields in interface FieldManagerFieldExceptionpublic Set<SearchableField> getAllSearchableFields()
FieldManager
getAllSearchableFields in interface FieldManagerpublic Set<SearchableField> getSystemSearchableFields()
FieldManager
getSystemSearchableFields in interface FieldManagerpublic IssueTypeField getIssueTypeField()
FieldManager
getIssueTypeField in interface FieldManagerpublic IssueTypeSystemField getIssueTypeSystemField()
FieldManager
getIssueTypeSystemField in interface FieldManagerpublic ProjectField getProjectField()
FieldManager
getProjectField in interface FieldManagerpublic ProjectSystemField getProjectSystemField()
FieldManager
getProjectSystemField in interface FieldManager
public Set<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user)
throws FieldException
FieldManager
getAvailableNavigableFieldsWithScope in interface FieldManageruser - the remote user.
FieldException - thrown if there is a problem looking up the fields
public final Set<NavigableField> getAvailableNavigableFieldsWithScope(User user)
throws FieldException
FieldManager
getAvailableNavigableFieldsWithScope in interface FieldManageruser - the remote user.
FieldException - thrown if there is a problem looking up the fields
public Set<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User remoteUser,
QueryContext queryContext)
throws FieldException
FieldManager
getAvailableNavigableFieldsWithScope in interface FieldManagerremoteUser - the user making the requestqueryContext - the context of the search request.
FieldException - thrown if there is a problem looking up the fields
public final Set<NavigableField> getAvailableNavigableFieldsWithScope(User remoteUser,
QueryContext queryContext)
throws FieldException
FieldManager
getAvailableNavigableFieldsWithScope in interface FieldManagerremoteUser - the user making the requestqueryContext - the context of the search request.
FieldException - thrown if there is a problem looking up the fields
public Set<CustomField> getAvailableCustomFields(User remoteUser,
org.ofbiz.core.entity.GenericValue issue)
throws FieldException
FieldManager
getAvailableCustomFields in interface FieldManagerremoteUser - Remote Userissue - Issue
FieldException - if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projects
public Set<CustomField> getAvailableCustomFields(com.atlassian.crowd.embedded.api.User remoteUser,
Issue issue)
throws FieldException
FieldManager
getAvailableCustomFields in interface FieldManagerremoteUser - Remote Userissue - Issue
FieldException - if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projects
public final Set<CustomField> getAvailableCustomFields(User remoteUser,
Issue issue)
throws FieldException
FieldManager
getAvailableCustomFields in interface FieldManagerremoteUser - Remote Userissue - Issue
FieldException - if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projects
public boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser,
String fieldId)
throws FieldLayoutStorageException
FieldManagerFieldLayout that the user can see
(assigned to projects for which the user has the Permissions.BROWSE permission).
isFieldHidden in interface FieldManagerremoteUser - the remote user.fieldId - The Field ID
FieldLayoutStorageException
public final boolean isFieldHidden(User remoteUser,
String fieldId)
throws FieldLayoutStorageException
FieldManagerFieldLayout that the user can see
(assigned to projects for which the user has the Permissions.BROWSE permission).
isFieldHidden in interface FieldManagerremoteUser - the remote user.fieldId - The Field ID
FieldLayoutStorageException
public boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser,
Field field)
throws FieldLayoutStorageException
isFieldHidden in interface FieldManagerFieldLayoutStorageException
public final boolean isFieldHidden(User remoteUser,
Field field)
throws FieldLayoutStorageException
FieldManagerFieldLayout that the user can see
(assigned to projects for which the user has the Permissions.BROWSE permission).
isFieldHidden in interface FieldManagerremoteUser - the remote user.field - The Field
FieldLayoutStorageExceptionpublic boolean isCustomField(String key)
isCustomField in interface FieldManagerpublic boolean isCustomField(Field field)
isCustomField in interface FieldManagerpublic CustomField getCustomField(String key)
FieldManager
getCustomField in interface FieldManagerkey - Eg. 'customfield_10000'
CustomField or null if not found.public boolean isHideableField(String id)
isHideableField in interface FieldManagerpublic boolean isHideableField(Field field)
isHideableField in interface FieldManagerpublic HideableField getHideableField(String id)
getHideableField in interface FieldManagerpublic boolean isOrderableField(String id)
isOrderableField in interface FieldManagerpublic boolean isOrderableField(Field field)
isOrderableField in interface FieldManagerpublic OrderableField getOrderableField(String id)
getOrderableField in interface FieldManagerpublic ConfigurableField getConfigurableField(String id)
getConfigurableField in interface FieldAccessorgetConfigurableField in interface FieldManagerpublic Set<OrderableField> getOrderableFields()
getOrderableFields in interface FieldManagerpublic boolean isNavigableField(String id)
isNavigableField in interface FieldManagerpublic boolean isNavigableField(Field field)
isNavigableField in interface FieldManagerpublic NavigableField getNavigableField(String id)
getNavigableField in interface FieldManagerpublic boolean isRequirableField(String id)
isRequirableField in interface FieldManagerpublic boolean isRequirableField(Field field)
isRequirableField in interface FieldManagerpublic boolean isMandatoryField(String id)
isMandatoryField in interface FieldManagerpublic boolean isMandatoryField(Field field)
isMandatoryField in interface FieldManagerpublic boolean isRenderableField(String id)
isRenderableField in interface FieldManagerpublic boolean isRenderableField(Field field)
isRenderableField in interface FieldManagerpublic boolean isUnscreenableField(String id)
isUnscreenableField in interface FieldManagerpublic boolean isUnscreenableField(Field field)
isUnscreenableField in interface FieldManagerpublic RequirableField getRequiredField(String id)
getRequiredField in interface FieldManagerpublic CustomFieldManager getCustomFieldManager()
getCustomFieldManager in interface FieldManager@Deprecated public FieldLayoutManager getFieldLayoutManager()
getFieldLayoutManager in interface FieldManager@Deprecated public ColumnLayoutManager getColumnLayoutManager()
getColumnLayoutManager in interface FieldManagerpublic void refresh()
refresh in interface FieldManagerpublic boolean isTimeTrackingOn()
isTimeTrackingOn in interface FieldManagerprotected boolean isVotingOn()
protected boolean isSubTasksOn()
public Set<Field> getUnavailableFields()
getUnavailableFields in interface FieldManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||