org.entityfs.entityattrs
Interface UidGidSubject

All Superinterfaces:
Serializable, Subject
All Known Implementing Classes:
AbstractAccessControllerUidGidSubject, SimpleAccessControllerUidGidSubject

public interface UidGidSubject
extends Subject

This interface defines a Subject that has a user id (UID), a primary group id (GID) and zero or more secondary group id:s. All id:s are integers equal to or greater than zero.

A subject can be a member of several groups, but it always has just one primary group. If new entities are created by the subject, their group ownership is set to the subject's primary group.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 int getPrimaryGid()
          Get the primary GID.
 Set<Integer> getSecondaryGids()
          Get the set of secondary GID:s.
 int getUid()
          Get the UID.
 
Methods inherited from interface org.entityfs.security.Subject
doAs, doAs, getPrincipals, getPrincipals, getPrivateCredentials, getPrivateCredentials, getPublicCredentials, getPublicCredentials
 

Method Detail

getUid

int getUid()
Get the UID.

Returns:
The UID (a positive integer).

getPrimaryGid

int getPrimaryGid()
Get the primary GID.

Returns:
The primary GID (a positive integer).

getSecondaryGids

Set<Integer> getSecondaryGids()
Get the set of secondary GID:s.

Returns:
The set of secondary GID:s. Possibly empty, but never null.