Class Overview
Thread safety is mostly achieved (there are still some issues with the setGenericValue(GenericValue)
method)
by two mechanisms.
- all mutative operations to the map are done under a write-lock. For extra safety all stores/loads from the database
are also done under the lock, even though this is not ideal.
- iteration over the map are protected by a read-lock.
Public Constructors
public
FieldLayoutSchemeImpl
(FieldLayoutManager fieldLayoutManager, GenericValue genericValue)
Public Methods
public
boolean
containsEntity
(String issueTypeId)
public
String
getDescription
()
public
Long
getFieldLayoutId
(String issueTypeId)
Returns the id of the field layout to use for this given issue type id. This will do all the necessary work to
lookup the default entry if no specific mapping for the given isuse type id exists. So after calling this method
simply use the returned field layout id.
Parameters
issueTypeId
| the Issue Type ID. |
Returns
- the id of the
FieldLayout
("Field Configuration") to use for this given issue type id.
public
void
removeEntity
(String issueTypeId)
public
void
setDescription
(String description)
public
void
setName
(String name)
Protected Methods