Package | Description |
---|---|
org.apache.ambari.server.controller.internal | |
org.apache.ambari.server.orm.dao | |
org.apache.ambari.server.orm.entities | |
org.apache.ambari.server.view |
Modifier and Type | Method and Description |
---|---|
protected PermissionEntity |
ViewPrivilegeResourceProvider.getPermission(String permissionName,
ResourceEntity resourceEntity) |
protected PermissionEntity |
ClusterPrivilegeResourceProvider.getPermission(String permissionName,
ResourceEntity resourceEntity) |
protected PermissionEntity |
PrivilegeResourceProvider.getPermission(String permissionName,
ResourceEntity resourceEntity) |
Modifier and Type | Method and Description |
---|---|
ResourceEntity |
ResourceDAO.findAmbariResource()
Finds root level resource.
|
ResourceEntity |
ResourceDAO.findById(Long id)
Find a resource with the given id.
|
ResourceEntity |
ResourceDAO.findByResourceTypeId(Integer id)
Find a resource with the given resource type id.
|
ResourceEntity |
ViewInstanceDAO.findResourceForViewInstance(String viewName,
String instanceName)
Gets the associated
ResourceEntity for a given instance. |
ResourceEntity |
ResourceDAO.merge(ResourceEntity entity) |
Modifier and Type | Method and Description |
---|---|
List<ResourceEntity> |
ResourceDAO.findAll()
Find all resources.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceDAO.create(ResourceEntity entity)
Make an instance managed and persistent.
|
boolean |
PrivilegeDAO.exists(PrincipalEntity principalEntity,
ResourceEntity resourceEntity,
PermissionEntity permissionEntity)
Determine whether or not the privilege entity exists defined by the given principal, resource and
permission exists.
|
ResourceEntity |
ResourceDAO.merge(ResourceEntity entity) |
Modifier and Type | Method and Description |
---|---|
ResourceEntity |
ViewInstanceEntity.getResource()
Get the admin resource entity.
|
ResourceEntity |
ClusterEntity.getResource()
Get the admin resource entity.
|
ResourceEntity |
PrivilegeEntity.getResource()
Get the associated resource entity.
|
Modifier and Type | Method and Description |
---|---|
void |
ViewInstanceEntity.setResource(ResourceEntity resource)
Set the admin resource entity.
|
void |
ClusterEntity.setResource(ResourceEntity resource)
Set the admin resource entity.
|
void |
PrivilegeEntity.setResource(ResourceEntity resource)
Set the resource entity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ViewRegistry.hasPermission(PermissionEntity permissionEntity,
ResourceEntity resourceEntity,
String userName)
Determine whether or not the access specified by the given permission
is permitted for the given user on the view instance identified by
the given resource.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.