AnsweredAssumed Answered

System person DELETED !!!!!

Question asked by giafar on Jun 10, 2009
Hi all !!!!
I have deleted the "System" person object can some one help me ???????


        for( Iterator<NodeRef> iterator = ps.getAllPeople().iterator(); iterator.hasNext();) {
           NodeRef nr = iterator.next();
            String userName = (String)ns.getProperty(nr, ContentModel.PROP_USERNAME);
            if(userName.toLowerCase().equals("admin"))
               continue;
            ps.deletePerson(userName);
        }

Outcomes