@JsType
public interface Resource
Modifier and Type | Method and Description |
---|---|
default List<Resource> |
getDependencies()
A list of dependent resources.
|
String |
getIdentifier()
An identifier that is unique among all the resources of the same type
(see
getResourceType() ). |
default ResourceType |
getResourceType()
Get the resource type classifier
|
default boolean |
isType(String typeName)
Check if this resource is of the provided type.
|
String getIdentifier()
getResourceType()
).default ResourceType getResourceType()
default List<Resource> getDependencies()
The dependency list is used for instance to determine if a user can access a given resource. Should the access to all its dependencies is denied, it is denied for this instance as well.
default boolean isType(String typeName)
typeName
- the resource type's nameCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.