/**
* A feature bean
* <p>
- * @author Roland Haeder<rhaeder@cho-time.de>
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Named ("featureController")
@ApplicationScoped
--- /dev/null
+/*
+ * Copyright (C) 2016 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jjobs.beans.features;
+
+import java.io.Serializable;
+import javax.ejb.Local;
+
+/**
+ * An interface for country beans
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+@Local
+public interface JobsFeaturesWebApplicationController extends Serializable {
+
+ /**
+ * Checks if given feature is enabled.
+ * <p>
+ * @param feature Feature to be checked
+ * <p>
+ * @return Whether given feature is enabled
+ */
+ boolean isFeatureEnabled (final String feature);
+
+}
/*
- * Copyright (C) 2016 Cho-Time GmbH
+ * Copyright (C) 2016 Roland Haeder
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.addressbook.beans.BaseAddressbookController;
-import org.mxchange.addressbook.beans.features.AddressbookFeaturesWebApplicationController;
import org.mxchange.addressbook.beans.login.AddressbookUserLoginWebSessionController;
import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
import org.mxchange.jusercore.events.user.password_change.UserUpdatedPasswordEvent;
import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
import org.mxchange.jusercore.model.user.UserUtils;
import org.mxchange.jusercore.model.user.password_history.PasswordHistory;
+import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController;
/**
* A user password (change) bean (controller)
* <p>
- * @author Roland Haeder<rhaeder@cho-time.de>
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Named ("userPasswordController")
@RequestScoped
* Features controller
*/
@Inject
- private AddressbookFeaturesWebApplicationController featureController;
+ private JobsFeaturesWebApplicationController featureController;
/**
* Remote user bean
/*
- * Copyright (C) 2016 Cho-Time GmbH
+ * Copyright (C) 2016 Roland Haeder
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
/**
* An interface for user beans
* <p>
- * @author Roland Haeder<rhaeder@cho-time.de>
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Local
public interface JobsUserPasswordWebRequestController extends Serializable {