Skip to content

Commit

Permalink
LPS-99711 portal-search-admin-web: Search Panel Category
Browse files Browse the repository at this point in the history
  • Loading branch information
arboliveira authored and brianchandotcom committed Aug 13, 2019
1 parent b128f34 commit cab8889
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
Expand Up @@ -14,6 +14,7 @@ dependencies {
compileOnly project(":apps:portal-instances:portal-instances-api")
compileOnly project(":apps:portal-portlet-bridge:portal-portlet-bridge-soy-api")
compileOnly project(":apps:portal-search:portal-search-api")
compileOnly project(":apps:portal-search:portal-search-web-api")
compileOnly project(":core:petra:petra-function")
compileOnly project(":core:petra:petra-lang")
compileOnly project(":core:petra:petra-string")
Expand Down
@@ -0,0 +1,50 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/

package com.liferay.portal.search.admin.web.internal.application.list;

import com.liferay.application.list.BasePanelCategory;
import com.liferay.application.list.PanelCategory;
import com.liferay.application.list.constants.PanelCategoryKeys;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.search.web.application.list.constants.SearchPanelCategoryKeys;

import java.util.Locale;

import org.osgi.service.component.annotations.Component;

/**
* @author André de Oliveira
*/
@Component(
immediate = true,
property = {
"panel.category.key=" + PanelCategoryKeys.CONTROL_PANEL,
"panel.category.order:Integer=900"
},
service = PanelCategory.class
)
public class SearchPanelCategory extends BasePanelCategory {

@Override
public String getKey() {
return SearchPanelCategoryKeys.CONTROL_PANEL_SEARCH;
}

@Override
public String getLabel(Locale locale) {
return LanguageUtil.get(locale, "search");
}

}

0 comments on commit cab8889

Please sign in to comment.