
org.broadleafcommerce.cms.admin.client.SandBoxModule Maven / Gradle / Ivy
/*
* Copyright 2008-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.broadleafcommerce.cms.admin.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.ConstantsWithLookup;
import org.broadleafcommerce.openadmin.client.AbstractModule;
import org.broadleafcommerce.openadmin.client.BLCMain;
import org.broadleafcommerce.openadmin.client.GeneratedMessagesEntityCommon;
import org.broadleafcommerce.openadmin.client.GeneratedMessagesEntityFramework;
import org.broadleafcommerce.openadmin.client.GeneratedMessagesEntityOpenAdmin;
import org.broadleafcommerce.openadmin.client.GeneratedMessagesEntityProfile;
import org.broadleafcommerce.openadmin.client.OpenAdminMessages;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author jfischer
*
*/
public class SandBoxModule extends AbstractModule {
public void onModuleLoad() {
addConstants(GWT.create(ContentManagementMessages.class));
addConstants(GWT.create(SandBoxMessages.class));
addConstants(GWT.create(GeneratedMessagesEntityCommon.class));
addConstants(GWT.create(GeneratedMessagesEntityFramework.class));
addConstants(GWT.create(GeneratedMessagesEntityProfile.class));
addConstants(GWT.create(GeneratedMessagesEntityOpenAdmin.class));
addConstants(GWT.create(OpenAdminMessages.class));
setModuleTitle(BLCMain.getMessageManager().getString("sandBoxModuleTitle"));
setModuleKey("BLCSandBox");
List userSandBoxPermissions = new ArrayList();
userSandBoxPermissions.add("PERMISSION_ALL_USER_SANDBOX");
setSection(
BLCMain.getMessageManager().getString("userSandBoxTitle"),
"userSandBox",
"org.broadleafcommerce.cms.admin.client.view.sandbox.MySandBoxView",
"userSandBoxPresenter",
"org.broadleafcommerce.cms.admin.client.presenter.sandbox.MySandBoxPresenter",
userSandBoxPermissions
);
List approverSandBoxPermissions = new ArrayList();
approverSandBoxPermissions.add("PERMISSION_ALL_APPROVER_SANDBOX");
setSection(
BLCMain.getMessageManager().getString("approverSandBoxTitle"),
"approverSandBox",
"org.broadleafcommerce.cms.admin.client.view.sandbox.SandBoxView",
"approverSandBoxPresenter",
"org.broadleafcommerce.cms.admin.client.presenter.sandbox.SandBoxPresenter",
approverSandBoxPermissions
);
setOrder(150);
registerModule();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy