public class

DefaultSchemeFactory

extends Object
implements SchemeFactory
java.lang.Object
   ↳ com.atlassian.jira.scheme.DefaultSchemeFactory

Class Overview

The implementation of the SchemeFactory

Summary

Constants
String ISSUE_SECURITY_SCHEME
String NOTIFICATION_SCHEME
String PERMISSION_SCHEME
String WORKFLOW_SCHEME
Public Constructors
DefaultSchemeFactory()
Public Methods
Scheme getScheme(GenericValue schemeGV, Collection<GenericValue> schemeEntityGVs)
This will take a GenericValue that represents a Scheme and a Collection of GenericValue's representing a SchemeEntity and return the actual Scheme object and it's associated entities as objects.
Scheme getScheme(GenericValue schemeGV)
Will take a GenericValue that represents a Scheme and return the actual Scheme object and it's associated entities.
Scheme getSchemeWithEntitiesComparable(GenericValue schemeGV)
Will take a GenericValue that represents a Scheme 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.
List<Scheme> getSchemes(List<GenericValue> schemeGVs)
List<Scheme> getSchemesWithEntitiesComparable(List<GenericValue> schemeGVs)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.scheme.SchemeFactory

Constants

public static final String ISSUE_SECURITY_SCHEME

Constant Value: "IssueSecurityScheme"

public static final String NOTIFICATION_SCHEME

Constant Value: "NotificationScheme"

public static final String PERMISSION_SCHEME

Constant Value: "PermissionScheme"

public static final String WORKFLOW_SCHEME

Constant Value: "WorkflowScheme"

Public Constructors

public DefaultSchemeFactory ()

Public Methods

public Scheme getScheme (GenericValue schemeGV, Collection<GenericValue> schemeEntityGVs)

This will take a GenericValue that represents a Scheme and a Collection of GenericValue's representing a SchemeEntity and return the actual Scheme object and it's associated entities as objects.

Returns
  • the scheme represented by the GenericValue

public Scheme getScheme (GenericValue schemeGV)

Will take a GenericValue that represents a Scheme and return the actual Scheme object and it's associated entities.

Returns
  • the scheme represented by the GenericValue

public Scheme getSchemeWithEntitiesComparable (GenericValue schemeGV)

Will take a GenericValue that represents a Scheme 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.

Returns
  • the scheme represented by the GenericValue

public List<Scheme> getSchemes (List<GenericValue> schemeGVs)

public List<Scheme> getSchemesWithEntitiesComparable (List<GenericValue> schemeGVs)