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 ProjectIdentifierforProject(@NotNull Project project)StringgetDescription()longgetId()@NotNull StringgetKey()Returns key of the project.@NotNull StringgetName()
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceProjectIdentifier- Returns:
- Database id of the project
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:ProjectIdentifierReturns key of the project. Keys are capital, alphanumeric strings.- Specified by:
getKeyin interfaceProjectIdentifier- Returns:
- key of project. Must not be null.
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider- Specified by:
getNamein interfaceProjectIdentifier- Returns:
- the name of the project.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
forProject
public static ProjectIdentifier forProject(@NotNull @NotNull Project project)
-
-