Package org.uberfire.security
Class ResourceRef
- java.lang.Object
-
- org.uberfire.security.ResourceRef
-
-
Constructor Summary
Constructors Constructor Description ResourceRef(String identifier, ResourceType type)ResourceRef(String identifier, ResourceType type, List<Resource> dependencies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Resource>getDependencies()A list of dependent resources.StringgetIdentifier()An identifier that is unique among all the resources of the same type (seeResource.getResourceType()).ResourceTypegetResourceType()Get the resource type classifiervoidsetDependencies(List<Resource> deps)voidsetIdentifier(String identifier)voidsetResourceType(ResourceType type)
-
-
-
Constructor Detail
-
ResourceRef
public ResourceRef(String identifier, ResourceType type)
-
ResourceRef
public ResourceRef(String identifier, ResourceType type, List<Resource> dependencies)
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:ResourceAn identifier that is unique among all the resources of the same type (seeResource.getResourceType()).- Specified by:
getIdentifierin interfaceResource
-
setIdentifier
public void setIdentifier(String identifier)
-
getResourceType
public ResourceType getResourceType()
Description copied from interface:ResourceGet the resource type classifier- Specified by:
getResourceTypein interfaceResource
-
setResourceType
public void setResourceType(ResourceType type)
-
getDependencies
public List<Resource> getDependencies()
Description copied from interface:ResourceA list of dependent resources.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.
- Specified by:
getDependenciesin interfaceResource- Returns:
- A list of resources, never null.
-
-