public class AbstractShareType extends Object implements ShareType
ShareType.Name
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 |
boolean |
isSingleton()
Represents whether this ShareType is a singleton.
|
public 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()
ShareType
public boolean isSingleton()
ShareType
SharedEntity
can only have a single instance of this ShareType and no
others.isSingleton
in interface ShareType
public int getPriority()
ShareType
getPriority
in interface ShareType
public ShareTypeRenderer getRenderer()
ShareType
ShareTypeRenderer
that contains all logic for rendering this ShareTypegetRenderer
in interface ShareType
public ShareTypeValidator getValidator()
ShareType
ShareTypeValidator
that contains all logic for validating this ShareTypegetValidator
in interface ShareType
public ShareTypePermissionChecker getPermissionsChecker()
ShareType
SharedEntity
getPermissionsChecker
in interface ShareType
ShareType
public Comparator<SharePermission> getComparator()
ShareType
SharePermission
of this type.getComparator
in interface ShareType
public ShareQueryFactory<? extends ShareTypeSearchParameter> getQueryFactory()
ShareType
getQueryFactory
in interface ShareType
Copyright © 2002-2016 Atlassian. All Rights Reserved.