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
 java.util.Collection<ShareType> getAllShareTypes()
          Returns a Collection of all ShareType instnaces available.
 java.util.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

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

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

Returns:
a comparator for permission ordering.


Copyright © 2002-2011 Atlassian. All Rights Reserved.