public class AbstractShareType extends Object implements ShareType
ShareType.Name, ShareType.UsageContextType| Constructor and Description |
|---|
AbstractShareType(ShareType.Name type,
boolean singleton,
int priority,
ShareTypeRenderer renderer,
ShareTypeValidator validator,
ShareTypePermissionChecker permissionChecker,
ShareQueryFactory<? extends ShareTypeSearchParameter> queryFactory,
Comparator<SharePermission> comparator) |
| Modifier and Type | Method and Description |
|---|---|
Comparator<SharePermission> |
getComparator()
Return a comparator that can order a
SharePermission of this type. |
ShareTypePermissionChecker |
getPermissionsChecker()
Responsible for checking that a user has permission to use
SharedEntity |
int |
getPriority()
Return the priority of the ShareType.
|
ShareQueryFactory<? extends ShareTypeSearchParameter> |
getQueryFactory()
Return the object that can be used to build query conditions to find instances of this ShareType.
|
ShareTypeRenderer |
getRenderer()
Retrieves the
ShareTypeRenderer that contains all logic for rendering this ShareType |
ShareType.Name |
getType()
Unique identifier for the ShareType.
|
ShareTypeValidator |
getValidator()
Retrieves the
ShareTypeValidator that contains all logic for validating this ShareType |
Collection<ShareType.UsageContextType> |
getValidUsageContextTypes()
Return a collection of Usage Context Types in which this Share Type can be used.
|
boolean |
isSingleton()
Represents whether this ShareType is a singleton.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAvailablepublic AbstractShareType(ShareType.Name type, boolean singleton, int priority, ShareTypeRenderer renderer, ShareTypeValidator validator, ShareTypePermissionChecker permissionChecker, ShareQueryFactory<? extends ShareTypeSearchParameter> queryFactory, Comparator<SharePermission> comparator)
public ShareType.Name getType()
ShareTypepublic boolean isSingleton()
ShareTypeSharedEntity can only have a single instance of this ShareType and no
others.isSingleton in interface ShareTypepublic int getPriority()
ShareTypegetPriority in interface ShareTypepublic ShareTypeRenderer getRenderer()
ShareTypeShareTypeRenderer that contains all logic for rendering this ShareTypegetRenderer in interface ShareTypepublic ShareTypeValidator getValidator()
ShareTypeShareTypeValidator that contains all logic for validating this ShareTypegetValidator in interface ShareTypepublic ShareTypePermissionChecker getPermissionsChecker()
ShareTypeSharedEntitygetPermissionsChecker in interface ShareTypeShareTypepublic Comparator<SharePermission> getComparator()
ShareTypeSharePermission of this type.getComparator in interface ShareTypepublic ShareQueryFactory<? extends ShareTypeSearchParameter> getQueryFactory()
ShareTypegetQueryFactory in interface ShareType@Nonnull public Collection<ShareType.UsageContextType> getValidUsageContextTypes()
ShareTypegetValidUsageContextTypes in interface ShareTypeCopyright © 2002-2023 Atlassian. All Rights Reserved.