001/* 002 * (C) Copyright 2009 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * stan 018 */ 019 020package org.nuxeo.ecm.webapp.webcontainer; 021 022import java.io.Serializable; 023 024import org.nuxeo.theme.styling.service.descriptors.FlavorDescriptor; 025import org.nuxeo.theme.styling.service.descriptors.LogoDescriptor; 026 027public interface ThemeActions extends Serializable { 028 029 /** 030 * Returns negotiated default theme to handle print action. 031 */ 032 String getDefaultTheme(); 033 034 /** 035 * Returns the logo configured for negotiated flavor. 036 * 037 * @since 5.5. 038 */ 039 LogoDescriptor getLogo(); 040 041 /** 042 * Returns the logo configured for given flavor. 043 * 044 * @since 5.5. 045 */ 046 LogoDescriptor getLogo(String flavorName); 047 048 /** 049 * Returns flavor with given name. 050 */ 051 FlavorDescriptor getFlavor(String flavorName); 052 053 /** 054 * Returns current negotiated flavor. 055 * <p> 056 * Assumes current page has already been resolved for this flavor negotiation. 057 * 058 * @since 7.4 059 */ 060 String getCurrentFlavor(); 061 062 /** 063 * Returns current negotiated flavor for given page, which is set as current page. 064 * 065 * @since 7.4 066 */ 067 String getCurrentFlavor(String pageName); 068 069 /** 070 * Returns current negotiated page. 071 * 072 * @since 7.4 073 */ 074 String getCurrentPage(); 075 076 /** 077 * Sets the current page. 078 * 079 * @since 7.4 080 */ 081 void setCurrentPage(String pageName); 082 083}