@Entity public class PrincipalEntity extends Object
| Constructor and Description |
|---|
PrincipalEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getId()
Get the principal type id.
|
PrincipalTypeEntity |
getPrincipalType()
Get the principal type entity.
|
Set<PrivilegeEntity> |
getPrivileges()
Get the principal privileges.
|
int |
hashCode() |
void |
removePrivilege(PrivilegeEntity privilege)
Remove a privilege.
|
void |
setId(Long id)
Set the principal id.
|
void |
setPrincipalType(PrincipalTypeEntity principalType)
Set the principal type entity.
|
void |
setPrivileges(Set<PrivilegeEntity> privileges)
Set the principal privileges.
|
public Long getId()
public void setId(Long id)
id - the type id.public PrincipalTypeEntity getPrincipalType()
public void setPrincipalType(PrincipalTypeEntity principalType)
principalType - the principal type entitypublic Set<PrivilegeEntity> getPrivileges()
public void setPrivileges(Set<PrivilegeEntity> privileges)
privileges - the principal privilegespublic void removePrivilege(PrivilegeEntity privilege)
privilege - the privilege entityCopyright © 2022 Apache Software Foundation. All rights reserved.