@JsType public class Metadata extends Object
| Constructor and Description |
|---|
Metadata(AddressTemplate template,
Supplier<SecurityContext> securityContext,
ResourceDescription description,
Capabilities capabilities) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyAttribute(String attribute,
Metadata destination)
Copies attributes from this description to the specified metadata
|
void |
copyComplexAttributeAttributes(Iterable<String> attributes,
Metadata destination)
Shortcut for
copyAttribute(String, Metadata) and makeWritable(String) |
static Metadata |
empty() |
Metadata |
forComplexAttribute(String name)
Creates a new metadata instance based on this metadata with the attributes taken from the specified complex
attribute.
|
Metadata |
forComplexAttribute(String name,
boolean prefixLabel)
Creates a new metadata instance based on this metadata with the attributes taken from the specified complex
attribute.
|
Metadata |
forOperation(String name) |
Capabilities |
getCapabilities() |
ResourceDescription |
getDescription() |
SecurityContext |
getSecurityContext() |
AddressTemplate |
getTemplate() |
void |
makeWritable(String attribute)
Makes the specified attribute writable.
|
static Metadata |
staticDescription(ResourceDescription description)
Constructs a Metadata with read-write-execution permissions and a non-working Capabilities object.
|
static Metadata |
staticDescription(ResourceDescription description,
Environment environment)
Constructs a Metadata with read-write-execution permissions and a working Capabilities object based on the
environment object.
|
static Metadata |
staticDescription(com.google.gwt.resources.client.TextResource description) |
@JsIgnore public Metadata(AddressTemplate template, Supplier<SecurityContext> securityContext, ResourceDescription description, Capabilities capabilities)
@JsIgnore public static Metadata empty()
@JsIgnore public static Metadata staticDescription(com.google.gwt.resources.client.TextResource description)
@JsIgnore public static Metadata staticDescription(ResourceDescription description)
@JsIgnore public static Metadata staticDescription(ResourceDescription description, Environment environment)
@JsIgnore public void copyAttribute(String attribute, Metadata destination)
@JsIgnore public void makeWritable(String attribute)
@JsIgnore public void copyComplexAttributeAttributes(Iterable<String> attributes, Metadata destination)
copyAttribute(String, Metadata) and makeWritable(String)@JsIgnore public Metadata forComplexAttribute(String name)
@JsIgnore public Metadata forComplexAttribute(String name, boolean prefixLabel)
prefixLabel - if true the labels of the attributes of the complex attribute are prefixed with name
of the complex attribute.@JsProperty public AddressTemplate getTemplate()
@JsProperty public SecurityContext getSecurityContext()
@JsProperty public ResourceDescription getDescription()
@JsIgnore public Capabilities getCapabilities()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.