com.atlassian.crowd.util
Class DynamicAuthorityMappings
java.lang.Object
com.atlassian.crowd.util.DynamicAuthorityMappings
- All Implemented Interfaces:
- Iterable<Map.Entry<String,String>>
public class DynamicAuthorityMappings
- extends Object
- implements Iterable<Map.Entry<String,String>>
Provides an unmodifiable, dynamic view of the authority mappings that contains
that groups that are assigned to the application. The dynamic mapper automatically
reflects the changes in the application group mappings, but the returned iterators
capture snapshots of the mappings, i.e., they are not updated even if the
mapping change.
Method Summary |
Iterator<Map.Entry<String,String>> |
iterator()
In order make life simpler for users of this class, this method
returns a snapshot of the configuration, i.e., the returned iterator will not change
even if the dynamic map does. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicAuthorityMappings
public DynamicAuthorityMappings(ClientProperties clientProperties,
ApplicationManager applicationManager,
String adminAuthority)
iterator
public Iterator<Map.Entry<String,String>> iterator()
- In order make life simpler for users of this class, this method
returns a snapshot of the configuration, i.e., the returned iterator will not change
even if the dynamic map does. This is intentional, and makes it easier to
iterate without caring about concurrent modifications. Note, however, that subsequent
calls to this object may find it in a different state.
- Specified by:
iterator
in interface Iterable<Map.Entry<String,String>>
- Returns:
- A snapshot of the mappings.
Copyright © 2013 Atlassian. All Rights Reserved.