Package com.atlassian.jira.sharing.type
Class DefaultShareTypeFactory
java.lang.Object
com.atlassian.jira.sharing.type.DefaultShareTypeFactory
- All Implemented Interfaces:
ShareTypeFactory
Default implementation that simply builds a list based on the constructor.
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultShareTypeFactory(GlobalShareType globalShareType, AuthenticatedUserShareType authenticatedUserShareType, GroupShareType groupShareType, ProjectShareType projectShareType, UserShareType userShareType) -
Method Summary
Modifier and TypeMethodDescriptionReturns a Collection of allShareTypeinstnaces available.Return a comparator that can orderSharePermissions for display.getShareType(ShareType.Name type) Returns aShareTypebased on a given key.
-
Constructor Details
-
Method Details
-
getPermissionComparator
Description copied from interface:ShareTypeFactoryReturn a comparator that can orderSharePermissions for display.- Specified by:
getPermissionComparatorin interfaceShareTypeFactory- Returns:
- a comparator for permission ordering.