public boolean canLockBecauseOfInactivity ( CmsObject cms , CmsUser user ) { return ! user . isManaged ( ) && ! user . isWebuser ( ) && ! OpenCms . getDefaultUsers ( ) . isDefaultUser ( user . getName ( ) ) && ! OpenCms . getRoleManager ( ) . hasRole ( cms , user . getName ( ) , CmsRole . ROOT_ADMIN ) ; }
Checks whether a user account can be locked because of inactivity .