dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21661
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10313: Impl get method bypassing acl in generic store
------------------------------------------------------------
revno: 10313
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-03-19 13:53:04 +0100
message:
Impl get method bypassing acl in generic store
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/GenericIdentifiableObjectStore.java
dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/GenericIdentifiableObjectStore.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/GenericIdentifiableObjectStore.java 2013-03-14 04:50:21 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/GenericIdentifiableObjectStore.java 2013-03-19 12:53:04 +0000
@@ -46,6 +46,14 @@
* @return the object with the given uid.
*/
T getByUid( String uid );
+
+ /**
+ * Retrieves the object with the given uid. Bypasses the ACL system.
+ *
+ * @param uid the uid.
+ * @return the object with the given uid.
+ */
+ T getByUidNoAcl( String uid );
/**
* Retrieves the object with the given name.
=== modified file 'dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.java'
--- dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.java 2013-03-19 12:45:37 +0000
+++ dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.java 2013-03-19 12:53:04 +0000
@@ -306,6 +306,12 @@
}
@Override
+ public final T getByUidNoAcl( String uid )
+ {
+ return getObject( Restrictions.eq( "uid", uid ) );
+ }
+
+ @Override
@Deprecated
public final T getByName( String name )
{