public class NeedToRecoveryBadgeException extends DomainException
NeedToRecoveryBadgeException class is thrown when a badge is otherwise expected for a
process (e.g. switch to another server for logical access but no badges on the current device
for that server). This exception allows us to bind the OrgBasicEntity and an organization
ID to the exception for accessibility.ADMIN_BADGE_REQUIRED, BADGE_CONDITION_NOT_MET, BADGE_NEED_RE_LOGIN, BADGE_PICKER_REQUIRED, BADGE_QR_CODE_INVALID, BADGE_RECOVERY_CODE_NOT_EXIST, BADGE_REMOVED, CURRENT_SERVER_COULD_NOT_BE_DELETED_UNTIL_IT_IS_THE_LAST_ONE, DEVICE_PROVISION_REQUIRED, EXPIRED_REFRESH_TOKEN, GENERAL_NETWORK_ERROR, INBOX_ENTITY_NOT_FOUND, INBOX_NOT_SUPPORTED, INVALID_BADGE_INVITATION_CODE, INVALID_CERTIFICATE, INVALID_QR_CODE, NEED_TO_CONFIRM_SERVER, NEED_TO_RESOLVE_BADGE_CONDITION, NEED_TO_RESOLVE_BADGE_CONDITION_FOR_USHER_DATA_ENTITY, NEED_TO_SWITCH_SERVER, NETWORK_CONNECTION_TIMEOUT, NETWORK_OFFLINE_OR_VPN_REQUIRED, NO_BADGE_CONFIGURED_FOR_SCANNED_DATA, NO_BADGE_EXISTED, NO_ELEMENT, ORG_NOT_EXIST, PRE_CONFIGURED_SERVER_COULD_NOT_BE_DELETED, RECOVER_BADGE, REQUIRE_BADGE_LOGIN, REQUIRE_CONFIRMATION_FOR_LEGACY_COMPUTER_LOGIN, REQUIRE_PASSWORD_UPDATE_FOR_LEGACY_COMPUTER_LOGIN, SERVER_CONFIGURATION_DISABLED, SERVER_CONFIGURED, SERVER_NOT_ALLOWED_TO_BE_DELETED_ONCE_CONFIGURED, SERVER_NOT_CONFIGURED, SERVER_SWITCH_DISABLED, UNEXPECTED_ERROR, UPLOAD_GENERIC_PERMISSION_REQUIRED| Constructor and Description |
|---|
NeedToRecoveryBadgeException(int orgId,
OrgBasicEntity orgBasicEntity)
Construct for a
NeedToRecoveryBadgeException with the orgId and orgBasicEntity set. |
| Modifier and Type | Method and Description |
|---|---|
OrgBasicEntity |
getOrgBasicEntity()
Returns an
OrgBasicEntity object that wraps various attributes about an organization. |
int |
getOrgId()
Returns the identification number of the organization.
|
getCodepublic NeedToRecoveryBadgeException(int orgId,
OrgBasicEntity orgBasicEntity)
NeedToRecoveryBadgeException with the orgId and orgBasicEntity set.orgId - the identification number of the organizationorgBasicEntity - See OrgBasicEntitypublic OrgBasicEntity getOrgBasicEntity()
OrgBasicEntity object that wraps various attributes about an organization.OrgBasicEntity object that wraps various attributes about an organization.public int getOrgId()