id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
57,800
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/CompositeEntityIdentifier.java
CompositeEntityIdentifier.getServiceName
public synchronized Name getServiceName() { if (size() < 2) { return null; } if (cachedServiceName == null) { cachedServiceName = getCompositeKey().getPrefix(size() - 1); } return cachedServiceName; }
java
public synchronized Name getServiceName() { if (size() < 2) { return null; } if (cachedServiceName == null) { cachedServiceName = getCompositeKey().getPrefix(size() - 1); } return cachedServiceName; }
[ "public", "synchronized", "Name", "getServiceName", "(", ")", "{", "if", "(", "size", "(", ")", "<", "2", ")", "{", "return", "null", ";", "}", "if", "(", "cachedServiceName", "==", "null", ")", "{", "cachedServiceName", "=", "getCompositeKey", "(", ")",...
If the composite key is either empty or has a single node, there is no service name. @return javax.naming.Name
[ "If", "the", "composite", "key", "is", "either", "empty", "or", "has", "a", "single", "node", "there", "is", "no", "service", "name", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/CompositeEntityIdentifier.java#L114-L122
57,801
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/rendering/DynamicRenderingPipeline.java
DynamicRenderingPipeline.getMediaType
protected String getMediaType( HttpServletRequest req, HttpServletResponse res, PipelineEventReader<CharacterEventReader, CharacterEvent> pipelineEventReader) { final String mediaType = pipelineEventReader.getOutputProperty(OutputKeys.MEDIA_TYPE); if (mediaType != nul...
java
protected String getMediaType( HttpServletRequest req, HttpServletResponse res, PipelineEventReader<CharacterEventReader, CharacterEvent> pipelineEventReader) { final String mediaType = pipelineEventReader.getOutputProperty(OutputKeys.MEDIA_TYPE); if (mediaType != nul...
[ "protected", "String", "getMediaType", "(", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ",", "PipelineEventReader", "<", "CharacterEventReader", ",", "CharacterEvent", ">", "pipelineEventReader", ")", "{", "final", "String", "mediaType", "=", "pipeli...
Determine the media type to use for the response
[ "Determine", "the", "media", "type", "to", "use", "for", "the", "response" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/rendering/DynamicRenderingPipeline.java#L105-L118
57,802
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/aggr/session/JpaEventSessionDao.java
JpaEventSessionDao.getGroupsForEvent
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
protected Set<AggregatedGroupMapping> getGroupsForEvent(PortalEvent event) { final Set<AggregatedGroupMapping> groupMappings = new LinkedHashSet<AggregatedGroupMapping>(); if (event instanceof LoginEvent) { for (final String groupKey : ((LoginEvent) event).getGroups()) { ...
[ "protected", "Set", "<", "AggregatedGroupMapping", ">", "getGroupsForEvent", "(", "PortalEvent", "event", ")", "{", "final", "Set", "<", "AggregatedGroupMapping", ">", "groupMappings", "=", "new", "LinkedHashSet", "<", "AggregatedGroupMapping", ">", "(", ")", ";", ...
Get groups for the event
[ "Get", "groups", "for", "the", "event" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/session/JpaEventSessionDao.java#L212-L241
57,803
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/GroupService.java
GroupService.finishedSession
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
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); ...
[ "public", "static", "void", "finishedSession", "(", "IPerson", "person", ")", "{", "LOGGER", ".", "trace", "(", "\"Invoking finishedSession for IPerson [{}]\"", ",", "person", ")", ";", "try", "{", "instance", "(", ")", ".", "ifinishedSession", "(", "person", ")...
Receives notice that the UserInstance has been unbound from the HttpSession. In response, we remove the corresponding group member from the cache. @param person org.apereo.portal.security.IPerson
[ "Receives", "notice", "that", "the", "UserInstance", "has", "been", "unbound", "from", "the", "HttpSession", ".", "In", "response", "we", "remove", "the", "corresponding", "group", "member", "from", "the", "cache", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/GroupService.java#L103-L110
57,804
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/GroupService.java
GroupService.ifinishedSession
private void ifinishedSession(IPerson person) throws GroupsException { IGroupMember gm = getGroupMember(person.getEntityIdentifier()); try { final EntityIdentifier entityIdentifier = gm.getEntityIdentifier(); EntityCachingService.getEntityCachingService() .rem...
java
private void ifinishedSession(IPerson person) throws GroupsException { IGroupMember gm = getGroupMember(person.getEntityIdentifier()); try { final EntityIdentifier entityIdentifier = gm.getEntityIdentifier(); EntityCachingService.getEntityCachingService() .rem...
[ "private", "void", "ifinishedSession", "(", "IPerson", "person", ")", "throws", "GroupsException", "{", "IGroupMember", "gm", "=", "getGroupMember", "(", "person", ".", "getEntityIdentifier", "(", ")", ")", ";", "try", "{", "final", "EntityIdentifier", "entityIden...
Receives notice that the UserInstance has been unbound from the HttpSession. In response, we remove the corresponding group member from the cache. We use the roundabout route of creating a group member and then getting its EntityIdentifier because we need the EntityIdentifier for the group member, which is cached, not ...
[ "Receives", "notice", "that", "the", "UserInstance", "has", "been", "unbound", "from", "the", "HttpSession", ".", "In", "response", "we", "remove", "the", "corresponding", "group", "member", "from", "the", "cache", ".", "We", "use", "the", "roundabout", "route...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/GroupService.java#L252-L262
57,805
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/ConfigurablePreferencesBasedTokenGenerator.java
ConfigurablePreferencesBasedTokenGenerator.generateToken
@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
@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. ...
[ "@", "Override", "public", "String", "generateToken", "(", "final", "DynamicSkinInstanceData", "data", ")", "{", "final", "PortletPreferences", "preferences", "=", "data", ".", "getPortletRequest", "(", ")", ".", "getPreferences", "(", ")", ";", "int", "hash", "...
Returns a String hashcode of the values for the portlet preferences that are configurable by the Dynamic Skin portlet. The hashcode is generated in a repeatable fashion by calculating it based on sorted portlet preference names. Though hashcode does not guarantee uniqueness, from a practical perspective we'll have so f...
[ "Returns", "a", "String", "hashcode", "of", "the", "values", "for", "the", "portlet", "preferences", "that", "are", "configurable", "by", "the", "Dynamic", "Skin", "portlet", ".", "The", "hashcode", "is", "generated", "in", "a", "repeatable", "fashion", "by", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/ConfigurablePreferencesBasedTokenGenerator.java#L40-L56
57,806
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/marketplace/PortletMarketplaceController.java
PortletMarketplaceController.initializeView
@RenderMapping public String initializeView( WebRequest webRequest, PortletRequest portletRequest, Model model, @RequestParam(required = false) String initialFilter) { this.setUpInitialView(webRequest, portletRequest, model, initialFilter); return "jsp...
java
@RenderMapping public String initializeView( WebRequest webRequest, PortletRequest portletRequest, Model model, @RequestParam(required = false) String initialFilter) { this.setUpInitialView(webRequest, portletRequest, model, initialFilter); return "jsp...
[ "@", "RenderMapping", "public", "String", "initializeView", "(", "WebRequest", "webRequest", ",", "PortletRequest", "portletRequest", ",", "Model", "model", ",", "@", "RequestParam", "(", "required", "=", "false", ")", "String", "initialFilter", ")", "{", "this", ...
Returns a view of the marketplace landing page @param webRequest @param portletRequest @param model @param initialFilter - optional request paramter. Use to init filter on initial view @return a string representing the initial view.
[ "Returns", "a", "view", "of", "the", "marketplace", "landing", "page" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/marketplace/PortletMarketplaceController.java#L187-L195
57,807
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/marketplace/PortletMarketplaceController.java
PortletMarketplaceController.getRegistry
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 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> ...
[ "public", "Map", "<", "String", ",", "Set", "<", "?", ">", ">", "getRegistry", "(", "final", "IPerson", "user", ",", "final", "PortletRequest", "req", ")", "{", "Map", "<", "String", ",", "Set", "<", "?", ">", ">", "registry", "=", "new", "TreeMap", ...
Returns a set of MarketplacePortletDefinitions. Supply a user to limit the set to only portlets the user can use. If user is null, this will return all portlets. Setting user to null will superscede all other parameters. @param user - non-null user to limit results by. This will filter results to only portlets that us...
[ "Returns", "a", "set", "of", "MarketplacePortletDefinitions", ".", "Supply", "a", "user", "to", "limit", "the", "set", "to", "only", "portlets", "the", "user", "can", "use", ".", "If", "user", "is", "null", "this", "will", "return", "all", "portlets", ".",...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/marketplace/PortletMarketplaceController.java#L418-L441
57,808
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/TabColumnPrefsHandler.java
TabColumnPrefsHandler.deleteNode
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
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 { ...
[ "public", "static", "void", "deleteNode", "(", "Element", "compViewNode", ",", "IPerson", "person", ")", "throws", "PortalException", "{", "String", "ID", "=", "compViewNode", ".", "getAttribute", "(", "Constants", ".", "ATT_ID", ")", ";", "if", "(", "ID", "...
Handles user requests to delete UI elements. For ILF owned nodes it delegates to the DeleteManager to add a delete directive. For PLF owned nodes it deletes the node outright.
[ "Handles", "user", "requests", "to", "delete", "UI", "elements", ".", "For", "ILF", "owned", "nodes", "it", "delegates", "to", "the", "DeleteManager", "to", "add", "a", "delete", "directive", ".", "For", "PLF", "owned", "nodes", "it", "deletes", "the", "no...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/TabColumnPrefsHandler.java#L101-L116
57,809
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/tenantmanager/TenantManagerController.java
TenantManagerController.detectInvalidFields
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
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...
[ "private", "Set", "<", "String", ">", "detectInvalidFields", "(", "final", "String", "name", ",", "final", "String", "fname", ",", "final", "Map", "<", "String", ",", "String", ">", "attributes", ")", "{", "final", "Set", "<", "String", ">", "rslt", "=",...
Returns a collection of invalid fields, if any.
[ "Returns", "a", "collection", "of", "invalid", "fields", "if", "any", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/tenantmanager/TenantManagerController.java#L335-L362
57,810
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/statistics/BaseSimpleGroupedStatisticsReportController.java
BaseSimpleGroupedStatisticsReportController.getDefaultGroupedColumnDiscriminatorMap
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
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...
[ "protected", "Map", "<", "D", ",", "SortedSet", "<", "T", ">", ">", "getDefaultGroupedColumnDiscriminatorMap", "(", "F", "form", ")", "{", "List", "<", "Long", ">", "groups", "=", "form", ".", "getGroups", "(", ")", ";", "// Collections used to track the queri...
Default implementation to create a map of the report column discriminators based on the submitted form to collate the aggregation data into each column of a report when the only grouping parameter is AggregatedGroupMapping. <p>The map entries are a time-ordered sorted set of aggregation data points. @param form Form ...
[ "Default", "implementation", "to", "create", "a", "map", "of", "the", "report", "column", "discriminators", "based", "on", "the", "submitted", "form", "to", "collate", "the", "aggregation", "data", "into", "each", "column", "of", "a", "report", "when", "the", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/statistics/BaseSimpleGroupedStatisticsReportController.java#L50-L72
57,811
Jasig/uPortal
uPortal-spring/src/main/java/org/springframework/web/portlet/HeaderHandlingDispatcherPortlet.java
HeaderHandlingDispatcherPortlet.doHeaders
@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 doHeaders(RenderRequest request, RenderResponse response) { try { doDispatch(request, response); } catch (IOException | PortletException ex) { logger.error( "Exception rendering headers for portlet " + g...
[ "@", "Override", "protected", "void", "doHeaders", "(", "RenderRequest", "request", ",", "RenderResponse", "response", ")", "{", "try", "{", "doDispatch", "(", "request", ",", "response", ")", ";", "}", "catch", "(", "IOException", "|", "PortletException", "ex...
Used by the render method to set the response properties and headers. <p>The portlet should override this method and set its response header using this method in order to ensure that they are set before anything is written to the output stream. <p> @param request the render request @param response the render respons...
[ "Used", "by", "the", "render", "method", "to", "set", "the", "response", "properties", "and", "headers", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/springframework/web/portlet/HeaderHandlingDispatcherPortlet.java#L40-L51
57,812
Jasig/uPortal
uPortal-spring/src/main/java/org/springframework/web/portlet/HeaderHandlingDispatcherPortlet.java
HeaderHandlingDispatcherPortlet.doRenderService
@Override protected void doRenderService(RenderRequest request, RenderResponse response) throws Exception { super.doRenderService(request, response); }
java
@Override protected void doRenderService(RenderRequest request, RenderResponse response) throws Exception { super.doRenderService(request, response); }
[ "@", "Override", "protected", "void", "doRenderService", "(", "RenderRequest", "request", ",", "RenderResponse", "response", ")", "throws", "Exception", "{", "super", ".", "doRenderService", "(", "request", ",", "response", ")", ";", "}" ]
Processes the actual dispatching to the handler for render requests. <p>The handler will be obtained by applying the portlet's HandlerMappings in order. The HandlerAdapter will be obtained by querying the portlet's installed HandlerAdapters to find the first that supports the handler class. <p>For two-phase render pr...
[ "Processes", "the", "actual", "dispatching", "to", "the", "handler", "for", "render", "requests", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/springframework/web/portlet/HeaderHandlingDispatcherPortlet.java#L86-L90
57,813
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java
TagTrackingCacheEventListener.purgeCacheEntries
@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
@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...
[ "@", "Override", "public", "int", "purgeCacheEntries", "(", "CacheEntryTag", "tag", ")", "{", "final", "String", "tagType", "=", "tag", ".", "getTagType", "(", ")", ";", "final", "Set", "<", "Ehcache", ">", "caches", "=", "taggedCaches", ".", "getIfPresent",...
Remove all cache entries with keys that have the specified tag
[ "Remove", "all", "cache", "entries", "with", "keys", "that", "have", "the", "specified", "tag" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java#L82-L116
57,814
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java
TagTrackingCacheEventListener.getTags
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 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...
[ "protected", "Set", "<", "CacheEntryTag", ">", "getTags", "(", "Element", "element", ")", "{", "final", "Object", "key", "=", "element", ".", "getObjectKey", "(", ")", ";", "if", "(", "key", "instanceof", "TaggedCacheEntry", ")", "{", "return", "(", "(", ...
Get the tags associated with the element
[ "Get", "the", "tags", "associated", "with", "the", "element" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java#L119-L131
57,815
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java
TagTrackingCacheEventListener.putElement
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 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(); ...
[ "protected", "void", "putElement", "(", "Ehcache", "cache", ",", "Element", "element", ")", "{", "final", "Set", "<", "CacheEntryTag", ">", "tags", "=", "this", ".", "getTags", "(", "element", ")", ";", "// Check if the key is tagged", "if", "(", "tags", "!=...
If the element has a TaggedCacheKey record the tag associations
[ "If", "the", "element", "has", "a", "TaggedCacheKey", "record", "the", "tag", "associations" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java#L134-L158
57,816
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java
TagTrackingCacheEventListener.removeElement
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
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...
[ "protected", "void", "removeElement", "(", "Ehcache", "cache", ",", "Element", "element", ")", "{", "final", "Set", "<", "CacheEntryTag", ">", "tags", "=", "this", ".", "getTags", "(", "element", ")", ";", "// Check if the key is tagged", "if", "(", "tags", ...
If the element has a TaggedCacheKey remove the tag associations
[ "If", "the", "element", "has", "a", "TaggedCacheKey", "remove", "the", "tag", "associations" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/TagTrackingCacheEventListener.java#L161-L187
57,817
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/providers/PersonEvaluatorFactory.java
PersonEvaluatorFactory.getAttributeEvaluator
public Evaluator getAttributeEvaluator(String name, String mode, String value) throws Exception { return new AttributeEvaluator(name, mode, value); }
java
public Evaluator getAttributeEvaluator(String name, String mode, String value) throws Exception { return new AttributeEvaluator(name, mode, value); }
[ "public", "Evaluator", "getAttributeEvaluator", "(", "String", "name", ",", "String", "mode", ",", "String", "value", ")", "throws", "Exception", "{", "return", "new", "AttributeEvaluator", "(", "name", ",", "mode", ",", "value", ")", ";", "}" ]
returns an Evaluator unique to the type of attribute being evaluated. subclasses can override this method to return the Evaluator that's appropriate to their implementation. @param name the attribute's name. @param mode the attribute's mode. (i.e. 'equals') @param value the attribute's value. @return an Evaluator for ...
[ "returns", "an", "Evaluator", "unique", "to", "the", "type", "of", "attribute", "being", "evaluated", ".", "subclasses", "can", "override", "this", "method", "to", "return", "the", "Evaluator", "that", "s", "appropriate", "to", "their", "implementation", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/providers/PersonEvaluatorFactory.java#L155-L158
57,818
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/RemoteUserSecurityContext.java
RemoteUserSecurityContext.authenticate
@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 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...
[ "@", "Override", "public", "synchronized", "void", "authenticate", "(", ")", "throws", "PortalSecurityException", "{", "if", "(", "this", ".", "remoteUser", "!=", "null", ")", "{", "// Set the UID for the principal", "this", ".", "myPrincipal", ".", "setUID", "(",...
Verify that remoteUser is not null and set the principal's UID to this value. @exception PortalSecurityException
[ "Verify", "that", "remoteUser", "is", "not", "null", "and", "set", "the", "principal", "s", "UID", "to", "this", "value", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/RemoteUserSecurityContext.java#L68-L100
57,819
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.updateNode
@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
@Override public synchronized boolean updateNode(IUserLayoutNodeDescription node) throws PortalException { if (canUpdateNode(node)) { String nodeId = node.getId(); IUserLayoutNodeDescription oldNode = getNode(nodeId); if (oldNode instanceof IUserLayoutChannelDescription)...
[ "@", "Override", "public", "synchronized", "boolean", "updateNode", "(", "IUserLayoutNodeDescription", "node", ")", "throws", "PortalException", "{", "if", "(", "canUpdateNode", "(", "node", ")", ")", "{", "String", "nodeId", "=", "node", ".", "getId", "(", ")...
Handles pushing changes made to the passed-in node into the user's layout. If the node is an ILF node then the change is recorded via directives in the PLF if such changes are allowed by the owning fragment. If the node is a user owned node then the changes are applied directly to the corresponding node in the PLF.
[ "Handles", "pushing", "changes", "made", "to", "the", "passed", "-", "in", "node", "into", "the", "user", "s", "layout", ".", "If", "the", "node", "is", "an", "ILF", "node", "then", "the", "change", "is", "recorded", "via", "directives", "in", "the", "...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L546-L580
57,820
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.updateFolderNode
private void updateFolderNode( String nodeId, IUserLayoutFolderDescription newFolderDesc, IUserLayoutFolderDescription oldFolderDesc) throws PortalException { Element ilfNode = (Element) getUserLayoutDOM().getElementById(nodeId); List<ILayoutProcessingActi...
java
private void updateFolderNode( String nodeId, IUserLayoutFolderDescription newFolderDesc, IUserLayoutFolderDescription oldFolderDesc) throws PortalException { Element ilfNode = (Element) getUserLayoutDOM().getElementById(nodeId); List<ILayoutProcessingActi...
[ "private", "void", "updateFolderNode", "(", "String", "nodeId", ",", "IUserLayoutFolderDescription", "newFolderDesc", ",", "IUserLayoutFolderDescription", "oldFolderDesc", ")", "throws", "PortalException", "{", "Element", "ilfNode", "=", "(", "Element", ")", "getUserLayou...
Compares the new folder description object with the old folder description object to determine what items were changed and if those changes are allowed. Once all changes are verified as being allowed changes then they are pushed into both the ILF and the PLF as appropriate. No changes are made until we determine that a...
[ "Compares", "the", "new", "folder", "description", "object", "with", "the", "old", "folder", "description", "object", "to", "determine", "what", "items", "were", "changed", "and", "if", "those", "changes", "are", "allowed", ".", "Once", "all", "changes", "are"...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L593-L645
57,821
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.updateNodeAttribute
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 void updateNodeAttribute( Element ilfNode, String nodeId, String attName, String newVal, String oldVal, List<ILayoutProcessingAction> pendingActions) throws PortalException { if (newVal == null && oldVal != null ...
[ "private", "void", "updateNodeAttribute", "(", "Element", "ilfNode", ",", "String", "nodeId", ",", "String", "attName", ",", "String", "newVal", ",", "String", "oldVal", ",", "List", "<", "ILayoutProcessingAction", ">", "pendingActions", ")", "throws", "PortalExce...
Handles checking for updates to a named attribute, verifying such change is allowed, and generates an action object to make that change. @param ilfNode the node in the viewed layout @param nodeId the id of the ilfNode @param attName the attribute to be checked @param newVal the attribute's new value @param oldVal the ...
[ "Handles", "checking", "for", "updates", "to", "a", "named", "attribute", "verifying", "such", "change", "is", "allowed", "and", "generates", "an", "action", "object", "to", "make", "that", "change", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L659-L721
57,822
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.getPublishedChannelParametersMap
private Map getPublishedChannelParametersMap(String channelPublishId) throws PortalException { try { IPortletDefinitionRegistry registry = PortletDefinitionRegistryLocator.getPortletDefinitionRegistry(); IPortletDefinition def = registry.getPortletDefinition(channelPu...
java
private Map getPublishedChannelParametersMap(String channelPublishId) throws PortalException { try { IPortletDefinitionRegistry registry = PortletDefinitionRegistryLocator.getPortletDefinitionRegistry(); IPortletDefinition def = registry.getPortletDefinition(channelPu...
[ "private", "Map", "getPublishedChannelParametersMap", "(", "String", "channelPublishId", ")", "throws", "PortalException", "{", "try", "{", "IPortletDefinitionRegistry", "registry", "=", "PortletDefinitionRegistryLocator", ".", "getPortletDefinitionRegistry", "(", ")", ";", ...
Return a map parameter names to channel parameter objects representing the parameters specified at publish time for the channel with the passed-in publish id. @param channelPublishId @return @throws PortalException
[ "Return", "a", "map", "parameter", "names", "to", "channel", "parameter", "objects", "representing", "the", "parameters", "specified", "at", "publish", "time", "for", "the", "channel", "with", "the", "passed", "-", "in", "publish", "id", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L894-L903
57,823
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.canDeleteNode
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
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...
[ "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 fr...
Returns true if the node exists in the underlying DOM model and it does not contain a 'deleteAllowed' attribute with a value of 'false'.
[ "Returns", "true", "if", "the", "node", "exists", "in", "the", "underlying", "DOM", "model", "and", "it", "does", "not", "contain", "a", "deleteAllowed", "attribute", "with", "a", "value", "of", "false", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L1065-L1073
57,824
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.canUpdateNode
@Override public boolean canUpdateNode(IUserLayoutNodeDescription node) { if (node == null) return false; return isFragmentOwner || node.isEditAllowed() || node instanceof IUserLayoutChannelDescription; }
java
@Override public boolean canUpdateNode(IUserLayoutNodeDescription node) { if (node == null) return false; return isFragmentOwner || node.isEditAllowed() || node instanceof IUserLayoutChannelDescription; }
[ "@", "Override", "public", "boolean", "canUpdateNode", "(", "IUserLayoutNodeDescription", "node", ")", "{", "if", "(", "node", "==", "null", ")", "return", "false", ";", "return", "isFragmentOwner", "||", "node", ".", "isEditAllowed", "(", ")", "||", "node", ...
Returns true if we are dealing with a fragment layout or if editing of attributes is allowed, or the node is a channel since ad-hoc parameters can always be added.
[ "Returns", "true", "if", "we", "are", "dealing", "with", "a", "fragment", "layout", "or", "if", "editing", "of", "attributes", "is", "allowed", "or", "the", "node", "is", "a", "channel", "since", "ad", "-", "hoc", "parameters", "can", "always", "be", "ad...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L1079-L1086
57,825
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.getSubscribeId
@Override public String getSubscribeId(String fname) { final Document userLayout = this.getUserLayoutDOM(); return new PortletSubscribeIdResolver(fname).traverseDocument(userLayout); }
java
@Override public String getSubscribeId(String fname) { final Document userLayout = this.getUserLayoutDOM(); return new PortletSubscribeIdResolver(fname).traverseDocument(userLayout); }
[ "@", "Override", "public", "String", "getSubscribeId", "(", "String", "fname", ")", "{", "final", "Document", "userLayout", "=", "this", ".", "getUserLayoutDOM", "(", ")", ";", "return", "new", "PortletSubscribeIdResolver", "(", "fname", ")", ".", "traverseDocum...
Returns the subscribe ID of a channel having the passed in functional name or null if it can't find such a channel in the layout.
[ "Returns", "the", "subscribe", "ID", "of", "a", "channel", "having", "the", "passed", "in", "functional", "name", "or", "null", "if", "it", "can", "t", "find", "such", "a", "channel", "in", "the", "layout", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L1241-L1245
57,826
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.resetLayout
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
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...
[ "public", "boolean", "resetLayout", "(", "String", "loginId", ")", "{", "boolean", "resetSuccess", "=", "false", ";", "boolean", "resetCurrentUserLayout", "=", "(", "null", "==", "loginId", ")", ";", "if", "(", "resetCurrentUserLayout", "||", "(", "!", "resetC...
Resets the layout of the user with the specified user id if the current user is an administrator or a member of any administrative sub-group. Has no effect if these requirements are not met. @return true if layout was reset, false otherwise. @param loginId
[ "Resets", "the", "layout", "of", "the", "user", "with", "the", "specified", "user", "id", "if", "the", "current", "user", "is", "an", "administrator", "or", "a", "member", "of", "any", "administrative", "sub", "-", "group", ".", "Has", "no", "effect", "i...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L1352-L1390
57,827
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java
DistributedLayoutManager.resetLayout
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
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...
[ "private", "boolean", "resetLayout", "(", "IPerson", "person", ")", "{", "final", "String", "userName", "=", "person", ".", "getUserName", "(", ")", ";", "if", "(", "PersonFactory", ".", "getGuestUsernames", "(", ")", ".", "contains", "(", "userName", ")", ...
Resets the layout of the specified user.
[ "Resets", "the", "layout", "of", "the", "specified", "user", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DistributedLayoutManager.java#L1393-L1423
57,828
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/url/SingleTabUrlNodeSyntaxHelper.java
SingleTabUrlNodeSyntaxHelper.getDefaultTabIndex
protected String getDefaultTabIndex(HttpServletRequest httpServletRequest) { final String stylesheetParameter = this.stylesheetUserPreferencesService.getStylesheetParameter( httpServletRequest, PreferencesScope.STRUCTURE, this.defaultTabParameter); if (stylesheetP...
java
protected String getDefaultTabIndex(HttpServletRequest httpServletRequest) { final String stylesheetParameter = this.stylesheetUserPreferencesService.getStylesheetParameter( httpServletRequest, PreferencesScope.STRUCTURE, this.defaultTabParameter); if (stylesheetP...
[ "protected", "String", "getDefaultTabIndex", "(", "HttpServletRequest", "httpServletRequest", ")", "{", "final", "String", "stylesheetParameter", "=", "this", ".", "stylesheetUserPreferencesService", ".", "getStylesheetParameter", "(", "httpServletRequest", ",", "PreferencesS...
Get the index of the default tab for the user
[ "Get", "the", "index", "of", "the", "default", "tab", "for", "the", "user" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/url/SingleTabUrlNodeSyntaxHelper.java#L159-L177
57,829
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java
MemoryEntityLockStore.delete
@Override public void delete(IEntityLock lock) throws LockingException { Map m = getLockCache(lock.getEntityType()); synchronized (m) { m.remove(getCacheKey(lock)); } }
java
@Override public void delete(IEntityLock lock) throws LockingException { Map m = getLockCache(lock.getEntityType()); synchronized (m) { m.remove(getCacheKey(lock)); } }
[ "@", "Override", "public", "void", "delete", "(", "IEntityLock", "lock", ")", "throws", "LockingException", "{", "Map", "m", "=", "getLockCache", "(", "lock", ".", "getEntityType", "(", ")", ")", ";", "synchronized", "(", "m", ")", "{", "m", ".", "remove...
Deletes this IEntityLock from the store. @param lock
[ "Deletes", "this", "IEntityLock", "from", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java#L56-L62
57,830
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java
MemoryEntityLockStore.find
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
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() ...
[ "public", "IEntityLock", "find", "(", "IEntityLock", "lock", ")", "throws", "LockingException", "{", "IEntityLock", "foundLock", "=", "null", ";", "Map", "m", "=", "getLockCache", "(", "lock", ".", "getEntityType", "(", ")", ")", ";", "foundLock", "=", "getL...
Returns this lock if it exists in the store. @param lock @return IEntityLock
[ "Returns", "this", "lock", "if", "it", "exists", "in", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java#L151-L164
57,831
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java
MemoryEntityLockStore.update
@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
@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); ...
[ "@", "Override", "public", "void", "update", "(", "IEntityLock", "lock", ",", "java", ".", "util", ".", "Date", "newExpiration", ",", "Integer", "newLockType", ")", "throws", "LockingException", "{", "if", "(", "find", "(", "lock", ")", "==", "null", ")", ...
Make sure the store has a reference to the lock, and then add the lock to refresh the SmartCache wrapper. @param lock org.apereo.portal.concurrency.locking.IEntityLock @param newExpiration java.util.Date @param newLockType Integer
[ "Make", "sure", "the", "store", "has", "a", "reference", "to", "the", "lock", "and", "then", "add", "the", "lock", "to", "refresh", "the", "SmartCache", "wrapper", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java#L257-L264
57,832
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java
MemoryEntityLockStore.primAdd
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
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...
[ "private", "void", "primAdd", "(", "IEntityLock", "lock", ",", "Date", "expiration", ")", "throws", "LockingException", "{", "long", "now", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "long", "willExpire", "=", "expiration", ".", "getTime", "(", ...
Adds this IEntityLock to the store. @param lock @param expiration
[ "Adds", "this", "IEntityLock", "to", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/MemoryEntityLockStore.java#L272-L285
57,833
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityLockService.java
EntityLockService.newReadLock
public IEntityLock newReadLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.READ_LOCK, owner); }
java
public IEntityLock newReadLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.READ_LOCK, owner); }
[ "public", "IEntityLock", "newReadLock", "(", "Class", "entityType", ",", "String", "entityKey", ",", "String", "owner", ")", "throws", "LockingException", "{", "return", "lockService", ".", "newLock", "(", "entityType", ",", "entityKey", ",", "IEntityLockService", ...
Returns a read lock for the entity type, entity key and owner. @return org.apereo.portal.concurrency.locking.IEntityLock @param entityType Class @param entityKey String @param owner String @exception LockingException
[ "Returns", "a", "read", "lock", "for", "the", "entity", "type", "entity", "key", "and", "owner", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityLockService.java#L118-L121
57,834
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityLockService.java
EntityLockService.newWriteLock
public IEntityLock newWriteLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.WRITE_LOCK, owner); }
java
public IEntityLock newWriteLock(Class entityType, String entityKey, String owner) throws LockingException { return lockService.newLock(entityType, entityKey, IEntityLockService.WRITE_LOCK, owner); }
[ "public", "IEntityLock", "newWriteLock", "(", "Class", "entityType", ",", "String", "entityKey", ",", "String", "owner", ")", "throws", "LockingException", "{", "return", "lockService", ".", "newLock", "(", "entityType", ",", "entityKey", ",", "IEntityLockService", ...
Returns a write lock for the entity type, entity key and owner. @return org.apereo.portal.concurrency.locking.IEntityLock @param entityType Class @param entityKey String @param owner String @exception LockingException
[ "Returns", "a", "write", "lock", "for", "the", "entity", "type", "entity", "key", "and", "owner", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityLockService.java#L177-L180
57,835
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/PortletPreferencesJsonDaoImpl.java
PortletPreferencesJsonDaoImpl.storeJson
@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 void storeJson(PortletPreferences prefs, String key, Object data) throws IOException, ReadOnlyException, ValidatorException { final String configData = mapper.writeValueAsString(data); prefs.setValue(key, configData); prefs.store(); }
[ "@", "Override", "public", "void", "storeJson", "(", "PortletPreferences", "prefs", ",", "String", "key", ",", "Object", "data", ")", "throws", "IOException", ",", "ReadOnlyException", ",", "ValidatorException", "{", "final", "String", "configData", "=", "mapper",...
Stores a Java object as JSON in a portlet preference @param prefs Preferences to persist to @param key Preference key to store in @param data Object to store as JSON
[ "Stores", "a", "Java", "object", "as", "JSON", "in", "a", "portlet", "preference" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/PortletPreferencesJsonDaoImpl.java#L48-L54
57,836
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/PortletPreferencesJsonDaoImpl.java
PortletPreferencesJsonDaoImpl.getJson
@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
@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); }
[ "@", "Override", "public", "<", "E", ">", "E", "getJson", "(", "PortletPreferences", "prefs", ",", "String", "key", ",", "Class", "<", "E", ">", "type", ")", "throws", "IOException", "{", "final", "String", "prefValue", "=", "StringUtils", ".", "trimToNull...
Read the specified portlet preference and parse it as a JSON string into the specified type. If the preference is null returns null. @param prefs Preferences to read from @param key Preference key to read from @param type The class type parse the JSON into
[ "Read", "the", "specified", "portlet", "preference", "and", "parse", "it", "as", "a", "JSON", "string", "into", "the", "specified", "type", ".", "If", "the", "preference", "is", "null", "returns", "null", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/PortletPreferencesJsonDaoImpl.java#L64-L71
57,837
Jasig/uPortal
uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/account/UserAccountHelper.java
UserAccountHelper.getEditableUserAttributes
public List<Preference> getEditableUserAttributes(IPerson currentUser) { EntityIdentifier ei = currentUser.getEntityIdentifier(); IAuthorizationPrincipal ap = AuthorizationServiceFacade.instance().newPrincipal(ei.getKey(), ei.getType()); List<Preference> allowedAttributes = new...
java
public List<Preference> getEditableUserAttributes(IPerson currentUser) { EntityIdentifier ei = currentUser.getEntityIdentifier(); IAuthorizationPrincipal ap = AuthorizationServiceFacade.instance().newPrincipal(ei.getKey(), ei.getType()); List<Preference> allowedAttributes = new...
[ "public", "List", "<", "Preference", ">", "getEditableUserAttributes", "(", "IPerson", "currentUser", ")", "{", "EntityIdentifier", "ei", "=", "currentUser", ".", "getEntityIdentifier", "(", ")", ";", "IAuthorizationPrincipal", "ap", "=", "AuthorizationServiceFacade", ...
Returns the collection of attributes that the specified currentUser can edit. @param currentUser @return
[ "Returns", "the", "collection", "of", "attributes", "that", "the", "specified", "currentUser", "can", "edit", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/account/UserAccountHelper.java#L223-L236
57,838
Jasig/uPortal
uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/account/UserAccountHelper.java
UserAccountHelper.fixPortletPath
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 String fixPortletPath(HttpServletRequest request, IPortalUrlBuilder urlBuilder) { String path = urlBuilder.getUrlString(); String context = request.getContextPath(); if (StringUtils.isBlank(context)) { context = "/"; } if (!path.startsWith(context + "/f/")) {...
[ "private", "String", "fixPortletPath", "(", "HttpServletRequest", "request", ",", "IPortalUrlBuilder", "urlBuilder", ")", "{", "String", "path", "=", "urlBuilder", ".", "getUrlString", "(", ")", ";", "String", "context", "=", "request", ".", "getContextPath", "(",...
This entire method is a hack! The login portlet URL only seems to load correctly if you pass in the folder name for the guest layout. For the short term, allow configuration of the folder name and manually re-write the URL to include the folder if it doesn't already. <p>This is terrible and needs to go away as soon as...
[ "This", "entire", "method", "is", "a", "hack!", "The", "login", "portlet", "URL", "only", "seems", "to", "load", "correctly", "if", "you", "pass", "in", "the", "folder", "name", "for", "the", "guest", "layout", ".", "For", "the", "short", "term", "allow"...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/account/UserAccountHelper.java#L515-L527
57,839
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/FragmentActivator.java
FragmentActivator.saveLayout
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 saveLayout(UserView view, IPerson owner) throws Exception { IUserProfile profile = new UserProfile(); profile.setProfileId(view.getProfileId()); userLayoutStore.setUserLayout(owner, profile, view.getLayout(), true, false); }
[ "private", "void", "saveLayout", "(", "UserView", "view", ",", "IPerson", "owner", ")", "throws", "Exception", "{", "IUserProfile", "profile", "=", "new", "UserProfile", "(", ")", ";", "profile", ".", "setProfileId", "(", "view", ".", "getProfileId", "(", ")...
Saves the loaded layout in the database for the user and profile. @param view @param owner @throws Exception
[ "Saves", "the", "loaded", "layout", "in", "the", "database", "for", "the", "user", "and", "profile", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/FragmentActivator.java#L255-L259
57,840
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/FragmentActivator.java
FragmentActivator.fragmentizeLayout
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 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 ...
[ "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", ".",...
Removes unwanted and hidden folders, then changes all node ids to their globally safe incorporated version.
[ "Removes", "unwanted", "and", "hidden", "folders", "then", "changes", "all", "node", "ids", "to", "their", "globally", "safe", "incorporated", "version", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/FragmentActivator.java#L377-L432
57,841
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/FragmentActivator.java
FragmentActivator.setIdsAndAttribs
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
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...
[ "private", "void", "setIdsAndAttribs", "(", "Element", "parent", ",", "String", "labelBase", ",", "String", "index", ",", "String", "precedence", ")", "{", "NodeList", "children", "=", "parent", ".", "getChildNodes", "(", ")", ";", "for", "(", "int", "i", ...
Recursive method that passes through a layout tree and changes all ids from the regular format of sXX or nXX to the globally safe incorporated id of form uXlXsXX or uXlXnXX indicating the user id and layout id from which this node came.
[ "Recursive", "method", "that", "passes", "through", "a", "layout", "tree", "and", "changes", "all", "ids", "from", "the", "regular", "format", "of", "sXX", "or", "nXX", "to", "the", "globally", "safe", "incorporated", "id", "of", "form", "uXlXsXX", "or", "...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/FragmentActivator.java#L439-L457
57,842
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/CachedPasswordUserInfoService.java
CachedPasswordUserInfoService.isPasswordRequested
public boolean isPasswordRequested(PortletRequest request, PortletWindow plutoPortletWindow) throws PortletContainerException { // get the list of requested user attributes final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request); ...
java
public boolean isPasswordRequested(PortletRequest request, PortletWindow plutoPortletWindow) throws PortletContainerException { // get the list of requested user attributes final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request); ...
[ "public", "boolean", "isPasswordRequested", "(", "PortletRequest", "request", ",", "PortletWindow", "plutoPortletWindow", ")", "throws", "PortletContainerException", "{", "// get the list of requested user attributes", "final", "HttpServletRequest", "httpServletRequest", "=", "th...
Determine whether the portlet has expects a password as one of the user attributes. @param request portlet request @param plutoPortletWindow portlet window @return <code>true</code> if a password is expected, <code>false</code> otherwise @throws PortletContainerException if expeced attributes cannot be determined
[ "Determine", "whether", "the", "portlet", "has", "expects", "a", "password", "as", "one", "of", "the", "user", "attributes", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/CachedPasswordUserInfoService.java#L185-L210
57,843
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/CachedPasswordUserInfoService.java
CachedPasswordUserInfoService.getPassword
private String getPassword(ISecurityContext baseContext) { String password = null; IOpaqueCredentials oc = baseContext.getOpaqueCredentials(); if (oc instanceof NotSoOpaqueCredentials) { NotSoOpaqueCredentials nsoc = (NotSoOpaqueCredentials) oc; password = nsoc.getCreden...
java
private String getPassword(ISecurityContext baseContext) { String password = null; IOpaqueCredentials oc = baseContext.getOpaqueCredentials(); if (oc instanceof NotSoOpaqueCredentials) { NotSoOpaqueCredentials nsoc = (NotSoOpaqueCredentials) oc; password = nsoc.getCreden...
[ "private", "String", "getPassword", "(", "ISecurityContext", "baseContext", ")", "{", "String", "password", "=", "null", ";", "IOpaqueCredentials", "oc", "=", "baseContext", ".", "getOpaqueCredentials", "(", ")", ";", "if", "(", "oc", "instanceof", "NotSoOpaqueCre...
Retrieves the users password by iterating over the user's security contexts and returning the first available cached password. @param baseContext The security context to start looking for a password from. @return the users password
[ "Retrieves", "the", "users", "password", "by", "iterating", "over", "the", "user", "s", "security", "contexts", "and", "returning", "the", "first", "available", "cached", "password", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/CachedPasswordUserInfoService.java#L219-L236
57,844
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAChangeParameter.java
LPAChangeParameter.perform
@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
@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 ...
[ "@", "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 ...
Change the parameter for a channel in both the ILF and PLF using the appropriate mechanisms for incorporated nodes versus owned nodes.
[ "Change", "the", "parameter", "for", "a", "channel", "in", "both", "the", "ILF", "and", "PLF", "using", "the", "appropriate", "mechanisms", "for", "incorporated", "nodes", "versus", "owned", "nodes", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAChangeParameter.java#L43-L58
57,845
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAChangeParameter.java
LPAChangeParameter.changeParameterChild
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
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...
[ "static", "void", "changeParameterChild", "(", "Element", "node", ",", "String", "name", ",", "String", "value", ")", "{", "if", "(", "node", "!=", "null", ")", "{", "boolean", "foundIt", "=", "false", ";", "for", "(", "Element", "parm", "=", "(", "Ele...
Look in the passed-in element for a parameter child element whose value is to be changed to the passed-in value. @param node the parent node in which to create the parameter. @param name the name of the parameter to be created. @param value the value of the parameter to be created.
[ "Look", "in", "the", "passed", "-", "in", "element", "for", "a", "parameter", "child", "element", "whose", "value", "is", "to", "be", "changed", "to", "the", "passed", "-", "in", "value", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAChangeParameter.java#L68-L85
57,846
Jasig/uPortal
uPortal-webapp/src/main/java/org/apereo/portal/context/rendering/RenderingPipelineConfiguration.java
RenderingPipelineConfiguration.getResourcesElementsProvider
@Bean(name = "resourcesElementsProvider") public ResourcesElementsProvider getResourcesElementsProvider() { ResourcesElementsProviderImpl rslt = new ResourcesElementsProviderImpl(); rslt.setResourcesDao(getResourcesDao()); return rslt; }
java
@Bean(name = "resourcesElementsProvider") public ResourcesElementsProvider getResourcesElementsProvider() { ResourcesElementsProviderImpl rslt = new ResourcesElementsProviderImpl(); rslt.setResourcesDao(getResourcesDao()); return rslt; }
[ "@", "Bean", "(", "name", "=", "\"resourcesElementsProvider\"", ")", "public", "ResourcesElementsProvider", "getResourcesElementsProvider", "(", ")", "{", "ResourcesElementsProviderImpl", "rslt", "=", "new", "ResourcesElementsProviderImpl", "(", ")", ";", "rslt", ".", "...
This bean is not an element of the rendering pipeline.
[ "This", "bean", "is", "not", "an", "element", "of", "the", "rendering", "pipeline", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/rendering/RenderingPipelineConfiguration.java#L324-L329
57,847
Jasig/uPortal
uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/swapper/AttributeSwapRequestValidator.java
AttributeSwapRequestValidator.checkAttributesMap
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
protected void checkAttributesMap( MessageContext context, String basePath, Set<String> swappableAttributes, Map<String, Attribute> attributesToCopy) { for (final String attribute : attributesToCopy.keySet()) { if (!swappableAttributes.contains(attribu...
[ "protected", "void", "checkAttributesMap", "(", "MessageContext", "context", ",", "String", "basePath", ",", "Set", "<", "String", ">", "swappableAttributes", ",", "Map", "<", "String", ",", "Attribute", ">", "attributesToCopy", ")", "{", "for", "(", "final", ...
Checks the keys in the Map on the model against a Set to ensure there are no values in the Map that aren't also in the Set
[ "Checks", "the", "keys", "in", "the", "Map", "on", "the", "model", "against", "a", "Set", "to", "ensure", "there", "are", "no", "values", "in", "the", "Map", "that", "aren", "t", "also", "in", "the", "Set" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/swapper/AttributeSwapRequestValidator.java#L63-L80
57,848
Jasig/uPortal
uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/LayoutRESTController.java
LayoutRESTController.getRESTController
@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
@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...
[ "@", "Deprecated", "@", "RequestMapping", "(", "value", "=", "\"/layoutDoc\"", ",", "method", "=", "RequestMethod", ".", "GET", ")", "public", "ModelAndView", "getRESTController", "(", "HttpServletRequest", "request", ",", "@", "RequestParam", "(", "value", "=", ...
A REST call to get a json feed of the current users layout. Intent was to provide a layout document without per-tab information for mobile device rendering. @param request The servlet request. Utilized to get the users instance and eventually there layout @param tab The tab name of which you would like to filter; opti...
[ "A", "REST", "call", "to", "get", "a", "json", "feed", "of", "the", "current", "users", "layout", ".", "Intent", "was", "to", "provide", "a", "layout", "document", "without", "per", "-", "tab", "information", "for", "mobile", "device", "rendering", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/LayoutRESTController.java#L103-L185
57,849
Jasig/uPortal
uPortal-groups/uPortal-groups-pags/src/main/java/org/apereo/portal/groups/pags/dao/PagsService.java
PagsService.getPagsDefinitions
public Set<IPersonAttributesGroupDefinition> getPagsDefinitions(IPerson person) { Set<IPersonAttributesGroupDefinition> rslt = new HashSet<>(); for (IPersonAttributesGroupDefinition def : pagsGroupDefDao.getPersonAttributesGroupDefinitions()) { if (hasPermission( ...
java
public Set<IPersonAttributesGroupDefinition> getPagsDefinitions(IPerson person) { Set<IPersonAttributesGroupDefinition> rslt = new HashSet<>(); for (IPersonAttributesGroupDefinition def : pagsGroupDefDao.getPersonAttributesGroupDefinitions()) { if (hasPermission( ...
[ "public", "Set", "<", "IPersonAttributesGroupDefinition", ">", "getPagsDefinitions", "(", "IPerson", "person", ")", "{", "Set", "<", "IPersonAttributesGroupDefinition", ">", "rslt", "=", "new", "HashSet", "<>", "(", ")", ";", "for", "(", "IPersonAttributesGroupDefin...
All the definitions, filtered by the user's access rights. @param person @return
[ "All", "the", "definitions", "filtered", "by", "the", "user", "s", "access", "rights", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-pags/src/main/java/org/apereo/portal/groups/pags/dao/PagsService.java#L67-L80
57,850
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/SimpleSecurityContext.java
SimpleSecurityContext.authenticate
@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
@Override public synchronized void authenticate() throws PortalSecurityException { this.isauth = false; if (this.myPrincipal.UID != null && this.myOpaqueCredentials.credentialstring != null) { try { ILocalAccountDao accountStore = LocalAccountDaoLocator.getLocalAccountD...
[ "@", "Override", "public", "synchronized", "void", "authenticate", "(", ")", "throws", "PortalSecurityException", "{", "this", ".", "isauth", "=", "false", ";", "if", "(", "this", ".", "myPrincipal", ".", "UID", "!=", "null", "&&", "this", ".", "myOpaqueCred...
Authenticate user. @exception PortalSecurityException
[ "Authenticate", "user", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/SimpleSecurityContext.java#L51-L102
57,851
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/properties/PropertyToAttributePropertiesManager.java
PropertyToAttributePropertiesManager.setPropertyMappings
@Resource(name = "portletPropertyToAttributeMappings") public void setPropertyMappings(Map<String, String> propertyMappings) { this.propertyToAttributeMappings = ImmutableBiMap.copyOf(propertyMappings); this.attributeToPropertyMappings = this.propertyToAttributeMappings.inverse(); }
java
@Resource(name = "portletPropertyToAttributeMappings") public void setPropertyMappings(Map<String, String> propertyMappings) { this.propertyToAttributeMappings = ImmutableBiMap.copyOf(propertyMappings); this.attributeToPropertyMappings = this.propertyToAttributeMappings.inverse(); }
[ "@", "Resource", "(", "name", "=", "\"portletPropertyToAttributeMappings\"", ")", "public", "void", "setPropertyMappings", "(", "Map", "<", "String", ",", "String", ">", "propertyMappings", ")", "{", "this", ".", "propertyToAttributeMappings", "=", "ImmutableBiMap", ...
Map of portlet property names to attribute names, if the value is null the key will be used for both the property and attribute name
[ "Map", "of", "portlet", "property", "names", "to", "attribute", "names", "if", "the", "value", "is", "null", "the", "key", "will", "be", "used", "for", "both", "the", "property", "and", "attribute", "name" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/properties/PropertyToAttributePropertiesManager.java#L51-L55
57,852
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/properties/PropertyToAttributePropertiesManager.java
PropertyToAttributePropertiesManager.setNonNamespacedProperties
@Resource(name = "nonNamespacedPortletProperties") public void setNonNamespacedProperties(Set<String> nonNamespacedProperties) { this.nonNamespacedProperties = ImmutableSet.copyOf(nonNamespacedProperties); }
java
@Resource(name = "nonNamespacedPortletProperties") public void setNonNamespacedProperties(Set<String> nonNamespacedProperties) { this.nonNamespacedProperties = ImmutableSet.copyOf(nonNamespacedProperties); }
[ "@", "Resource", "(", "name", "=", "\"nonNamespacedPortletProperties\"", ")", "public", "void", "setNonNamespacedProperties", "(", "Set", "<", "String", ">", "nonNamespacedProperties", ")", "{", "this", ".", "nonNamespacedProperties", "=", "ImmutableSet", ".", "copyOf...
Properties that should not be namespaced with the portlet's windowId when stored as request attributes
[ "Properties", "that", "should", "not", "be", "namespaced", "with", "the", "portlet", "s", "windowId", "when", "stored", "as", "request", "attributes" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/properties/PropertyToAttributePropertiesManager.java#L61-L64
57,853
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/properties/PropertyToAttributePropertiesManager.java
PropertyToAttributePropertiesManager.getPropertyName
private String getPropertyName(final String windowIdStr, final String fullAttributeName) { final String attributeName; if (this.nonNamespacedProperties.contains(fullAttributeName)) { attributeName = fullAttributeName; } else if (fullAttributeName.startsWith(windowIdStr)) { ...
java
private String getPropertyName(final String windowIdStr, final String fullAttributeName) { final String attributeName; if (this.nonNamespacedProperties.contains(fullAttributeName)) { attributeName = fullAttributeName; } else if (fullAttributeName.startsWith(windowIdStr)) { ...
[ "private", "String", "getPropertyName", "(", "final", "String", "windowIdStr", ",", "final", "String", "fullAttributeName", ")", "{", "final", "String", "attributeName", ";", "if", "(", "this", ".", "nonNamespacedProperties", ".", "contains", "(", "fullAttributeName...
Convert a request attribute name to a portlet property name
[ "Convert", "a", "request", "attribute", "name", "to", "a", "portlet", "property", "name" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/properties/PropertyToAttributePropertiesManager.java#L179-L198
57,854
Jasig/uPortal
uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/LayoutStructure.java
LayoutStructure.addParameter
public void addParameter(String paramName, String paramValue) { this.parameters.add(new StructureParameter(paramName, paramValue)); }
java
public void addParameter(String paramName, String paramValue) { this.parameters.add(new StructureParameter(paramName, paramValue)); }
[ "public", "void", "addParameter", "(", "String", "paramName", ",", "String", "paramValue", ")", "{", "this", ".", "parameters", ".", "add", "(", "new", "StructureParameter", "(", "paramName", ",", "paramValue", ")", ")", ";", "}" ]
Add a parameter to this LayoutStructure. @param paramName the name of the parameter @param paramValue the value of the parameter
[ "Add", "a", "parameter", "to", "this", "LayoutStructure", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/LayoutStructure.java#L168-L170
57,855
Jasig/uPortal
uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/dao/jpa/JpaStylesheetUserPreferencesDao.java
JpaStylesheetUserPreferencesDao.addFetches
protected void addFetches(final Root<StylesheetUserPreferencesImpl> descriptorRoot) { descriptorRoot.fetch(StylesheetUserPreferencesImpl_.layoutAttributes, JoinType.LEFT); descriptorRoot.fetch(StylesheetUserPreferencesImpl_.outputProperties, JoinType.LEFT); descriptorRoot.fetch(StylesheetUserPre...
java
protected void addFetches(final Root<StylesheetUserPreferencesImpl> descriptorRoot) { descriptorRoot.fetch(StylesheetUserPreferencesImpl_.layoutAttributes, JoinType.LEFT); descriptorRoot.fetch(StylesheetUserPreferencesImpl_.outputProperties, JoinType.LEFT); descriptorRoot.fetch(StylesheetUserPre...
[ "protected", "void", "addFetches", "(", "final", "Root", "<", "StylesheetUserPreferencesImpl", ">", "descriptorRoot", ")", "{", "descriptorRoot", ".", "fetch", "(", "StylesheetUserPreferencesImpl_", ".", "layoutAttributes", ",", "JoinType", ".", "LEFT", ")", ";", "d...
Add the needed fetches to a critera query
[ "Add", "the", "needed", "fetches", "to", "a", "critera", "query" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/dao/jpa/JpaStylesheetUserPreferencesDao.java#L132-L136
57,856
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.initialize
private void initialize() { String sep; try { sep = GroupServiceConfiguration.getConfiguration().getNodeSeparator(); } catch (Exception ex) { sep = DEFAULT_NODE_SEPARATOR; } groupNodeSeparator = sep; if (LOG.isDebugEnabled()) { LOG.debu...
java
private void initialize() { String sep; try { sep = GroupServiceConfiguration.getConfiguration().getNodeSeparator(); } catch (Exception ex) { sep = DEFAULT_NODE_SEPARATOR; } groupNodeSeparator = sep; if (LOG.isDebugEnabled()) { LOG.debu...
[ "private", "void", "initialize", "(", ")", "{", "String", "sep", ";", "try", "{", "sep", "=", "GroupServiceConfiguration", ".", "getConfiguration", "(", ")", ".", "getNodeSeparator", "(", ")", ";", "}", "catch", "(", "Exception", "ex", ")", "{", "sep", "...
Get the node separator character from the GroupServiceConfiguration. Default it to IGroupConstants.DEFAULT_NODE_SEPARATOR.
[ "Get", "the", "node", "separator", "character", "from", "the", "GroupServiceConfiguration", ".", "Default", "it", "to", "IGroupConstants", ".", "DEFAULT_NODE_SEPARATOR", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L141-L152
57,857
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.delete
@Override public void delete(IEntityGroup group) throws GroupsException { if (existsInDatabase(group)) { try { primDelete(group); } catch (SQLException sqle) { throw new GroupsException("Problem deleting " + group, sqle); } } }
java
@Override public void delete(IEntityGroup group) throws GroupsException { if (existsInDatabase(group)) { try { primDelete(group); } catch (SQLException sqle) { throw new GroupsException("Problem deleting " + group, sqle); } } }
[ "@", "Override", "public", "void", "delete", "(", "IEntityGroup", "group", ")", "throws", "GroupsException", "{", "if", "(", "existsInDatabase", "(", "group", ")", ")", "{", "try", "{", "primDelete", "(", "group", ")", ";", "}", "catch", "(", "SQLException...
If this entity exists, delete it. @param group IEntityGroup
[ "If", "this", "entity", "exists", "delete", "it", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L259-L268
57,858
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.existsInDatabase
private boolean existsInDatabase(IEntityGroup group) throws GroupsException { IEntityGroup ug = this.find(group.getLocalKey()); return ug != null; }
java
private boolean existsInDatabase(IEntityGroup group) throws GroupsException { IEntityGroup ug = this.find(group.getLocalKey()); return ug != null; }
[ "private", "boolean", "existsInDatabase", "(", "IEntityGroup", "group", ")", "throws", "GroupsException", "{", "IEntityGroup", "ug", "=", "this", ".", "find", "(", "group", ".", "getLocalKey", "(", ")", ")", ";", "return", "ug", "!=", "null", ";", "}" ]
Answer if the IEntityGroup entity exists in the database. @return boolean @param group IEntityGroup
[ "Answer", "if", "the", "IEntityGroup", "entity", "exists", "in", "the", "database", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L276-L279
57,859
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.findParentGroups
public java.util.Iterator findParentGroups(IEntity ent) throws GroupsException { String memberKey = ent.getKey(); Integer type = EntityTypesLocator.getEntityTypes().getEntityIDFromType(ent.getLeafType()); return findParentGroupsForEntity(memberKey, type.intValue()); }
java
public java.util.Iterator findParentGroups(IEntity ent) throws GroupsException { String memberKey = ent.getKey(); Integer type = EntityTypesLocator.getEntityTypes().getEntityIDFromType(ent.getLeafType()); return findParentGroupsForEntity(memberKey, type.intValue()); }
[ "public", "java", ".", "util", ".", "Iterator", "findParentGroups", "(", "IEntity", "ent", ")", "throws", "GroupsException", "{", "String", "memberKey", "=", "ent", ".", "getKey", "(", ")", ";", "Integer", "type", "=", "EntityTypesLocator", ".", "getEntityType...
Find the groups that this entity belongs to. @param ent the entity in question @return java.util.Iterator
[ "Find", "the", "groups", "that", "this", "entity", "belongs", "to", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L298-L302
57,860
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.findParentGroups
public java.util.Iterator findParentGroups(IEntityGroup group) throws GroupsException { String memberKey = group.getLocalKey(); String serviceName = group.getServiceName().toString(); Integer type = EntityTypesLocator.getEntityTypes().getEntityIDFromType(group.getLeafType()); return find...
java
public java.util.Iterator findParentGroups(IEntityGroup group) throws GroupsException { String memberKey = group.getLocalKey(); String serviceName = group.getServiceName().toString(); Integer type = EntityTypesLocator.getEntityTypes().getEntityIDFromType(group.getLeafType()); return find...
[ "public", "java", ".", "util", ".", "Iterator", "findParentGroups", "(", "IEntityGroup", "group", ")", "throws", "GroupsException", "{", "String", "memberKey", "=", "group", ".", "getLocalKey", "(", ")", ";", "String", "serviceName", "=", "group", ".", "getSer...
Find the groups that this group belongs to. @param group IEntityGroup @return java.util.Iterator
[ "Find", "the", "groups", "that", "this", "group", "belongs", "to", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L310-L315
57,861
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.findParentGroups
@Override public Iterator findParentGroups(IGroupMember gm) throws GroupsException { if (gm.isGroup()) { IEntityGroup group = (IEntityGroup) gm; return findParentGroups(group); } else { IEntity ent = (IEntity) gm; return findParentGroups(ent); ...
java
@Override public Iterator findParentGroups(IGroupMember gm) throws GroupsException { if (gm.isGroup()) { IEntityGroup group = (IEntityGroup) gm; return findParentGroups(group); } else { IEntity ent = (IEntity) gm; return findParentGroups(ent); ...
[ "@", "Override", "public", "Iterator", "findParentGroups", "(", "IGroupMember", "gm", ")", "throws", "GroupsException", "{", "if", "(", "gm", ".", "isGroup", "(", ")", ")", "{", "IEntityGroup", "group", "=", "(", "IEntityGroup", ")", "gm", ";", "return", "...
Find the groups that this group member belongs to. @param gm the group member in question @return java.util.Iterator
[ "Find", "the", "groups", "that", "this", "group", "member", "belongs", "to", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L323-L332
57,862
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.findParentGroupsForEntity
private java.util.Iterator findParentGroupsForEntity(String memberKey, int type) throws GroupsException { Connection conn = null; Collection groups = new ArrayList(); IEntityGroup eg = null; try { conn = RDBMServices.getConnection(); String sql = getF...
java
private java.util.Iterator findParentGroupsForEntity(String memberKey, int type) throws GroupsException { Connection conn = null; Collection groups = new ArrayList(); IEntityGroup eg = null; try { conn = RDBMServices.getConnection(); String sql = getF...
[ "private", "java", ".", "util", ".", "Iterator", "findParentGroupsForEntity", "(", "String", "memberKey", ",", "int", "type", ")", "throws", "GroupsException", "{", "Connection", "conn", "=", "null", ";", "Collection", "groups", "=", "new", "ArrayList", "(", "...
Find the groups associated with this member key. @param memberKey @param type @return java.util.Iterator
[ "Find", "the", "groups", "associated", "with", "this", "member", "key", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L341-L383
57,863
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.findMemberGroupKeys
@Override public String[] findMemberGroupKeys(IEntityGroup group) throws GroupsException { Connection conn = null; Collection groupKeys = new ArrayList(); String groupKey = null; try { conn = RDBMServices.getConnection(); String sql = getFindMemberGroupKeysSq...
java
@Override public String[] findMemberGroupKeys(IEntityGroup group) throws GroupsException { Connection conn = null; Collection groupKeys = new ArrayList(); String groupKey = null; try { conn = RDBMServices.getConnection(); String sql = getFindMemberGroupKeysSq...
[ "@", "Override", "public", "String", "[", "]", "findMemberGroupKeys", "(", "IEntityGroup", "group", ")", "throws", "GroupsException", "{", "Connection", "conn", "=", "null", ";", "Collection", "groupKeys", "=", "new", "ArrayList", "(", ")", ";", "String", "gro...
Find the keys of groups that are members of group. @param group the IEntityGroup @return String[]
[ "Find", "the", "keys", "of", "groups", "that", "are", "members", "of", "group", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L513-L552
57,864
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.findMemberGroups
@Override public Iterator findMemberGroups(IEntityGroup group) throws GroupsException { Connection conn = null; Collection groups = new ArrayList(); IEntityGroup eg = null; String serviceName = group.getServiceName().toString(); String localKey = group.getLocalKey(); ...
java
@Override public Iterator findMemberGroups(IEntityGroup group) throws GroupsException { Connection conn = null; Collection groups = new ArrayList(); IEntityGroup eg = null; String serviceName = group.getServiceName().toString(); String localKey = group.getLocalKey(); ...
[ "@", "Override", "public", "Iterator", "findMemberGroups", "(", "IEntityGroup", "group", ")", "throws", "GroupsException", "{", "Connection", "conn", "=", "null", ";", "Collection", "groups", "=", "new", "ArrayList", "(", ")", ";", "IEntityGroup", "eg", "=", "...
Find the IUserGroups that are members of the group. @param group IEntityGroup @return java.util.Iterator
[ "Find", "the", "IUserGroups", "that", "are", "members", "of", "the", "group", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L559-L603
57,865
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.primDelete
private void primDelete(IEntityGroup group) throws SQLException { Connection conn = null; String deleteGroupSql = getDeleteGroupSql(group); String deleteMembershipSql = getDeleteMembersInGroupSql(group); try { conn = RDBMServices.getConnection(); Statement stmnt ...
java
private void primDelete(IEntityGroup group) throws SQLException { Connection conn = null; String deleteGroupSql = getDeleteGroupSql(group); String deleteMembershipSql = getDeleteMembersInGroupSql(group); try { conn = RDBMServices.getConnection(); Statement stmnt ...
[ "private", "void", "primDelete", "(", "IEntityGroup", "group", ")", "throws", "SQLException", "{", "Connection", "conn", "=", "null", ";", "String", "deleteGroupSql", "=", "getDeleteGroupSql", "(", "group", ")", ";", "String", "deleteMembershipSql", "=", "getDelet...
Delete this entity from the database after first deleting its memberships. Exception SQLException - if we catch a SQLException, we rollback and re-throw it. @param group IEntityGroup
[ "Delete", "this", "entity", "from", "the", "database", "after", "first", "deleting", "its", "memberships", ".", "Exception", "SQLException", "-", "if", "we", "catch", "a", "SQLException", "we", "rollback", "and", "re", "-", "throw", "it", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L1072-L1106
57,866
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.primUpdate
private void primUpdate(IEntityGroup group, Connection conn) throws SQLException, GroupsException { try { PreparedStatement ps = conn.prepareStatement(getUpdateGroupSql()); try { Integer typeID = EntityTypesLocator.getEntityTypes() ...
java
private void primUpdate(IEntityGroup group, Connection conn) throws SQLException, GroupsException { try { PreparedStatement ps = conn.prepareStatement(getUpdateGroupSql()); try { Integer typeID = EntityTypesLocator.getEntityTypes() ...
[ "private", "void", "primUpdate", "(", "IEntityGroup", "group", ",", "Connection", "conn", ")", "throws", "SQLException", ",", "GroupsException", "{", "try", "{", "PreparedStatement", "ps", "=", "conn", ".", "prepareStatement", "(", "getUpdateGroupSql", "(", ")", ...
Update the entity in the database. @param group IEntityGroup @param conn the database connection
[ "Update", "the", "entity", "in", "the", "database", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L1155-L1201
57,867
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.update
@Override public void update(IEntityGroup group) throws GroupsException { Connection conn = null; boolean exists = existsInDatabase(group); try { conn = RDBMServices.getConnection(); setAutoCommit(conn, false); try { if (exists) { ...
java
@Override public void update(IEntityGroup group) throws GroupsException { Connection conn = null; boolean exists = existsInDatabase(group); try { conn = RDBMServices.getConnection(); setAutoCommit(conn, false); try { if (exists) { ...
[ "@", "Override", "public", "void", "update", "(", "IEntityGroup", "group", ")", "throws", "GroupsException", "{", "Connection", "conn", "=", "null", ";", "boolean", "exists", "=", "existsInDatabase", "(", "group", ")", ";", "try", "{", "conn", "=", "RDBMServ...
Commit this entity AND ITS MEMBERSHIPS to the underlying store. @param group IEntityGroup
[ "Commit", "this", "entity", "AND", "ITS", "MEMBERSHIPS", "to", "the", "underlying", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L1456-L1489
57,868
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java
RDBMEntityGroupStore.updateMembers
@Override public void updateMembers(IEntityGroup eg) throws GroupsException { Connection conn = null; EntityGroupImpl egi = (EntityGroupImpl) eg; if (egi.isDirty()) try { conn = RDBMServices.getConnection(); setAutoCommit(conn, false); ...
java
@Override public void updateMembers(IEntityGroup eg) throws GroupsException { Connection conn = null; EntityGroupImpl egi = (EntityGroupImpl) eg; if (egi.isDirty()) try { conn = RDBMServices.getConnection(); setAutoCommit(conn, false); ...
[ "@", "Override", "public", "void", "updateMembers", "(", "IEntityGroup", "eg", ")", "throws", "GroupsException", "{", "Connection", "conn", "=", "null", ";", "EntityGroupImpl", "egi", "=", "(", "EntityGroupImpl", ")", "eg", ";", "if", "(", "egi", ".", "isDir...
Insert and delete group membership rows inside a transaction. @param eg IEntityGroup
[ "Insert", "and", "delete", "group", "membership", "rows", "inside", "a", "transaction", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/RDBMEntityGroupStore.java#L1496-L1525
57,869
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/sqlquery/SqlQueryPortletController.java
SqlQueryPortletController.evaluateSpelExpression
protected String evaluateSpelExpression(String value, PortletRequest request) { if (StringUtils.isNotBlank(value)) { String result = portletSpELService.parseString(value, request); return result; } throw new IllegalArgumentException("SQL Query expression required"); }
java
protected String evaluateSpelExpression(String value, PortletRequest request) { if (StringUtils.isNotBlank(value)) { String result = portletSpELService.parseString(value, request); return result; } throw new IllegalArgumentException("SQL Query expression required"); }
[ "protected", "String", "evaluateSpelExpression", "(", "String", "value", ",", "PortletRequest", "request", ")", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "value", ")", ")", "{", "String", "result", "=", "portletSpELService", ".", "parseString", "(",...
Substitute any SpEL expressions with values from the PortletRequest and other attributes added to the SpEL context. @param value SQL Query String with optional SpEL expressions in it @param request Portlet request @return SQL Query string with SpEL substitutions
[ "Substitute", "any", "SpEL", "expressions", "with", "values", "from", "the", "PortletRequest", "and", "other", "attributes", "added", "to", "the", "SpEL", "context", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/sqlquery/SqlQueryPortletController.java#L163-L169
57,870
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/sqlquery/SqlQueryPortletController.java
SqlQueryPortletController.getCache
private Cache getCache(PortletRequest req) { String cacheName = req.getPreferences().getValue(PREF_CACHE_NAME, DEFAULT_CACHE_NAME); if (StringUtils.isNotBlank(cacheName)) { log.debug("Looking up cache '{}'", cacheName); Cache cache = CacheManager.getInstance().getCache(cacheName)...
java
private Cache getCache(PortletRequest req) { String cacheName = req.getPreferences().getValue(PREF_CACHE_NAME, DEFAULT_CACHE_NAME); if (StringUtils.isNotBlank(cacheName)) { log.debug("Looking up cache '{}'", cacheName); Cache cache = CacheManager.getInstance().getCache(cacheName)...
[ "private", "Cache", "getCache", "(", "PortletRequest", "req", ")", "{", "String", "cacheName", "=", "req", ".", "getPreferences", "(", ")", ".", "getValue", "(", "PREF_CACHE_NAME", ",", "DEFAULT_CACHE_NAME", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank...
Obtain the cache configured for this portlet instance. @param req Portlet request @return Cache configured for this portlet instance.
[ "Obtain", "the", "cache", "configured", "for", "this", "portlet", "instance", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/sqlquery/SqlQueryPortletController.java#L177-L197
57,871
Jasig/uPortal
uPortal-url/src/main/java/org/apereo/portal/url/processing/RequestParameterProcessorInterceptor.java
RequestParameterProcessorInterceptor.preHandle
@Override public boolean preHandle( HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { final List<IRequestParameterProcessor> incompleteDynamicProcessors = new LinkedList<IRequestParameterProcessor>(this.dynamicRequestParamete...
java
@Override public boolean preHandle( HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { final List<IRequestParameterProcessor> incompleteDynamicProcessors = new LinkedList<IRequestParameterProcessor>(this.dynamicRequestParamete...
[ "@", "Override", "public", "boolean", "preHandle", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ",", "Object", "handler", ")", "throws", "Exception", "{", "final", "List", "<", "IRequestParameterProcessor", ">", "incompleteDynamicProcess...
Process the request first with the dynamic processors until all are complete and then the static processors. @see org.apereo.portal.url.processing.IRequestParameterController#processParameters(org.apereo.portal.url.IWritableHttpServletRequest, javax.servlet.http.HttpServletResponse)
[ "Process", "the", "request", "first", "with", "the", "dynamic", "processors", "until", "all", "are", "complete", "and", "then", "the", "static", "processors", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-url/src/main/java/org/apereo/portal/url/processing/RequestParameterProcessorInterceptor.java#L78-L119
57,872
Jasig/uPortal
uPortal-spring/src/main/java/org/apereo/portal/spring/security/preauth/PortalPreAuthenticatedProcessingFilter.java
PortalPreAuthenticatedProcessingFilter.getPropertyFromRequest
private HashMap<String, String> getPropertyFromRequest( HashMap<String, String> tokens, HttpServletRequest request) { // Iterate through all of the other property keys looking for the first property // named like propname that has a value in the request HashMap<String, String> retHas...
java
private HashMap<String, String> getPropertyFromRequest( HashMap<String, String> tokens, HttpServletRequest request) { // Iterate through all of the other property keys looking for the first property // named like propname that has a value in the request HashMap<String, String> retHas...
[ "private", "HashMap", "<", "String", ",", "String", ">", "getPropertyFromRequest", "(", "HashMap", "<", "String", ",", "String", ">", "tokens", ",", "HttpServletRequest", "request", ")", "{", "// Iterate through all of the other property keys looking for the first property"...
Get the values represented by each token from the request and load them into a HashMap that is returned. @param tokens @param request @return HashMap of properties
[ "Get", "the", "values", "represented", "by", "each", "token", "from", "the", "request", "and", "load", "them", "into", "a", "HashMap", "that", "is", "returned", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/apereo/portal/spring/security/preauth/PortalPreAuthenticatedProcessingFilter.java#L525-L568
57,873
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.add
@Override public void add(IEntityLock lock) throws LockingException { Connection conn = null; try { conn = RDBMServices.getConnection(); primDeleteExpired(new Date(), lock.getEntityType(), lock.getEntityKey(), conn); primAdd(lock, conn); } catch (SQLExcept...
java
@Override public void add(IEntityLock lock) throws LockingException { Connection conn = null; try { conn = RDBMServices.getConnection(); primDeleteExpired(new Date(), lock.getEntityType(), lock.getEntityKey(), conn); primAdd(lock, conn); } catch (SQLExcept...
[ "@", "Override", "public", "void", "add", "(", "IEntityLock", "lock", ")", "throws", "LockingException", "{", "Connection", "conn", "=", "null", ";", "try", "{", "conn", "=", "RDBMServices", ".", "getConnection", "(", ")", ";", "primDeleteExpired", "(", "new...
Adds the lock to the underlying store. @param lock
[ "Adds", "the", "lock", "to", "the", "underlying", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L74-L86
57,874
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.delete
@Override public void delete(IEntityLock lock) throws LockingException { Connection conn = null; try { conn = RDBMServices.getConnection(); primDelete(lock, conn); } catch (SQLException sqle) { throw new LockingException("Problem deleting " + lock, sqle); ...
java
@Override public void delete(IEntityLock lock) throws LockingException { Connection conn = null; try { conn = RDBMServices.getConnection(); primDelete(lock, conn); } catch (SQLException sqle) { throw new LockingException("Problem deleting " + lock, sqle); ...
[ "@", "Override", "public", "void", "delete", "(", "IEntityLock", "lock", ")", "throws", "LockingException", "{", "Connection", "conn", "=", "null", ";", "try", "{", "conn", "=", "RDBMServices", ".", "getConnection", "(", ")", ";", "primDelete", "(", "lock", ...
If this IEntityLock exists, delete it. @param lock
[ "If", "this", "IEntityLock", "exists", "delete", "it", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L93-L104
57,875
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.deleteAll
@Override public void deleteAll() throws LockingException { Connection conn = null; Statement stmnt = null; try { String sql = "DELETE FROM " + LOCK_TABLE; if (log.isDebugEnabled()) log.debug("RDBMEntityLockStore.deleteAll(): " + sql); conn = RDBMServices...
java
@Override public void deleteAll() throws LockingException { Connection conn = null; Statement stmnt = null; try { String sql = "DELETE FROM " + LOCK_TABLE; if (log.isDebugEnabled()) log.debug("RDBMEntityLockStore.deleteAll(): " + sql); conn = RDBMServices...
[ "@", "Override", "public", "void", "deleteAll", "(", ")", "throws", "LockingException", "{", "Connection", "conn", "=", "null", ";", "Statement", "stmnt", "=", "null", ";", "try", "{", "String", "sql", "=", "\"DELETE FROM \"", "+", "LOCK_TABLE", ";", "if", ...
Delete all IEntityLocks from the underlying store.
[ "Delete", "all", "IEntityLocks", "from", "the", "underlying", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L107-L131
57,876
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.deleteExpired
public void deleteExpired(IEntityLock lock) throws LockingException { deleteExpired(new Date(), lock.getEntityType(), lock.getEntityKey()); }
java
public void deleteExpired(IEntityLock lock) throws LockingException { deleteExpired(new Date(), lock.getEntityType(), lock.getEntityKey()); }
[ "public", "void", "deleteExpired", "(", "IEntityLock", "lock", ")", "throws", "LockingException", "{", "deleteExpired", "(", "new", "Date", "(", ")", ",", "lock", ".", "getEntityType", "(", ")", ",", "lock", ".", "getEntityKey", "(", ")", ")", ";", "}" ]
Delete all expired IEntityLocks from the underlying store. @param lock IEntityLock
[ "Delete", "all", "expired", "IEntityLocks", "from", "the", "underlying", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L169-L171
57,877
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.findUnexpired
@Override public IEntityLock[] findUnexpired( Date expiration, Class entityType, String entityKey, Integer lockType, String lockOwner) throws LockingException { Timestamp ts = new Timestamp(expiration.getTime()); return selectUnexpired(ts, entityType, entityKey, lockType, loc...
java
@Override public IEntityLock[] findUnexpired( Date expiration, Class entityType, String entityKey, Integer lockType, String lockOwner) throws LockingException { Timestamp ts = new Timestamp(expiration.getTime()); return selectUnexpired(ts, entityType, entityKey, lockType, loc...
[ "@", "Override", "public", "IEntityLock", "[", "]", "findUnexpired", "(", "Date", "expiration", ",", "Class", "entityType", ",", "String", "entityKey", ",", "Integer", "lockType", ",", "String", "lockOwner", ")", "throws", "LockingException", "{", "Timestamp", "...
Retrieve IEntityLocks from the underlying store. Expiration must not be null. @param expiration Date @param entityType Class @param entityKey String @param lockType Integer - so we can accept a null value. @param lockOwner String @exception LockingException - wraps an Exception specific to the store.
[ "Retrieve", "IEntityLocks", "from", "the", "underlying", "store", ".", "Expiration", "must", "not", "be", "null", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L200-L206
57,878
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.getDeleteLockSql
private static String getDeleteLockSql() { if (deleteLockSql == null) { deleteLockSql = "DELETE FROM " + LOCK_TABLE + " WHERE " + ENTITY_TYPE_COLUMN + EQ ...
java
private static String getDeleteLockSql() { if (deleteLockSql == null) { deleteLockSql = "DELETE FROM " + LOCK_TABLE + " WHERE " + ENTITY_TYPE_COLUMN + EQ ...
[ "private", "static", "String", "getDeleteLockSql", "(", ")", "{", "if", "(", "deleteLockSql", "==", "null", ")", "{", "deleteLockSql", "=", "\"DELETE FROM \"", "+", "LOCK_TABLE", "+", "\" WHERE \"", "+", "ENTITY_TYPE_COLUMN", "+", "EQ", "+", "\"?\"", "+", "\" ...
SQL for deleting a row on the lock table.
[ "SQL", "for", "deleting", "a", "row", "on", "the", "lock", "table", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L241-L268
57,879
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.getUpdateSql
private static String getUpdateSql() { if (updateSql == null) { updateSql = "UPDATE " + LOCK_TABLE + " SET " + EXPIRATION_TIME_COLUMN + EQ +...
java
private static String getUpdateSql() { if (updateSql == null) { updateSql = "UPDATE " + LOCK_TABLE + " SET " + EXPIRATION_TIME_COLUMN + EQ +...
[ "private", "static", "String", "getUpdateSql", "(", ")", "{", "if", "(", "updateSql", "==", "null", ")", "{", "updateSql", "=", "\"UPDATE \"", "+", "LOCK_TABLE", "+", "\" SET \"", "+", "EXPIRATION_TIME_COLUMN", "+", "EQ", "+", "\"?, \"", "+", "LOCK_TYPE_COLUMN...
SQL for updating a row on the lock table.
[ "SQL", "for", "updating", "a", "row", "on", "the", "lock", "table", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L276-L310
57,880
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.initialize
private void initialize() throws LockingException { Date expiration = new Date(System.currentTimeMillis() - (60 * 60 * 1000)); deleteExpired(expiration, null, null); }
java
private void initialize() throws LockingException { Date expiration = new Date(System.currentTimeMillis() - (60 * 60 * 1000)); deleteExpired(expiration, null, null); }
[ "private", "void", "initialize", "(", ")", "throws", "LockingException", "{", "Date", "expiration", "=", "new", "Date", "(", "System", ".", "currentTimeMillis", "(", ")", "-", "(", "60", "*", "60", "*", "1000", ")", ")", ";", "deleteExpired", "(", "expir...
Cleanup the store by deleting locks expired an hour ago.
[ "Cleanup", "the", "store", "by", "deleting", "locks", "expired", "an", "hour", "ago", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L313-L316
57,881
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.instanceFromResultSet
private IEntityLock instanceFromResultSet(java.sql.ResultSet rs) throws SQLException, LockingException { Integer entityTypeID = rs.getInt(1); Class entityType = EntityTypesLocator.getEntityTypes().getEntityTypeFromID(entityTypeID); String key = rs.getString(2); int lockType =...
java
private IEntityLock instanceFromResultSet(java.sql.ResultSet rs) throws SQLException, LockingException { Integer entityTypeID = rs.getInt(1); Class entityType = EntityTypesLocator.getEntityTypes().getEntityTypeFromID(entityTypeID); String key = rs.getString(2); int lockType =...
[ "private", "IEntityLock", "instanceFromResultSet", "(", "java", ".", "sql", ".", "ResultSet", "rs", ")", "throws", "SQLException", ",", "LockingException", "{", "Integer", "entityTypeID", "=", "rs", ".", "getInt", "(", "1", ")", ";", "Class", "entityType", "="...
Extract values from ResultSet and create a new lock. @return org.apereo.portal.groups.IEntityLock @param rs java.sql.ResultSet
[ "Extract", "values", "from", "ResultSet", "and", "create", "a", "new", "lock", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L324-L334
57,882
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.primAdd
private void primAdd(IEntityLock lock, Connection conn) throws SQLException, LockingException { Integer typeID = EntityTypesLocator.getEntityTypes().getEntityIDFromType(lock.getEntityType()); String key = lock.getEntityKey(); int lockType = lock.getLockType(); Timestamp t...
java
private void primAdd(IEntityLock lock, Connection conn) throws SQLException, LockingException { Integer typeID = EntityTypesLocator.getEntityTypes().getEntityIDFromType(lock.getEntityType()); String key = lock.getEntityKey(); int lockType = lock.getLockType(); Timestamp t...
[ "private", "void", "primAdd", "(", "IEntityLock", "lock", ",", "Connection", "conn", ")", "throws", "SQLException", ",", "LockingException", "{", "Integer", "typeID", "=", "EntityTypesLocator", ".", "getEntityTypes", "(", ")", ".", "getEntityIDFromType", "(", "loc...
Add the lock to the underlying store. @param lock org.apereo.portal.concurrency.locking.IEntityLock @param conn java.sql.Connection
[ "Add", "the", "lock", "to", "the", "underlying", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L349-L381
57,883
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java
RDBMEntityLockStore.primSelect
private IEntityLock[] primSelect(String sql) throws LockingException { Connection conn = null; Statement stmnt = null; ResultSet rs = null; List locks = new ArrayList(); if (log.isDebugEnabled()) log.debug("RDBMEntityLockStore.primSelect(): " + sql); try { c...
java
private IEntityLock[] primSelect(String sql) throws LockingException { Connection conn = null; Statement stmnt = null; ResultSet rs = null; List locks = new ArrayList(); if (log.isDebugEnabled()) log.debug("RDBMEntityLockStore.primSelect(): " + sql); try { c...
[ "private", "IEntityLock", "[", "]", "primSelect", "(", "String", "sql", ")", "throws", "LockingException", "{", "Connection", "conn", "=", "null", ";", "Statement", "stmnt", "=", "null", ";", "ResultSet", "rs", "=", "null", ";", "List", "locks", "=", "new"...
Retrieve IEntityLocks from the underlying store. @param sql String - the sql string used to select the entity lock rows. @exception LockingException - wraps an Exception specific to the store.
[ "Retrieve", "IEntityLocks", "from", "the", "underlying", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/RDBMEntityLockStore.java#L471-L502
57,884
Jasig/uPortal
uPortal-groups/uPortal-groups-filesystem/src/main/java/org/apereo/portal/groups/filesystem/FileSystemGroupStoreFactory.java
FileSystemGroupStoreFactory.newGroupStore
@Override public IEntityGroupStore newGroupStore(ComponentGroupServiceDescriptor svcDescriptor) throws GroupsException { FileSystemGroupStore fsGroupStore = (FileSystemGroupStore) getGroupStore(); String groupsRoot = (String) svcDescriptor.get("groupsRoot"); if (groupsRoot != nul...
java
@Override public IEntityGroupStore newGroupStore(ComponentGroupServiceDescriptor svcDescriptor) throws GroupsException { FileSystemGroupStore fsGroupStore = (FileSystemGroupStore) getGroupStore(); String groupsRoot = (String) svcDescriptor.get("groupsRoot"); if (groupsRoot != nul...
[ "@", "Override", "public", "IEntityGroupStore", "newGroupStore", "(", "ComponentGroupServiceDescriptor", "svcDescriptor", ")", "throws", "GroupsException", "{", "FileSystemGroupStore", "fsGroupStore", "=", "(", "FileSystemGroupStore", ")", "getGroupStore", "(", ")", ";", ...
Return an instance of the entity group store implementation. @return IEntityGroupStore @exception GroupsException
[ "Return", "an", "instance", "of", "the", "entity", "group", "store", "implementation", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-filesystem/src/main/java/org/apereo/portal/groups/filesystem/FileSystemGroupStoreFactory.java#L68-L77
57,885
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java
RDBMServices.getDataSource
@Deprecated public static DataSource getDataSource(String name) { if (PORTAL_DB.equals(name)) { return PortalDbLocator.getPortalDb(); } final ApplicationContext applicationContext = PortalApplicationContextLocator.getApplicationContext(); final DataSource...
java
@Deprecated public static DataSource getDataSource(String name) { if (PORTAL_DB.equals(name)) { return PortalDbLocator.getPortalDb(); } final ApplicationContext applicationContext = PortalApplicationContextLocator.getApplicationContext(); final DataSource...
[ "@", "Deprecated", "public", "static", "DataSource", "getDataSource", "(", "String", "name", ")", "{", "if", "(", "PORTAL_DB", ".", "equals", "(", "name", ")", ")", "{", "return", "PortalDbLocator", ".", "getPortalDb", "(", ")", ";", "}", "final", "Applica...
Gets a named DataSource from JNDI, with special handling for the PORTAL_DB datasource. Successful lookups are cached and not done again. Lookup failure is remembered and blocks retry for a number of milliseconds specified by JNDI_RETRY_TIME to reduce JNDI overhead and log spam. <p>There are two ways in which we handle...
[ "Gets", "a", "named", "DataSource", "from", "JNDI", "with", "special", "handling", "for", "the", "PORTAL_DB", "datasource", ".", "Successful", "lookups", "are", "cached", "and", "not", "done", "again", ".", "Lookup", "failure", "is", "remembered", "and", "bloc...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java#L110-L121
57,886
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java
RDBMServices.getConnection
@Deprecated public static Connection getConnection(String dbName) { final DataSource dataSource = getDataSource(dbName); try { final long start = System.currentTimeMillis(); final Connection c = dataSource.getConnection(); lastDatabase = databaseTimes.add(System....
java
@Deprecated public static Connection getConnection(String dbName) { final DataSource dataSource = getDataSource(dbName); try { final long start = System.currentTimeMillis(); final Connection c = dataSource.getConnection(); lastDatabase = databaseTimes.add(System....
[ "@", "Deprecated", "public", "static", "Connection", "getConnection", "(", "String", "dbName", ")", "{", "final", "DataSource", "dataSource", "=", "getDataSource", "(", "dbName", ")", ";", "try", "{", "final", "long", "start", "=", "System", ".", "currentTimeM...
Returns a connection produced by a DataSource found in the JNDI context. The DataSource should be configured and loaded into JNDI by the J2EE container or may be the portal default database. @param dbName the database name which will be retrieved from the JNDI context relative to "jdbc/" @return a database Connection ...
[ "Returns", "a", "connection", "produced", "by", "a", "DataSource", "found", "in", "the", "JNDI", "context", ".", "The", "DataSource", "should", "be", "configured", "and", "loaded", "into", "JNDI", "by", "the", "J2EE", "container", "or", "may", "be", "the", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java#L162-L179
57,887
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java
RDBMServices.closeResultSet
public static void closeResultSet(final ResultSet rs) { if (rs == null) { return; } try { rs.close(); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error closing ResultSet: " + rs, e); } }
java
public static void closeResultSet(final ResultSet rs) { if (rs == null) { return; } try { rs.close(); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error closing ResultSet: " + rs, e); } }
[ "public", "static", "void", "closeResultSet", "(", "final", "ResultSet", "rs", ")", "{", "if", "(", "rs", "==", "null", ")", "{", "return", ";", "}", "try", "{", "rs", ".", "close", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "i...
Close a ResultSet @param rs a database ResultSet object
[ "Close", "a", "ResultSet" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java#L214-L224
57,888
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java
RDBMServices.closeStatement
public static void closeStatement(final Statement st) { if (st == null) { return; } try { st.close(); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error closing Statement: " + st, e); } }
java
public static void closeStatement(final Statement st) { if (st == null) { return; } try { st.close(); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error closing Statement: " + st, e); } }
[ "public", "static", "void", "closeStatement", "(", "final", "Statement", "st", ")", "{", "if", "(", "st", "==", "null", ")", "{", "return", ";", "}", "try", "{", "st", ".", "close", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "i...
Close a Statement @param st a database Statement object
[ "Close", "a", "Statement" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java#L231-L241
57,889
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java
RDBMServices.rollback
public static final void rollback(final Connection connection) { try { connection.rollback(); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error rolling back Connection: " + connection, e); } }
java
public static final void rollback(final Connection connection) { try { connection.rollback(); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error rolling back Connection: " + connection, e); } }
[ "public", "static", "final", "void", "rollback", "(", "final", "Connection", "connection", ")", "{", "try", "{", "connection", ".", "rollback", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "if", "(", "LOG", ".", "isWarnEnabled", "(", "...
rollback unwanted changes to the database @param connection
[ "rollback", "unwanted", "changes", "to", "the", "database" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java#L284-L290
57,890
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java
RDBMServices.dbFlag
public static final boolean dbFlag(final String flag) { return flag != null && (FLAG_TRUE.equalsIgnoreCase(flag) || FLAG_TRUE_OTHER.equalsIgnoreCase(flag)); }
java
public static final boolean dbFlag(final String flag) { return flag != null && (FLAG_TRUE.equalsIgnoreCase(flag) || FLAG_TRUE_OTHER.equalsIgnoreCase(flag)); }
[ "public", "static", "final", "boolean", "dbFlag", "(", "final", "String", "flag", ")", "{", "return", "flag", "!=", "null", "&&", "(", "FLAG_TRUE", ".", "equalsIgnoreCase", "(", "flag", ")", "||", "FLAG_TRUE_OTHER", ".", "equalsIgnoreCase", "(", "flag", ")",...
Return boolean value of DB flag, "Y" or "N". @param flag either "Y" or "N" @return boolean true or false
[ "Return", "boolean", "value", "of", "DB", "flag", "Y", "or", "N", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java#L340-L343
57,891
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java
RDBMServices.sqlEscape
public static final String sqlEscape(final String sql) { if (sql == null) { return ""; } int primePos = sql.indexOf("'"); if (primePos == -1) { return sql; } final StringBuffer sb = new StringBuffer(sql.length() + 4); int startPos = 0; ...
java
public static final String sqlEscape(final String sql) { if (sql == null) { return ""; } int primePos = sql.indexOf("'"); if (primePos == -1) { return sql; } final StringBuffer sb = new StringBuffer(sql.length() + 4); int startPos = 0; ...
[ "public", "static", "final", "String", "sqlEscape", "(", "final", "String", "sql", ")", "{", "if", "(", "sql", "==", "null", ")", "{", "return", "\"\"", ";", "}", "int", "primePos", "=", "sql", ".", "indexOf", "(", "\"'\"", ")", ";", "if", "(", "pr...
Make a string SQL safe @param sql @return SQL safe string
[ "Make", "a", "string", "SQL", "safe" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/RDBMServices.java#L351-L374
57,892
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/spring/spel/PortalSpELServiceImpl.java
PortalSpELServiceImpl.getEvaluationContext
protected EvaluationContext getEvaluationContext(WebRequest request) { final HttpServletRequest httpRequest = this.portalRequestUtils.getOriginalPortalRequest(request); final IUserInstance userInstance = this.userInstanceManager.getUserInstance(httpRequest); final IPerson person ...
java
protected EvaluationContext getEvaluationContext(WebRequest request) { final HttpServletRequest httpRequest = this.portalRequestUtils.getOriginalPortalRequest(request); final IUserInstance userInstance = this.userInstanceManager.getUserInstance(httpRequest); final IPerson person ...
[ "protected", "EvaluationContext", "getEvaluationContext", "(", "WebRequest", "request", ")", "{", "final", "HttpServletRequest", "httpRequest", "=", "this", ".", "portalRequestUtils", ".", "getOriginalPortalRequest", "(", "request", ")", ";", "final", "IUserInstance", "...
Return a SpEL evaluation context for the supplied web request. @param request @return
[ "Return", "a", "SpEL", "evaluation", "context", "for", "the", "supplied", "web", "request", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/spring/spel/PortalSpELServiceImpl.java#L160-L170
57,893
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/PermissionManagerImpl.java
PermissionManagerImpl.getPermissions
@Override public IPermission[] getPermissions(String activity, String target) throws AuthorizationException { return getAuthorizationService().getPermissionsForOwner(getOwner(), activity, target); }
java
@Override public IPermission[] getPermissions(String activity, String target) throws AuthorizationException { return getAuthorizationService().getPermissionsForOwner(getOwner(), activity, target); }
[ "@", "Override", "public", "IPermission", "[", "]", "getPermissions", "(", "String", "activity", ",", "String", "target", ")", "throws", "AuthorizationException", "{", "return", "getAuthorizationService", "(", ")", ".", "getPermissionsForOwner", "(", "getOwner", "("...
Retrieve an array of IPermission objects based on the given parameters. Any null parameters will be ignored. @param activity String @param target String @return IPermission[] @exception AuthorizationException
[ "Retrieve", "an", "array", "of", "IPermission", "objects", "based", "on", "the", "given", "parameters", ".", "Any", "null", "parameters", "will", "be", "ignored", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/PermissionManagerImpl.java#L79-L83
57,894
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/dao/jpa/JpaPortletEntityDao.java
JpaPortletEntityDao.addFetches
protected void addFetches(final Root<PortletEntityImpl> definitionRoot) { definitionRoot .fetch(PortletEntityImpl_.portletPreferences, JoinType.LEFT) .fetch(PortletPreferencesImpl_.portletPreferences, JoinType.LEFT) .fetch(PortletPreferenceImpl_.values, JoinType.L...
java
protected void addFetches(final Root<PortletEntityImpl> definitionRoot) { definitionRoot .fetch(PortletEntityImpl_.portletPreferences, JoinType.LEFT) .fetch(PortletPreferencesImpl_.portletPreferences, JoinType.LEFT) .fetch(PortletPreferenceImpl_.values, JoinType.L...
[ "protected", "void", "addFetches", "(", "final", "Root", "<", "PortletEntityImpl", ">", "definitionRoot", ")", "{", "definitionRoot", ".", "fetch", "(", "PortletEntityImpl_", ".", "portletPreferences", ",", "JoinType", ".", "LEFT", ")", ".", "fetch", "(", "Portl...
Add all the fetches needed for completely loading the object graph
[ "Add", "all", "the", "fetches", "needed", "for", "completely", "loading", "the", "object", "graph" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/dao/jpa/JpaPortletEntityDao.java#L109-L115
57,895
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/BufferedXMLEventReader.java
BufferedXMLEventReader.mark
public void mark(int eventLimit) { this.eventLimit = eventLimit; // Buffering no events now, clear the buffer and buffered reader if (this.eventLimit == 0) { this.eventBuffer.clear(); this.bufferReader = null; } // Buffering limited set of events, lets tr...
java
public void mark(int eventLimit) { this.eventLimit = eventLimit; // Buffering no events now, clear the buffer and buffered reader if (this.eventLimit == 0) { this.eventBuffer.clear(); this.bufferReader = null; } // Buffering limited set of events, lets tr...
[ "public", "void", "mark", "(", "int", "eventLimit", ")", "{", "this", ".", "eventLimit", "=", "eventLimit", ";", "// Buffering no events now, clear the buffer and buffered reader", "if", "(", "this", ".", "eventLimit", "==", "0", ")", "{", "this", ".", "eventBuffe...
Start buffering events @param eventLimit the maximum number of events to buffer. -1 will buffer all events, 0 will buffer no events.
[ "Start", "buffering", "events" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/BufferedXMLEventReader.java#L112-L141
57,896
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/i18n/LocaleManager.java
LocaleManager.addToLocaleList
private void addToLocaleList(List localeList, List<Locale> locales) { if (locales != null) { for (Locale locale : locales) { if (locale != null && !localeList.contains(locale)) localeList.add(locale); } } }
java
private void addToLocaleList(List localeList, List<Locale> locales) { if (locales != null) { for (Locale locale : locales) { if (locale != null && !localeList.contains(locale)) localeList.add(locale); } } }
[ "private", "void", "addToLocaleList", "(", "List", "localeList", ",", "List", "<", "Locale", ">", "locales", ")", "{", "if", "(", "locales", "!=", "null", ")", "{", "for", "(", "Locale", "locale", ":", "locales", ")", "{", "if", "(", "locale", "!=", ...
Add locales to the locale list if they aren't in there already
[ "Add", "locales", "to", "the", "locale", "list", "if", "they", "aren", "t", "in", "there", "already" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/i18n/LocaleManager.java#L103-L109
57,897
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/PermissionHelper.java
PermissionHelper.permissionTargetIdForPortletDefinition
public static String permissionTargetIdForPortletDefinition( final IPortletDefinition portletDefinition) { Validate.notNull( portletDefinition, "Cannot compute permission target ID for a null portlet definition."); final String portletPublicationId = ...
java
public static String permissionTargetIdForPortletDefinition( final IPortletDefinition portletDefinition) { Validate.notNull( portletDefinition, "Cannot compute permission target ID for a null portlet definition."); final String portletPublicationId = ...
[ "public", "static", "String", "permissionTargetIdForPortletDefinition", "(", "final", "IPortletDefinition", "portletDefinition", ")", "{", "Validate", ".", "notNull", "(", "portletDefinition", ",", "\"Cannot compute permission target ID for a null portlet definition.\"", ")", ";"...
Static utility method computing the permission target ID for a portlet definition. @param portletDefinition a portlet definition @return String permission target ID for the portlet definition. @throws IllegalArgumentException if portletDefinition is null @since 4.1
[ "Static", "utility", "method", "computing", "the", "permission", "target", "ID", "for", "a", "portlet", "definition", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/PermissionHelper.java#L35-L46
57,898
Jasig/uPortal
uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java
JavaManagementServerBean.startServer
public void startServer() { if (!System.getProperties().containsKey(JMX_ENABLED_PROPERTY)) { this.logger.info( "System Property '" + JMX_ENABLED_PROPERTY + "' is not set, skipping initialization."); return; ...
java
public void startServer() { if (!System.getProperties().containsKey(JMX_ENABLED_PROPERTY)) { this.logger.info( "System Property '" + JMX_ENABLED_PROPERTY + "' is not set, skipping initialization."); return; ...
[ "public", "void", "startServer", "(", ")", "{", "if", "(", "!", "System", ".", "getProperties", "(", ")", ".", "containsKey", "(", "JMX_ENABLED_PROPERTY", ")", ")", "{", "this", ".", "logger", ".", "info", "(", "\"System Property '\"", "+", "JMX_ENABLED_PROP...
Starts the RMI server and JMX connector server
[ "Starts", "the", "RMI", "server", "and", "JMX", "connector", "server" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java#L135-L215
57,899
Jasig/uPortal
uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java
JavaManagementServerBean.stopServer
public void stopServer() { if (this.jmxConnectorServer == null) { this.logger.info("No JMXConnectorServer to stop"); return; } try { try { this.jmxConnectorServer.stop(); this.logger.info("Stopped JMXConnectorServer"); ...
java
public void stopServer() { if (this.jmxConnectorServer == null) { this.logger.info("No JMXConnectorServer to stop"); return; } try { try { this.jmxConnectorServer.stop(); this.logger.info("Stopped JMXConnectorServer"); ...
[ "public", "void", "stopServer", "(", ")", "{", "if", "(", "this", ".", "jmxConnectorServer", "==", "null", ")", "{", "this", ".", "logger", ".", "info", "(", "\"No JMXConnectorServer to stop\"", ")", ";", "return", ";", "}", "try", "{", "try", "{", "this...
Stops the JMX connector server and RMI server
[ "Stops", "the", "JMX", "connector", "server", "and", "RMI", "server" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java#L218-L240