new Principal(type, id, nameopt, modelName) → {Principal}
This class represents the abstract notion of a principal, which can be used
to represent any entity, such as an individual, a corporation, and a login id
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
type |
String | The principal type | |
id |
* | The principal id | |
name |
String |
<optional> |
The principal name |
modelName |
String | The principal model name |
- Source:
Returns:
- Type
- Principal
Methods
equals(p)
Compare if two principals are equal
Returns true if argument principal is equal to this principal.
Parameters:
Name | Type | Description |
---|---|---|
p |
Object | The other principal |
- Source: