com.eruces.teadmin.PrincipalTrustMatrix
The PrincipalTrustMatrix class represents a principal trust matrix element.
Inheritance
- Inherits com.eruces.teadmin.UpdatableObject
Static Public Attributes
| Type | Name | Description |
|---|---|---|
| final short | FLAG_RESTRICT | An integer representing the flag to restrict the principal from being visible to trusted servers. |
| final short | FLAG_EXPOSE | An integer representing the flag to expose the principal so they are visible to trusted servers. |
Public Member Functions
| Member | Description |
|---|---|
PrincipalTrustMatrix() | The PrincipalTrustMatrix constructor is the default class constructor. |
PrincipalTrustMatrix(long pid, long tsid, int flag) | The PrincipalTrustMatrix constructor with principal ID, trusted server ID and access flag. |
PrincipalTrustMatrix(long oid, long pid, long tsid, int flag) | The PrincipalTrustMatrix constructor with object ID, principal ID, trusted server ID and access flag. |
void setId(long id) | The setId method sets the matrix element ID (or object ID). |
long getId() | The getId method gets the matrix element ID (or object ID). |
void setPrincipalId(long id) | The setPrincipalId method sets the principal ID. |
long getPrincipalId() | The getPrincipalId method gets the principal ID. |
void setTrustedServerId(long id) | The setTrustedServerId method sets the trusted server ID. |
long getTrustedServerId() | The getTrustedServerId method gets the trusted server ID. |
void setFlag(int flag) | The setFlag method sets the trust flag. |
int getFlag() | The getFlag method gets the trust flag. |
Member Function Documentation
PrincipalTrustMatrix()
The PrincipalTrustMatrix constructor is the default class constructor.
PrincipalTrustMatrix(long pid, long tsid, int flag)
The PrincipalTrustMatrix constructor with principal ID, trusted server ID and access flag.
Parameters
| Parameter | Description |
|---|---|
pid | An integer representing the principal ID. |
tsid | An integer representing the trusted server ID. |
flag | An integer representing the access flag. FLAG_RESTRICT(1) or FLAG_EXPOSE(2) |
See also: FLAG_EXPOSE, FLAG_RESTRICT
PrincipalTrustMatrix(long oid, long pid, long tsid, int flag)
The PrincipalTrustMatrix constructor with object ID, principal ID, trusted server ID and access flag.
Parameters
| Parameter | Description |
|---|---|
oid | An integer representing the object ID. |
pid | An integer representing the principal ID. |
tsid | An integer representing the trusted server ID. |
flag | An integer representing the access flag. FLAG_RESTRICT(1) or FLAG_EXPOSE(2) |
See also: FLAG_EXPOSE, FLAG_RESTRICT
void setId(long id)
The setId method sets the matrix element ID (or object ID).
Parameters
| Parameter | Description |
|---|---|
id | Matrix element ID (or object ID) to be set. |
long getId()
The getId method gets the matrix element ID (or object ID).
Returns: The matrix element ID (or object ID).
void setPrincipalId(long id)
The setPrincipalId method sets the principal ID.
Parameters
| Parameter | Description |
|---|---|
id | The principal ID to be set. |
long getPrincipalId()
The getPrincipalId method gets the principal ID.
Returns: The principal ID.
void setTrustedServerId(long id)
The setTrustedServerId method sets the trusted server ID.
Parameters
| Parameter | Description |
|---|---|
id | An integer representing the trusted server ID. |
long getTrustedServerId()
The getTrustedServerId method gets the trusted server ID.
Returns: An integer representing the trusted server ID.
void setFlag(int flag)
The setFlag method sets the trust flag.
Parameters
| Parameter | Description |
|---|---|
flag | An integer representing the trust flag to be set. |
See also: FLAG_EXPOSE, FLAG_RESTRICT
int getFlag()
The getFlag method gets the trust flag.
Returns: An integer representing the trust flag.
See also: FLAG_EXPOSE, FLAG_RESTRICT