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<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.
 

Method Detail

getAllShareTypes

Collection<ShareType> 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.

getPermissionComparator

Comparator<SharePermission> getPermissionComparator()
Return a comparator that can order SharePermissions for display.

Returns:
a comparator for permission ordering.


Copyright © 2002-2009 Atlassian. All Rights Reserved.