- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<PosixPath,T>
-
- com.aoindustries.aoserv.client.linux.GlobalObjectPosixPathKey<Shell>
-
- com.aoindustries.aoserv.client.linux.Shell
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable
public final class Shell extends GlobalObjectPosixPathKey<Shell>
All of the possible Linux login shells are provided asShells.
-
-
Field Summary
Fields Modifier and Type Field Description static PosixPathBASHstatic PosixPathFALSEstatic PosixPathFTPONLYstatic PosixPathFTPPASSWDstatic PosixPathHALTstatic PosixPathKSHstatic PosixPathNOLOGINstatic PosixPathPASSWDstatic PosixPathSHstatic PosixPathSHUTDOWNstatic PosixPathSYNCstatic PosixPathTCSH-
Fields inherited from class com.aoindustries.aoserv.client.linux.GlobalObjectPosixPathKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description Shell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetColumnImpl(int i)PosixPathgetPath()Table.TableIDgetTableID()voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisLogin()booleanisSystem()voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.linux.GlobalObjectPosixPathKey
equals, getKey, hashCode, toStringImpl
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
-
-
-
Field Detail
-
BASH
public static final PosixPath BASH
-
FALSE
public static final PosixPath FALSE
-
KSH
public static final PosixPath KSH
-
SH
public static final PosixPath SH
-
SYNC
public static final PosixPath SYNC
-
TCSH
public static final PosixPath TCSH
-
HALT
public static final PosixPath HALT
-
NOLOGIN
public static final PosixPath NOLOGIN
-
SHUTDOWN
public static final PosixPath SHUTDOWN
-
FTPONLY
public static final PosixPath FTPONLY
-
FTPPASSWD
public static final PosixPath FTPPASSWD
-
PASSWD
public static final PosixPath PASSWD
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<PosixPath,Shell>
-
getPath
public PosixPath getPath()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<PosixPath,Shell>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<PosixPath,Shell>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isLogin
public boolean isLogin()
-
isSystem
public boolean isSystem()
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<PosixPath,Shell>- Throws:
IOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<PosixPath,Shell>- Throws:
IOException
-
-