Class RevisionInfoBean
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.config.RevisionInfoBean
-
public class RevisionInfoBean extends Object
Information about the provenance of this application: release, revision level, build date, etc. Except for the build date, the information is stored for all levels of the application. So an instance of NIHVIVO might read: date: 2010-11-09 12:15:44 level: vitro-core, trunk, 1234:1236M level: vivo, branch rel_1.1_maint, 798 Note that the levels should be listed from inner to outer. Instances of this class are immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRevisionInfoBean.LevelRevisionInfoRevision info about one level of the application -- e.g.
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_NAMEThe bean is attached to the session by this name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static RevisionInfoBeangetBean(javax.servlet.http.HttpSession session)static RevisionInfoBeangetBean(javax.servlet.ServletContext context)DategetBuildDate()List<RevisionInfoBean.LevelRevisionInfo>getLevelInfos()StringgetReleaseLabel()inthashCode()static voidremoveBean(javax.servlet.ServletContext context)StringtoString()
-
-
-
Field Detail
-
ATTRIBUTE_NAME
public static final String ATTRIBUTE_NAME
The bean is attached to the session by this name.
-
-
Method Detail
-
getBean
public static RevisionInfoBean getBean(javax.servlet.http.HttpSession session)
-
getBean
public static RevisionInfoBean getBean(javax.servlet.ServletContext context)
-
removeBean
public static void removeBean(javax.servlet.ServletContext context)
-
getBuildDate
public Date getBuildDate()
-
getLevelInfos
public List<RevisionInfoBean.LevelRevisionInfo> getLevelInfos()
-
getReleaseLabel
public String getReleaseLabel()
-
-