|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.security.ServiceVersion
This class identifies the version of a security service by major number, minor number,
and patch level.
The ServiceVersion
class is used to
represent a service version. The service version is encapsulation of the current version of the
service and it is useful for managing
compatibility within your application. A service version contains a major number, minor number,
and a
string for the patch number, which is represented as a string, for example 1.0sp1, or 1.1sp2, etc.
When the service type is returned by the security runtime service, the application can use
this class to determine which version of the
service is running on the security runtime instance.
The service version can then be used by the application to determine whether the application is
compatible with the service that is running. For example, if you have programmed your application
to be compatible with Authentication Service version 1.0, then you can instantiate an
Authentication Service version 1.0, pass it into the Authentication Service using the
com.bea.security.AuthenticationService.isCompatible
method and return whether or not the
Authentication Service API that you just fetched is compatible with API version 1.0.
Constructor Summary | |
ServiceVersion()
Constructs a ServiceVersion with version 0.0 and no patch level. |
|
ServiceVersion(int major,
int minor)
Constructs a ServiceVersion passing in the major and minor version numbers. |
|
ServiceVersion(int major,
int minor,
java.lang.String patch)
Constructs a ServiceVersion passing in the major and minor version numbers and a patch level. |
Method Summary | |
boolean |
equals(ServiceVersion version)
Overrides the default implementation to check both the major and minor number |
int |
getMajorVersion()
Gets the major number of this ServiceVersion. |
int |
getMinorVersion()
Gets the minor number of this ServiceVersion. |
java.lang.String |
getPatchLevel()
Gets the patch level of this ServiceVersion. |
long |
getVersion()
Gets the version represented as one number. |
void |
setMajorVersion(int major)
Sets the major number of this ServiceVersion. |
void |
setMinorVersion(int minor)
Sets the minor number of this ServiceVersion. |
void |
setPatchLevel(java.lang.String patch)
Sets the patch level of this ServiceVersion. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ServiceVersion()
public ServiceVersion(int major, int minor)
major
- the major version of this service.minor
- the minor version of this service.public ServiceVersion(int major, int minor, java.lang.String patch)
major
- the major version of this service.minor
- the minor version of this service.patch
- the patch level of this version represented as a String
. This string
will always be converted to lower case when stored.Method Detail |
public int getMajorVersion()
int
that is the major version number.public int getMinorVersion()
int
that is the minor version number.public long getVersion()
long
that is the major version and the minor version number masked
together.public java.lang.String getPatchLevel()
String
.public void setMajorVersion(int major)
major
- The major number of this version as an int
.public void setMinorVersion(int minor)
minor
- the minor number of this version as an int
.public void setPatchLevel(java.lang.String patch)
patch
- the patch level of this version as a String
. Patch levels are
always converted to all lower case.public boolean equals(ServiceVersion version)
version
- ServiceVersion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |