public class UserSubscriptionStore extends JdbcAbstractStore
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>
datasource, logger
Constructor and Description |
---|
UserSubscriptionStore(SecurityContext securityContext,
javax.sql.DataSource dataSource,
Container container) |
Modifier and Type | Method and Description |
---|---|
void |
allowSynchronization(java.lang.String subject,
Container container,
boolean sync) |
boolean |
isSubscribed(java.lang.String subject,
Container container) |
boolean |
isSyncAllowed(java.lang.String subject,
Container container) |
java.util.List<java.lang.String> |
listSubscriptions(java.lang.String subject,
java.lang.String type) |
void |
subscribe(java.lang.String subject,
Container container) |
java.util.List<java.lang.String> |
subscribers(java.lang.String containerUid) |
void |
unsubscribe(java.lang.String subject,
java.lang.String containerUid) |
void |
unsubscribeAll(java.lang.String subject) |
batchInsert, batchInsert, delete, delete, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, lastInsertId, select, select, select, unique, unique, unique, unique, unique, update, update, update, update, update
public UserSubscriptionStore(SecurityContext securityContext, javax.sql.DataSource dataSource, Container container)
public void subscribe(java.lang.String subject, Container container) throws java.sql.SQLException
java.sql.SQLException
public boolean isSubscribed(java.lang.String subject, Container container) throws java.sql.SQLException
java.sql.SQLException
public void unsubscribe(java.lang.String subject, java.lang.String containerUid) throws java.sql.SQLException
java.sql.SQLException
public void unsubscribeAll(java.lang.String subject) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> listSubscriptions(@NotNull java.lang.String subject, java.lang.String type) throws java.sql.SQLException
subject
- user uidtype
- might be null to search all subscriptionsjava.sql.SQLException
public java.util.List<java.lang.String> subscribers(@NotNull java.lang.String containerUid) throws java.sql.SQLException
java.sql.SQLException
public void allowSynchronization(java.lang.String subject, Container container, boolean sync) throws java.sql.SQLException
java.sql.SQLException
public boolean isSyncAllowed(java.lang.String subject, Container container) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.