<attribute name="jar-11-Extension-Name" value="${manifest.file.reference.juser-core.jar}"/>
<attribute name="jar-12-Extension-Name" value="${manifest.file.reference.juser-lib.jar}"/>
<attribute name="jar-13-Extension-Name" value="${manifest.file.reference.jletter-lib.jar}"/>
- <attribute name="jar-13-Extension-Name" value="${manifest.file.reference.jaddressbook-core.jar}"/>
- <attribute name="jar-14-Extension-Name" value="${manifest.file.reference.jaddressbook-lib.jar}"/>
- <attribute name="jar-14-Extension-Name" value="${manifest.file.reference.jmailer-ee.jar}"/>
- <attribute name="jar-15-Extension-Name" value="${manifest.file.reference.jjobs-mailer.jar}"/>
- <attribute name="jar-16-Extension-Name" value="${manifest.reference.jjobs-lib.jar}"/>
+ <attribute name="jar-14-Extension-Name" value="${manifest.file.reference.jaddressbook-core.jar}"/>
+ <attribute name="jar-15-Extension-Name" value="${manifest.file.reference.jaddressbook-lib.jar}"/>
+ <attribute name="jar-16-Extension-Name" value="${manifest.file.reference.jmailer-ee.jar}"/>
+ <attribute name="jar-17-Extension-Name" value="${manifest.file.reference.jjobs-mailer.jar}"/>
+ <attribute name="jar-18-Extension-Name" value="${manifest.reference.jjobs-lib.jar}"/>
</manifest>
</target>
<target depends="compile" name="library-inclusion-in-manifest">
-build.xml.data.CRC32=1e826b2b
+build.xml.data.CRC32=09f25a4d
build.xml.script.CRC32=9c0f08a9
build.xml.stylesheet.CRC32=5910fda3@1.55.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=1e826b2b
-nbproject/build-impl.xml.script.CRC32=4ae2c537
+nbproject/build-impl.xml.data.CRC32=09f25a4d
+nbproject/build-impl.xml.script.CRC32=1d0ab521
nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.55.1
import javax.ejb.Stateless;
import javax.persistence.NoResultException;
import javax.persistence.Query;
+import org.mxchange.addressbook.model.addressbook.AddressbookSessionBeanRemote;
+import org.mxchange.jaddressbookcore.exceptions.AddressbookNameAlreadyUsedException;
+import org.mxchange.jaddressbookcore.exceptions.AddressbookNotFoundException;
+import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
+import org.mxchange.jaddressbookcore.model.addressbook.UserAddressbook;
+import org.mxchange.jaddressbookcore.model.addressbook.entry.AddressbookEntry;
import org.mxchange.jcoreee.database.BaseDatabaseBean;
-import org.mxchange.jjobs.exceptions.AddressbookNameAlreadyUsedException;
-import org.mxchange.jjobs.exceptions.AddressbookNotFoundException;
-import org.mxchange.jjobs.model.addressbook.entry.AddressbookEntry;
import org.mxchange.jusercore.model.user.User;
/**
* @author Roland Haeder<roland@mxchange.org>
*/
@Stateless (name = "addressbook", mappedName = "ejb/stateless-jjobs-adr", description = "A stateless bean for handling JJobs addressbooks")
-public class JobsAddressbookSessionBean extends BaseDatabaseBean implements JobsAddressbookSessionBeanRemote {
+public class JobsAddressbookSessionBean extends BaseDatabaseBean implements AddressbookSessionBeanRemote {
/**
* Serial number
// Validate parameter
if (null == addressbook) {
// Throw NPE
- throw new NullPointerException("addressbook is null");
+ throw new NullPointerException("addressbook is null"); //NOI18N
} else if (addressbook.getAddressbookId() == null) {
// Throw NPE again
- throw new NullPointerException("addressbook.addressbookId is null");
+ throw new NullPointerException("addressbook.addressbookId is null"); //NOI18N
} else if (addressbook.getAddressbookId() < 1) {
// Invalid id number
- throw new IllegalArgumentException(MessageFormat.format("addressbook.addressbookId={0} is invalid.", addressbook.getAddressbookId()));
+ throw new IllegalArgumentException(MessageFormat.format("addressbook.addressbookId={0} is invalid.", addressbook.getAddressbookId())); //NOI18N
} else if (addressbook.getAddressbookUser() == null) {
// Throw again NPE
- throw new NullPointerException("addressbook.addressbookUser is null");
+ throw new NullPointerException("addressbook.addressbookUser is null"); //NOI18N
} else if (addressbook.getAddressbookUser().getUserId() == null) {
// Throw again NPE
- throw new NullPointerException("addressbook.addressbookUser.userId is null");
+ throw new NullPointerException("addressbook.addressbookUser.userId is null"); //NOI18N
} else if (addressbook.getAddressbookUser().getUserId() < 1) {
// Invalid id number again
- throw new IllegalArgumentException(MessageFormat.format("addressbook.addressbookUser.userId={0} is invalid", addressbook.getAddressbookUser().getUserId()));
+ throw new IllegalArgumentException(MessageFormat.format("addressbook.addressbookUser.userId={0} is invalid", addressbook.getAddressbookUser().getUserId())); //NOI18N
}
// Generate query
return query.getResultList();
}
+ @Override
+ public List<User> allUsersNotSharing (final User user, final Addressbook addressbook) {
+ throw new UnsupportedOperationException("JJobs don't have addressbok sharing (maybe yet?)"); //NOI18N
+ }
+
+ @Override
+ public Integer countAllUserSharedAddressbooks (final User user) {
+ throw new UnsupportedOperationException("JJobs don't have addressbok sharing (maybe yet?)"); //NOI18N
+ }
+
@Override
public Addressbook createAddressbook (final Addressbook addressbook) throws AddressbookNameAlreadyUsedException {
// Is it not null?