|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.sharing.type.DefaultShareTypeFactory
public class DefaultShareTypeFactory
Default implementation that simply builds a list based on the constructor.
Constructor Summary | |
---|---|
DefaultShareTypeFactory(GlobalShareType globalShareType,
GroupShareType groupShareType,
ProjectShareType projectShareType)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultShareTypeFactory(GlobalShareType globalShareType, GroupShareType groupShareType, ProjectShareType projectShareType)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |