org.entityfs.entityattrs
Interface UidGidConfigurable


public interface UidGidConfigurable

This interface is implemented by classes that can be configured with a user id (UID) and a group id (GID). User and group id:s must be integer values equal to or greater than zero.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 int getGid()
          Get the group id.
 int getUid()
          Get the user id.
 void setGid(int gid)
          Set the group id.
 void setUid(int uid)
          Set the user id.
 

Method Detail

getUid

int getUid()
Get the user id.

Returns:
The user id.

setUid

void setUid(int uid)
            throws IllegalArgumentException
Set the user id.

Parameters:
uid - The user id. It must be a positive integer.
Throws:
IllegalArgumentException - If the UID is invalid.

getGid

int getGid()
Get the group id.

Returns:
The group id.

setGid

void setGid(int gid)
            throws IllegalArgumentException
Set the group id.

Parameters:
gid - The group id. It must be a positive integer.
Throws:
IllegalArgumentException - If the GID is invalid.