Package com._1c.g5.v8.dt.team
Interface IIssueTypeRepository
-
public interface IIssueTypeRepository
Development issue type repository allows to create and manage issue types.- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IIssueType
add(String name, String prefix)
Adds new development issue type.List<IIssueType>
getAll()
Returns a list of all known development issue types.Optional<IIssueType>
getDefault()
Returns an optional default development issue type to use.void
remove(IIssueType issueType)
Removes existing development issue type.void
setDefault(IIssueType issueType)
Sets the default development issue type to use.IIssueType
update(IIssueType issueType, String name, String prefix)
Updates existing development issue type.
-
-
-
Method Detail
-
add
IIssueType add(String name, String prefix) throws IssueTypeRepositoryException
Adds new development issue type. Returns an instance of created development issue type.- Parameters:
name
- the issue name, cannot benull
prefix
- the issue branch prefix ornull
if none- Returns:
- the created development issue type, never
null
- Throws:
IssueTypeRepositoryException
- if issue type repository management failed
-
update
IIssueType update(IIssueType issueType, String name, String prefix) throws IssueTypeRepositoryException
Updates existing development issue type. Returns an instance of updated development issue type.- Parameters:
issueType
- the development issue type, cannot benull
name
- the issue name, cannot benull
prefix
- the issue branch prefix ornull
if none- Returns:
- the updated development issue type, never
null
- Throws:
IssueTypeRepositoryException
- if issue type repository management failed
-
remove
void remove(IIssueType issueType) throws IssueTypeRepositoryException
Removes existing development issue type.- Parameters:
issueType
- the development issue type, cannot benull
- Throws:
IssueTypeRepositoryException
- if type repository management failed
-
getAll
List<IIssueType> getAll() throws IssueTypeRepositoryException
Returns a list of all known development issue types.- Returns:
- a list of all known development issue types, never
null
- Throws:
IssueTypeRepositoryException
- if issue type repository management failed
-
getDefault
Optional<IIssueType> getDefault() throws IssueTypeRepositoryException
Returns an optional default development issue type to use.- Returns:
- an optional default development issue type to use
- Throws:
IssueTypeRepositoryException
- if issue type repository management failed
-
setDefault
void setDefault(IIssueType issueType) throws IssueTypeRepositoryException
Sets the default development issue type to use.- Parameters:
issueType
- the development issue type, cannot benull
- Throws:
IssueTypeRepositoryException
- if issue type repository management failed
-
-