/** * Construct a new instance. * * @param name the name of this permission * @param nameEnumeration the set of valid names for this permission type */ protected AbstractNameSetOnlyPermission(final String name, final StringEnumeration nameEnumeration) { super("*".equals(name) ? "*" : nameEnumeration.canonicalName(name)); this.nameEnumeration = nameEnumeration; }
/** * Construct a new instance. * * @param name the name of this permission * @param nameEnumeration the set of valid names for this permission type */ protected AbstractNameSetOnlyPermission(final String name, final StringEnumeration nameEnumeration) { super("*".equals(name) ? "*" : nameEnumeration.canonicalName(name)); this.nameEnumeration = nameEnumeration; }
/** * Construct a new instance. * * @param name the name of this permission * @param nameEnumeration the set of valid names for this permission type */ protected AbstractNameSetOnlyPermission(final String name, final StringEnumeration nameEnumeration) { super("*".equals(name) ? "*" : nameEnumeration.canonicalName(name)); this.nameEnumeration = nameEnumeration; }
/** * Construct a new instance. * * @param name the name of this permission * @param nameEnumeration the set of valid names for this permission type */ protected AbstractNameSetOnlyPermission(final String name, final StringEnumeration nameEnumeration) { super("*".equals(name) ? "*" : nameEnumeration.canonicalName(name)); this.nameEnumeration = nameEnumeration; }