|
com.im.commons 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<DFSharing>
com.im.commons.util.DFSharing
public enum DFSharing
Definition of possible sharing types. This enum is used in
com.im.df.api.capabilities.DFSharedObjectCapability. For persistence use getCode()
instead of name or index of the constant. This codes are stable forever.
The number of constant can change in the future, some new can be added.
| Enum Constant Summary | |
|---|---|
PRIVATE
Object is visible to other users only through action "Copy View/List/Query from other user". |
|
PRIVATE_AND_HIDDEN
Object is not visible to anyone else. |
|
SHARED
Object is always visible to all users, object is loaded to memory when user opens the project and schema is loaded. |
|
| Method Summary | |
|---|---|
int |
getCode()
Get unique number of this sharing status constant. |
String |
getDisplayName()
Display name (description) of this sharing constant. |
static String[] |
getDisplayNames()
|
static DFSharing |
resolveFromCode(int code)
Sharing status is stored as integer in DB. |
static DFSharing |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DFSharing[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DFSharing PRIVATE_AND_HIDDEN
public static final DFSharing PRIVATE
public static final DFSharing SHARED
| Method Detail |
|---|
public static DFSharing[] values()
for (DFSharing c : DFSharing.values()) System.out.println(c);
public static DFSharing valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static DFSharing resolveFromCode(int code)
code - The code to be resolved
public int getCode()
public String getDisplayName()
public static String[] getDisplayNames()
|
com.im.commons 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||