|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.sharing.type.AbstractShareType
public class AbstractShareType
Abstract class for ShareType classes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.sharing.type.ShareType |
---|
ShareType.Name |
Constructor Summary | |
---|---|
AbstractShareType(ShareType.Name type,
boolean singleton,
int priority,
ShareTypeRenderer renderer,
ShareTypeValidator validator,
ShareTypePermissionChecker permissionChecker,
ShareQueryFactory<? extends ShareTypeSearchParameter> queryFactory,
Comparator<SharePermission> comparator)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractShareType(ShareType.Name type, boolean singleton, int priority, ShareTypeRenderer renderer, ShareTypeValidator validator, ShareTypePermissionChecker permissionChecker, ShareQueryFactory<? extends ShareTypeSearchParameter> queryFactory, Comparator<SharePermission> comparator)
Method Detail |
---|
public ShareType.Name getType()
ShareType
getType
in interface 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 ShareType
getRenderer
in interface ShareType
public ShareTypeValidator getValidator()
ShareType
ShareTypeValidator
that contains all logic for validating this ShareType
getValidator
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |