Search in sources :

Example 1 with CCMastheadModel

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;
}
Also used : AMModel(com.sun.identity.console.base.model.AMModel) CCMastheadModel(com.sun.web.ui.model.CCMastheadModel)

Aggregations

AMModel (com.sun.identity.console.base.model.AMModel)1 CCMastheadModel (com.sun.web.ui.model.CCMastheadModel)1