Constructor and Description |
---|
DomainsService(BmContext context,
Container installationContainer) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemValue<Domain>> |
all()
Fetch all domains.
|
void |
create(java.lang.String uid,
Domain domain)
Creates a new
Domain . |
void |
delete(java.lang.String uid)
Delete the
Domain item itself. |
TaskRef |
deleteDomainItems(java.lang.String uid)
Delete data linked to the
Domain . |
protected void |
doSetAliases(ItemValue<Domain> domainItem,
java.util.Set<java.lang.String> previousAliases,
IServerTaskMonitor monitor) |
ItemValue<Domain> |
findByNameOrAliases(java.lang.String name)
Fetch a
Domain by its name or one of its alias. |
ItemValue<Domain> |
get(java.lang.String uid)
Fetch a
Domain by its uid. |
java.util.Set<java.lang.String> |
getRoles(java.lang.String uid) |
TaskRef |
setAliases(java.lang.String uid,
java.util.Set<java.lang.String> aliases)
Define domain aliases.
|
void |
setDefaultAlias(java.lang.String uid,
java.lang.String defaultAlias)
Define the domain default alias.
|
void |
setRoles(java.lang.String uid,
java.util.Set<java.lang.String> roles) |
void |
update(java.lang.String uid,
Domain domain)
Modify an existing
Domain . |
public void create(java.lang.String uid, Domain domain)
IDomains
Domain
.public void update(java.lang.String uid, Domain domain)
IDomains
Domain
.public void delete(java.lang.String uid)
IDomains
Domain
item itself. You must call first deleteDomainItems
to delete domain's data. This operation is forbidden if there are still
linked data.public TaskRef deleteDomainItems(java.lang.String uid)
IDomains
Domain
. You must call this operation before
deleting the domain itself. According to the data quantity this operation can
be very long, you can follow its progression with the returned
TaskRef
.deleteDomainItems
in interface IDomains
uid
- Domain
's unique idTaskRef
to track operation
progresspublic ItemValue<Domain> get(@PathParam(value="uid") java.lang.String uid)
IDomains
Domain
by its uid.public java.util.List<ItemValue<Domain>> all()
IDomains
public TaskRef setAliases(java.lang.String uid, java.util.Set<java.lang.String> aliases)
IDomains
setAliases
in interface IDomains
uid
- Domain
's unique idaliases
- set of aliasesTaskRef
to track operation
progressprotected void doSetAliases(ItemValue<Domain> domainItem, java.util.Set<java.lang.String> previousAliases, IServerTaskMonitor monitor)
public void setDefaultAlias(java.lang.String uid, java.lang.String defaultAlias)
IDomains
setDefaultAlias
in interface IDomains
uid
- Domain
's unique iddefaultAlias
- default domain namepublic ItemValue<Domain> findByNameOrAliases(java.lang.String name)
IDomains
Domain
by its name or one of its alias.findByNameOrAliases
in interface IDomains
name
- Domain
's name or aliasDomain
net.bluemind.core.container.api.ItemValue
, or
null if no Domain
matchpublic void setRoles(java.lang.String uid, java.util.Set<java.lang.String> roles)
Copyright © 2021. All Rights Reserved.