| java.lang.Object org.jasig.portal.Version
Version | public class Version (Code) | | Contains version information about the current release.
This implementation uses static fields and static initializers to pre-compute
once the return values for all String-returning methods so as to avoid
String concatenation induced object churn at runtime. This adds a moderate
amount of code complexity in exchange for non-impactful memory utilization
behaviors in the case where this class is invoked in a tight loop, as when
it is called on every portal render informing the theme transform.
This class is deprecated so these heroics are likely misapplied. Use
VersionManager instead.
author: Ken Weiner, kweiner@unicon.net author: Bernie Durfee, bernard.durfee@suny.edu version: $Revision: 36790 $ |
Method Summary | |
public static String | getExtra() Previously, returned any extra string used to construct this version.
For example, this would return + for uPortal 2.3.4+.
A plus sign is used to denote that the code is between releases,
the head of a branch in CVS.
Now, this method always returns the String "unkown". | public static String | getMajor() Returns the major version. | public static String | getMinor() Returns the minor version. | public static String | getPatch() Returns the patch version. | public static String | getProduct() Returns the product name. | public static String | getProductAndVersion() Returns a display-friendly string representing the
current product and version. | public static String | getReleaseTag() Returns the release tag in the CVS repository
corresponding to the current code. | public static String | getSecurity() Previously, returned the security version.
For example, this would return 1 for uPortal 2.3.4.1.
Now, this method always returns the String "unknown". | public static String | getVersion() Returns the version of the current code. |
getExtra | public static String getExtra()(Code) | | Previously, returned any extra string used to construct this version.
For example, this would return + for uPortal 2.3.4+.
A plus sign is used to denote that the code is between releases,
the head of a branch in CVS.
Now, this method always returns the String "unkown". Extra information
beyond dotted triple version number is not supported by
VersionsManager, upon which
uPortal has standardized since the inception of this class. This class
is deprecated and will be removed in a future uPortal release.
"unknown" |
getMajor | public static String getMajor()(Code) | | Returns the major version.
For example, this would return 2 for uPortal 2.3.4.
If the product major version is unknown this method returns the String "unknown".
the major version |
getMinor | public static String getMinor()(Code) | | Returns the minor version.
For example, this would return 3 for uPortal 2.3.4.
If the product minor version is unknown this method returns the String "unknown".
the minor version |
getPatch | public static String getPatch()(Code) | | Returns the patch version.
For example, this would return 4 for uPortal 2.3.4.
This method may return an empty String.
If the product patch version is unknown this method returns the String "unknown".
the patch version |
getProduct | public static String getProduct()(Code) | | Returns the product name.
For example, this would return uPortal for uPortal 2.3.4.
If the product name is unknown this method returns the String "unknown".
the product name |
getProductAndVersion | public static String getProductAndVersion()(Code) | | Returns a display-friendly string representing the
current product and version.
For example, uPortal 2.3.4 .
If the version is unknown this method returns the String "unknown".
a verison string suitable for display |
getReleaseTag | public static String getReleaseTag()(Code) | | Returns the release tag in the CVS repository
corresponding to the current code.
For example, rel-2-3-4 .
If the product release tag is unknown this method returns the String "unknown".
the release tag matching the running code |
getSecurity | public static String getSecurity()(Code) | | Previously, returned the security version.
For example, this would return 1 for uPortal 2.3.4.1.
Now, this method always returns the String "unknown". Security
version number is not supported by VersionsManager, upon which
uPortal has standardized since the inception of this class. This class
is deprecated and will be removed in a future uPortal release.
"unknown" |
getVersion | public static String getVersion()(Code) | | Returns the version of the current code.
For example, 2.3.4 .
If the product version is unknown this method returns the String "unknown".
the current version of the running code |
|
|