public class

DefaultShareTypeFactory

extends Object
implements ShareTypeFactory
java.lang.Object
   ↳ com.atlassian.jira.sharing.type.DefaultShareTypeFactory

Class Overview

Default implementation that simply builds a list based on the constructor.

Summary

Public Constructors
DefaultShareTypeFactory(GlobalShareType globalShareType, GroupShareType groupShareType, ProjectShareType projectShareType)
Public Methods
Collection<ShareType> getAllShareTypes()
Returns a Collection of all ShareType instnaces available.
Comparator<SharePermission> getPermissionComparator()
Return a comparator that can order SharePermissions for display.
ShareType getShareType(ShareType.Name type)
Returns a ShareType based on a given key.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.sharing.type.ShareTypeFactory

Public Constructors

public DefaultShareTypeFactory (GlobalShareType globalShareType, GroupShareType groupShareType, ProjectShareType projectShareType)

Public Methods

public Collection<ShareType> getAllShareTypes ()

Returns a Collection of all ShareType instnaces available.

Returns
  • a Collection of all ShareType instnaces available.

public Comparator<SharePermission> getPermissionComparator ()

Return a comparator that can order SharePermissions for display.

Returns
  • a comparator for permission ordering.

public ShareType getShareType (ShareType.Name type)

Returns a ShareType based on a given key.

Parameters
type a string representing type of ShareType
Returns