Class CvsRepository
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,CvsRepository>
com.aoindustries.aoserv.client.CachedObject<Integer,CvsRepository>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<CvsRepository>
com.aoindustries.aoserv.client.scm.CvsRepository
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,Disablable
,Removable
,SingleTableObject<Integer,
CvsRepository>
public final class CvsRepository
extends CachedObjectIntegerKey<CvsRepository>
implements Removable, Disablable
A
CvsRepository
represents on repository directory for the CVS pserver.- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PosixPath
The default directory containing CVS repositories.static final long
The default permissions for a CVS repository.Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
disable
(DisableLog dl) void
enable()
Lists the reasons an object may not be removed.protected Object
getColumnImpl
(int i) int
int
long
getMode()
getPath()
static long[]
void
Initializes this object from the raw database contents.boolean
Checks if this object is disabled.static boolean
isValidPath
(PosixPath path) Allowed CVS repository paths are constrained beyond the general requirements ofPosixPath
.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
remove()
Removes this object, and all dependant objects, from the system.void
setMode
(long mode) void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
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 Details
-
DEFAULT_CVS_DIRECTORY
The default directory containing CVS repositories. -
DEFAULT_MODE
public static final long DEFAULT_MODEThe default permissions for a CVS repository.- See Also:
-
-
Constructor Details
-
CvsRepository
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getValidModes
public static long[] getValidModes() -
isValidPath
Allowed CVS repository paths are constrained beyond the general requirements ofPosixPath
. May only contain characters in the set:[a-z] [A-Z] [0-9] _ . - /
-
canDisable
public boolean canDisable()- Specified by:
canDisable
in interfaceDisablable
-
canEnable
- Specified by:
canEnable
in interfaceDisablable
- Throws:
SQLException
IOException
-
disable
- Specified by:
disable
in interfaceDisablable
- Throws:
IOException
SQLException
-
enable
- Specified by:
enable
in interfaceDisablable
- Throws:
IOException
SQLException
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
CvsRepository>
-
isDisabled
public boolean isDisabled()Description copied from interface:Disablable
Checks if this object is disabled. This should execute very quickly (not incur any round-trip to any database) and thus does not throw any checked exceptions.- Specified by:
isDisabled
in interfaceDisablable
-
getDisableLog
- Specified by:
getDisableLog
in interfaceDisablable
- Throws:
SQLException
IOException
-
getPath
-
getLinuxServerAccount_pkey
public int getLinuxServerAccount_pkey() -
getLinuxServerAccount
- Throws:
SQLException
IOException
-
getLinuxServerGroup_pkey
public int getLinuxServerGroup_pkey() -
getLinuxServerGroup
- Throws:
SQLException
IOException
-
getMode
public long getMode() -
getCreated
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
CvsRepository>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
CvsRepository> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
CvsRepository> - Throws:
IOException
-
getCannotRemoveReasons
Description copied from interface:Removable
Lists the reasons an object may not be removed.- Specified by:
getCannotRemoveReasons
in interfaceRemovable
- Returns:
- an empty
List<CannotRemoveReason>
if this object may be removed, or a list of descriptions
-
remove
Description copied from interface:Removable
Removes this object, and all dependant objects, from the system.- Specified by:
remove
in interfaceRemovable
- Throws:
IOException
SQLException
-
setMode
- Throws:
IOException
SQLException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
CvsRepository> - Throws:
IOException
-