|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldLayoutManager
The FieldLayoutManager is responsible for managing screens, field configurations and field configuration schemes.
Field Summary | |
---|---|
static String |
TYPE_DEFAULT
JIRA must have a default field layout. |
Method Summary | |
---|---|
void |
addSchemeAssociation(org.ofbiz.core.entity.GenericValue project,
FieldLayoutScheme fieldLayoutScheme)
Associates a FieldLayoutScheme to the project supplied. |
FieldLayoutScheme |
createFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
Persists a new field Layout scheme (i.e Field Configuration Scheme). |
void |
createFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
Persists a new FieldLayoutSchemeEntity for a particular FieldLayoutScheme . |
void |
deleteFieldLayout(FieldLayout fieldLayout)
Deletes a custom FieldLayout
NOTE: This is an enterprise ONLY feature. |
void |
deleteFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
Removes the FieldLayoutScheme supplied. |
EditableDefaultFieldLayout |
getEditableDefaultFieldLayout()
Returns the default EditableDefaultFieldLayout . |
EditableFieldLayout |
getEditableFieldLayout(Long id)
Returns an EditableFieldLayout for the id supplied. |
List |
getEditableFieldLayouts()
Retrieves editable (see EditableFieldLayout versions of the field layouts. |
FieldLayout |
getFieldLayout()
Used to retrieve FieldLayout information when rendering a screen. |
FieldLayout |
getFieldLayout(org.ofbiz.core.entity.GenericValue issue)
Returns the fieldLayout for an issue. |
FieldLayout |
getFieldLayout(org.ofbiz.core.entity.GenericValue project,
String issueTypeId)
|
FieldLayout |
getFieldLayout(Issue issue)
|
FieldLayout |
getFieldLayout(Long id)
Used to retrieve FieldLayout information when rendering a screen given the id
of the field layout. |
FieldLayoutScheme |
getFieldLayoutScheme(org.ofbiz.core.entity.GenericValue project)
Retrieves the Field Configuration Scheme associated with the supplied project. |
FieldLayoutScheme |
getFieldLayoutScheme(Long schemeId)
Retrieves a FieldLayoutScheme by id
NOTE: This is an enterprise ONLY feature. |
FieldLayoutScheme |
getFieldLayoutScheme(String schemeName)
Retrieves a FieldLayoutScheme by name
NOTE: This is an enterprise ONLY feature. |
Collection |
getFieldLayoutSchemeEntities(FieldLayoutScheme fieldLayoutScheme)
Returns a collection of FieldLayoutSchemeEntity s. |
List |
getFieldLayoutSchemes()
Retries Field Configuration Schemes. |
Collection |
getFieldLayoutSchemes(EditableFieldLayout editableFieldLayout)
Returns a collection of FieldLayoutScheme s that have the EditableFieldLayout
supplied associated with them. |
Collection |
getProjects(FieldLayoutScheme fieldLayoutScheme)
Returns all associated projects for the FieldLayoutScheme supplied. |
Collection |
getRelatedProjects(EditableFieldLayout editableFieldLayout)
Finds all projects that have a certain EditableFieldLayout associated with them (via
a FieldLayoutScheme . |
boolean |
hasDefaultFieldLayout()
Checks to see if a FieldLayout entity with type TYPE_DEFAULT exists |
void |
refresh()
Clears all local caches. |
void |
removeFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
NOTE: This is an enterprise ONLY feature. |
void |
removeFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
Removes a FieldLayoutSchemeEntity
NOTE: This is an enterprise ONLY feature. |
void |
removeSchemeAssociation(org.ofbiz.core.entity.GenericValue project,
FieldLayoutScheme fieldLayoutScheme)
Removes an association between a particular project and fieldlayoutscheme. |
void |
restoreDefaultFieldLayout()
This method can be used to rollback any changes to the default field configuration. |
void |
restoreSchemeFieldLayout(org.ofbiz.core.entity.GenericValue scheme)
Restores the field layout associated with the provided scheme to defaults. |
void |
storeEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout)
Persist the given default EditableDefaultFieldLayout |
void |
storeEditableFieldLayout(EditableFieldLayout editableFieldLayout)
Persists the EditableFieldLayout provided. |
void |
updateFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
Persists the FieldLayoutScheme supplied. |
void |
updateFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
Updates a FieldLayoutSchemeEntity . |
Field Detail |
---|
static final String TYPE_DEFAULT
Method Detail |
---|
FieldLayoutScheme createFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) throws FieldLayoutStorageException
fieldLayoutScheme
- The FieldLayoutScheme
to persist.
FieldLayoutScheme
object
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard editionFieldLayoutScheme getFieldLayoutScheme(Long schemeId) throws FieldLayoutStorageException
FieldLayoutScheme
by id
NOTE: This is an enterprise ONLY feature.
schemeId
-
FieldLayoutScheme
instance
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard editionFieldLayoutScheme getFieldLayoutScheme(String schemeName) throws FieldLayoutStorageException
FieldLayoutScheme
by name
NOTE: This is an enterprise ONLY feature.
schemeName
-
FieldLayoutScheme
instance
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard editionList getEditableFieldLayouts()
EditableFieldLayout
versions of the field layouts.
Note: For standard edition this simply returns an editable version of the default field
layout. (see EditableDefaultFieldLayout
)
EditableFieldLayout
and EditableDefaultFieldLayout
List getFieldLayoutSchemes() throws FieldLayoutStorageException
FieldLayoutScheme
s.
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard editionvoid updateFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) throws FieldLayoutStorageException
FieldLayoutScheme
supplied.
NOTE: This is an enterprise ONLY feature.
fieldLayoutScheme
-
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard editionvoid deleteFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) throws FieldLayoutStorageException
FieldLayoutScheme
supplied.
NOTE: This is an enterprise ONLY feature.
fieldLayoutScheme
-
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard editionFieldLayoutScheme getFieldLayoutScheme(org.ofbiz.core.entity.GenericValue project) throws FieldLayoutStorageException, org.ofbiz.core.entity.GenericEntityException
project
- A project GenericValue
FieldLayoutScheme
or null if none exists.
FieldLayoutStorageException
org.ofbiz.core.entity.GenericEntityException
UnsupportedOperationException
- If this is executed against standard edition
IllegalArgumentException
- If the project supplied is null.void addSchemeAssociation(org.ofbiz.core.entity.GenericValue project, FieldLayoutScheme fieldLayoutScheme) throws FieldLayoutStorageException, org.ofbiz.core.entity.GenericEntityException
FieldLayoutScheme
to the project supplied.
NOTE: This is an enterprise ONLY feature.
project
- A project GenericValue
fieldLayoutScheme
-
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard edition
IllegalArgumentException
- If the project supplied is null.
org.ofbiz.core.entity.GenericEntityException
void removeSchemeAssociation(org.ofbiz.core.entity.GenericValue project, FieldLayoutScheme fieldLayoutScheme) throws FieldLayoutStorageException, org.ofbiz.core.entity.GenericEntityException
project
- A project GenericValue
fieldLayoutScheme
-
FieldLayoutStorageException
IllegalArgumentException
- If the fieldLayoutScheme passes is null
UnsupportedOperationException
- If this is executed against standard edition
org.ofbiz.core.entity.GenericEntityException
FieldLayout getFieldLayout() throws FieldLayoutStorageException
FieldLayout
information when rendering a screen.
FieldLayoutStorageException
FieldLayout getFieldLayout(Long id)
FieldLayout
information when rendering a screen given the id
of the field layout. If the ID is null, the default layout is returned.
NOTE: This is an enterprise ONLY feature.
id
-
FieldLayout
UnsupportedOperationException
- If this is executed against standard editionFieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue issue) throws FieldLayoutStorageException
issue
- An issue GenericValue
FieldLayout
FieldLayoutStorageException
FieldLayout getFieldLayout(Issue issue) throws FieldLayoutStorageException
issue
- An Issue
FieldLayout
FieldLayoutStorageException
getFieldLayout(org.ofbiz.core.entity.GenericValue)
FieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue project, String issueTypeId) throws FieldLayoutStorageException
project
- A project GenericValue
issueTypeId
- The IssueType id of the issue.
FieldLayout
FieldLayoutStorageException
getFieldLayout(org.ofbiz.core.entity.GenericValue)
EditableDefaultFieldLayout getEditableDefaultFieldLayout() throws FieldLayoutStorageException
EditableDefaultFieldLayout
.
FieldLayoutStorageException
void storeEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout) throws FieldLayoutStorageException
EditableDefaultFieldLayout
editableDefaultFieldLayout
-
FieldLayoutStorageException
void storeEditableFieldLayout(EditableFieldLayout editableFieldLayout) throws FieldLayoutStorageException
EditableFieldLayout
provided.
editableFieldLayout
-
FieldLayoutStorageException
void restoreDefaultFieldLayout() throws FieldLayoutStorageException
FieldLayoutStorageException
void restoreSchemeFieldLayout(org.ofbiz.core.entity.GenericValue scheme) throws FieldLayoutStorageException
scheme
- A scheme GenericValue
FieldLayoutStorageException
IllegalArgumentException
- if the scheme passes is null.
UnsupportedOperationException
- If this is executed against standard editionboolean hasDefaultFieldLayout() throws FieldLayoutStorageException
FieldLayout
entity with type TYPE_DEFAULT
exists
FieldLayout
exists, false otherwise.
FieldLayoutStorageException
Collection getProjects(FieldLayoutScheme fieldLayoutScheme) throws FieldLayoutStorageException
FieldLayoutScheme
supplied.
NOTE: This is an enterprise ONLY feature.
fieldLayoutScheme
-
GenericValue
s
FieldLayoutStorageException
UnsupportedOperationException
- If this is executed against standard editionvoid refresh()
EditableFieldLayout getEditableFieldLayout(Long id)
EditableFieldLayout
for the id supplied.
NOTE: This is an enterprise ONLY feature.
id
- If the id is NULL, the default layout is returned.
EditableFieldLayout
UnsupportedOperationException
- If this is executed against standard editionvoid deleteFieldLayout(FieldLayout fieldLayout)
FieldLayout
NOTE: This is an enterprise ONLY feature.
fieldLayout
-
UnsupportedOperationException
- If this is executed against standard editionCollection getFieldLayoutSchemeEntities(FieldLayoutScheme fieldLayoutScheme)
FieldLayoutSchemeEntity
s. These are used to
record mappings from IssueType
-> FieldLayout
for the FieldLayoutScheme
passed in.
NOTE: This is an enterprise ONLY feature.
fieldLayoutScheme
-
FieldLayoutSchemeEntity
s.
UnsupportedOperationException
- If this is executed against standard editionvoid createFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
FieldLayoutSchemeEntity
for a particular FieldLayoutScheme
.
The appropriate scheme is retrieved using FieldLayoutSchemeEntity.getFieldLayoutScheme()
NOTE: This is an enterprise ONLY feature.
fieldLayoutSchemeEntity
-
UnsupportedOperationException
- If this is executed against standard editionvoid updateFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
FieldLayoutSchemeEntity
.
NOTE: This is an enterprise ONLY feature.
fieldLayoutSchemeEntity
-
UnsupportedOperationException
- If this is executed against standard editionvoid removeFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
FieldLayoutSchemeEntity
NOTE: This is an enterprise ONLY feature.
fieldLayoutSchemeEntity
-
UnsupportedOperationException
- If this is executed against standard editionvoid removeFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
fieldLayoutScheme
-
UnsupportedOperationException
- If this is executed against standard editionCollection getFieldLayoutSchemes(EditableFieldLayout editableFieldLayout)
FieldLayoutScheme
s that have the EditableFieldLayout
supplied associated with them. This is determined by retrieving all FieldLayoutSchemeEntity
s
with the EditableFieldLayout
and calculating a set of FieldLayoutScheme
s associated
with these entities.
NOTE: This is an enterprise ONLY feature.
editableFieldLayout
-
FieldLayoutScheme
s
UnsupportedOperationException
- If this is executed against standard editionCollection getRelatedProjects(EditableFieldLayout editableFieldLayout)
EditableFieldLayout
associated with them (via
a FieldLayoutScheme
.
NOTE: In the case of Standard & Professional, this simply returns ALL projects, as the only
fieldlayout is the default field layout.
editableFieldLayout
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |