public abstract class DirValueStoreService<T> extends ContainerStoreService<DirEntryAndValue<T>>
Modifier and Type | Class and Description |
---|---|
static interface |
DirValueStoreService.DirEntryAdapter<T> |
static interface |
DirValueStoreService.MailboxAdapter<T> |
static interface |
DirValueStoreService.VCardAdapter<T> |
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,
java.lang.String itemType,
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) |
boolean |
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,
DirEntry dirEntry,
T value) |
void |
update(java.lang.String uid,
T value) |
void |
updateVCard(java.lang.String uid,
T dirEntry) |
all, allUids, allUidsOrderedByDisplayname, attach, changelog, changelog, changeset, changesetById, create, create, createValue, createWithId, detach, get, get, getByExtId, getItemStore, getItemsValue, getItemValue, getItemValueStore, getMultiple, getMultipleById, getValue, getVersion, inTransaction, prepareContainerDelete, setExtId, touch, update, updateValue
protected 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, java.lang.String itemType, 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>>
ServerFault
protected void decorate(Item item, ItemValue<DirEntryAndValue<T>> value) throws ServerFault
decorate
in class ContainerStoreService<DirEntryAndValue<T>>
ServerFault
protected void deleteValue(Item item) throws ServerFault, java.sql.SQLException
deleteValue
in class ContainerStoreService<DirEntryAndValue<T>>
ServerFault
java.sql.SQLException
public void setRoles(java.lang.String uid, java.util.Set<java.lang.String> roles) throws ServerFault
ServerFault
protected void deleteValues() throws ServerFault
deleteValues
in class ContainerStoreService<DirEntryAndValue<T>>
ServerFault
public java.util.Set<java.lang.String> getRoles(java.lang.String uid) throws ServerFault
ServerFault
public void create(java.lang.String uid, DirEntry dirEntry, T value) throws ServerFault
ServerFault
public void create(java.lang.String uid, DirEntry dirEntry, Mailbox mailbox, T value) throws ServerFault
ServerFault
public void createWithExtId(java.lang.String uid, java.lang.String extId, DirEntry dirEntry, T value) throws ServerFault
ServerFault
public void update(java.lang.String uid, DirEntry dirEntry, T value) throws ServerFault
ServerFault
public void create(java.lang.String uid, T value) throws ServerFault
ServerFault
public void createWithExtId(java.lang.String uid, java.lang.String extId, T value) throws ServerFault
ServerFault
public void update(java.lang.String uid, T value) throws ServerFault
ServerFault
public ItemValue<T> get(java.lang.String uid) throws ServerFault
ServerFault
public ItemValue<T> findByExtId(java.lang.String extId) throws ServerFault
ServerFault
public ItemValue<DirEntryAndValue<T>> findByEmailFull(java.lang.String email) throws ServerFault
ServerFault
public ItemValue<T> findByEmail(java.lang.String email) throws ServerFault
ServerFault
public java.util.List<ItemValue<T>> getMultipleValues(java.util.List<java.lang.String> uids) throws ServerFault
ServerFault
public void updateVCard(java.lang.String uid, T dirEntry) throws ServerFault
ServerFault
public void deletePhoto(java.lang.String uid) throws ServerFault
ServerFault
public void setPhoto(java.lang.String uid, byte[] photo, byte[] icon) throws ServerFault
ServerFault
public byte[] getPhoto(java.lang.String uid) throws ServerFault
ServerFault
public boolean hasPhoto(java.lang.String uid) throws ServerFault
ServerFault
public byte[] getIcon(java.lang.String uid) throws ServerFault
ServerFault
public boolean delete(java.lang.String uid) throws ServerFault
delete
in interface IContainerStoreService<DirEntryAndValue<T>>
delete
in class ContainerStoreService<DirEntryAndValue<T>>
ServerFault
public void deleteAll() throws ServerFault
IContainerStoreService
deleteAll
in interface IContainerStoreService<DirEntryAndValue<T>>
deleteAll
in class ContainerStoreService<DirEntryAndValue<T>>
ServerFault
Copyright © 2021. All Rights Reserved.