|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.tools.versioning.VersionsManager
Provides access to and persistence of version information for pieces of code installed in the portal. Identification of pieces of code is by functional name. Version is represented by three integers. In most significant order these are Major, Minor, and Micro.
Method Summary | |
static VersionsManager |
getInstance()
Returns the singleton instance of the VersionsManager. |
Version |
getVersion(java.lang.String fname)
Returns the version for a specified functional name or null if no version information is available. |
Version[] |
getVersions()
Returns an array of Versions representing all version information registered with the VersionsManager. |
boolean |
removeVersion(java.lang.String fname)
Removes version information for the specified functional name. |
boolean |
setVersion(java.lang.String fname,
java.lang.String description,
int major,
int minor,
int micro)
Updates the version information for the indicated functional name to the passed in values only if: a) a version already exists and the values in the database match those obtained via getVersion(fname). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final VersionsManager getInstance()
public Version[] getVersions()
public Version getVersion(java.lang.String fname)
fname
- java.lang.String
public boolean removeVersion(java.lang.String fname)
fname
- java.lang.String
public boolean setVersion(java.lang.String fname, java.lang.String description, int major, int minor, int micro)
fname
- major
- minor
- micro
-
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |