com.atlassian.jira.issue.fields.layout.field
Class DefaultFieldLayoutManager
java.lang.Object
com.atlassian.jira.issue.fields.layout.field.DefaultFieldLayoutManager
- All Implemented Interfaces:
- FieldLayoutManager
- Direct Known Subclasses:
- EnterpriseFieldLayoutManager
- public class DefaultFieldLayoutManager
- extends Object
- implements FieldLayoutManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEME
public static final String SCHEME
- See Also:
- Constant Field Values
SCHEME_ASSOCIATION
public static final String SCHEME_ASSOCIATION
- See Also:
- Constant Field Values
DefaultFieldLayoutManager
public DefaultFieldLayoutManager(FieldManager fieldManager)
getFieldLayout
public FieldLayout getFieldLayout()
throws FieldLayoutStorageException
- Specified by:
getFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getFieldLayout
public FieldLayout getFieldLayout(Long id)
- Specified by:
getFieldLayout
in interface FieldLayoutManager
getFieldLayout
public FieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue issue)
throws FieldLayoutStorageException
- Specified by:
getFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getFieldLayout
public FieldLayout getFieldLayout(Issue issue)
throws FieldLayoutStorageException
- Specified by:
getFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getFieldLayout
public FieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue project,
String issueTypeId)
throws FieldLayoutStorageException
- Specified by:
getFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getFieldLayoutSchemes
public List getFieldLayoutSchemes()
throws FieldLayoutStorageException
- Specified by:
getFieldLayoutSchemes
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
updateFieldLayoutScheme
public void updateFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
throws FieldLayoutStorageException
- Specified by:
updateFieldLayoutScheme
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
deleteFieldLayoutScheme
public void deleteFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
throws FieldLayoutStorageException
- Specified by:
deleteFieldLayoutScheme
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getEditableDefaultFieldLayout
public EditableDefaultFieldLayout getEditableDefaultFieldLayout()
throws FieldLayoutStorageException
- Specified by:
getEditableDefaultFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
storeEditableDefaultFieldLayout
public void storeEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout)
throws FieldLayoutStorageException
- Specified by:
storeEditableDefaultFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
storeEditableFieldLayout
public void storeEditableFieldLayout(EditableFieldLayout editableFieldLayout)
throws FieldLayoutStorageException
- THIS METHOD MUST BE SYNCHRONIZED!!!!
So that only one thread updates the database at any one time. "Fields are duplicated" if this method
is not synchronized.
- Specified by:
storeEditableFieldLayout
in interface FieldLayoutManager
- Parameters:
editableFieldLayout
-
- Throws:
FieldLayoutStorageException
refreshCaches
protected void refreshCaches(Long id)
hasDefaultFieldLayout
public boolean hasDefaultFieldLayout()
throws FieldLayoutStorageException
- Specified by:
hasDefaultFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
restoreDefaultFieldLayout
public void restoreDefaultFieldLayout()
throws FieldLayoutStorageException
- Specified by:
restoreDefaultFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
restoreSchemeFieldLayout
public void restoreSchemeFieldLayout(org.ofbiz.core.entity.GenericValue scheme)
throws FieldLayoutStorageException
- Specified by:
restoreSchemeFieldLayout
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
restoreFieldLayout
protected void restoreFieldLayout(Long id)
throws FieldLayoutStorageException
- Throws:
FieldLayoutStorageException
getProjects
public Collection getProjects(FieldLayoutScheme fieldLayoutScheme)
throws FieldLayoutStorageException
- Specified by:
getProjects
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
createFieldLayoutScheme
public FieldLayoutScheme createFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
throws FieldLayoutStorageException
- Specified by:
createFieldLayoutScheme
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getFieldLayoutScheme
public FieldLayoutScheme getFieldLayoutScheme(Long schemeId)
throws FieldLayoutStorageException
- Specified by:
getFieldLayoutScheme
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getFieldLayoutScheme
public FieldLayoutScheme getFieldLayoutScheme(String schemeName)
throws FieldLayoutStorageException
- Specified by:
getFieldLayoutScheme
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
getEditableFieldLayouts
public List getEditableFieldLayouts()
- Specified by:
getEditableFieldLayouts
in interface FieldLayoutManager
getFieldLayoutScheme
public FieldLayoutScheme getFieldLayoutScheme(org.ofbiz.core.entity.GenericValue project)
throws FieldLayoutStorageException,
org.ofbiz.core.entity.GenericEntityException
- Specified by:
getFieldLayoutScheme
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
org.ofbiz.core.entity.GenericEntityException
addSchemeAssociation
public void addSchemeAssociation(org.ofbiz.core.entity.GenericValue project,
FieldLayoutScheme fieldLayoutScheme)
throws FieldLayoutStorageException,
org.ofbiz.core.entity.GenericEntityException
- Specified by:
addSchemeAssociation
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
org.ofbiz.core.entity.GenericEntityException
removeSchemeAssociation
public void removeSchemeAssociation(org.ofbiz.core.entity.GenericValue project,
FieldLayoutScheme fieldLayoutScheme)
throws FieldLayoutStorageException,
org.ofbiz.core.entity.GenericEntityException
- Specified by:
removeSchemeAssociation
in interface FieldLayoutManager
- Throws:
FieldLayoutStorageException
org.ofbiz.core.entity.GenericEntityException
refresh
public void refresh()
- Specified by:
refresh
in interface FieldLayoutManager
getEditableFieldLayout
public EditableFieldLayout getEditableFieldLayout(Long id)
- Specified by:
getEditableFieldLayout
in interface FieldLayoutManager
deleteFieldLayout
public void deleteFieldLayout(FieldLayout fieldLayout)
- Specified by:
deleteFieldLayout
in interface FieldLayoutManager
getFieldLayoutSchemeEntities
public Collection getFieldLayoutSchemeEntities(FieldLayoutScheme fieldLayoutScheme)
- Specified by:
getFieldLayoutSchemeEntities
in interface FieldLayoutManager
createFieldLayoutSchemeEntity
public void createFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
- Specified by:
createFieldLayoutSchemeEntity
in interface FieldLayoutManager
updateFieldLayoutSchemeEntity
public void updateFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
- Specified by:
updateFieldLayoutSchemeEntity
in interface FieldLayoutManager
removeFieldLayoutSchemeEntity
public void removeFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
- Specified by:
removeFieldLayoutSchemeEntity
in interface FieldLayoutManager
removeFieldLayoutScheme
public void removeFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
- Specified by:
removeFieldLayoutScheme
in interface FieldLayoutManager
getFieldLayoutSchemes
public Collection getFieldLayoutSchemes(EditableFieldLayout editableFieldLayout)
- Specified by:
getFieldLayoutSchemes
in interface FieldLayoutManager
getRelatedProjects
public Collection getRelatedProjects(EditableFieldLayout editableFieldLayout)
- Specified by:
getRelatedProjects
in interface FieldLayoutManager
getRelevantFieldLayout
protected FieldLayout getRelevantFieldLayout(Long id)
throws FieldLayoutStorageException
- Retrieves the field layout given a given id.
If the id is null the default field layout is retrieved
- Throws:
FieldLayoutStorageException
getDefaultDesciption
protected String getDefaultDesciption(String fieldId)
Copyright © 2002-2007 Atlassian. All Rights Reserved.