@Test public void clear() throws Exception { Item item = Mockito.mock(Item.class); when(item.getID()).thenReturn(UUID.randomUUID()); Group group1 = buildGroupMock("Test Group 1"); readOnlyCache.cacheAuthorizedAction(item, Constants.READ, ePerson, true); readOnlyCache.cacheGroupMembership(group1, ePerson, true); assertTrue(readOnlyCache.getCachedAuthorizationResult(item, Constants.READ, ePerson)); assertTrue(readOnlyCache.getCachedGroupMembership(group1, ePerson)); readOnlyCache.clear(); assertNull(readOnlyCache.getCachedAuthorizationResult(item, Constants.READ, ePerson)); assertNull(readOnlyCache.getCachedGroupMembership(group1, ePerson)); }
public void clear() { authorizedActionsCache.clear(); groupMembershipCache.clear(); allMemberGroupsCache.clear(); }
ContextReadOnlyCache { public void clear() { authorizedActionsCache.clear(); groupMembershipCache.clear(); allMemberGroupsCache.clear(); } }
ContextReadOnlyCache { public void clear() { authorizedActionsCache.clear(); groupMembershipCache.clear(); allMemberGroupsCache.clear(); }  }
ContextReadOnlyCache { public void clear() { authorizedActionsCache.clear(); groupMembershipCache.clear(); allMemberGroupsCache.clear(); }  Boolean getCachedAuthorizationResult(DSpaceObject dspaceObject, int action, EPerson eperson); void cacheAuthorizedAction(DSpaceObject dspaceObject, int action, EPerson eperson, Boolean result); Boolean getCachedGroupMembership(Group group, EPerson eperson); void cacheGroupMembership(Group group, EPerson eperson, Boolean isMember); void cacheAllMemberGroupsSet(EPerson ePerson, Set<Group> groups); Set<Group> getCachedAllMemberGroupsSet(EPerson ePerson); void clear(); }
ContextReadOnlyCache { public void clear() { authorizedActionsCache.clear(); groupMembershipCache.clear(); allMemberGroupsCache.clear(); }  Boolean getCachedAuthorizationResult(DSpaceObject dspaceObject, int action, EPerson eperson); void cacheAuthorizedAction(DSpaceObject dspaceObject, int action, EPerson eperson, Boolean result); Boolean getCachedGroupMembership(Group group, EPerson eperson); void cacheGroupMembership(Group group, EPerson eperson, Boolean isMember); void cacheAllMemberGroupsSet(EPerson ePerson, Set<Group> groups); Set<Group> getCachedAllMemberGroupsSet(EPerson ePerson); void clear();  }