${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.CopyLibs.displayName=CopyLibs Task
libs.CopyLibs.prop-version=2.0
-libs.JCache_CDI.classpath=\
- ${base}/JCache_CDI/jcache-cdi-0.1-SNAPSHOT.jar
-libs.JCache_CDI.displayName=JCache CDI
-libs.JCache_CDI.src=\
- ${base}/JCache_CDI/jcache-cdi-0.1-SNAPSHOT-sources.jar!//
+libs.payara-api.classpath=\
+ ${base}/payara-api/payara-api.jar
+libs.payara-api.displayName=Payara API
libs.primefaces.classpath=\
${base}/primefaces/primefaces-6.0.jar
libs.primefaces.displayName=PrimeFaces 6.0
excludes=
file.reference.jcontacts-business-core.jar=lib/jcontacts-business-core.jar
file.reference.cdi-api.jar=lib/cdi-api.jar
-file.reference.gf-client.jar=lib/gf-client.jar
file.reference.jcontacts-business-lib.jar=lib/jcontacts-business-lib.jar
file.reference.jcontacts-core.jar=lib/jcontacts-core.jar
file.reference.jcontacts-lib.jar=lib/jcontacts-lib.jar
${reference.jfinancials-core.jar}:\
${reference.jfinancials-lib.jar}:\
${file.reference.cdi-api.jar}:\
- ${file.reference.gf-client.jar}:\
${libs.apache_poi.classpath}:\
${libs.primefaces.classpath}:\
- ${libs.cache.classpath}
+ ${libs.cache.classpath}:\
+ ${libs.payara-api.classpath}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
javac.debug=true
<library dirs="200">
<file>${file.reference.cdi-api.jar}</file>
</library>
- <library dirs="200">
- <file>${file.reference.gf-client.jar}</file>
- </library>
<library dirs="200">
<file>${libs.apache_poi.classpath}</file>
</library>
<library dirs="200">
<file>${libs.cache.classpath}</file>
</library>
+ <library dirs="200">
+ <file>${libs.payara-api.classpath}</file>
+ </library>
</web-module-libraries>
<web-module-additional-libraries/>
<source-roots>
*/
package org.mxchange.jfinancials.beans.business.basicdata;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.LinkedList;
import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.events.basicdata.added.ObservableAdminAddedBusinessBasicDataEvent;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
import org.mxchange.jfinancials.beans.user.login.FinancialsUserLoginWebSessionController;
* A list of all registered companies (globally)
*/
@Inject
- @Cached (cacheName = "basicDataCache")
+ @NamedCache (cacheName = "basicDataCache", managementEnabled = true)
private transient Cache<Long, BusinessBasicData> basicDataCache;
/**
*/
package org.mxchange.jfinancials.beans.business.employee;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import javax.inject.Named;
import org.mxchange.jcontactsbusiness.employee.CompanyEmployeeSessionBeanRemote;
import org.mxchange.jcontactsbusiness.employee.Employee;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
/**
* List of all company employees
*/
@Inject
- @Cached(cacheName = "companyEmployeeCache")
+ @NamedCache (cacheName = "companyEmployeeCache", managementEnabled = true)
private transient Cache<Long, Employee> companyEmployeeCache;
/**
*/
package org.mxchange.jfinancials.beans.contact;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.Date;
import org.mxchange.jcontacts.contact.title.PersonalTitle;
import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
+import org.mxchange.jfinancials.beans.user.FinancialsUserWebRequestController;
import org.mxchange.jfinancials.beans.user.login.FinancialsUserLoginWebSessionController;
import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.phonenumbers.fax.FaxNumber;
import org.mxchange.juserlogincore.events.login.ObservableUserLoggedInEvent;
import org.mxchange.juserlogincore.events.registration.ObservableUserRegisteredEvent;
import org.mxchange.juserlogincore.exceptions.UserPasswordMismatchException;
-import org.mxchange.jfinancials.beans.user.FinancialsUserWebRequestController;
/**
* A general contact bean (controller)
* Contact list
*/
@Inject
- @Cached (cacheName = "contactsCache")
+ @NamedCache (cacheName = "contactsCache", managementEnabled = true)
private transient Cache<Long, Contact> contactsCache;
/**
* Email address list
*/
@Inject
- @Cached (cacheName = "emailAddressCache")
+ @NamedCache (cacheName = "emailAddressCache", managementEnabled = true)
private transient Cache<Long, String> emailAddressCache;
/**
*/
package org.mxchange.jfinancials.beans.contact.phone;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.LinkedList;
import java.util.List;
import org.mxchange.jcontacts.events.fax.unlinked.ObservableAdminUnlinkedFaxNumberEvent;
import org.mxchange.jcontacts.events.landline.unlinked.ObservableAdminUnlinkedLandLineNumberEvent;
import org.mxchange.jcontacts.events.mobile.unlinked.ObservableAdminUnlinkedMobileNumberEvent;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
+import org.mxchange.jfinancials.beans.contact.FinancialsContactWebRequestController;
import org.mxchange.jphone.events.fax.created.ObservableCreatedFaxNumberEvent;
import org.mxchange.jphone.events.landline.created.ObservableCreatedLandLineNumberEvent;
import org.mxchange.jphone.events.mobile.created.ObservableCreatedMobileNumberEvent;
import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
-import org.mxchange.jfinancials.beans.contact.FinancialsContactWebRequestController;
/**
* A general contact bean (controller)
* relationship (one contact, many numbers).
*/
@Inject
- @Cached(cacheName = "contactsPhoneCache")
+ @NamedCache (cacheName = "contactsPhoneCache", managementEnabled = true)
private transient Cache<DialableNumber, List<Contact>> contactsPhoneCache;
/**
*/
package org.mxchange.jfinancials.beans.country;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.LinkedList;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import javax.inject.Named;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jcountry.data.CountrySingletonBeanRemote;
import org.mxchange.jcountry.events.ObservableAdminAddedCountryEvent;
* List of all countries
*/
@Inject
- @Cached (cacheName = "countryCache")
+ @NamedCache (cacheName = "countryCache", managementEnabled = true)
private transient Cache<Long, Country> countryCache;
/**
*/
package org.mxchange.jfinancials.beans.mobileprovider;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.LinkedList;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import javax.inject.Named;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
import org.mxchange.jphone.events.mobileprovider.added.AdminAddedMobileProviderEvent;
import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
*/
private static final long serialVersionUID = 15_869_423_671_950_276L;
- /**
- * "Cached" list of mobile providers
- */
- @Inject
- @Cached (cacheName = "mobileProviderCache")
- private transient Cache<Long, MobileProvider> mobileProviderCache;
-
/**
* Remote EJB for mobile providers (regular)
*/
@EJB (lookup = "java:global/jfinancials-ejb/mobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.MobileProviderSingletonBeanRemote")
private MobileProviderSingletonBeanRemote mobileProviderBean;
+ /**
+ * "Cached" list of mobile providers
+ */
+ @Inject
+ @NamedCache (cacheName = "mobileProviderCache", managementEnabled = true)
+ private transient Cache<Long, MobileProvider> mobileProviderCache;
+
/**
* Default constructor
*/
*/
package org.mxchange.jfinancials.beans.phone;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.LinkedList;
import org.mxchange.jcontacts.events.fax.linked.ObservableAdminLinkedFaxNumberEvent;
import org.mxchange.jcontacts.events.landline.linked.ObservableAdminLinkedLandLineNumberEvent;
import org.mxchange.jcontacts.events.mobile.linked.ObservableAdminLinkedMobileNumberEvent;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
import org.mxchange.jphone.events.fax.deleted.AdminDeletedFaxNumberEvent;
import org.mxchange.jphone.events.fax.updated.AdminUpdatedFaxNumberEvent;
* All fax numbers
*/
@Inject
- @Cached(cacheName = "faxNumberCache")
+ @NamedCache (cacheName = "faxNumberCache", managementEnabled = true)
private transient Cache<Long, DialableFaxNumber> faxNumberCache;
/**
* All land-line numbers
*/
@Inject
- @Cached(cacheName = "landLineNumberCache")
+ @NamedCache (cacheName = "landLineNumberCache", managementEnabled = true)
private transient Cache<Long, DialableLandLineNumber> landLineNumberCache;
/**
* All mobile numbers
*/
@Inject
- @Cached(cacheName = "mobileNumberCache")
+ @NamedCache (cacheName = "mobileNumberCache", managementEnabled = true)
private transient Cache<Long, DialableMobileNumber> mobileNumberCache;
/**
*/
package org.mxchange.jfinancials.beans.user;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.LinkedList;
import javax.inject.Named;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcoreee.events.locale.ObservableLocaleChangeEvent;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
+import org.mxchange.jfinancials.beans.contact.FinancialsContactWebRequestController;
import org.mxchange.jfinancials.beans.features.FinancialsFeaturesWebApplicationController;
import org.mxchange.jfinancials.beans.localization.FinancialsLocalizationSessionController;
import org.mxchange.jfinancials.beans.user.login.FinancialsUserLoginWebSessionController;
import org.mxchange.juserlogincore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
import org.mxchange.juserlogincore.exceptions.UserPasswordMismatchException;
import org.mxchange.juserlogincore.login.UserLoginUtils;
-import org.mxchange.jfinancials.beans.contact.FinancialsContactWebRequestController;
/**
* A user bean (controller)
@EJB (lookup = "java:global/jfinancials-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote")
private UserSessionBeanRemote userBean;
- /**
- * User id
- */
- private Long userId;
-
/**
* A list of all user profiles
*/
@Inject
- @Cached (cacheName = "userCache")
+ @NamedCache (cacheName = "userCache", managementEnabled = true)
private transient Cache<Long, User> userCache;
+ /**
+ * User id
+ */
+ private Long userId;
+
/**
* Login controller (bean)
*/
* User name list
*/
@Inject
- @Cached (cacheName = "userNameCache")
+ @NamedCache (cacheName = "userNameCache", managementEnabled = true)
private transient Cache<Long, String> userNameCache;
/**
*/
package org.mxchange.jfinancials.beans.user.activity;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.GregorianCalendar;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import javax.inject.Named;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
import org.mxchange.jusercore.events.user.created.ObservableCreatedUserEvent;
* "Cache" for activity log per user
*/
@Inject
- @Cached(cacheName = "usersActivityCache")
- private transient Cache<User, List<LogableUserActivity>> usersActivityCache;
+ @NamedCache (cacheName = "userActivityCache", managementEnabled = true)
+ private transient Cache<User, List<LogableUserActivity>> userActivityCache;
/**
* Default constructor
List<LogableUserActivity> list = new LinkedList<>();
// Is the user set?
- if (this.usersActivityCache.containsKey(this.getUser())) {
+ if (this.userActivityCache.containsKey(this.getUser())) {
// Return it
- list.addAll(this.usersActivityCache.get(this.getUser()));
+ list.addAll(this.userActivityCache.get(this.getUser()));
// Sort list and reverse it
Collections.sort(list, new UserActivityLogTimestampComparator());
// Put all in map, per-user
for (final LogableUserActivity userActivity : list) {
// Is the list there?
- if (!this.usersActivityCache.containsKey(userActivity.getActivityUser())) {
+ if (!this.userActivityCache.containsKey(userActivity.getActivityUser())) {
// Init list
- this.usersActivityCache.put(userActivity.getActivityUser(), new LinkedList<LogableUserActivity>());
+ this.userActivityCache.put(userActivity.getActivityUser(), new LinkedList<LogableUserActivity>());
}
// Add by user instance
- boolean added = this.usersActivityCache.get(userActivity.getActivityUser()).add(userActivity);
+ boolean added = this.userActivityCache.get(userActivity.getActivityUser()).add(userActivity);
// Should be added
assert (added) : "Activity log not added"; //NOI18N
}
// Is it there?
- if (!this.usersActivityCache.containsKey(userActivity.getActivityUser())) {
+ if (!this.userActivityCache.containsKey(userActivity.getActivityUser())) {
// Init it
- this.usersActivityCache.put(userActivity.getActivityUser(), new LinkedList<LogableUserActivity>());
+ this.userActivityCache.put(userActivity.getActivityUser(), new LinkedList<LogableUserActivity>());
}
// Add activity to log
- this.usersActivityCache.get(userActivity.getActivityUser()).add(userActivity);
+ this.userActivityCache.get(userActivity.getActivityUser()).add(userActivity);
}
}
*/
package org.mxchange.jfinancials.beans.user.email_address;
+import fish.payara.cdi.jsr107.impl.NamedCache;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Named;
import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcoreee.jcache.Cached;
import org.mxchange.jcoreee.utils.FacesUtils;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
import org.mxchange.jfinancials.beans.features.FinancialsFeaturesWebApplicationController;
* Local list of already queued email addresses
*/
@Inject
- @Cached (cacheName = "queuedEmailCache")
+ @NamedCache (cacheName = "queuedEmailCache", managementEnabled = true)
private transient Cache<String, Boolean> queuedEmailCache;
/**