public abstract class DirValueStoreService<T> extends BaseDirStoreService<DirEntryAndValue<T>>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DirValueStoreService.DirEntryAdapter<T> |
static interface |
DirValueStoreService.MailboxAdapter<T> |
static interface |
DirValueStoreService.VCardAdapter<T> |
ContainerStoreService.IItemFlagsProvider<W>, ContainerStoreService.IWeightSeedProvider<W>| Modifier and Type | Field and Description |
|---|---|
protected DirValueStoreService.DirEntryAdapter<T> |
adapter |
protected ItemValue<Domain> |
domain |
protected RoleStore |
roleStore |
protected DirValueStoreService.VCardAdapter<T> |
vcardAdapter |
protected VCardStore |
vcardStore |
changelogStore, container, hasChangeLog, itemStore, itemValueStore, logger, securityContext| Constructor and Description |
|---|
DirValueStoreService(BmContext context,
javax.sql.DataSource pool,
SecurityContext securityContext,
ItemValue<Domain> domain,
Container container,
BaseDirEntry.Kind kind,
IItemValueStore<T> itemValueStore,
DirValueStoreService.DirEntryAdapter<T> adapter,
DirValueStoreService.VCardAdapter<T> vcardAdapter,
DirValueStoreService.MailboxAdapter<T> mailboxAdapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String uid,
DirEntry dirEntry,
Mailbox mailbox,
T value) |
void |
create(java.lang.String uid,
DirEntry dirEntry,
T value) |
void |
create(java.lang.String uid,
T value) |
void |
createWithExtId(java.lang.String uid,
java.lang.String extId,
DirEntry dirEntry,
T value) |
void |
createWithExtId(java.lang.String uid,
java.lang.String extId,
T value) |
protected void |
decorate(Item item,
ItemValue<DirEntryAndValue<T>> value) |
protected void |
decorate(java.util.List<Item> items,
java.util.List<ItemValue<DirEntryAndValue<T>>> values) |
ItemVersion |
delete(java.lang.String uid) |
void |
deleteAll()
delete all values ( changelog is available for deleted values )
|
void |
deletePhoto(java.lang.String uid) |
protected void |
deleteValue(Item item) |
protected void |
deleteValues() |
ItemValue<T> |
findByEmail(java.lang.String email) |
ItemValue<DirEntryAndValue<T>> |
findByEmailFull(java.lang.String email) |
ItemValue<T> |
findByExtId(java.lang.String extId) |
ItemValue<T> |
get(java.lang.String uid) |
protected abstract byte[] |
getDefaultImage() |
byte[] |
getIcon(java.lang.String uid) |
java.util.List<ItemValue<T>> |
getMultipleValues(java.util.List<java.lang.String> uids) |
byte[] |
getPhoto(java.lang.String uid) |
java.util.Set<java.lang.String> |
getRoles(java.lang.String uid) |
boolean |
hasPhoto(java.lang.String uid) |
void |
setPhoto(java.lang.String uid,
byte[] photo,
byte[] icon) |
void |
setRoles(java.lang.String uid,
java.util.Set<java.lang.String> roles) |
void |
update(java.lang.String uid,
T value) |
void |
updateVCard(java.lang.String uid,
T dirEntry) |
create, createall, allIds, allUids, attach, changelog, changelog, changeset, changesetById, changesetById, count, createValue, createWithId, delete, detach, doOrFail, fullChangesetById, get, get, getByExtId, getItemStore, getItemsValue, getItemValue, getItemValueStore, getMultiple, getMultipleById, getValue, getVersion, prepareContainerDelete, setExtId, touch, update, update, updateValue, xferprotected RoleStore roleStore
protected DirValueStoreService.DirEntryAdapter<T> adapter
protected VCardStore vcardStore
protected DirValueStoreService.VCardAdapter<T> vcardAdapter
public DirValueStoreService(BmContext context, javax.sql.DataSource pool, SecurityContext securityContext, ItemValue<Domain> domain, Container container, BaseDirEntry.Kind kind, IItemValueStore<T> itemValueStore, DirValueStoreService.DirEntryAdapter<T> adapter, DirValueStoreService.VCardAdapter<T> vcardAdapter, DirValueStoreService.MailboxAdapter<T> mailboxAdapter)
protected abstract byte[] getDefaultImage()
protected void decorate(java.util.List<Item> items, java.util.List<ItemValue<DirEntryAndValue<T>>> values) throws ServerFault
decorate in class ContainerStoreService<DirEntryAndValue<T>>ServerFaultprotected void decorate(Item item, ItemValue<DirEntryAndValue<T>> value) throws ServerFault
decorate in class ContainerStoreService<DirEntryAndValue<T>>ServerFaultprotected void deleteValue(Item item) throws ServerFault, java.sql.SQLException
deleteValue in class ContainerStoreService<DirEntryAndValue<T>>ServerFaultjava.sql.SQLExceptionpublic void setRoles(java.lang.String uid,
java.util.Set<java.lang.String> roles)
throws ServerFault
ServerFaultprotected void deleteValues()
throws ServerFault
deleteValues in class ContainerStoreService<DirEntryAndValue<T>>ServerFaultpublic java.util.Set<java.lang.String> getRoles(java.lang.String uid)
throws ServerFault
ServerFaultpublic void create(java.lang.String uid,
DirEntry dirEntry,
T value)
throws ServerFault
ServerFaultpublic void create(java.lang.String uid,
DirEntry dirEntry,
Mailbox mailbox,
T value)
throws ServerFault
ServerFaultpublic void createWithExtId(java.lang.String uid,
java.lang.String extId,
DirEntry dirEntry,
T value)
throws ServerFault
ServerFaultpublic void create(java.lang.String uid,
T value)
throws ServerFault
ServerFaultpublic void createWithExtId(java.lang.String uid,
java.lang.String extId,
T value)
throws ServerFault
ServerFaultpublic void update(java.lang.String uid,
T value)
throws ServerFault
ServerFaultpublic ItemValue<T> get(java.lang.String uid) throws ServerFault
ServerFaultpublic ItemValue<T> findByExtId(java.lang.String extId) throws ServerFault
ServerFaultpublic ItemValue<DirEntryAndValue<T>> findByEmailFull(java.lang.String email) throws ServerFault
ServerFaultpublic ItemValue<T> findByEmail(java.lang.String email) throws ServerFault
ServerFaultpublic java.util.List<ItemValue<T>> getMultipleValues(java.util.List<java.lang.String> uids) throws ServerFault
ServerFaultpublic void updateVCard(java.lang.String uid,
T dirEntry)
throws ServerFault
ServerFaultpublic void deletePhoto(java.lang.String uid)
throws ServerFault
ServerFaultpublic void setPhoto(java.lang.String uid,
byte[] photo,
byte[] icon)
throws ServerFault
ServerFaultpublic byte[] getPhoto(java.lang.String uid)
throws ServerFault
ServerFaultpublic boolean hasPhoto(java.lang.String uid)
throws ServerFault
ServerFaultpublic byte[] getIcon(java.lang.String uid)
throws ServerFault
ServerFaultpublic ItemVersion delete(java.lang.String uid) throws ServerFault
delete in interface IContainerStoreService<DirEntryAndValue<T>>delete in class BaseDirStoreService<DirEntryAndValue<T>>ServerFaultpublic void deleteAll()
throws ServerFault
IContainerStoreServicedeleteAll in interface IContainerStoreService<DirEntryAndValue<T>>deleteAll in class ContainerStoreService<DirEntryAndValue<T>>ServerFaultCopyright © 2021. All Rights Reserved.