Gallagher Mobile Connect SDK
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
com.gallagher.security.mobileaccess.AccessDecision Enum Reference

Inherits com.gallagher.security.mobileaccess.StringValueConvertible.

Public Member Functions

 AccessDecision (int value)
 
int getValue ()
 
String toString ()
 
String stringValue ()
 
String stringValue ()
 

Static Public Member Functions

static AccessDecision parse (int value)
 

Public Attributes

 WITH_DUAL_AUTH =(5)
 
 WITH_ESCORT =(4)
 
 GRANTED_WITH_PASSBACK =(3)
 
 GRANTED_WITH_COMPETENCIES =(2)
 
 GRANTED =(1)
 
 UNKNOWN =(0)
 
 DENIED_ZONE =(-1)
 
 DENIED_ZONE_TIME =(-2)
 
 DENIED_AUTH =(-3)
 
 DENIED_LOCKDOWN =(-4)
 
 DENIED_LIFT =(-5)
 
 DENIED_COMPETENCY =(-6)
 
 DENIED_COMPETENCIES =(-7)
 
 DENIED_DUAL_AUTH =(-8)
 
 DENIED_SECOND_DUAL_AUTH =(-9)
 
 DENIED_NOT_ESCORT =(-10)
 
 DENIED_TAILGATING_VISITORS =(-11)
 
 DENIED_PASSBACK =(-12)
 
 DENIED_TAILGATING =(-13)
 
 DENIED_DUAL_AUTH_REPEAT =(-14)
 
 DENIED_CHALLENGE =(-15)
 
 DENIED_MOBILE_NOT_SUPPORTED =(-16)
 
 DENIED_CANT_SET_ALARM =(-17)
 
 DENIED_UNEXPECTED =(-64)
 

Constructor & Destructor Documentation

◆ AccessDecision()

com.gallagher.security.mobileaccess.AccessDecision.AccessDecision ( int  value)
87 {
88 mValue = value;
89 }

Member Function Documentation

◆ getValue()

int com.gallagher.security.mobileaccess.AccessDecision.getValue ( )
91 {
92 return mValue;
93 }

◆ parse()

static AccessDecision com.gallagher.security.mobileaccess.AccessDecision.parse ( int  value)
static
96 {
97 for (AccessDecision a : AccessDecision.values()) {
98 if (a.mValue == value) {
99 return a;
100 }
101 }
102 return null;
103 }

◆ stringValue()

String com.gallagher.security.mobileaccess.AccessDecision.stringValue ( )
Returns
a programmatic string representation of this object. This value is NOT localised and is stable, so you can make logical decisions based on it's value

Implements com.gallagher.security.mobileaccess.StringValueConvertible.

164 {
165 switch (this) {
166 case WITH_DUAL_AUTH:
167 return "withDualAuth";
168 case WITH_ESCORT:
169 return "withEscort";
171 return "grantedWithPassback";
173 return "grantedWithCompetencies";
174 case GRANTED:
175 return "granted";
176 case UNKNOWN:
177 return "unknown";
178 case DENIED_ZONE:
179 return "deniedZone";
180 case DENIED_ZONE_TIME:
181 return "deniedZoneTime";
182 case DENIED_AUTH:
183 return "deniedAuth";
184 case DENIED_LOCKDOWN:
185 return "deniedLockdown";
186 case DENIED_LIFT:
187 return "deniedLift";
189 return "deniedCompetency";
191 return "deniedCompetencies";
192 case DENIED_DUAL_AUTH:
193 return "deniedDualAuth";
195 return "deniedSecondDualAuth";
197 return "deniedNotEscort";
199 return "deniedTailgatingVisitors";
200 case DENIED_PASSBACK:
201 return "deniedPassback";
203 return "deniedTailgating";
205 return "deniedDualAuthRepeat";
206 case DENIED_CHALLENGE:
207 return "deniedChallenge";
209 return "deniedMobileNotSupported";
211 return "deniedCantSetAlarm";
213 return "deniedUnexpected";
214 default:
215 return "unknownStatus";
216 }
217 }
DENIED_CANT_SET_ALARM
Definition: AccessDecision.java:80
DENIED_COMPETENCY
Definition: AccessDecision.java:47
WITH_ESCORT
Definition: AccessDecision.java:17
DENIED_DUAL_AUTH
Definition: AccessDecision.java:53
DENIED_ZONE_TIME
Definition: AccessDecision.java:35
DENIED_COMPETENCIES
Definition: AccessDecision.java:50
GRANTED
Definition: AccessDecision.java:26
DENIED_NOT_ESCORT
Definition: AccessDecision.java:59
DENIED_UNEXPECTED
Definition: AccessDecision.java:83
DENIED_LIFT
Definition: AccessDecision.java:44
DENIED_ZONE
Definition: AccessDecision.java:32
WITH_DUAL_AUTH
Definition: AccessDecision.java:14
DENIED_CHALLENGE
Definition: AccessDecision.java:74
DENIED_TAILGATING_VISITORS
Definition: AccessDecision.java:62
DENIED_MOBILE_NOT_SUPPORTED
Definition: AccessDecision.java:77
DENIED_TAILGATING
Definition: AccessDecision.java:68
DENIED_DUAL_AUTH_REPEAT
Definition: AccessDecision.java:71
DENIED_AUTH
Definition: AccessDecision.java:38
GRANTED_WITH_COMPETENCIES
Definition: AccessDecision.java:23
GRANTED_WITH_PASSBACK
Definition: AccessDecision.java:20
DENIED_SECOND_DUAL_AUTH
Definition: AccessDecision.java:56
DENIED_LOCKDOWN
Definition: AccessDecision.java:41
DENIED_PASSBACK
Definition: AccessDecision.java:65
UNKNOWN
Definition: AccessDecision.java:29

◆ toString()

String com.gallagher.security.mobileaccess.AccessDecision.toString ( )
107 {
108 switch (this) {
109 case WITH_DUAL_AUTH:
110 return "Second authentication required for access";
111 case WITH_ESCORT:
112 return "Escort or further visitors required for access";
114 return "Granted: Shouldn't have passed back";
116 return "Granted: Competency warning";
117 case GRANTED:
118 return "Granted";
119 case UNKNOWN:
120 return "Completed";
121 case DENIED_ZONE:
122 return "Denied: User does not have access to this zone";
123 case DENIED_ZONE_TIME:
124 return "Denied: User does not have access to this zone at this time";
125 case DENIED_AUTH:
126 return "Denied: Cardholder not recognised";
127 case DENIED_LOCKDOWN:
128 return "Denied: User does not have access during lockdown";
129 case DENIED_LIFT:
130 return "Denied: User does not have access to lift floor";
132 return "Denied: User is missing at least one competency";
134 return "Denied: User is missing all competencies";
135 case DENIED_DUAL_AUTH:
136 return "Denied: User is not part of the dual auth access group";
138 return "Denied: Second dual auth user is not part of the access group";
140 return "Denied: User does not have the right to escort the visitor that attempted access";
142 return "Denied: Multiple visitors are not supported with anti-tailgating enabled";
143 case DENIED_PASSBACK:
144 return "Denied: Passback not allowed";
146 return "Denied: User shouldn't have tailgated";
148 return "Denied: Dual auth failed because the same mobile was used";
149 case DENIED_CHALLENGE:
150 return "Denied: Challenge operator denied access";
152 return "Denied: Mobile not supported";
154 return "Denied: User cannot disarm alarm zone";
156 return "Denied: Unexpected";
157 default: // this should never happen because .parse will convert things to DENIED_UNEXPECTED and there are no other public constructors
158 throw new FatalError(String.format(Locale.US, "Impossible value %d for AccessDecision", mValue));
159 }
160 }

Member Data Documentation

◆ DENIED_AUTH

com.gallagher.security.mobileaccess.AccessDecision.DENIED_AUTH =(-3)

Access Denied. User not recognized Message: Denied: Cardholder not recognised

◆ DENIED_CANT_SET_ALARM

com.gallagher.security.mobileaccess.AccessDecision.DENIED_CANT_SET_ALARM =(-17)

Access Denied. Alarm zone is armed and user does not have privilege to disarm it Message: Denied: User cannot disarm alarm zone

◆ DENIED_CHALLENGE

com.gallagher.security.mobileaccess.AccessDecision.DENIED_CHALLENGE =(-15)

Access Denied. A remote operator rejected the request Message: Denied: Challenge operator denied access

◆ DENIED_COMPETENCIES

com.gallagher.security.mobileaccess.AccessDecision.DENIED_COMPETENCIES =(-7)

Access Denied. Missing competencies Message: Denied: User is missing at least one competency

◆ DENIED_COMPETENCY

com.gallagher.security.mobileaccess.AccessDecision.DENIED_COMPETENCY =(-6)

Access Denied. Missing a competency Message: Denied: User is missing at least one competency

◆ DENIED_DUAL_AUTH

com.gallagher.security.mobileaccess.AccessDecision.DENIED_DUAL_AUTH =(-8)

Access Denied. Not allowed to be the first cardholder in dual-auth Message: Denied: User is not part of the dual auth access group

◆ DENIED_DUAL_AUTH_REPEAT

com.gallagher.security.mobileaccess.AccessDecision.DENIED_DUAL_AUTH_REPEAT =(-14)

Access Denied. Not allowed to use the same phone twice for dual auth Message: Denied: Dual auth failed because the same mobile was used

◆ DENIED_LIFT

com.gallagher.security.mobileaccess.AccessDecision.DENIED_LIFT =(-5)

Access Denied. Not allowed to enter the lift floor Message: Denied: User does not have access to lift floor

◆ DENIED_LOCKDOWN

com.gallagher.security.mobileaccess.AccessDecision.DENIED_LOCKDOWN =(-4)

Access Denied. The zone is locked down and the user does not have privilege to enter during lockdown Message: Denied: User does not have access during lockdown

◆ DENIED_MOBILE_NOT_SUPPORTED

com.gallagher.security.mobileaccess.AccessDecision.DENIED_MOBILE_NOT_SUPPORTED =(-16)

Access Denied. Phone is not supported Message: Denied: Mobile not supported

◆ DENIED_NOT_ESCORT

com.gallagher.security.mobileaccess.AccessDecision.DENIED_NOT_ESCORT =(-10)

Access Denied. Not allowed to be an escort for this visitor Message: Denied: User does not have the right to escort the visitor that attempted access

◆ DENIED_PASSBACK

com.gallagher.security.mobileaccess.AccessDecision.DENIED_PASSBACK =(-12)

Access Denied. Anti-passback violation Message: Denied: Passback not allowed

◆ DENIED_SECOND_DUAL_AUTH

com.gallagher.security.mobileaccess.AccessDecision.DENIED_SECOND_DUAL_AUTH =(-9)

Access Denied. Not allowed to be the second cardholder in dual-auth Message: Second dual auth user is not part of the access group

◆ DENIED_TAILGATING

com.gallagher.security.mobileaccess.AccessDecision.DENIED_TAILGATING =(-13)

Access Denied. Anti-tailgating violation Message: Denied: User shouldn't have tailgated

◆ DENIED_TAILGATING_VISITORS

com.gallagher.security.mobileaccess.AccessDecision.DENIED_TAILGATING_VISITORS =(-11)

Access Denied. Visitors not support with anti-tailgating Message: Denied: Multiple visitors are not supported with anti-tailgating enabled

◆ DENIED_UNEXPECTED

com.gallagher.security.mobileaccess.AccessDecision.DENIED_UNEXPECTED =(-64)

Access Denied. Unexpected error Message: Denied: Unexpected

◆ DENIED_ZONE

com.gallagher.security.mobileaccess.AccessDecision.DENIED_ZONE =(-1)

Access Denied. Not allowed to enter the zone Message: Denied: User does not have access to this zone

◆ DENIED_ZONE_TIME

com.gallagher.security.mobileaccess.AccessDecision.DENIED_ZONE_TIME =(-2)

Access Denied. Not allowed to enter at this time Message: Denied: User does not have access to this zone at this time

◆ GRANTED

com.gallagher.security.mobileaccess.AccessDecision.GRANTED =(1)

Access granted. Message: Granted

◆ GRANTED_WITH_COMPETENCIES

com.gallagher.security.mobileaccess.AccessDecision.GRANTED_WITH_COMPETENCIES =(2)

Access granted, but with competency warnings Message: Granted: Competency warning

◆ GRANTED_WITH_PASSBACK

com.gallagher.security.mobileaccess.AccessDecision.GRANTED_WITH_PASSBACK =(3)

Access granted, but with a passback warning Message: Granted: Shouldn't have passed back

◆ UNKNOWN

com.gallagher.security.mobileaccess.AccessDecision.UNKNOWN =(0)

Access unknown. Refer to lock for status. Message: Complete

◆ WITH_DUAL_AUTH

com.gallagher.security.mobileaccess.AccessDecision.WITH_DUAL_AUTH =(5)

Access not immediately granted. The zone requires a second person to authenticate to gain access. Message: Second authentication required for access

◆ WITH_ESCORT

com.gallagher.security.mobileaccess.AccessDecision.WITH_ESCORT =(4)

Access not immediately granted. The zone requires an escort to approve visitor access. Message: Escort or further visitors required for access


The documentation for this enum was generated from the following file: