List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:com.alfaariss.oa.engine.requestor.configuration.ConfigurationFactory.java
/** * {@inheritDoc}//from w ww . ja v a2 s . c om * @see com.alfaariss.oa.engine.core.requestor.factory.IRequestorPoolFactory#getAllRequestorPools() */ @Override public Collection<RequestorPool> getAllRequestorPools() throws RequestorException { if (_mapPools == null) return Collections.unmodifiableCollection(new Vector<RequestorPool>()); return Collections.unmodifiableCollection(_mapPools.values()); }
From source file:org.openinfinity.sso.identityprovisioning.bpmn.ProcessEngineBridgeImpl.java
public Collection<org.openinfinity.sso.identityprovisioning.bpmn.Task> queryForTasksByUserRoles() { SecurityContext securityContext = SecurityContextHolder.getContext(); Authentication authentication = securityContext.getAuthentication(); IdentityService identityService = processEngine.getIdentityService(); identityService.setAuthenticatedUserId(authentication.getName()); TaskService taskService = processEngine.getTaskService(); Collection<? extends GrantedAuthority> grantedAuthorities = authentication.getAuthorities(); List<String> candidateGroups = new ArrayList<String>(); for (GrantedAuthority grantedAuthority : grantedAuthorities) { if (grantedAuthority.getAuthority() != null) candidateGroups.add(grantedAuthority.getAuthority()); }/* ww w. j a v a2s . c o m*/ List<Task> tasks = taskService.createTaskQuery().taskCandidateGroupIn(candidateGroups).list(); Collection<org.openinfinity.sso.identityprovisioning.bpmn.Task> simpleTasks = mapTasks(tasks); return Collections.unmodifiableCollection(simpleTasks); }
From source file:com.netflix.simianarmy.conformity.Cluster.java
/** * Gets names of all excluded conformity rules for this cluster. * @return//from w ww .j av a 2s . c o m * names of all excluded conformity rules for this cluster */ public Collection<String> getExcludedRules() { return Collections.unmodifiableCollection(excludedConformityRules); }
From source file:com.bigdata.dastor.db.Table.java
public Collection<ColumnFamilyStore> getColumnFamilyStores() { return Collections.unmodifiableCollection(columnFamilyStores.values()); }
From source file:com.googlecode.deadalus.server.internal.LocalRegionServer.java
@Override public Collection<RegionServer> getRegions() { return Collections.unmodifiableCollection(managedServers.values()); }
From source file:de.ailis.threedee.assets.Assets.java
/** * Returns all loaded textures.//from w w w . jav a 2 s .c o m * * @return The loaded textures. Never null. May be empty. */ public Collection<Material> getMaterials() { return Collections.unmodifiableCollection(this.materials.values()); }
From source file:com.ponysdk.ui.server.basic.PTabLayoutPanel.java
@Override public Collection<PSelectionHandler<Integer>> getSelectionHandlers() { return Collections.unmodifiableCollection(selectionHandlers); }
From source file:com.zc.study.fileinjection.springintegration.MessageHeaders.java
public Collection<Object> values() { return Collections.unmodifiableCollection(this.headers.values()); }
From source file:de.uniba.wiai.kinf.pw.projects.lillytab.reasoner.tbox.RBox.java
@Override public Collection<R> getRoles(RoleProperty property) { final Collection<R> roles = _propertyRoleMap.get(property); if (roles != null) { return Collections.unmodifiableCollection(roles); } else {/* w ww . j av a2 s. c om*/ return null; } }
From source file:com.diversityarrays.dal.db.kddart.KddartDalDatabase.java
@Override public Collection<String> getEntityNames() { return Collections.unmodifiableCollection(entityClassByName.keySet()); }