UniqueWithinDomain

pt.tecnico.dsi.openstack.keystone.services.UniqueWithinDomain
trait UniqueWithinDomain[F[_], T <: Identifiable]

Attributes

Source
UniqueWithinDomain.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Groups[F]
class Projects[F]
class Roles[F]
class Users[F]
Self type
CrudService[F, T, _, _]

Members list

Value members

Concrete methods

def apply(name: String, domainId: String): F[T]

Get detailed information about the T specified by name and domainId, assuming it exists.

Get detailed information about the T specified by name and domainId, assuming it exists.

Value parameters

domainId

the domain id

name

the T name

Attributes

Returns

the T matching the name in a specific domain. If no such T exists F will contain an error.

Source
UniqueWithinDomain.scala
def get(name: String, domainId: String): F[Option[T]]

Get detailed information about the T specified by name and domainId.

Get detailed information about the T specified by name and domainId.

Value parameters

domainId

the domain id

name

the T name

Attributes

Returns

a Some T matching the name in a specific domain if it exists. A None otherwise.

Source
UniqueWithinDomain.scala
def listByDomain(domainId: String): F[List[T]]

Lists Ts in the given domain.

Lists Ts in the given domain.

Value parameters

domainId

the domain id of the domain.

Attributes

Source
UniqueWithinDomain.scala
def listByName(name: String): F[List[T]]

Lists Ts with the given name.

Lists Ts with the given name.

Value parameters

name

the name to search for.

Attributes

Note

Since the T name must be unique within a domain, all the returned Ts will have different domains.

Source
UniqueWithinDomain.scala