@Path(value="/domains")
public interface IDomains
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 . |
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 . |
@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, Domain domain) throws ServerFault
Domain
.{@link
- Domain}'s unique iddomain
- Domain
ServerFault
- standard error object@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, Domain domain) throws ServerFault
Domain
.uid
- Domain
's unique iddomain
- updated Domain
ServerFault
- standard error object@DELETE @Path(value="{uid}") void delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
Domain
item itself. You must call first deleteDomainItems
to delete domain's data. This operation is forbidden if there are still
linked data.uid
- Domain
's unique idServerFault
- standard error object@DELETE @Path(value="{uid}/_items") TaskRef deleteDomainItems(@PathParam(value="uid") java.lang.String uid) throws ServerFault
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
.uid
- Domain
's unique idTaskRef
to track operation
progressServerFault
- standard error object@GET @Path(value="{uid}") ItemValue<Domain> get(@PathParam(value="uid") java.lang.String uid) throws ServerFault
Domain
by its uid.uid
- Domain
's unique idDomain
net.bluemind.core.container.api.ItemValue
, or
null if the Domain
does not existServerFault
- standard error object@GET java.util.List<ItemValue<Domain>> all() throws ServerFault
Domain
net.bluemind.core.container.api.ItemValue
managed by the
serverServerFault
- standard error object@POST @Path(value="{uid}/_aliases") TaskRef setAliases(@PathParam(value="uid") java.lang.String uid, java.util.Set<java.lang.String> aliases) throws ServerFault
uid
- Domain
's unique idaliases
- set of aliasesTaskRef
to track operation
progressServerFault
- standard error object@POST @Path(value="{uid}/_default_alias") void setDefaultAlias(@PathParam(value="uid") java.lang.String uid, java.lang.String defaultAlias) throws ServerFault
uid
- Domain
's unique iddefaultAlias
- default domain nameServerFault
- standard error object@GET @Path(value="_lookup") ItemValue<Domain> findByNameOrAliases(@QueryParam(value="name") java.lang.String name) throws ServerFault
Domain
by its name or one of its alias.name
- Domain
's name or aliasDomain
net.bluemind.core.container.api.ItemValue
, or
null if no Domain
matchServerFault
- standard error object@POST @Path(value="{uid}/roles") void setRoles(@PathParam(value="uid") java.lang.String uid, java.util.Set<java.lang.String> roles) throws ServerFault
ServerFault
@GET @Path(value="{uid}/roles") java.util.Set<java.lang.String> getRoles(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.