com.buildforge.services.common.dbo
Enum ServerDBO.Publish
java.lang.Object
java.lang.Enum<ServerDBO.Publish>
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 | - | - |
GET | X | - |
PUT | - | X |
ALL | X | X |
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 |
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
code
public final java.lang.String code
CLASS
public static final java.lang.Class<ServerDBO.Publish> CLASS
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