@Entity public class ResourceEntity extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
AMBARI_RESOURCE_ID
The Ambari admin resource ID.
|
| Constructor and Description |
|---|
ResourceEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getId()
Get the resource type id.
|
Collection<PrivilegeEntity> |
getPrivileges()
Get the associated privileges.
|
ResourceTypeEntity |
getResourceType()
Get the resource type entity.
|
int |
hashCode() |
void |
setId(Long id)
Set the resource id.
|
void |
setPrivileges(Collection<PrivilegeEntity> privileges)
Set the associated privileges.
|
void |
setResourceType(ResourceTypeEntity resourceType)
Set the resource type entity.
|
public static final long AMBARI_RESOURCE_ID
public Long getId()
public void setId(Long id)
id - the type id.public ResourceTypeEntity getResourceType()
public void setResourceType(ResourceTypeEntity resourceType)
resourceType - the resource type entitypublic Collection<PrivilegeEntity> getPrivileges()
public void setPrivileges(Collection<PrivilegeEntity> privileges)
privileges - the privilegesCopyright © 2022 Apache Software Foundation. All rights reserved.