Package org.forgerock.openig.util
Class ProductInfo
- java.lang.Object
-
- org.forgerock.openig.util.ProductInfo
-
public final class ProductInfo extends Object
Utility class to retrieve product information.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProductInfo
empty()
Create aProductInfo
without any information.String
getBranch()
Returns the branch name.String
getName()
Returns the product name.String
getRevision()
Returns the revision.String
getShortName()
Returns the product short name.long
getTimeStamp()
Returns the timestamp.String
getVersion()
Returns the product version.static ProductInfo
init(String productInfoPath)
Initialise the product info.
-
-
-
Method Detail
-
init
public static ProductInfo init(String productInfoPath)
Initialise the product info.- Parameters:
productInfoPath
- The path where to find the JSON file.- Returns:
- The Product info.
-
empty
public static ProductInfo empty()
Create aProductInfo
without any information.- Returns:
- an empty
ProductInfo
instance.
-
getBranch
public String getBranch()
Returns the branch name.- Returns:
- the branch name.
-
getName
public String getName()
Returns the product name.- Returns:
- the product name.
-
getRevision
public String getRevision()
Returns the revision.- Returns:
- the revision.
-
getShortName
public String getShortName()
Returns the product short name.- Returns:
- the product short name.
-
getTimeStamp
public long getTimeStamp()
Returns the timestamp.- Returns:
- the timestamp.
-
getVersion
public String getVersion()
Returns the product version.- Returns:
- the product version.
-
-