Class BitbucketRepositoryProvider
- java.lang.Object
-
- org.vx68k.netbeans.module.bitbucket.BitbucketRepositoryProvider
-
- All Implemented Interfaces:
RepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
public final class BitbucketRepositoryProvider extends Object implements RepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
Implementation ofRepositoryProvider
for Bitbucket Cloud.- Author:
- Kaz Nishimura
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitbucketRepositoryProvider.Adapter
Repository adapter.
-
Field Summary
Fields Modifier and Type Field Description static Pattern
REPOSITORY_NAME_PATTERN
Regular expression pattern for a full name.-
Fields inherited from interface org.netbeans.modules.bugtracking.spi.RepositoryProvider
EVENT_QUERY_LIST_CHANGED, EVENT_UNSUBMITTED_ISSUES_CHANGED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BitbucketRepositoryProvider()
Initializes the object.
-
Method Summary
-
-
-
Field Detail
-
REPOSITORY_NAME_PATTERN
public static final Pattern REPOSITORY_NAME_PATTERN
Regular expression pattern for a full name.
-
-
Method Detail
-
getAdapter
protected BitbucketRepositoryProvider.Adapter getAdapter(BitbucketIssueTrackerProxy repository)
Returns the descriptor for a repository.- Parameters:
repository
- repository- Returns:
- descriptor
-
setInfo
protected void setInfo(BitbucketIssueTrackerProxy repository, RepositoryInfo info)
Sets the properties of a Bitbucket Cloud repository according to aRepositoryInfo
object.- Parameters:
repository
- a Bitbucket Cloud repositoryinfo
- aRepositoryInfo
object
-
getInfo
public RepositoryInfo getInfo(BitbucketIssueTrackerProxy repository)
- Specified by:
getInfo
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
getIcon
public Image getIcon(BitbucketIssueTrackerProxy repository)
- Specified by:
getIcon
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
removed
public void removed(BitbucketIssueTrackerProxy repository)
- Specified by:
removed
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
getIssues
public Collection<BitbucketIssue> getIssues(BitbucketIssueTrackerProxy repository, String... ids)
- Specified by:
getIssues
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
createQuery
public BitbucketQuery createQuery(BitbucketIssueTrackerProxy repository)
- Specified by:
createQuery
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
createIssue
public BitbucketIssue createIssue(BitbucketIssueTrackerProxy repository)
This implementation always returns
null
.- Specified by:
createIssue
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
createIssue
public BitbucketIssue createIssue(BitbucketIssueTrackerProxy repository, String summary, String description)
- Specified by:
createIssue
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
getQueries
public Collection<BitbucketQuery> getQueries(BitbucketIssueTrackerProxy repository)
- Specified by:
getQueries
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
simpleSearch
public Collection<BitbucketIssue> simpleSearch(BitbucketIssueTrackerProxy repository, String criteria)
- Specified by:
simpleSearch
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
canAttachFiles
public boolean canAttachFiles(BitbucketIssueTrackerProxy repository)
- Specified by:
canAttachFiles
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
getController
public RepositoryController getController(BitbucketIssueTrackerProxy repository)
- Specified by:
getController
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
addPropertyChangeListener
public void addPropertyChangeListener(BitbucketIssueTrackerProxy repository, PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
removePropertyChangeListener
public void removePropertyChangeListener(BitbucketIssueTrackerProxy repository, PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interfaceRepositoryProvider<BitbucketIssueTrackerProxy,BitbucketQuery,BitbucketIssue>
-
-