Lines Matching refs:rightsMask
200 * Return the EnumRight corresponding to the provided rightsMask.
202 * @param rightsMask
204 * @return EnumRight corresponding to the provided rightsMask.
206 public static Set<EnumRight> getEnumRight(int rightsMask) {
211 if (hasRights(rightsMask, ACI_EXPORT))
213 if (hasRights(rightsMask, ACI_IMPORT))
215 if (hasRights(rightsMask, ACI_PROXY))
218 if (hasRights(rightsMask, ACI_ALL)) {
223 if (hasRights(rightsMask, ACI_READ))
225 if (hasRights(rightsMask, ACI_WRITE))
227 if (hasRights(rightsMask, ACI_ADD))
229 if (hasRights(rightsMask, ACI_DELETE))
231 if (hasRights(rightsMask, ACI_SEARCH))
233 if (hasRights(rightsMask, ACI_COMPARE))
235 if (hasRights(rightsMask, ACI_SELF)) // included in WRITE
243 * @param rightsMask
250 public static boolean hasRights(int rightsMask, int rights) {
251 return (rightsMask & rights) == rights;