コード例 #1
0
 /**
  * Returns the default Privacy list used for the session's user. This list is processed if there
  * is no active list set for the session.
  *
  * @return the default Privacy list used for the session's user.
  */
 public PrivacyList getDefaultList() {
   if (defaultList != null) {
     try {
       return PrivacyListManager.getInstance().getPrivacyList(getUsername(), defaultList);
     } catch (UserNotFoundException e) {
       Log.error(e.getMessage(), e);
     }
   }
   return null;
 }
コード例 #2
0
 /**
  * The ClearspaceLockOutProvider will retrieve lockout information from Clearspace's user
  * properties.
  *
  * @see org.jivesoftware.openfire.lockout.LockOutProvider#getDisabledStatus(String)
  */
 @Override
 public LockOutFlag getDisabledStatus(String username) {
   try {
     // Retrieve the disabled status, translate it into a LockOutFlag, and return it.
     return checkUserDisabled(getUserByUsername(username));
   } catch (UserNotFoundException e) {
     // Not a valid user?  We will leave it up to the user provider to handle rejecting this user.
     Log.warn(e.getMessage(), e);
     return null;
   }
 }