use of com.sun.web.ui.model.CCMastheadModel in project OpenAM by OpenRock.
the class AMPrimaryMastHeadViewBean method createMastheadModel.
private CCMastheadModel createMastheadModel() {
CCMastheadModel mm = new CCMastheadModel();
AMModel model = getModel();
String consoleDirectory = model.getConsoleDirectory();
/*
* set the logo; can be different for each realm based on
* the console jsp directory attribute.
*/
String logo = "../" + consoleDirectory + "/images/PrimaryProductName.png";
mm.setSrc(logo);
mm.setWidth("");
mm.setHeight("");
mm.setVersionProductNameSrc(logo);
/*
* enable some of the masthead display features...
* turn off the date, does not provide anything valid and is
* issue for localization
*/
mm.setShowDate(false);
mm.setShowServer(true);
mm.setShowUserRole(true);
mm.setVersionFileName("help/version.html");
return mm;
}
Aggregations