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
SharePermissions 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()
ShareTypeFactoryShareType instnaces available.getAllShareTypes in interface ShareTypeFactoryShareType instnaces available.public ShareType getShareType(ShareType.Name type)
ShareTypeFactoryShareType based on a given key.getShareType in interface ShareTypeFactorytype - a string representing type of ShareTypeShareType based on a given key.public Comparator<SharePermission> getPermissionComparator()
ShareTypeFactorySharePermissions for display.getPermissionComparator in interface ShareTypeFactoryCopyright © 2002-2019 Atlassian. All Rights Reserved.