public void clearSharing(boolean clearUser){
  if (clearUser) {
    user=null;
  }
  publicAccess=AccessStringHelper.DEFAULT;
  externalAccess=false;
  if (userGroupAccesses != null) {
    userGroupAccesses.clear();
  }
}

public void clearSharing ( boolean clearUser ) { if ( clearUser ) { user = null ; } publicAccess = AccessStringHelper . DEFAULT ; externalAccess = false ; if ( userGroupAccesses != null ) { userGroupAccesses . clear ( ) ; } }
clear out all sharing properties .
