code: private boolean getActivityImplicity(final ACTIVITY activity) {
          if (this.activity == ACTIVITY.ALL) {
              return true;
          }
  
          if ((activity == ACTIVITY.SUBSCRIBE) && (this.activity == ACTIVITY.PUBLISH)) {
              return false;
          } else if ((activity == ACTIVITY.PUBLISH) && (this.activity == ACTIVITY.SUBSCRIBE)) {
              return false;
          } else if (activity == ACTIVITY.ALL && this.getActivity() != ACTIVITY.ALL) {
              return false;
          }
          return true;
      }
docs: Checks if an activity implies another activity
  
  @param activity the activity to check
  @return <code>true</code> if the permission activity imply the other permission activity