@Test public void testIsValidUserName() { assertTrue(UserUtil.isValidUserName("datel")); assertFalse(UserUtil.isValidUserName("group:remote_name")); }
static boolean isValidUserName(String name) { return name != null && name.length() + FedoraUserDao.PID_PREFIX.length() <= 64 && USERNAME_PATTERN.matcher(name).matches(); }
UserUtil { static boolean isValidUserName(String name) { return name != null && name.length() + FedoraUserDao.PID_PREFIX.length() <= 64 && USERNAME_PATTERN.matcher(name).matches(); } }
UserUtil { static boolean isValidUserName(String name) { return name != null && name.length() + FedoraUserDao.PID_PREFIX.length() <= 64 && USERNAME_PATTERN.matcher(name).matches(); }  }
UserUtil { static boolean isValidUserName(String name) { return name != null && name.length() + FedoraUserDao.PID_PREFIX.length() <= 64 && USERNAME_PATTERN.matcher(name).matches(); }  static UserManager createUserManagerPostgressImpl(
            AppConfiguration config, DataSource source, DaoFactory daos); static UserManager getDefaultManger(); static void setDefaultManger(UserManager manger); static File createUserHome(String userName, String userHomePath, File allUsersHome); static void createUserSubfolders(File userHome); static void validateUsername(String userName); static String toUserName(String remoteName); static String toUserName(String remotePrefix, String remoteName); static String toHex(byte[] bytes); static void initDefaultAdmin(); static Collection<String> toGroupPid(Collection<Group> groups); static String toGroupPid(Group group); static String toGroupPid(String groupObjectId); static boolean isValidGroupPid(String pid); static String toUserPid(UserProfile user); }
UserUtil { static boolean isValidUserName(String name) { return name != null && name.length() + FedoraUserDao.PID_PREFIX.length() <= 64 && USERNAME_PATTERN.matcher(name).matches(); }  static UserManager createUserManagerPostgressImpl(
            AppConfiguration config, DataSource source, DaoFactory daos); static UserManager getDefaultManger(); static void setDefaultManger(UserManager manger); static File createUserHome(String userName, String userHomePath, File allUsersHome); static void createUserSubfolders(File userHome); static void validateUsername(String userName); static String toUserName(String remoteName); static String toUserName(String remotePrefix, String remoteName); static String toHex(byte[] bytes); static void initDefaultAdmin(); static Collection<String> toGroupPid(Collection<Group> groups); static String toGroupPid(Group group); static String toGroupPid(String groupObjectId); static boolean isValidGroupPid(String pid); static String toUserPid(UserProfile user); static final String DEFAULT_ADMIN_USER; }