private synchronized boolean addPrincipal(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, false); try { return set.add(principal); } finally { setSet(set, matchType, false); } }
private synchronized boolean removePrincipal(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, false); try { return set.remove(principal); } finally { setSet(set, matchType, false); } }
private synchronized boolean removePrincipal(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, false); try { return set.remove(principal); } finally { setSet(set, matchType, false); } }
private synchronized boolean addPrincipal(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, false); try { return set.add(principal); } finally { setSet(set, matchType, false); } }
private boolean addPrincipalImmediate(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, true); try { return set.add(principal); } finally { setSet(set, matchType, true); } }
private synchronized boolean removePrincipal(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, false); try { return set.remove(principal); } finally { setSet(set, matchType, false); } }
private synchronized boolean addPrincipal(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, false); try { return set.add(principal); } finally { setSet(set, matchType, false); } }
private boolean addPrincipalImmediate(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, true); try { return set.add(principal); } finally { setSet(set, matchType, true); } }
private boolean addPrincipalImmediate(final MappingPrincipal principal, final MatchType matchType) { Set<MappingPrincipal> set = getSet(matchType, true); try { return set.add(principal); } finally { setSet(set, matchType, true); } }