Package com.atlassian.bamboo.project
Class ProjectIdentifierImpl
- java.lang.Object
-
- com.atlassian.bamboo.project.ProjectIdentifierImpl
-
- All Implemented Interfaces:
BambooIdProvider
,ProjectIdentifier
,DescriptionProvider
,NameProvider
public class ProjectIdentifierImpl extends Object implements ProjectIdentifier
-
-
Constructor Summary
Constructors Constructor Description ProjectIdentifierImpl(long id, String key, String name, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProjectIdentifier
forProject(@NotNull Project project)
String
getDescription()
long
getId()
@NotNull String
getKey()
Returns key of the project.@NotNull String
getName()
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceProjectIdentifier
- Returns:
- Database id of the project
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:ProjectIdentifier
Returns key of the project. Keys are capital, alphanumeric strings.- Specified by:
getKey
in interfaceProjectIdentifier
- Returns:
- key of project. Must not be null.
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
- Specified by:
getName
in interfaceProjectIdentifier
- Returns:
- the name of the project.
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceDescriptionProvider
-
forProject
public static ProjectIdentifier forProject(@NotNull @NotNull Project project)
-
-