public final class Constants extends Object
Common Constant values used throughout the API.
public static final String CWS_VERSION
The current version of the CWS, this is used to tell Clients which version is being communicated with, and the same number is also being used to generate the SerialVersionUID for all API Classes.
public static final long SERIAL_VERSION_UID
All serialized classes should use this value. The value reflects the current version of the system. If updates are made in one or more of the serialized classes, it should be updated.
If not used, then all classes that are serialized will have a runtime performance overhead while calculating a UID, which matches the current class. See "Effective Java, 2nd Edition" - Item 75.
As this is a useless overhead and simple to avoid, it is recommended to do so. Just add the following line in the beginning of all serialized and derived classes:
private static final long serialVersionUID = Constants.SERIAL_VERSION_UID;
public static final Pattern ID_PATTERN
Pattern to test if a given value matches a UUID, which is what CWS uses for some Ids.
public static final String ADMIN_ACCOUNT
The System Administrator Account - this account is used as the default standard administrative Member Account, and cannot be altered. Upon first attempt to process a Member, the System Administrator Account will be stored in the underlying database with the credentials provided. This way, the Account Name of the System Administrator will remain well-known, however - as there are not default credentials, there's also nothing to exploit.
public static final String FOLDER_TYPENAME
public static final String DATA_TYPENAME
public static final int MAX_NAME_LENGTH
public static final int MAX_STRING_LENGTH
public static final int MAX_PAGE_SIZE
public static final String FIELD_IDS
public static final String FIELD_CIRCLE_ID
public static final String FIELD_TARGET_CIRCLE_ID
public static final String FIELD_MEMBER_ID
public static final String FIELD_FOLDER_ID
public static final String FIELD_TARGET_FOLDER_ID
public static final String FIELD_DATA_ID
public static final String FIELD_ACCOUNT_NAME
public static final String FIELD_PUBLIC_KEY
public static final String FIELD_NEW_ACCOUNT_NAME
public static final String FIELD_CREDENTIAL
public static final String FIELD_NEW_CREDENTIAL
public static final String FIELD_MEMBER_ROLE
public static final String FIELD_CREDENTIALTYPE
public static final String FIELD_CIRCLE
public static final String FIELD_CIRCLES
public static final String FIELD_CIRCLE_KEY
public static final String FIELD_CIRCLE_NAME
public static final String FIELD_TRUSTEE
public static final String FIELD_TRUSTEES
public static final String FIELD_MEMBER
public static final String FIELD_MEMBERS
public static final String FIELD_TRUSTLEVEL
public static final String FIELD_METADATA
public static final String FIELD_DATA_NAME
public static final String FIELD_RECORDS
public static final String FIELD_DATA
public static final String FIELD_DATATYPE
public static final String FIELD_DATATYPES
public static final String FIELD_TYPENAME
public static final String FIELD_TYPE
public static final String FIELD_CHECKSUM
public static final String FIELD_SIGNATURE
public static final String FIELD_SIGNATURES
public static final String FIELD_SANITY
public static final String FIELD_SANITIES
public static final String FIELD_SETTINGS
public static final String FIELD_SECRET
public static final String FIELD_EXPIRES
public static final String FIELD_VERIFICATIONS
public static final String FIELD_LAST_VERIFICATION
public static final String FIELD_ADDED
public static final String FIELD_CHANGED
public static final String FIELD_SINCE
public static final String FIELD_VERSION
public static final String FIELD_VERIFIED
public static final String FIELD_ACTION
public static final String FIELD_RETURN_CODE
public static final String FIELD_RETURN_MESSAGE
public static final String FIELD_URL
public static final String FIELD_PAGE_NUMBER
public static final String FIELD_PAGE_SIZE
public static final String REST_API
public static final String REST_VERSION
public static final String REST_SETTINGS
public static final String REST_MASTERKEY
public static final String REST_SANITIZED
public static final String REST_AUTHENTICATED
public static final String REST_MEMBERS_BASE
public static final String REST_MEMBERS_CREATE
public static final String REST_MEMBERS_INVITE
public static final String REST_MEMBERS_LOGIN
public static final String REST_MEMBERS_LOGOUT
public static final String REST_MEMBERS_ALTER
public static final String REST_MEMBERS_UPDATE
public static final String REST_MEMBERS_INVALIDATE
public static final String REST_MEMBERS_DELETE
public static final String REST_MEMBERS_FETCH
public static final String REST_CIRCLES_BASE
public static final String REST_CIRCLES_CREATE
public static final String REST_CIRCLES_UPDATE
public static final String REST_CIRCLES_DELETE
public static final String REST_CIRCLES_FETCH
public static final String REST_TRUSTEES_BASE
public static final String REST_TRUSTEES_ADD
public static final String REST_TRUSTEES_ALTER
public static final String REST_TRUSTEES_REMOVE
public static final String REST_TRUSTEES_FETCH
public static final String REST_DATATYPES_BASE
public static final String REST_DATATYPES_PROCESS
public static final String REST_DATATYPES_DELETE
public static final String REST_DATATYPES_FETCH
public static final String REST_DATA_BASE
public static final String REST_DATA_ADD
public static final String REST_DATA_COPY
public static final String REST_DATA_MOVE
public static final String REST_DATA_UPDATE
public static final String REST_DATA_DELETE
public static final String REST_DATA_FETCH
public static final String REST_SIGNATURES_BASE
public static final String REST_SIGNATURES_SIGN
public static final String REST_SIGNATURES_VERIFY
public static final String REST_SIGNATURES_FETCH
Copyright © 2019 JavaDog.io. All rights reserved.