public class BambooProjectAggregateRootTypeCapability extends Object implements com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
Constructor and Description |
---|
BambooProjectAggregateRootTypeCapability(ProjectManager projectManager,
BambooUserManager bambooUserManager,
BambooPermissionManager bambooPermissionManager,
DeletionService deletionService,
com.atlassian.sal.api.ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUserCreateRoot(String username) |
com.atlassian.fugue.Either<com.atlassian.plugins.projectcreate.spi.ResponseStatusWithMessage,com.atlassian.plugins.projectcreate.spi.AggregateRoot> |
createRoot(String username,
String key,
String name,
com.atlassian.fugue.Option<String> subtypeKey) |
com.atlassian.fugue.Either<com.atlassian.plugins.projectcreate.spi.ResponseStatusWithMessage,com.atlassian.plugins.projectcreate.spi.ResponseStatusWithMessage> |
deleteRoot(String username,
String entityKey) |
void |
flushPluginSettings() |
String |
getDescriptionI18nKey() |
Iterable<com.atlassian.plugins.projectcreate.spi.AggregateRoot> |
getExistingRoots() |
String |
getLabelI18nKey() |
com.atlassian.fugue.Option<com.atlassian.plugins.projectcreate.spi.AggregateRoot> |
getRootByKey(com.atlassian.fugue.Option<String> maybeUsername,
String entityKey) |
Iterable<com.atlassian.plugins.projectcreate.spi.AggregateRootSubType> |
getSubTypes() |
String |
getType() |
boolean |
isAvailable() |
public BambooProjectAggregateRootTypeCapability(ProjectManager projectManager, BambooUserManager bambooUserManager, BambooPermissionManager bambooPermissionManager, DeletionService deletionService, com.atlassian.sal.api.ApplicationProperties applicationProperties)
public String getType()
getType
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public String getLabelI18nKey()
getLabelI18nKey
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public String getDescriptionI18nKey()
getDescriptionI18nKey
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public boolean isAvailable()
isAvailable
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public Iterable<com.atlassian.plugins.projectcreate.spi.AggregateRootSubType> getSubTypes()
getSubTypes
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public Iterable<com.atlassian.plugins.projectcreate.spi.AggregateRoot> getExistingRoots()
getExistingRoots
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public boolean canUserCreateRoot(String username)
canUserCreateRoot
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public com.atlassian.fugue.Option<com.atlassian.plugins.projectcreate.spi.AggregateRoot> getRootByKey(com.atlassian.fugue.Option<String> maybeUsername, String entityKey)
getRootByKey
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public com.atlassian.fugue.Either<com.atlassian.plugins.projectcreate.spi.ResponseStatusWithMessage,com.atlassian.plugins.projectcreate.spi.AggregateRoot> createRoot(String username, String key, String name, com.atlassian.fugue.Option<String> subtypeKey)
createRoot
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public com.atlassian.fugue.Either<com.atlassian.plugins.projectcreate.spi.ResponseStatusWithMessage,com.atlassian.plugins.projectcreate.spi.ResponseStatusWithMessage> deleteRoot(String username, String entityKey)
deleteRoot
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
public void flushPluginSettings()
flushPluginSettings
in interface com.atlassian.plugins.projectcreate.spi.AggregateRootTypeCapability
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.