public class DefaultShareTypeFactory extends Object implements ShareTypeFactory
Constructor and Description |
---|
DefaultShareTypeFactory(GlobalShareType globalShareType,
AuthenticatedUserShareType authenticatedUserShareType,
GroupShareType groupShareType,
ProjectShareType projectShareType,
UserShareType userShareType) |
Modifier and Type | Method and Description |
---|---|
Collection<ShareType> |
getAllShareTypes()
Returns a Collection of all
ShareType instnaces available. |
Comparator<SharePermission> |
getPermissionComparator()
Return a comparator that can order
SharePermission s for display. |
ShareType |
getShareType(ShareType.Name type)
Returns a
ShareType based on a given key. |
public DefaultShareTypeFactory(GlobalShareType globalShareType, AuthenticatedUserShareType authenticatedUserShareType, GroupShareType groupShareType, ProjectShareType projectShareType, UserShareType userShareType)
public Collection<ShareType> getAllShareTypes()
ShareTypeFactory
ShareType
instnaces available.getAllShareTypes
in interface ShareTypeFactory
ShareType
instnaces available.public ShareType getShareType(ShareType.Name type)
ShareTypeFactory
ShareType
based on a given key.getShareType
in interface ShareTypeFactory
type
- a string representing type of ShareType
ShareType
based on a given key.public Comparator<SharePermission> getPermissionComparator()
ShareTypeFactory
SharePermission
s for display.getPermissionComparator
in interface ShareTypeFactory
Copyright © 2002-2023 Atlassian. All Rights Reserved.