Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 18167 invoked from network); 13 Dec 2010 17:42:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 17:42:23 -0000 Received: (qmail 58907 invoked by uid 500); 13 Dec 2010 17:42:23 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 58896 invoked by uid 99); 13 Dec 2010 17:42:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 17:42:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 17:42:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBDHg1q6029291 for ; Mon, 13 Dec 2010 17:42:02 GMT Message-ID: <7907942.93771292262121907.JavaMail.jira@thor> Date: Mon, 13 Dec 2010 12:42:01 -0500 (EST) From: "Erik Bengtson (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-667) Extend PersistenceManageFactory to return all known entity classes In-Reply-To: <8518720.64111288031901883.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JDO-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970915#action_12970915 ] Erik Bengtson commented on JDO-667: ----------------------------------- This method should check for permission, otherwise it may expose data that hackers could use to explore the user data model > Extend PersistenceManageFactory to return all known entity classes > ------------------------------------------------------------------ > > Key: JDO-667 > URL: https://issues.apache.org/jira/browse/JDO-667 > Project: JDO > Issue Type: New Feature > Affects Versions: JDO 3 > Reporter: Marco > Fix For: JDO 3 maintenance release 1 > > > JDO 3 now has the ability to declare meta-data programmatically. Part of this feature is the ability to ask the PersistenceManagerFactory via the method getMetadata(java.lang.String) for the meta-data of one single class. But there is no way to list all known classes. > I therefore kindly ask for a new method in PersistenceManagerFactory like this: > Collection getClassesWithMetadata(); > Btw., this is Andy's suggestion posted here: http://www.datanucleus.org/servlet/forum/viewthread_thread,6379#33224 > I'd greatly appreciate, if this method became a part of JDO 3.1. > Edit 1: I just saw the various overloaded methods getManagedObjects(...) in PersistenceManager - maybe the alternative method name "getManagedClasses()" would be more consistent? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.