com.buildforge.services.common.dbo
Enum ServerDBO.Publish

java.lang.Object
  extended by java.lang.Enum<ServerDBO.Publish>
      extended by com.buildforge.services.common.dbo.ServerDBO.Publish
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ServerDBO.Publish>
Enclosing class:
ServerDBO

public static enum ServerDBO.Publish
extends java.lang.Enum<ServerDBO.Publish>

Specifies what types of file publishing are permitted for the server. This affects the dot commands related to file transfers, such as .get and .rput.

Value .get/.rget Allowed .put/.rput Allowed
NONE--
GETX-
PUT-X
ALLXX


Enum Constant Summary
ALL
           
GET
           
NONE
           
PUT
           
 
Field Summary
static java.lang.Class<ServerDBO.Publish> CLASS
           
 java.lang.String code
           
 
Method Summary
 boolean canGet()
           
 boolean canPut()
           
static ServerDBO.Publish fromDB(java.lang.String s)
           
static ServerDBO.Publish fromObject(java.lang.Object o)
           
static ServerDBO.Publish valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ServerDBO.Publish[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final ServerDBO.Publish NONE

GET

public static final ServerDBO.Publish GET

PUT

public static final ServerDBO.Publish PUT

ALL

public static final ServerDBO.Publish ALL
Field Detail

code

public final java.lang.String code

CLASS

public static final java.lang.Class<ServerDBO.Publish> CLASS
Method Detail

values

public static final ServerDBO.Publish[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ServerDBO.Publish c : ServerDBO.Publish.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ServerDBO.Publish valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

canGet

public boolean canGet()

canPut

public boolean canPut()

fromDB

public static ServerDBO.Publish fromDB(java.lang.String s)

fromObject

public static ServerDBO.Publish fromObject(java.lang.Object o)
                                    throws APIException
Throws:
APIException