Skip to main content

com.eruces.teadmin.PrincipalTrustMatrix

The PrincipalTrustMatrix class represents a principal trust matrix element.

Inheritance

Static Public Attributes

TypeNameDescription
final shortFLAG_RESTRICTAn integer representing the flag to restrict the principal from being visible to trusted servers.
final shortFLAG_EXPOSEAn integer representing the flag to expose the principal so they are visible to trusted servers.

Public Member Functions

MemberDescription
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

ParameterDescription
pidAn integer representing the principal ID.
tsidAn integer representing the trusted server ID.
flagAn 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

ParameterDescription
oidAn integer representing the object ID.
pidAn integer representing the principal ID.
tsidAn integer representing the trusted server ID.
flagAn 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

ParameterDescription
idMatrix 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

ParameterDescription
idThe 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

ParameterDescription
idAn 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

ParameterDescription
flagAn 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