Package com.atlassian.jira.scheme
Class DefaultSchemeFactory
java.lang.Object
com.atlassian.jira.scheme.DefaultSchemeFactory
- All Implemented Interfaces:
SchemeFactory
The implementation of the SchemeFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetScheme
(org.ofbiz.core.entity.GenericValue schemeGV) Will take aGenericValue
that represents aScheme
and return the actual Scheme object and it's associated entities.getScheme
(org.ofbiz.core.entity.GenericValue schemeGV, Collection<org.ofbiz.core.entity.GenericValue> schemeEntityGVs) This will take aGenericValue
that represents aScheme
and aCollection
of GenericValue's representing aSchemeEntity
and return the actual Scheme object and it's associated entities as objects.getSchemes
(List<org.ofbiz.core.entity.GenericValue> schemeGVs) getSchemesWithEntitiesComparable
(List<org.ofbiz.core.entity.GenericValue> schemeGVs) getSchemeWithEntitiesComparable
(org.ofbiz.core.entity.GenericValue schemeGV) Will take aGenericValue
that represents aScheme
and return the actual Scheme object and it's associated entities, NOTE: the entities returned from this method will not have the id field populated this allows you to test the equality of entities ignoring the fact that they are actually representing different records in the persistent store.
-
Field Details
-
NOTIFICATION_SCHEME
- See Also:
-
PERMISSION_SCHEME
- See Also:
-
ISSUE_SECURITY_SCHEME
- See Also:
-
WORKFLOW_SCHEME
- See Also:
-
-
Constructor Details
-
DefaultSchemeFactory
public DefaultSchemeFactory()
-
-
Method Details
-
getScheme
Description copied from interface:SchemeFactory
Will take aGenericValue
that represents aScheme
and return the actual Scheme object and it's associated entities.- Specified by:
getScheme
in interfaceSchemeFactory
- Returns:
- the scheme represented by the GenericValue
- Throws:
DataAccessException
-
getSchemes
public List<Scheme> getSchemes(List<org.ofbiz.core.entity.GenericValue> schemeGVs) throws DataAccessException - Specified by:
getSchemes
in interfaceSchemeFactory
- Throws:
DataAccessException
-
getSchemeWithEntitiesComparable
Description copied from interface:SchemeFactory
Will take aGenericValue
that represents aScheme
and return the actual Scheme object and it's associated entities, NOTE: the entities returned from this method will not have the id field populated this allows you to test the equality of entities ignoring the fact that they are actually representing different records in the persistent store.- Specified by:
getSchemeWithEntitiesComparable
in interfaceSchemeFactory
- Returns:
- the scheme represented by the GenericValue
-
getSchemesWithEntitiesComparable
public List<Scheme> getSchemesWithEntitiesComparable(List<org.ofbiz.core.entity.GenericValue> schemeGVs) - Specified by:
getSchemesWithEntitiesComparable
in interfaceSchemeFactory
-
getScheme
public Scheme getScheme(org.ofbiz.core.entity.GenericValue schemeGV, Collection<org.ofbiz.core.entity.GenericValue> schemeEntityGVs) Description copied from interface:SchemeFactory
This will take aGenericValue
that represents aScheme
and aCollection
of GenericValue's representing aSchemeEntity
and return the actual Scheme object and it's associated entities as objects.- Specified by:
getScheme
in interfaceSchemeFactory
- Returns:
- the scheme represented by the GenericValue
-