001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.model; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.util.Accessor; 020 021 /** 022 * The extended model interface for the LayoutSet service. Represents a row in the "LayoutSet" database table, with each column mapped to a property of this class. 023 * 024 * @author Brian Wing Shun Chan 025 * @see LayoutSetModel 026 * @see com.liferay.portal.model.impl.LayoutSetImpl 027 * @see com.liferay.portal.model.impl.LayoutSetModelImpl 028 * @generated 029 */ 030 @ProviderType 031 public interface LayoutSet extends LayoutSetModel, PersistedModel { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify this interface directly. Add methods to {@link com.liferay.portal.model.impl.LayoutSetImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. 036 */ 037 public static final Accessor<LayoutSet, Long> LAYOUT_SET_ID_ACCESSOR = new Accessor<LayoutSet, Long>() { 038 @Override 039 public Long get(LayoutSet layoutSet) { 040 return layoutSet.getLayoutSetId(); 041 } 042 043 @Override 044 public Class<Long> getAttributeClass() { 045 return Long.class; 046 } 047 048 @Override 049 public Class<LayoutSet> getTypeClass() { 050 return LayoutSet.class; 051 } 052 }; 053 054 /** 055 * Returns the layout set's color scheme. 056 * 057 * <p> 058 * Just like themes, color schemes can be configured on the layout set 059 * level. The layout set's color scheme can be overridden on the layout 060 * level. 061 * </p> 062 * 063 * @return the layout set's color scheme 064 */ 065 public com.liferay.portal.model.ColorScheme getColorScheme(); 066 067 public java.lang.String getCompanyFallbackVirtualHostname(); 068 069 /** 070 * Returns the layout set's group. 071 * 072 * @return the layout set's group 073 */ 074 public com.liferay.portal.model.Group getGroup() 075 throws com.liferay.portal.kernel.exception.PortalException; 076 077 /** 078 * Returns the layout set prototype's ID, or <code>0</code> if it has no 079 * layout set prototype. 080 * 081 * <p> 082 * Prototype is Liferay's technical name for a site template. 083 * </p> 084 * 085 * @return the layout set prototype's ID, or <code>0</code> if it has no 086 layout set prototype 087 */ 088 public long getLayoutSetPrototypeId() 089 throws com.liferay.portal.kernel.exception.PortalException; 090 091 public long getLiveLogoId(); 092 093 public boolean getLogo(); 094 095 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties(); 096 097 public java.lang.String getSettingsProperty(java.lang.String key); 098 099 public com.liferay.portal.model.Theme getTheme(); 100 101 public java.lang.String getThemeSetting(java.lang.String key, 102 java.lang.String device); 103 104 /** 105 * Returns the name of the layout set's virtual host. 106 * 107 * <p> 108 * When accessing a layout set that has a the virtual host, the URL elements 109 * "/web/sitename" or "/group/sitename" can be omitted. 110 * </p> 111 * 112 * @return the layout set's virtual host name, or an empty string if the 113 layout set has no virtual host configured 114 */ 115 public java.lang.String getVirtualHostname(); 116 117 public com.liferay.portal.model.ColorScheme getWapColorScheme(); 118 119 public com.liferay.portal.model.Theme getWapTheme(); 120 121 public boolean hasSetModifiedDate(); 122 123 public boolean isLayoutSetPrototypeLinkActive(); 124 125 public boolean isLogo(); 126 127 public void setCompanyFallbackVirtualHostname( 128 java.lang.String companyFallbackVirtualHostname); 129 130 public void setSettingsProperties( 131 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties); 132 133 /** 134 * Sets the name of the layout set's virtual host. 135 * 136 * @param virtualHostname the name of the layout set's virtual host 137 * @see #getVirtualHostname() 138 */ 139 public void setVirtualHostname(java.lang.String virtualHostname); 140 }