com.atlassian.jira.sharing.type
Interface ShareTypeFactory

All Known Implementing Classes:
DefaultShareTypeFactory

public interface ShareTypeFactory

Factory that supplies all ShareTypes that are available in the system.

Since:
v3.13

Method Summary
 Collection getAllShareTypes()
          Returns a Collection of all ShareType instnaces available.
 ShareType getShareType(ShareType.Name type)
          Returns a ShareType based on a given key.
 Comparator getShareTypeComparator()
          Return a comparator that can order SharePermissions for display.
 

Method Detail

getAllShareTypes

Collection getAllShareTypes()
Returns a Collection of all ShareType instnaces available.

Returns:
a Collection of all ShareType instnaces available.

getShareType

ShareType getShareType(ShareType.Name type)
Returns a ShareType based on a given key.

Parameters:
type - a string representing type of ShareType
Returns:
a ShareType based on a given key.

getShareTypeComparator

Comparator getShareTypeComparator()
Return a comparator that can order SharePermissions for display.

Returns:
a comparator for permission ordering.


Copyright © 2002-2008 Atlassian. All Rights Reserved.