code
stringlengths
73
34.1k
label
stringclasses
1 value
static void adjustPositionSet( List<NodeInfo> order, Element positionSet, IntegrationResult result) { Node nodeToMatch = positionSet.getFirstChild(); Element nodeToInsertBefore = positionSet.getOwnerDocument().createElement("INSERT_POINT"); positionSet.insertBefore(nodeToInsertBefore...
java
static boolean hasAffectOnCVP(List<NodeInfo> order, Element compViewParent) { if (order.size() == 0) return false; int idx = 0; Element child = (Element) compViewParent.getFirstChild(); NodeInfo ni = order.get(idx); if (child == null && ni != null) // most likely nodes to be pu...
java
static void applyToNodes(List<NodeInfo> order, Element compViewParent) { // first set up a bogus node to assist with inserting Node insertPoint = compViewParent.getOwnerDocument().createElement("bogus"); Node first = compViewParent.getFirstChild(); if (first != null) compViewParent.inse...
java
static void applyNoHopping(List<NodeInfo> order) { if (isIllegalHoppingSpecified(order) == true) { ArrayList<NodeInfo> cvpNodeInfos = new ArrayList<>(); // pull those out of the position list from the CVP for (int i = order.size() - 1; i >= 0; i--) if (order....
java
static boolean isIllegalHoppingSpecified(List<NodeInfo> order) { for (int i = 0; i < order.size(); i++) { NodeInfo ni = (NodeInfo) order.get(i); // look for move restricted nodes if (!ni.getNode().getAttribute(Constants.ATT_MOVE_ALLOWED).equals("false")) continue; ...
java
static void applyOrdering( List<NodeInfo> order, Element compViewParent, Element positionSet, NodeInfoTracker tracker) { // first pull out all visible channel or visible folder children and // put their id's in a list of available children and record thei...
java
public static void updatePositionSet(Element compViewParent, Element plfParent, IPerson person) throws PortalException { if (LOG.isDebugEnabled()) LOG.debug("Updating Position Set"); if (compViewParent.getChildNodes().getLength() == 0) { // no nodes to position. if set exists re...
java
private static Element getPositionSet(Element plfParent, IPerson person, boolean create) throws PortalException { Node child = plfParent.getFirstChild(); while (child != null) { if (child.getNodeName().equals(Constants.ELM_POSITION_SET)) return (Element) child; child...
java
private static Element createAndAppendPosition( String elementID, Element positions, IPerson person) throws PortalException { if (LOG.isDebugEnabled()) LOG.debug("Adding Position Set entry " + elementID + "."); String ID = null; try { ID = getDLS().getNextStructDirectiv...
java
private void updateScript( String target, String databaseQualifier, String outputFile, boolean runIt) { final ISchemaExport schemaExportBean = this.getSchemaExport(databaseQualifier); if (schemaExportBean == null) { throw new RuntimeException( target + " could...
java
private String formatBody(URL resetUrl, ILocalAccountPerson account, Locale locale) { final STGroup group = new STGroupDir(templateDir, '$', '$'); final ST template = group.getInstanceOf(templateName); String name = findDisplayNameFromLocalAccountPerson(account); template.add("displayNa...
java
protected String findDisplayNameFromLocalAccountPerson(ILocalAccountPerson person) { Object name = person.getAttributeValue(ILocalAccountPerson.ATTR_DISPLAY_NAME); if ((name instanceof String) && !StringUtils.isEmpty((String) name)) { return (String) name; } // if display na...
java
final void doPopulateTimeDimensions() { final List<TimeDimension> timeDimensions = this.timeDimensionDao.getTimeDimensions(); if (timeDimensions.isEmpty()) { logger.info("No TimeDimensions exist, creating them"); } else if (timeDimensions.size() != (24 * 60)) { this.logge...
java
protected void createDateDimension( List<QuarterDetail> quartersDetails, List<AcademicTermDetail> academicTermDetails, DateMidnight date) { final QuarterDetail quarterDetail = EventDateTimeUtils.findDateRangeSorted(date, quartersDetails); final Academ...
java
public static String getStringFromPortletUrl( PortletUrl portletUrl, HttpServletRequest request) { if (portletUrl == null) { return null; } // Default urlType UrlType urlType = UrlType.RENDER; final PortletUrlType type = portletUrl.getType(); switc...
java
public void setChannelPublishingDefinition(PortletPublishingDefinition cpd) { // Set appName/portletName if a descriptor is present. If a framework // portlet, the applicationId is /uPortal. if (cpd.getPortletDescriptor() != null) { final PortletDescriptor pDesc = cpd.getPortletDes...
java
private void initPermissionsForPrincipal(JsonEntityBean principal) { permissions.add( principal.getTypeAndIdHash() + "_" + PortletAdministrationHelper.PortletPermissionsOnForm.BROWSE .getActivity()); permissi...
java
public void setExpirationDateString(String date) throws ParseException { if (StringUtils.isBlank(date)) { expirationDate = null; return; } expirationDate = dateFormat.parse(date); }
java
public void setPublishDateString(String date) throws ParseException { if (StringUtils.isBlank(date)) { publishDate = null; return; } publishDate = dateFormat.parse(date); }
java
public void setServiceName(Name newServiceName) throws GroupsException { try { getCompositeEntityIdentifier().setServiceName(newServiceName); } catch (javax.naming.InvalidNameException ine) { throw new GroupsException("Problem setting service name", ine); } }
java
@Override public void updateMembers() throws GroupsException { // Track objects to invalidate Set<IGroupMember> invalidate = new HashSet<>(); invalidate.addAll(getAddedMembers().values()); invalidate.addAll(getRemovedMembers().values()); getLocalGroupService().updateGroupMe...
java
public static String getEventName(int eventId) { switch (eventId) { case XMLStreamConstants.START_ELEMENT: return "StartElementEvent"; case XMLStreamConstants.END_ELEMENT: return "EndElementEvent"; case XMLStreamConstants.PROCESSING_INSTRUCTION...
java
@Override public Evaluator getAttributeEvaluator(String name, String mode, String value) { return new GroupMembershipEvaluator(mode, name); }
java
private List<IPersonAttributes> getVisiblePersons( final IAuthorizationPrincipal principal, final Set<String> permittedAttributes, List<IPersonAttributes> peopleList) { List<Future<IPersonAttributes>> futures = new ArrayList<>(); List<IPersonAttributes> list = new Arr...
java
private boolean allListItemsHaveDisplayName(List<IPersonAttributes> people) { for (IPersonAttributes person : people) { if (person.getAttributeValue("displayName") == null) { return false; } } return true; }
java
protected IAuthorizationPrincipal getPrincipalForUser(final IPerson person) { final EntityIdentifier ei = person.getEntityIdentifier(); return AuthorizationServiceFacade.instance().newPrincipal(ei.getKey(), ei.getType()); }
java
protected Set<String> getPermittedAttributes(final IAuthorizationPrincipal principal) { final Set<String> attributeNames = personAttributeDao.getPossibleUserAttributeNames(); return getPermittedAttributes(principal, attributeNames); }
java
@Override public Map<String, Document> getFragmentLayoutCopies() { // since this is only visible in fragment list in administrative portlet, use default portal // locale final Locale defaultLocale = localeManagerFactory.getPortalLocales().get(0); final Map<String, Document> layouts ...
java
@Override public DistributedUserLayout getUserLayout(IPerson person, IUserProfile profile) { final DistributedUserLayout layout = this._getUserLayout(person, profile); return layout; }
java
private Document _safeGetUserLayout(IPerson person, IUserProfile profile) { Document layoutDoc; Tuple<String, String> key = null; final Cache<Tuple<String, String>, Document> layoutCache = getLayoutImportExportCache(); if (layoutCache != null) { key = new Tuple<>(person.get...
java
private DistributedUserLayout _getUserLayout(IPerson person, IUserProfile profile) { final String userName = (String) person.getAttribute("username"); final FragmentDefinition ownedFragment = this.fragmentUtils.getFragmentDefinitionByOwner(person); final boolean isLayoutOwnerDef...
java
@Override public Document getFragmentLayout(IPerson person, IUserProfile profile) { return this._safeGetUserLayout(person, profile); }
java
private void updateCachedLayout( Document layout, IUserProfile profile, FragmentDefinition fragment) { final Locale locale = profile.getLocaleManager().getLocales().get(0); // need to make a copy that we can fragmentize layout = (Document) layout.cloneNode(true); // Fix late...
java
private boolean isLayoutOwnerDefault(IPerson person) { final String userName = (String) person.getAttribute("username"); final List<FragmentDefinition> definitions = this.fragmentUtils.getFragmentDefinitions(); if (userName != null && definitions != null) { for (final FragmentDefini...
java
@Override public void setUserLayout( IPerson person, IUserProfile profile, Document layoutXML, boolean channelsAdded) { this.setUserLayout(person, profile, layoutXML, channelsAdded, true); }
java
@Override public void setUserLayout( IPerson person, IUserProfile profile, Document layoutXML, boolean channelsAdded, boolean updateFragmentCache) { final Document plf = (Document) person.getAttribute(Constants.PLF); if (logger.isDebugEnab...
java
private static synchronized void storeSingleton() { // recheck that we need to run because field could have been // set since we decided to invoke this method but before we acquired // the lock on this object if (PERSON_DIR_NAME_FINDER_INSTANCE == null) { IPersonAttributeDao ...
java
protected String getResourceId( IPortletWindowId portletWindowId, final IPortalRequestInfo portalRequestInfo) { final IPortletRequestInfo portletRequestInfo = portalRequestInfo.getPortletRequestInfo(portletWindowId); if (portletRequestInfo == null) { return null; ...
java
protected final Object getEventSessionMutex(HttpSession session) { synchronized (WebUtils.getSessionMutex(session)) { SerializableObject mutex = (SerializableObject) session.getAttribute(EVENT_SESSION_MUTEX); if (mutex == null) { mutex = new Serializab...
java
public GroupForm getGroupForm(String key) { log.debug("Initializing group form for group key " + key); // find the current version of this group entity IEntityGroup group = GroupService.findGroup(key); // update the group form with the existing group's main information GroupFo...
java
public void deleteGroup(String key, IPerson deleter) { if (!canDeleteGroup(deleter, key)) { throw new RuntimeAuthorizationException( deleter, IPermission.DELETE_GROUP_ACTIVITY, key); } log.info("Deleting group with key " + key); // find the current vers...
java
public void updateGroupDetails(GroupForm groupForm, IPerson updater) { if (!canEditGroup(updater, groupForm.getKey())) { throw new RuntimeAuthorizationException( updater, IPermission.EDIT_GROUP_ACTIVITY, groupForm.getKey()); } if (log.isDebugEnabled()) { ...
java
public void updateGroupMembers(GroupForm groupForm, IPerson updater) { if (!canEditGroup(updater, groupForm.getKey())) { throw new RuntimeAuthorizationException( updater, IPermission.EDIT_GROUP_ACTIVITY, groupForm.getKey()); } if (log.isDebugEnabled()) { ...
java
public void createGroup(GroupForm groupForm, JsonEntityBean parent, IPerson creator) { if (!canCreateMemberGroup(creator, parent.getId())) { throw new RuntimeAuthorizationException( creator, IPermission.CREATE_GROUP_ACTIVITY, groupForm.getKey()); } if (log.isDeb...
java
private void selectFormExecutionType(final PortletExecutionReportForm report) { if (!report.getExecutionTypeNames().isEmpty()) { // Already execution types set, do nothing return; } report.getExecutionTypeNames().add(ExecutionType.RENDER.name()); }
java
@Override protected List<ColumnDescription> getColumnDescriptions( PortletExecutionAggregationDiscriminator reportColumnDiscriminator, PortletExecutionReportForm form) { int groupSize = form.getGroups().size(); int portletSize = form.getPortlets().size(); int executio...
java
@Required public void setServerRegex(String serverRegex) { Validate.notBlank(serverRegex); this.serverRegex = serverRegex; this.pattern = Pattern.compile(this.serverRegex); }
java
public synchronized Name getServiceName() { if (size() < 2) { return null; } if (cachedServiceName == null) { cachedServiceName = getCompositeKey().getPrefix(size() - 1); } return cachedServiceName; }
java
protected String getMediaType( HttpServletRequest req, HttpServletResponse res, PipelineEventReader<CharacterEventReader, CharacterEvent> pipelineEventReader) { final String mediaType = pipelineEventReader.getOutputProperty(OutputKeys.MEDIA_TYPE); if (mediaType != nul...
java
protected Set<AggregatedGroupMapping> getGroupsForEvent(PortalEvent event) { final Set<AggregatedGroupMapping> groupMappings = new LinkedHashSet<AggregatedGroupMapping>(); if (event instanceof LoginEvent) { for (final String groupKey : ((LoginEvent) event).getGroups()) { ...
java
public static void finishedSession(IPerson person) { LOGGER.trace("Invoking finishedSession for IPerson [{}]", person); try { instance().ifinishedSession(person); } catch (GroupsException ge) { LOGGER.error("Error upon session finishing for person [{}]", person, ge); ...
java
private void ifinishedSession(IPerson person) throws GroupsException { IGroupMember gm = getGroupMember(person.getEntityIdentifier()); try { final EntityIdentifier entityIdentifier = gm.getEntityIdentifier(); EntityCachingService.getEntityCachingService() .rem...
java
@Override public String generateToken(final DynamicSkinInstanceData data) { final PortletPreferences preferences = data.getPortletRequest().getPreferences(); int hash = 0; // Add the list of preference names to an ordered list so we can get reliable hashcode // calculations. ...
java
@RenderMapping public String initializeView( WebRequest webRequest, PortletRequest portletRequest, Model model, @RequestParam(required = false) String initialFilter) { this.setUpInitialView(webRequest, portletRequest, model, initialFilter); return "jsp...
java
public Map<String, Set<?>> getRegistry(final IPerson user, final PortletRequest req) { Map<String, Set<?>> registry = new TreeMap<String, Set<?>>(); // Empty, or the set of categories that are permitted to // be displayed in the Portlet Marketplace (portlet) final Set<PortletCategory> ...
java
public static void deleteNode(Element compViewNode, IPerson person) throws PortalException { String ID = compViewNode.getAttribute(Constants.ATT_ID); if (ID.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) // ilf node DeleteManager.addDeleteDirective(compViewNode, ID, person); else { ...
java
private Set<String> detectInvalidFields( final String name, final String fname, final Map<String, String> attributes) { final Set<String> rslt = new HashSet<>(); // Name & Fname try { tenantService.validateName(name); // Fname is generated from name; the onl...
java
protected Map<D, SortedSet<T>> getDefaultGroupedColumnDiscriminatorMap(F form) { List<Long> groups = form.getGroups(); // Collections used to track the queried groups and the results final Map<D, SortedSet<T>> groupedAggregations = new TreeMap<D, SortedSet<T>>((Comparator<? super...
java
@Override protected void doHeaders(RenderRequest request, RenderResponse response) { try { doDispatch(request, response); } catch (IOException | PortletException ex) { logger.error( "Exception rendering headers for portlet " + g...
java
@Override protected void doRenderService(RenderRequest request, RenderResponse response) throws Exception { super.doRenderService(request, response); }
java
@Override public int purgeCacheEntries(CacheEntryTag tag) { final String tagType = tag.getTagType(); final Set<Ehcache> caches = taggedCaches.getIfPresent(tagType); // Tag exists in cache(s) if (caches == null || caches.isEmpty()) { return 0; } int purge...
java
protected Set<CacheEntryTag> getTags(Element element) { final Object key = element.getObjectKey(); if (key instanceof TaggedCacheEntry) { return ((TaggedCacheEntry) key).getTags(); } final Object value = element.getObjectValue(); if (value instanceof TaggedCacheEntry...
java
protected void putElement(Ehcache cache, Element element) { final Set<CacheEntryTag> tags = this.getTags(element); // Check if the key is tagged if (tags != null && !tags.isEmpty()) { final String cacheName = cache.getName(); final Object key = element.getObjectKey(); ...
java
protected void removeElement(Ehcache cache, Element element) { final Set<CacheEntryTag> tags = this.getTags(element); // Check if the key is tagged if (tags != null && !tags.isEmpty()) { final String cacheName = cache.getName(); final LoadingCache<CacheEntryTag, Set<Obje...
java
public Evaluator getAttributeEvaluator(String name, String mode, String value) throws Exception { return new AttributeEvaluator(name, mode, value); }
java
@Override public synchronized void authenticate() throws PortalSecurityException { if (this.remoteUser != null) { // Set the UID for the principal this.myPrincipal.setUID(this.remoteUser); // Check that the principal UID matches the remote user final String n...
java
@Override public synchronized boolean updateNode(IUserLayoutNodeDescription node) throws PortalException { if (canUpdateNode(node)) { String nodeId = node.getId(); IUserLayoutNodeDescription oldNode = getNode(nodeId); if (oldNode instanceof IUserLayoutChannelDescription)...
java
private void updateFolderNode( String nodeId, IUserLayoutFolderDescription newFolderDesc, IUserLayoutFolderDescription oldFolderDesc) throws PortalException { Element ilfNode = (Element) getUserLayoutDOM().getElementById(nodeId); List<ILayoutProcessingActi...
java
private void updateNodeAttribute( Element ilfNode, String nodeId, String attName, String newVal, String oldVal, List<ILayoutProcessingAction> pendingActions) throws PortalException { if (newVal == null && oldVal != null ...
java
private Map getPublishedChannelParametersMap(String channelPublishId) throws PortalException { try { IPortletDefinitionRegistry registry = PortletDefinitionRegistryLocator.getPortletDefinitionRegistry(); IPortletDefinition def = registry.getPortletDefinition(channelPu...
java
protected boolean canDeleteNode(IUserLayoutNodeDescription node) throws PortalException { if (node == null) return false; // todo if isFragmentOwner should probably verify node is part of the // same layout fragment as the fragment owner to insure a misbehaving front-end doesn't // do a...
java
@Override public boolean canUpdateNode(IUserLayoutNodeDescription node) { if (node == null) return false; return isFragmentOwner || node.isEditAllowed() || node instanceof IUserLayoutChannelDescription; }
java
@Override public String getSubscribeId(String fname) { final Document userLayout = this.getUserLayoutDOM(); return new PortletSubscribeIdResolver(fname).traverseDocument(userLayout); }
java
public boolean resetLayout(String loginId) { boolean resetSuccess = false; boolean resetCurrentUserLayout = (null == loginId); if (resetCurrentUserLayout || (!resetCurrentUserLayout && AdminEvaluator.isAdmin(owner))) { if (LOG.isDebugEnabled()) { LOG.debug("Reset lay...
java
private boolean resetLayout(IPerson person) { final String userName = person.getUserName(); if (PersonFactory.getGuestUsernames().contains(userName)) { throw new IllegalArgumentException("CANNOT RESET LAYOUT FOR A GUEST USER: " + person); } LOG.warn("Resetting user layout for...
java
protected String getDefaultTabIndex(HttpServletRequest httpServletRequest) { final String stylesheetParameter = this.stylesheetUserPreferencesService.getStylesheetParameter( httpServletRequest, PreferencesScope.STRUCTURE, this.defaultTabParameter); if (stylesheetP...
java
@Override public void delete(IEntityLock lock) throws LockingException { Map m = getLockCache(lock.getEntityType()); synchronized (m) { m.remove(getCacheKey(lock)); } }
java
public IEntityLock find(IEntityLock lock) throws LockingException { IEntityLock foundLock = null; Map m = getLockCache(lock.getEntityType()); foundLock = getLockFromCache(getCacheKey(lock), m); if (foundLock != null) { if (lock.getLockType() != foundLock.getLockType() ...
java
@Override public void update(IEntityLock lock, java.util.Date newExpiration, Integer newLockType) throws LockingException { if (find(lock) == null) { throw new LockingException("Problem updating " + lock + " : not found in store."); } primAdd(lock, newExpiration); ...
java
private void primAdd(IEntityLock lock, Date expiration) throws LockingException { long now = System.currentTimeMillis(); long willExpire = expiration.getTime(); long cacheIntervalSecs = (willExpire - now) / 1000; if (cacheIntervalSecs > 0) { SmartCache sc = (SmartCache) getL...
java
public IEntityLock newReadLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.READ_LOCK, owner); }
java
public IEntityLock newWriteLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.WRITE_LOCK, owner); }
java
@Override public void storeJson(PortletPreferences prefs, String key, Object data) throws IOException, ReadOnlyException, ValidatorException { final String configData = mapper.writeValueAsString(data); prefs.setValue(key, configData); prefs.store(); }
java
@Override public <E> E getJson(PortletPreferences prefs, String key, Class<E> type) throws IOException { final String prefValue = StringUtils.trimToNull(prefs.getValue(key, null)); if (prefValue == null) { return null; } return mapper.readValue(prefValue, type); }
java
public List<Preference> getEditableUserAttributes(IPerson currentUser) { EntityIdentifier ei = currentUser.getEntityIdentifier(); IAuthorizationPrincipal ap = AuthorizationServiceFacade.instance().newPrincipal(ei.getKey(), ei.getType()); List<Preference> allowedAttributes = new...
java
private String fixPortletPath(HttpServletRequest request, IPortalUrlBuilder urlBuilder) { String path = urlBuilder.getUrlString(); String context = request.getContextPath(); if (StringUtils.isBlank(context)) { context = "/"; } if (!path.startsWith(context + "/f/")) {...
java
private void saveLayout(UserView view, IPerson owner) throws Exception { IUserProfile profile = new UserProfile(); profile.setProfileId(view.getProfileId()); userLayoutStore.setUserLayout(owner, profile, view.getLayout(), true, false); }
java
private void fragmentizeLayout(UserView view, FragmentDefinition fragment) { // if fragment not bound to user or layout empty due to error, return if (view.getUserId() == -1 || view.getLayout() == null) { return; } // Choose what types of content to apply from the fragment ...
java
private void setIdsAndAttribs( Element parent, String labelBase, String index, String precedence) { NodeList children = parent.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { if (children.item(i).getNodeType() == Node.ELEMENT_NODE) { Element chi...
java
public boolean isPasswordRequested(PortletRequest request, PortletWindow plutoPortletWindow) throws PortletContainerException { // get the list of requested user attributes final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request); ...
java
private String getPassword(ISecurityContext baseContext) { String password = null; IOpaqueCredentials oc = baseContext.getOpaqueCredentials(); if (oc instanceof NotSoOpaqueCredentials) { NotSoOpaqueCredentials nsoc = (NotSoOpaqueCredentials) oc; password = nsoc.getCreden...
java
@Override public void perform() throws PortalException { // push the change into the PLF if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) { // we are dealing with an incorporated node, adding will replace // an existing one for the same target node id and name ...
java
static void changeParameterChild(Element node, String name, String value) { if (node != null) { boolean foundIt = false; for (Element parm = (Element) node.getFirstChild(); parm != null; parm = (Element) parm.getNextSibling()) { At...
java
@Bean(name = "resourcesElementsProvider") public ResourcesElementsProvider getResourcesElementsProvider() { ResourcesElementsProviderImpl rslt = new ResourcesElementsProviderImpl(); rslt.setResourcesDao(getResourcesDao()); return rslt; }
java
protected void checkAttributesMap( MessageContext context, String basePath, Set<String> swappableAttributes, Map<String, Attribute> attributesToCopy) { for (final String attribute : attributesToCopy.keySet()) { if (!swappableAttributes.contains(attribu...
java
@Deprecated @RequestMapping(value = "/layoutDoc", method = RequestMethod.GET) public ModelAndView getRESTController( HttpServletRequest request, @RequestParam(value = "tab", required = false) String tab) { final IPerson person = personManager.getPerson(request); List<LayoutPortlet> p...
java
public Set<IPersonAttributesGroupDefinition> getPagsDefinitions(IPerson person) { Set<IPersonAttributesGroupDefinition> rslt = new HashSet<>(); for (IPersonAttributesGroupDefinition def : pagsGroupDefDao.getPersonAttributesGroupDefinitions()) { if (hasPermission( ...
java
@Override public synchronized void authenticate() throws PortalSecurityException { this.isauth = false; if (this.myPrincipal.UID != null && this.myOpaqueCredentials.credentialstring != null) { try { ILocalAccountDao accountStore = LocalAccountDaoLocator.getLocalAccountD...
java
@Resource(name = "portletPropertyToAttributeMappings") public void setPropertyMappings(Map<String, String> propertyMappings) { this.propertyToAttributeMappings = ImmutableBiMap.copyOf(propertyMappings); this.attributeToPropertyMappings = this.propertyToAttributeMappings.inverse(); }
java
@Resource(name = "nonNamespacedPortletProperties") public void setNonNamespacedProperties(Set<String> nonNamespacedProperties) { this.nonNamespacedProperties = ImmutableSet.copyOf(nonNamespacedProperties); }
java