Search in sources :

Example 6 with InstanceSecurityRestriction

use of org.motechproject.mds.util.InstanceSecurityRestriction in project motech by motech.

the class DefaultMotechDataService method deleteAll.

@Override
@Transactional
public void deleteAll() {
    InstanceSecurityRestriction securityRestriction = validateCredentials();
    repository.delete(new String[0], new Object[0], securityRestriction);
}
Also used : InstanceSecurityRestriction(org.motechproject.mds.util.InstanceSecurityRestriction) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

InstanceSecurityRestriction (org.motechproject.mds.util.InstanceSecurityRestriction)6 Query (javax.jdo.Query)3 Transactional (org.springframework.transaction.annotation.Transactional)3 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Arrays.asList (java.util.Arrays.asList)1 Collections.singletonList (java.util.Collections.singletonList)1 HashMap (java.util.HashMap)1 LinkedList (java.util.LinkedList)1 TestClass (org.motechproject.mds.osgi.TestClass)1 QueryExecution (org.motechproject.mds.query.QueryExecution)1 SqlQueryExecution (org.motechproject.mds.query.SqlQueryExecution)1 Task (org.motechproject.tasks.domain.mds.task.Task)1