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,900
Jasig/uPortal
uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java
JavaManagementServerBean.calculatePortTwo
protected int calculatePortTwo(final int portOne) { int portTwo = this.portTwo; if (portTwo <= 0) { portTwo = portOne + 1; } if (this.logger.isDebugEnabled()) { this.logger.debug("Using " + portTwo + " for portTwo."); } return portTwo; }
java
protected int calculatePortTwo(final int portOne) { int portTwo = this.portTwo; if (portTwo <= 0) { portTwo = portOne + 1; } if (this.logger.isDebugEnabled()) { this.logger.debug("Using " + portTwo + " for portTwo."); } return portTwo; }
[ "protected", "int", "calculatePortTwo", "(", "final", "int", "portOne", ")", "{", "int", "portTwo", "=", "this", ".", "portTwo", ";", "if", "(", "portTwo", "<=", "0", ")", "{", "portTwo", "=", "portOne", "+", "1", ";", "}", "if", "(", "this", ".", ...
Get the second rmi port from the init parameters or calculate it @param portOne Base port to calculate the second port from if needed. @return The second port
[ "Get", "the", "second", "rmi", "port", "from", "the", "init", "parameters", "or", "calculate", "it" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java#L248-L260
57,901
Jasig/uPortal
uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java
JavaManagementServerBean.getServiceUrl
protected JMXServiceURL getServiceUrl(final int portOne, int portTwo) { final String jmxHost; if (this.host == null) { final InetAddress inetHost; try { inetHost = InetAddress.getLocalHost(); } catch (UnknownHostException uhe) { throw n...
java
protected JMXServiceURL getServiceUrl(final int portOne, int portTwo) { final String jmxHost; if (this.host == null) { final InetAddress inetHost; try { inetHost = InetAddress.getLocalHost(); } catch (UnknownHostException uhe) { throw n...
[ "protected", "JMXServiceURL", "getServiceUrl", "(", "final", "int", "portOne", ",", "int", "portTwo", ")", "{", "final", "String", "jmxHost", ";", "if", "(", "this", ".", "host", "==", "null", ")", "{", "final", "InetAddress", "inetHost", ";", "try", "{", ...
Generates the JMXServiceURL for the two specified ports. @return A JMXServiceURL for this host using the two specified ports. @throws IllegalStateException If localhost cannot be resolved or if the JMXServiceURL is malformed.
[ "Generates", "the", "JMXServiceURL", "for", "the", "two", "specified", "ports", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java#L269-L309
57,902
Jasig/uPortal
uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java
JavaManagementServerBean.getJmxServerEnvironment
protected Map<String, Object> getJmxServerEnvironment() { final Map<String, Object> jmxEnv = new HashMap<String, Object>(); // SSL Options final String enableSSL = System.getProperty(JMX_SSL_PROPERTY); if (Boolean.getBoolean(enableSSL)) { SslRMIClientSocketFactory csf = new ...
java
protected Map<String, Object> getJmxServerEnvironment() { final Map<String, Object> jmxEnv = new HashMap<String, Object>(); // SSL Options final String enableSSL = System.getProperty(JMX_SSL_PROPERTY); if (Boolean.getBoolean(enableSSL)) { SslRMIClientSocketFactory csf = new ...
[ "protected", "Map", "<", "String", ",", "Object", ">", "getJmxServerEnvironment", "(", ")", "{", "final", "Map", "<", "String", ",", "Object", ">", "jmxEnv", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "// SSL Options", "fina...
Generates the environment Map for the JMX server based on system properties @return A non-null Map of environment settings for the JMX server.
[ "Generates", "the", "environment", "Map", "for", "the", "JMX", "server", "based", "on", "system", "properties" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-jmx/src/main/java/org/apereo/portal/jmx/JavaManagementServerBean.java#L316-L346
57,903
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/aggr/JpaBaseAggregationDao.java
JpaBaseAggregationDao.collectAllGroupsFromParams
protected final Set<AggregatedGroupMapping> collectAllGroupsFromParams( Set<K> keys, AggregatedGroupMapping[] aggregatedGroupMappings) { final Builder<AggregatedGroupMapping> groupsBuilder = ImmutableSet.<AggregatedGroupMapping>builder(); // Add all groups from the keyset ...
java
protected final Set<AggregatedGroupMapping> collectAllGroupsFromParams( Set<K> keys, AggregatedGroupMapping[] aggregatedGroupMappings) { final Builder<AggregatedGroupMapping> groupsBuilder = ImmutableSet.<AggregatedGroupMapping>builder(); // Add all groups from the keyset ...
[ "protected", "final", "Set", "<", "AggregatedGroupMapping", ">", "collectAllGroupsFromParams", "(", "Set", "<", "K", ">", "keys", ",", "AggregatedGroupMapping", "[", "]", "aggregatedGroupMappings", ")", "{", "final", "Builder", "<", "AggregatedGroupMapping", ">", "g...
and set in query.
[ "and", "set", "in", "query", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/JpaBaseAggregationDao.java#L411-L422
57,904
Jasig/uPortal
uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/login/LoginPortletHelper.java
LoginPortletHelper.getSelectedProfile
public String getSelectedProfile(PortletRequest request) { // if a profile selection exists in the session, use it final PortletSession session = request.getPortletSession(); String profileName = (String) session.getAttribute( ...
java
public String getSelectedProfile(PortletRequest request) { // if a profile selection exists in the session, use it final PortletSession session = request.getPortletSession(); String profileName = (String) session.getAttribute( ...
[ "public", "String", "getSelectedProfile", "(", "PortletRequest", "request", ")", "{", "// if a profile selection exists in the session, use it", "final", "PortletSession", "session", "=", "request", ".", "getPortletSession", "(", ")", ";", "String", "profileName", "=", "(...
Get the profile that should be pre-selected in the local login form. @param request @return
[ "Get", "the", "profile", "that", "should", "be", "pre", "-", "selected", "in", "the", "local", "login", "form", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/login/LoginPortletHelper.java#L69-L99
57,905
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/url/xml/XsltPortalUrlProvider.java
XsltPortalUrlProvider.addParameter
public static void addParameter(IUrlBuilder urlBuilder, String name, String value) { urlBuilder.addParameter(name, value); }
java
public static void addParameter(IUrlBuilder urlBuilder, String name, String value) { urlBuilder.addParameter(name, value); }
[ "public", "static", "void", "addParameter", "(", "IUrlBuilder", "urlBuilder", ",", "String", "name", ",", "String", "value", ")", "{", "urlBuilder", ".", "addParameter", "(", "name", ",", "value", ")", ";", "}" ]
Needed due to compile-time type checking limitations of the XSLTC compiler
[ "Needed", "due", "to", "compile", "-", "time", "type", "checking", "limitations", "of", "the", "XSLTC", "compiler" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/url/xml/XsltPortalUrlProvider.java#L50-L52
57,906
Jasig/uPortal
uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java
TenantService.nameExists
public boolean nameExists(final String name) { boolean rslt = false; // default try { final ITenant tenant = this.tenantDao.getTenantByName(name); rslt = tenant != null; } catch (IllegalArgumentException iae) { // This exception is completely fine; it simply ...
java
public boolean nameExists(final String name) { boolean rslt = false; // default try { final ITenant tenant = this.tenantDao.getTenantByName(name); rslt = tenant != null; } catch (IllegalArgumentException iae) { // This exception is completely fine; it simply ...
[ "public", "boolean", "nameExists", "(", "final", "String", "name", ")", "{", "boolean", "rslt", "=", "false", ";", "// default", "try", "{", "final", "ITenant", "tenant", "=", "this", ".", "tenantDao", ".", "getTenantByName", "(", "name", ")", ";", "rslt",...
Returns true if a tenant with the specified name exists, otherwise false. @since 4.3
[ "Returns", "true", "if", "a", "tenant", "with", "the", "specified", "name", "exists", "otherwise", "false", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java#L310-L321
57,907
Jasig/uPortal
uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java
TenantService.fnameExists
public boolean fnameExists(final String fname) { boolean rslt = false; // default try { final ITenant tenant = getTenantByFName(fname); rslt = tenant != null; } catch (IllegalArgumentException iae) { // This exception is completely fine; it simply ...
java
public boolean fnameExists(final String fname) { boolean rslt = false; // default try { final ITenant tenant = getTenantByFName(fname); rslt = tenant != null; } catch (IllegalArgumentException iae) { // This exception is completely fine; it simply ...
[ "public", "boolean", "fnameExists", "(", "final", "String", "fname", ")", "{", "boolean", "rslt", "=", "false", ";", "// default", "try", "{", "final", "ITenant", "tenant", "=", "getTenantByFName", "(", "fname", ")", ";", "rslt", "=", "tenant", "!=", "null...
Returns true if a tenant with the specified fname exists, otherwise false. @since 4.3
[ "Returns", "true", "if", "a", "tenant", "with", "the", "specified", "fname", "exists", "otherwise", "false", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java#L328-L339
57,908
Jasig/uPortal
uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java
TenantService.validateName
public void validateName(final String name) { Validate.validState( TENANT_NAME_VALIDATOR_PATTERN.matcher(name).matches(), "Invalid tenant name '%s' -- names must match %s .", name, TENANT_NAME_VALIDATOR_REGEX); }
java
public void validateName(final String name) { Validate.validState( TENANT_NAME_VALIDATOR_PATTERN.matcher(name).matches(), "Invalid tenant name '%s' -- names must match %s .", name, TENANT_NAME_VALIDATOR_REGEX); }
[ "public", "void", "validateName", "(", "final", "String", "name", ")", "{", "Validate", ".", "validState", "(", "TENANT_NAME_VALIDATOR_PATTERN", ".", "matcher", "(", "name", ")", ".", "matches", "(", ")", ",", "\"Invalid tenant name '%s' -- names must match %s .\"", ...
Throws an exception if the specified String isn't a valid tenant name. @since 4.3
[ "Throws", "an", "exception", "if", "the", "specified", "String", "isn", "t", "a", "valid", "tenant", "name", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java#L346-L352
57,909
Jasig/uPortal
uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java
TenantService.validateFname
public void validateFname(final String fname) { Validate.validState( TENANT_FNAME_VALIDATOR_PATTERN.matcher(fname).matches(), "Invalid tenant fname '%s' -- fnames must match %s .", fname, TENANT_FNAME_VALIDATOR_REGEX); }
java
public void validateFname(final String fname) { Validate.validState( TENANT_FNAME_VALIDATOR_PATTERN.matcher(fname).matches(), "Invalid tenant fname '%s' -- fnames must match %s .", fname, TENANT_FNAME_VALIDATOR_REGEX); }
[ "public", "void", "validateFname", "(", "final", "String", "fname", ")", "{", "Validate", ".", "validState", "(", "TENANT_FNAME_VALIDATOR_PATTERN", ".", "matcher", "(", "fname", ")", ".", "matches", "(", ")", ",", "\"Invalid tenant fname '%s' -- fnames must match %s ...
Throws an exception if the specified String isn't a valid tenant fname. @since 4.3
[ "Throws", "an", "exception", "if", "the", "specified", "String", "isn", "t", "a", "valid", "tenant", "fname", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tenants/src/main/java/org/apereo/portal/tenants/TenantService.java#L359-L365
57,910
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/DynamicRespondrSkinConfigController.java
DynamicRespondrSkinConfigController.showConfigPage
@RenderMapping public String showConfigPage( RenderRequest request, PortletPreferences preferences, Model model) { // Add skin names SortedSet<String> skins = skinService.getSkinNames(request); model.addAttribute("skinNames", skins); // Get the list of preferences and ad...
java
@RenderMapping public String showConfigPage( RenderRequest request, PortletPreferences preferences, Model model) { // Add skin names SortedSet<String> skins = skinService.getSkinNames(request); model.addAttribute("skinNames", skins); // Get the list of preferences and ad...
[ "@", "RenderMapping", "public", "String", "showConfigPage", "(", "RenderRequest", "request", ",", "PortletPreferences", "preferences", ",", "Model", "model", ")", "{", "// Add skin names", "SortedSet", "<", "String", ">", "skins", "=", "skinService", ".", "getSkinNa...
Display a form to manage skin choices.
[ "Display", "a", "form", "to", "manage", "skin", "choices", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/DynamicRespondrSkinConfigController.java#L98-L115
57,911
Jasig/uPortal
uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStoreFactory.java
GrouperEntityGroupStoreFactory.getGroupStore
public static synchronized IEntityGroupStore getGroupStore() { if (groupStore == null) { groupStore = new GrouperEntityGroupStore(); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("returning IEntityGroupStore: " + groupStore); } return groupStore; }
java
public static synchronized IEntityGroupStore getGroupStore() { if (groupStore == null) { groupStore = new GrouperEntityGroupStore(); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("returning IEntityGroupStore: " + groupStore); } return groupStore; }
[ "public", "static", "synchronized", "IEntityGroupStore", "getGroupStore", "(", ")", "{", "if", "(", "groupStore", "==", "null", ")", "{", "groupStore", "=", "new", "GrouperEntityGroupStore", "(", ")", ";", "}", "if", "(", "LOGGER", ".", "isDebugEnabled", "(", ...
returns the instance of GrouperEntityGroupStore. @return The instance. @throws GroupsException if there is an error @see IEntityGroupStoreFactory #newGroupStore()
[ "returns", "the", "instance", "of", "GrouperEntityGroupStore", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStoreFactory.java#L39-L47
57,912
Jasig/uPortal
uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStoreFactory.java
GrouperEntityGroupStoreFactory.newGroupStore
@Override public IEntityGroupStore newGroupStore(ComponentGroupServiceDescriptor svcDescriptor) throws GroupsException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Creating New Grouper IEntityGroupStore"); } return getGroupStore(); }
java
@Override public IEntityGroupStore newGroupStore(ComponentGroupServiceDescriptor svcDescriptor) throws GroupsException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Creating New Grouper IEntityGroupStore"); } return getGroupStore(); }
[ "@", "Override", "public", "IEntityGroupStore", "newGroupStore", "(", "ComponentGroupServiceDescriptor", "svcDescriptor", ")", "throws", "GroupsException", "{", "if", "(", "LOGGER", ".", "isDebugEnabled", "(", ")", ")", "{", "LOGGER", ".", "debug", "(", "\"Creating ...
Construction with parameters. @param svcDescriptor The parameters. @return The instance. @throws GroupsException if there is an error @see IEntityGroupStoreFactory #newGroupStore(org.apereo.portal.groups.ComponentGroupServiceDescriptor)
[ "Construction", "with", "parameters", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStoreFactory.java#L73-L80
57,913
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceService.java
MarketplaceService.onApplicationEvent
@Override public void onApplicationEvent(LoginEvent loginEvent) { if (enableMarketplacePreloading) { final IPerson person = loginEvent.getPerson(); /* * Passing an empty collection pre-loads an unfiltered collection; * instances of PortletMarketplace that sp...
java
@Override public void onApplicationEvent(LoginEvent loginEvent) { if (enableMarketplacePreloading) { final IPerson person = loginEvent.getPerson(); /* * Passing an empty collection pre-loads an unfiltered collection; * instances of PortletMarketplace that sp...
[ "@", "Override", "public", "void", "onApplicationEvent", "(", "LoginEvent", "loginEvent", ")", "{", "if", "(", "enableMarketplacePreloading", ")", "{", "final", "IPerson", "person", "=", "loginEvent", ".", "getPerson", "(", ")", ";", "/*\n * Passing an e...
Handle the portal LoginEvent. If marketplace caching is enabled, will preload marketplace entries for the currently logged in user. @param loginEvent the login event.
[ "Handle", "the", "portal", "LoginEvent", ".", "If", "marketplace", "caching", "is", "enabled", "will", "preload", "marketplace", "entries", "for", "the", "currently", "logged", "in", "user", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceService.java#L108-L120
57,914
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceService.java
MarketplaceService.collectSpecifiedAndDescendantCategories
private void collectSpecifiedAndDescendantCategories( PortletCategory specified, Set<PortletCategory> gathered) { final Set<PortletCategory> children = portletCategoryRegistry.getAllChildCategories(specified); for (PortletCategory child : children) { collectSpecif...
java
private void collectSpecifiedAndDescendantCategories( PortletCategory specified, Set<PortletCategory> gathered) { final Set<PortletCategory> children = portletCategoryRegistry.getAllChildCategories(specified); for (PortletCategory child : children) { collectSpecif...
[ "private", "void", "collectSpecifiedAndDescendantCategories", "(", "PortletCategory", "specified", ",", "Set", "<", "PortletCategory", ">", "gathered", ")", "{", "final", "Set", "<", "PortletCategory", ">", "children", "=", "portletCategoryRegistry", ".", "getAllChildCa...
Called recursively to gather all specified categories and descendants
[ "Called", "recursively", "to", "gather", "all", "specified", "categories", "and", "descendants" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceService.java#L365-L373
57,915
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceService.java
MarketplaceService.mayAddPortlet
@Override @RequestCache public boolean mayAddPortlet(final IPerson user, final IPortletDefinition portletDefinition) { Validate.notNull(user, "Cannot determine if null users can browse portlets."); Validate.notNull( portletDefinition, "Cannot determine whether a u...
java
@Override @RequestCache public boolean mayAddPortlet(final IPerson user, final IPortletDefinition portletDefinition) { Validate.notNull(user, "Cannot determine if null users can browse portlets."); Validate.notNull( portletDefinition, "Cannot determine whether a u...
[ "@", "Override", "@", "RequestCache", "public", "boolean", "mayAddPortlet", "(", "final", "IPerson", "user", ",", "final", "IPortletDefinition", "portletDefinition", ")", "{", "Validate", ".", "notNull", "(", "user", ",", "\"Cannot determine if null users can browse por...
Answers whether the given user may add the portlet to their layout @param user a non-null IPerson who might be permitted to add @param portletDefinition a non-null portlet definition @return true if permitted, false otherwise @throws IllegalArgumentException if user is null @throws IllegalArgumentException if portletD...
[ "Answers", "whether", "the", "given", "user", "may", "add", "the", "portlet", "to", "their", "layout" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceService.java#L385-L398
57,916
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/ClusterMutex.java
ClusterMutex.lock
void lock(String serverId) { Assert.notNull(serverId); if (this.locked) { throw new IllegalStateException("Cannot lock already locked mutex: " + this); } this.locked = true; this.lockStart = new Date(); this.lastUpdate = this.lockStart; this.serverId =...
java
void lock(String serverId) { Assert.notNull(serverId); if (this.locked) { throw new IllegalStateException("Cannot lock already locked mutex: " + this); } this.locked = true; this.lockStart = new Date(); this.lastUpdate = this.lockStart; this.serverId =...
[ "void", "lock", "(", "String", "serverId", ")", "{", "Assert", ".", "notNull", "(", "serverId", ")", ";", "if", "(", "this", ".", "locked", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Cannot lock already locked mutex: \"", "+", "this", ")", ";...
Mark the mutex as locked by the specific server
[ "Mark", "the", "mutex", "as", "locked", "by", "the", "specific", "server" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/ClusterMutex.java#L135-L144
57,917
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/UserPrefsHandler.java
UserPrefsHandler.setUserPreference
public static void setUserPreference( Element compViewNode, String attributeName, IPerson person) { Document doc = compViewNode.getOwnerDocument(); NodeList nodes = doc.getElementsByTagName("layout"); boolean layoutOwner = false; Attr attrib; Element e; // Se...
java
public static void setUserPreference( Element compViewNode, String attributeName, IPerson person) { Document doc = compViewNode.getOwnerDocument(); NodeList nodes = doc.getElementsByTagName("layout"); boolean layoutOwner = false; Attr attrib; Element e; // Se...
[ "public", "static", "void", "setUserPreference", "(", "Element", "compViewNode", ",", "String", "attributeName", ",", "IPerson", "person", ")", "{", "Document", "doc", "=", "compViewNode", ".", "getOwnerDocument", "(", ")", ";", "NodeList", "nodes", "=", "doc", ...
Records changes made to element attributes that are defined as being part of a user's user preferences object and not part of the layout. These attributes are specified in the .sdf files for the structure and theme stylesheets. The value is not stored in the layout but the loading of user prefs joins to a layout struct...
[ "Records", "changes", "made", "to", "element", "attributes", "that", "are", "defined", "as", "being", "part", "of", "a", "user", "s", "user", "preferences", "object", "and", "not", "part", "of", "the", "layout", ".", "These", "attributes", "are", "specified"...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/UserPrefsHandler.java#L42-L69
57,918
Jasig/uPortal
uPortal-persondir/src/main/java/org/apereo/portal/persondir/LocalAccountPersonAttributeDao.java
LocalAccountPersonAttributeDao.getPossibleUserAttributeNames
@Override public Set<String> getPossibleUserAttributeNames() { final Set<String> names = new HashSet<String>(); names.addAll(this.possibleUserAttributes); names.addAll(localAccountDao.getCurrentAttributeNames()); names.add(displayNameAttribute); return names; }
java
@Override public Set<String> getPossibleUserAttributeNames() { final Set<String> names = new HashSet<String>(); names.addAll(this.possibleUserAttributes); names.addAll(localAccountDao.getCurrentAttributeNames()); names.add(displayNameAttribute); return names; }
[ "@", "Override", "public", "Set", "<", "String", ">", "getPossibleUserAttributeNames", "(", ")", "{", "final", "Set", "<", "String", ">", "names", "=", "new", "HashSet", "<", "String", ">", "(", ")", ";", "names", ".", "addAll", "(", "this", ".", "poss...
Return the list of all possible attribute names. This implementation queries the database to provide a list of all mapped attribute names, plus all attribute keys currently in-use in the database. @return Set
[ "Return", "the", "list", "of", "all", "possible", "attribute", "names", ".", "This", "implementation", "queries", "the", "database", "to", "provide", "a", "list", "of", "all", "mapped", "attribute", "names", "plus", "all", "attribute", "keys", "currently", "in...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-persondir/src/main/java/org/apereo/portal/persondir/LocalAccountPersonAttributeDao.java#L130-L137
57,919
Jasig/uPortal
uPortal-persondir/src/main/java/org/apereo/portal/persondir/LocalAccountPersonAttributeDao.java
LocalAccountPersonAttributeDao.getAvailableQueryAttributes
@Override public Set<String> getAvailableQueryAttributes() { if (this.queryAttributeMapping == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(this.queryAttributeMapping.keySet()); }
java
@Override public Set<String> getAvailableQueryAttributes() { if (this.queryAttributeMapping == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(this.queryAttributeMapping.keySet()); }
[ "@", "Override", "public", "Set", "<", "String", ">", "getAvailableQueryAttributes", "(", ")", "{", "if", "(", "this", ".", "queryAttributeMapping", "==", "null", ")", "{", "return", "Collections", ".", "emptySet", "(", ")", ";", "}", "return", "Collections"...
Return the list of all possible query attributes. This implementation queries the database to provide a list of all mapped query attribute names, plus all attribute keys currently in-use in the database. @return Set
[ "Return", "the", "list", "of", "all", "possible", "query", "attributes", ".", "This", "implementation", "queries", "the", "database", "to", "provide", "a", "list", "of", "all", "mapped", "query", "attribute", "names", "plus", "all", "attribute", "keys", "curre...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-persondir/src/main/java/org/apereo/portal/persondir/LocalAccountPersonAttributeDao.java#L146-L153
57,920
Jasig/uPortal
uPortal-persondir/src/main/java/org/apereo/portal/persondir/LocalAccountPersonAttributeDao.java
LocalAccountPersonAttributeDao.mapPersonAttributes
protected IPersonAttributes mapPersonAttributes(final ILocalAccountPerson person) { final Map<String, List<Object>> mappedAttributes = new LinkedHashMap<String, List<Object>>(); mappedAttributes.putAll(person.getAttributes()); // map the user's username to the portal's username...
java
protected IPersonAttributes mapPersonAttributes(final ILocalAccountPerson person) { final Map<String, List<Object>> mappedAttributes = new LinkedHashMap<String, List<Object>>(); mappedAttributes.putAll(person.getAttributes()); // map the user's username to the portal's username...
[ "protected", "IPersonAttributes", "mapPersonAttributes", "(", "final", "ILocalAccountPerson", "person", ")", "{", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "mappedAttributes", "=", "new", "LinkedHashMap", "<", "String", ",", "List", "<...
This implementation uses the result attribute mapping to supplement, rather than replace, the attributes returned from the database.
[ "This", "implementation", "uses", "the", "result", "attribute", "mapping", "to", "supplement", "rather", "than", "replace", "the", "attributes", "returned", "from", "the", "database", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-persondir/src/main/java/org/apereo/portal/persondir/LocalAccountPersonAttributeDao.java#L225-L296
57,921
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceCompositeGroupService.java
ReferenceCompositeGroupService.searchForGroups
@Override public EntityIdentifier[] searchForGroups( String query, IGroupConstants.SearchMethod method, Class leaftype) throws GroupsException { Set allIds = new HashSet(); for (Iterator services = getComponentServices().values().iterator(); services.hasNext(); ) { ...
java
@Override public EntityIdentifier[] searchForGroups( String query, IGroupConstants.SearchMethod method, Class leaftype) throws GroupsException { Set allIds = new HashSet(); for (Iterator services = getComponentServices().values().iterator(); services.hasNext(); ) { ...
[ "@", "Override", "public", "EntityIdentifier", "[", "]", "searchForGroups", "(", "String", "query", ",", "IGroupConstants", ".", "SearchMethod", "method", ",", "Class", "leaftype", ")", "throws", "GroupsException", "{", "Set", "allIds", "=", "new", "HashSet", "(...
Find EntityIdentifiers for groups whose name matches the query string according to the specified method and matches the provided leaf type
[ "Find", "EntityIdentifiers", "for", "groups", "whose", "name", "matches", "the", "query", "string", "according", "to", "the", "specified", "method", "and", "matches", "the", "provided", "leaf", "type" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceCompositeGroupService.java#L258-L278
57,922
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceEntityGroupStoreFactory.java
ReferenceEntityGroupStoreFactory.newInstance
public IEntityGroupStore newInstance() throws GroupsException { try { return new RDBMEntityGroupStore(); } catch (Exception ex) { log.error("ReferenceEntityGroupStoreFactory.newInstance(): " + ex); throw new GroupsException(ex); } }
java
public IEntityGroupStore newInstance() throws GroupsException { try { return new RDBMEntityGroupStore(); } catch (Exception ex) { log.error("ReferenceEntityGroupStoreFactory.newInstance(): " + ex); throw new GroupsException(ex); } }
[ "public", "IEntityGroupStore", "newInstance", "(", ")", "throws", "GroupsException", "{", "try", "{", "return", "new", "RDBMEntityGroupStore", "(", ")", ";", "}", "catch", "(", "Exception", "ex", ")", "{", "log", ".", "error", "(", "\"ReferenceEntityGroupStoreFa...
Return an instance of the group store implementation. @return IEntityGroupStore @exception GroupsException
[ "Return", "an", "instance", "of", "the", "group", "store", "implementation", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceEntityGroupStoreFactory.java#L56-L63
57,923
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/rendering/AnalyticsIncorporationComponent.java
AnalyticsIncorporationComponent.initMapper
private void initMapper() { final BeanPropertyFilter filterOutAllExcept = SimpleBeanPropertyFilter.filterOutAllExcept("fname", "executionTimeNano"); this.mapper.addMixInAnnotations( PortalEvent.class, PortletRenderExecutionEventFilterMixIn.class); final SimpleFilt...
java
private void initMapper() { final BeanPropertyFilter filterOutAllExcept = SimpleBeanPropertyFilter.filterOutAllExcept("fname", "executionTimeNano"); this.mapper.addMixInAnnotations( PortalEvent.class, PortletRenderExecutionEventFilterMixIn.class); final SimpleFilt...
[ "private", "void", "initMapper", "(", ")", "{", "final", "BeanPropertyFilter", "filterOutAllExcept", "=", "SimpleBeanPropertyFilter", ".", "filterOutAllExcept", "(", "\"fname\"", ",", "\"executionTimeNano\"", ")", ";", "this", ".", "mapper", ".", "addMixInAnnotations", ...
Configure the ObjectMapper to filter out all fields on the events except those that are actually needed for the analytics reporting
[ "Configure", "the", "ObjectMapper", "to", "filter", "out", "all", "fields", "on", "the", "events", "except", "those", "that", "are", "actually", "needed", "for", "the", "analytics", "reporting" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/rendering/AnalyticsIncorporationComponent.java#L85-L94
57,924
Jasig/uPortal
uPortal-spring/src/main/java/org/springframework/context/support/PortalPropertySourcesPlaceholderConfigurer.java
PortalPropertySourcesPlaceholderConfigurer.mergeProperties
@Override protected Properties mergeProperties() throws IOException { Properties rslt = null; /* * If properties file encryption is used in this deployment, the * encryption key will be made available to the application as an * environment variable called UP_JASYPT_KEY. ...
java
@Override protected Properties mergeProperties() throws IOException { Properties rslt = null; /* * If properties file encryption is used in this deployment, the * encryption key will be made available to the application as an * environment variable called UP_JASYPT_KEY. ...
[ "@", "Override", "protected", "Properties", "mergeProperties", "(", ")", "throws", "IOException", "{", "Properties", "rslt", "=", "null", ";", "/*\n * If properties file encryption is used in this deployment, the\n * encryption key will be made available to the applicat...
Override PropertiesLoaderSupport.mergeProprties in order to slip in a properly-configured EncryptableProperties instance, allowing us to encrypt property values at rest.
[ "Override", "PropertiesLoaderSupport", ".", "mergeProprties", "in", "order", "to", "slip", "in", "a", "properly", "-", "configured", "EncryptableProperties", "instance", "allowing", "us", "to", "encrypt", "property", "values", "at", "rest", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/springframework/context/support/PortalPropertySourcesPlaceholderConfigurer.java#L147-L205
57,925
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/RandomTokenGenerator.java
RandomTokenGenerator.generateRandomToken
public String generateRandomToken(int length) { final char[] token = new char[length]; for (int i = 0; i < length; i++) { final int tokenIndex = random.nextInt(this.tokenChars.length); token[i] = tokenChars[tokenIndex]; } return new String(token); }
java
public String generateRandomToken(int length) { final char[] token = new char[length]; for (int i = 0; i < length; i++) { final int tokenIndex = random.nextInt(this.tokenChars.length); token[i] = tokenChars[tokenIndex]; } return new String(token); }
[ "public", "String", "generateRandomToken", "(", "int", "length", ")", "{", "final", "char", "[", "]", "token", "=", "new", "char", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "fina...
Generate a random token of the specified length
[ "Generate", "a", "random", "token", "of", "the", "specified", "length" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/RandomTokenGenerator.java#L66-L75
57,926
Jasig/uPortal
uPortal-content/uPortal-content-portlet/src/main/java/org/apereo/portal/portlet/dao/jpa/PortletDefinitionImpl.java
PortletDefinitionImpl.init
@PostLoad @PostPersist @PostUpdate @PostRemove private void init() { if (this.internalPortletDefinitionId != -1 && (this.portletDefinitionId == null || this.portletDefinitionId.getLongId() != this.internalPortletDefinitionId...
java
@PostLoad @PostPersist @PostUpdate @PostRemove private void init() { if (this.internalPortletDefinitionId != -1 && (this.portletDefinitionId == null || this.portletDefinitionId.getLongId() != this.internalPortletDefinitionId...
[ "@", "PostLoad", "@", "PostPersist", "@", "PostUpdate", "@", "PostRemove", "private", "void", "init", "(", ")", "{", "if", "(", "this", ".", "internalPortletDefinitionId", "!=", "-", "1", "&&", "(", "this", ".", "portletDefinitionId", "==", "null", "||", "...
Used to initialize fields after persistence actions.
[ "Used", "to", "initialize", "fields", "after", "persistence", "actions", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-content/uPortal-content-portlet/src/main/java/org/apereo/portal/portlet/dao/jpa/PortletDefinitionImpl.java#L210-L222
57,927
Jasig/uPortal
uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/UserLayoutHelperImpl.java
UserLayoutHelperImpl.resetUserLayoutAllProfiles
@BasePortalJpaDao.PortalTransactional public void resetUserLayoutAllProfiles(final IPersonAttributes personAttributes) { final IPerson person = PersonFactory.createRestrictedPerson(); person.setAttributes(personAttributes.getAttributes()); // get the integer uid into the person object withou...
java
@BasePortalJpaDao.PortalTransactional public void resetUserLayoutAllProfiles(final IPersonAttributes personAttributes) { final IPerson person = PersonFactory.createRestrictedPerson(); person.setAttributes(personAttributes.getAttributes()); // get the integer uid into the person object withou...
[ "@", "BasePortalJpaDao", ".", "PortalTransactional", "public", "void", "resetUserLayoutAllProfiles", "(", "final", "IPersonAttributes", "personAttributes", ")", "{", "final", "IPerson", "person", "=", "PersonFactory", ".", "createRestrictedPerson", "(", ")", ";", "perso...
Resets a users layout for all the users profiles @param personAttributes
[ "Resets", "a", "users", "layout", "for", "all", "the", "users", "profiles" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/UserLayoutHelperImpl.java#L82-L95
57,928
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/dao/jpa/JpaMarketplaceRatingDao.java
JpaMarketplaceRatingDao.createOrUpdateRating
@Override @PortalTransactional public IMarketplaceRating createOrUpdateRating( IMarketplaceRating marketplaceRatingImplementation) { Validate.notNull(marketplaceRatingImplementation, "MarketplaceRatingImpl must not be null"); final EntityManager entityManager = this.getEntityManager(...
java
@Override @PortalTransactional public IMarketplaceRating createOrUpdateRating( IMarketplaceRating marketplaceRatingImplementation) { Validate.notNull(marketplaceRatingImplementation, "MarketplaceRatingImpl must not be null"); final EntityManager entityManager = this.getEntityManager(...
[ "@", "Override", "@", "PortalTransactional", "public", "IMarketplaceRating", "createOrUpdateRating", "(", "IMarketplaceRating", "marketplaceRatingImplementation", ")", "{", "Validate", ".", "notNull", "(", "marketplaceRatingImplementation", ",", "\"MarketplaceRatingImpl must not ...
This method will either create a new rating or update an existing rating @param Must not be null @return the attached entity
[ "This", "method", "will", "either", "create", "a", "new", "rating", "or", "update", "an", "existing", "rating" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/dao/jpa/JpaMarketplaceRatingDao.java#L82-L99
57,929
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/IndentingXMLEventWriter.java
IndentingXMLEventWriter.afterMarkup
protected void afterMarkup() { final Set<StackState> state = scopeState.getFirst(); state.add(StackState.WROTE_MARKUP); }
java
protected void afterMarkup() { final Set<StackState> state = scopeState.getFirst(); state.add(StackState.WROTE_MARKUP); }
[ "protected", "void", "afterMarkup", "(", ")", "{", "final", "Set", "<", "StackState", ">", "state", "=", "scopeState", ".", "getFirst", "(", ")", ";", "state", ".", "add", "(", "StackState", ".", "WROTE_MARKUP", ")", ";", "}" ]
Note that markup or indentation was written.
[ "Note", "that", "markup", "or", "indentation", "was", "written", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/IndentingXMLEventWriter.java#L133-L136
57,930
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/IndentingXMLEventWriter.java
IndentingXMLEventWriter.afterData
protected void afterData() { final Set<StackState> state = scopeState.getFirst(); state.add(StackState.WROTE_DATA); }
java
protected void afterData() { final Set<StackState> state = scopeState.getFirst(); state.add(StackState.WROTE_DATA); }
[ "protected", "void", "afterData", "(", ")", "{", "final", "Set", "<", "StackState", ">", "state", "=", "scopeState", ".", "getFirst", "(", ")", ";", "state", ".", "add", "(", "StackState", ".", "WROTE_DATA", ")", ";", "}" ]
Note that data were written.
[ "Note", "that", "data", "were", "written", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/IndentingXMLEventWriter.java#L139-L142
57,931
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/IndentingXMLEventWriter.java
IndentingXMLEventWriter.getIndent
protected String getIndent(int depth, int size) { final int length = depth * size; String indent = indentCache.get(length); if (indent == null) { indent = getLineSeparator() + StringUtils.repeat(" ", length); indentCache.put(length, indent); } return inden...
java
protected String getIndent(int depth, int size) { final int length = depth * size; String indent = indentCache.get(length); if (indent == null) { indent = getLineSeparator() + StringUtils.repeat(" ", length); indentCache.put(length, indent); } return inden...
[ "protected", "String", "getIndent", "(", "int", "depth", ",", "int", "size", ")", "{", "final", "int", "length", "=", "depth", "*", "size", ";", "String", "indent", "=", "indentCache", ".", "get", "(", "length", ")", ";", "if", "(", "indent", "==", "...
Generate an indentation string for the specified depth and indent size
[ "Generate", "an", "indentation", "string", "for", "the", "specified", "depth", "and", "indent", "size" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/IndentingXMLEventWriter.java#L199-L207
57,932
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/url/UrlSyntaxProviderImpl.java
UrlSyntaxProviderImpl.parsePortletParameterName
protected Tuple<String, IPortletWindowId> parsePortletParameterName( HttpServletRequest request, String name, Set<String> additionalPortletIds) { // Look for a 2nd separator which might indicate a portlet window id for (final String additionalPortletId : additionalPortletIds) { f...
java
protected Tuple<String, IPortletWindowId> parsePortletParameterName( HttpServletRequest request, String name, Set<String> additionalPortletIds) { // Look for a 2nd separator which might indicate a portlet window id for (final String additionalPortletId : additionalPortletIds) { f...
[ "protected", "Tuple", "<", "String", ",", "IPortletWindowId", ">", "parsePortletParameterName", "(", "HttpServletRequest", "request", ",", "String", "name", ",", "Set", "<", "String", ">", "additionalPortletIds", ")", "{", "// Look for a 2nd separator which might indicate...
Parse the parameter name and the optional portlet window id from a fully qualified query parameter.
[ "Parse", "the", "parameter", "name", "and", "the", "optional", "portlet", "window", "id", "from", "a", "fully", "qualified", "query", "parameter", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/url/UrlSyntaxProviderImpl.java#L930-L951
57,933
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/url/UrlSyntaxProviderImpl.java
UrlSyntaxProviderImpl.addPortletUrlData
protected void addPortletUrlData( final HttpServletRequest request, final UrlStringBuilder url, final UrlType urlType, final IPortletUrlBuilder portletUrlBuilder, final IPortletWindowId targetedPortletWindowId, final boolean statelessUrl) { ...
java
protected void addPortletUrlData( final HttpServletRequest request, final UrlStringBuilder url, final UrlType urlType, final IPortletUrlBuilder portletUrlBuilder, final IPortletWindowId targetedPortletWindowId, final boolean statelessUrl) { ...
[ "protected", "void", "addPortletUrlData", "(", "final", "HttpServletRequest", "request", ",", "final", "UrlStringBuilder", "url", ",", "final", "UrlType", "urlType", ",", "final", "IPortletUrlBuilder", "portletUrlBuilder", ",", "final", "IPortletWindowId", "targetedPortle...
Add the provided portlet url builder data to the url string builder
[ "Add", "the", "provided", "portlet", "url", "builder", "data", "to", "the", "url", "string", "builder" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/url/UrlSyntaxProviderImpl.java#L1272-L1399
57,934
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/url/UrlSyntaxProviderImpl.java
UrlSyntaxProviderImpl.getEncoding
protected String getEncoding(HttpServletRequest request) { final String encoding = request.getCharacterEncoding(); if (encoding != null) { return encoding; } return this.defaultEncoding; }
java
protected String getEncoding(HttpServletRequest request) { final String encoding = request.getCharacterEncoding(); if (encoding != null) { return encoding; } return this.defaultEncoding; }
[ "protected", "String", "getEncoding", "(", "HttpServletRequest", "request", ")", "{", "final", "String", "encoding", "=", "request", ".", "getCharacterEncoding", "(", ")", ";", "if", "(", "encoding", "!=", "null", ")", "{", "return", "encoding", ";", "}", "r...
Tries to determine the encoded from the request, if not available falls back to configured default. @param request The current request. @return The encoding to use.
[ "Tries", "to", "determine", "the", "encoded", "from", "the", "request", "if", "not", "available", "falls", "back", "to", "configured", "default", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/url/UrlSyntaxProviderImpl.java#L1454-L1461
57,935
Jasig/uPortal
uPortal-index/src/main/java/org/apereo/portal/index/PortalSearchIndexer.java
PortalSearchIndexer.updateIndex
public void updateIndex() { if (!isEnabled()) { return; } final IndexWriterConfig indexWriterConfig = new IndexWriterConfig(new StandardAnalyzer()); indexWriterConfig .setCommitOnClose(true) .setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_A...
java
public void updateIndex() { if (!isEnabled()) { return; } final IndexWriterConfig indexWriterConfig = new IndexWriterConfig(new StandardAnalyzer()); indexWriterConfig .setCommitOnClose(true) .setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_A...
[ "public", "void", "updateIndex", "(", ")", "{", "if", "(", "!", "isEnabled", "(", ")", ")", "{", "return", ";", "}", "final", "IndexWriterConfig", "indexWriterConfig", "=", "new", "IndexWriterConfig", "(", "new", "StandardAnalyzer", "(", ")", ")", ";", "in...
Called by Quatrz.
[ "Called", "by", "Quatrz", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-index/src/main/java/org/apereo/portal/index/PortalSearchIndexer.java#L60-L77
57,936
Jasig/uPortal
uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntitySearcherFactory.java
GrouperEntitySearcherFactory.newEntitySearcher
@Override public IEntitySearcher newEntitySearcher() throws GroupsException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Creating New Grouper GrouperEntitySearcherFactory"); } return (IEntitySearcher) new GrouperEntityGroupStoreFactory().newGroupStore(); }
java
@Override public IEntitySearcher newEntitySearcher() throws GroupsException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Creating New Grouper GrouperEntitySearcherFactory"); } return (IEntitySearcher) new GrouperEntityGroupStoreFactory().newGroupStore(); }
[ "@", "Override", "public", "IEntitySearcher", "newEntitySearcher", "(", ")", "throws", "GroupsException", "{", "if", "(", "LOGGER", ".", "isDebugEnabled", "(", ")", ")", "{", "LOGGER", ".", "debug", "(", "\"Creating New Grouper GrouperEntitySearcherFactory\"", ")", ...
Creates an instance of EntitySearcher. @return The instance. @see IEntitySearcherFactory#newEntitySearcher()
[ "Creates", "an", "instance", "of", "EntitySearcher", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntitySearcherFactory.java#L35-L41
57,937
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/aggr/PortalEventProcessingManagerImpl.java
PortalEventProcessingManagerImpl.checkDatabaseVersion
private boolean checkDatabaseVersion(String databaseName) { final Version softwareVersion = this.requiredProductVersions.get(databaseName); if (softwareVersion == null) { throw new IllegalStateException("No version number is configured for: " + databaseName); } final Version...
java
private boolean checkDatabaseVersion(String databaseName) { final Version softwareVersion = this.requiredProductVersions.get(databaseName); if (softwareVersion == null) { throw new IllegalStateException("No version number is configured for: " + databaseName); } final Version...
[ "private", "boolean", "checkDatabaseVersion", "(", "String", "databaseName", ")", "{", "final", "Version", "softwareVersion", "=", "this", ".", "requiredProductVersions", ".", "get", "(", "databaseName", ")", ";", "if", "(", "softwareVersion", "==", "null", ")", ...
Check if the database and software versions match
[ "Check", "if", "the", "database", "and", "software", "versions", "match" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/PortalEventProcessingManagerImpl.java#L436-L449
57,938
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceSearchService.java
MarketplaceSearchService.getSearchResults
@Override public SearchResults getSearchResults(PortletRequest request, SearchRequest query) { final String queryString = query.getSearchTerms().toLowerCase(); final List<IPortletDefinition> portlets = portletDefinitionRegistry.getAllPortletDefinitions(); final HttpServletR...
java
@Override public SearchResults getSearchResults(PortletRequest request, SearchRequest query) { final String queryString = query.getSearchTerms().toLowerCase(); final List<IPortletDefinition> portlets = portletDefinitionRegistry.getAllPortletDefinitions(); final HttpServletR...
[ "@", "Override", "public", "SearchResults", "getSearchResults", "(", "PortletRequest", "request", ",", "SearchRequest", "query", ")", "{", "final", "String", "queryString", "=", "query", ".", "getSearchTerms", "(", ")", ".", "toLowerCase", "(", ")", ";", "final"...
Returns a list of search results that pertain to the marketplace query is the query to search will search name, title, description, fname, and captions
[ "Returns", "a", "list", "of", "search", "results", "that", "pertain", "to", "the", "marketplace", "query", "is", "the", "query", "to", "search", "will", "search", "name", "title", "description", "fname", "and", "captions" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/marketplace/MarketplaceSearchService.java#L93-L152
57,939
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/CacheSecurityContext.java
CacheSecurityContext.getOpaqueCredentials
@Override public IOpaqueCredentials getOpaqueCredentials() { if (parentContext != null && parentContext.isAuthenticated()) { NotSoOpaqueCredentials oc = new CacheOpaqueCredentials(); oc.setCredentials(this.cachedcredentials); return oc; } else return null; }
java
@Override public IOpaqueCredentials getOpaqueCredentials() { if (parentContext != null && parentContext.isAuthenticated()) { NotSoOpaqueCredentials oc = new CacheOpaqueCredentials(); oc.setCredentials(this.cachedcredentials); return oc; } else return null; }
[ "@", "Override", "public", "IOpaqueCredentials", "getOpaqueCredentials", "(", ")", "{", "if", "(", "parentContext", "!=", "null", "&&", "parentContext", ".", "isAuthenticated", "(", ")", ")", "{", "NotSoOpaqueCredentials", "oc", "=", "new", "CacheOpaqueCredentials",...
We need to override this method in order to return a class that implements the NotSoOpaqueCredentials interface.
[ "We", "need", "to", "override", "this", "method", "in", "order", "to", "return", "a", "class", "that", "implements", "the", "NotSoOpaqueCredentials", "interface", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/CacheSecurityContext.java#L116-L123
57,940
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/security/AdminEvaluator.java
AdminEvaluator.isAdmin
public static boolean isAdmin(IPerson p) { IAuthorizationPrincipal iap = AuthorizationServiceFacade.instance() .newPrincipal( p.getEntityIdentifier().getKey(), p.getEntityIdentifier().getType()); ret...
java
public static boolean isAdmin(IPerson p) { IAuthorizationPrincipal iap = AuthorizationServiceFacade.instance() .newPrincipal( p.getEntityIdentifier().getKey(), p.getEntityIdentifier().getType()); ret...
[ "public", "static", "boolean", "isAdmin", "(", "IPerson", "p", ")", "{", "IAuthorizationPrincipal", "iap", "=", "AuthorizationServiceFacade", ".", "instance", "(", ")", ".", "newPrincipal", "(", "p", ".", "getEntityIdentifier", "(", ")", ".", "getKey", "(", ")...
Determines if the passed-in IPerson represents a user that is a member of the administrator group or any of its sub groups. @param p @return
[ "Determines", "if", "the", "passed", "-", "in", "IPerson", "represents", "a", "user", "that", "is", "a", "member", "of", "the", "administrator", "group", "or", "any", "of", "its", "sub", "groups", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/security/AdminEvaluator.java#L46-L54
57,941
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/security/AdminEvaluator.java
AdminEvaluator.isAdmin
public static boolean isAdmin(IAuthorizationPrincipal ap) { IGroupMember member = AuthorizationServiceFacade.instance().getGroupMember(ap); return isAdmin(member); }
java
public static boolean isAdmin(IAuthorizationPrincipal ap) { IGroupMember member = AuthorizationServiceFacade.instance().getGroupMember(ap); return isAdmin(member); }
[ "public", "static", "boolean", "isAdmin", "(", "IAuthorizationPrincipal", "ap", ")", "{", "IGroupMember", "member", "=", "AuthorizationServiceFacade", ".", "instance", "(", ")", ".", "getGroupMember", "(", "ap", ")", ";", "return", "isAdmin", "(", "member", ")",...
Determines if the passed-in authorization principal represents a user that is a member of the administrator group or any of its sub groups.
[ "Determines", "if", "the", "passed", "-", "in", "authorization", "principal", "represents", "a", "user", "that", "is", "a", "member", "of", "the", "administrator", "group", "or", "any", "of", "its", "sub", "groups", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/security/AdminEvaluator.java#L60-L63
57,942
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/security/AdminEvaluator.java
AdminEvaluator.isAdmin
public static boolean isAdmin(IGroupMember member) { IEntityGroup adminGroup = null; try { adminGroup = GroupService.getDistinguishedGroup(PORTAL_ADMINISTRATORS_DISTINGUISHED_GROUP); } catch (GroupsException ge) { // cannot determine whether or not th...
java
public static boolean isAdmin(IGroupMember member) { IEntityGroup adminGroup = null; try { adminGroup = GroupService.getDistinguishedGroup(PORTAL_ADMINISTRATORS_DISTINGUISHED_GROUP); } catch (GroupsException ge) { // cannot determine whether or not th...
[ "public", "static", "boolean", "isAdmin", "(", "IGroupMember", "member", ")", "{", "IEntityGroup", "adminGroup", "=", "null", ";", "try", "{", "adminGroup", "=", "GroupService", ".", "getDistinguishedGroup", "(", "PORTAL_ADMINISTRATORS_DISTINGUISHED_GROUP", ")", ";", ...
Determines if the passed-in group member represents a user that is a member of the administrator group or any of its sub groups.
[ "Determines", "if", "the", "passed", "-", "in", "group", "member", "represents", "a", "user", "that", "is", "a", "member", "of", "the", "administrator", "group", "or", "any", "of", "its", "sub", "groups", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/security/AdminEvaluator.java#L69-L84
57,943
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java
AbstractDynamicSkinService.skinCssFileExists
@Override public boolean skinCssFileExists(DynamicSkinInstanceData data) { final String cssInstanceKey = getCssInstanceKey(data); // Check the existing map first since it is faster than accessing the actual file. if (instanceKeysForExistingCss.contains(cssInstanceKey)) { return t...
java
@Override public boolean skinCssFileExists(DynamicSkinInstanceData data) { final String cssInstanceKey = getCssInstanceKey(data); // Check the existing map first since it is faster than accessing the actual file. if (instanceKeysForExistingCss.contains(cssInstanceKey)) { return t...
[ "@", "Override", "public", "boolean", "skinCssFileExists", "(", "DynamicSkinInstanceData", "data", ")", "{", "final", "String", "cssInstanceKey", "=", "getCssInstanceKey", "(", "data", ")", ";", "// Check the existing map first since it is faster than accessing the actual file....
Return true if the skin file already exists. Check memory first in a concurrent manner to allow multiple threads to check simultaneously.
[ "Return", "true", "if", "the", "skin", "file", "already", "exists", ".", "Check", "memory", "first", "in", "a", "concurrent", "manner", "to", "allow", "multiple", "threads", "to", "check", "simultaneously", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java#L108-L123
57,944
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java
AbstractDynamicSkinService.generateSkinCssFile
@Override public void generateSkinCssFile(DynamicSkinInstanceData data) { final String cssInstanceKey = getCssInstanceKey(data); synchronized (cssInstanceKey) { if (instanceKeysForExistingCss.contains(cssInstanceKey)) { /* * Two or more threads needing th...
java
@Override public void generateSkinCssFile(DynamicSkinInstanceData data) { final String cssInstanceKey = getCssInstanceKey(data); synchronized (cssInstanceKey) { if (instanceKeysForExistingCss.contains(cssInstanceKey)) { /* * Two or more threads needing th...
[ "@", "Override", "public", "void", "generateSkinCssFile", "(", "DynamicSkinInstanceData", "data", ")", "{", "final", "String", "cssInstanceKey", "=", "getCssInstanceKey", "(", "data", ")", ";", "synchronized", "(", "cssInstanceKey", ")", "{", "if", "(", "instanceK...
Creates the skin css file in a thread-safe manner that allows multiple different skin files to be created simultaneously to handle large tenant situations where all the custom CSS files were cleared away after a uPortal deploy. <p>Since the less compilation phase is fairly slow (several seconds) and intensive, this me...
[ "Creates", "the", "skin", "css", "file", "in", "a", "thread", "-", "safe", "manner", "that", "allows", "multiple", "different", "skin", "files", "to", "be", "created", "simultaneously", "to", "handle", "large", "tenant", "situations", "where", "all", "the", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java#L165-L206
57,945
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java
AbstractDynamicSkinService.processLessFile
private void processLessFile(DynamicSkinInstanceData data) throws IOException, LessException { // Prepare the LESS sources for compilation final LessSource lessSource = new LessSource(new File(getSkinLessPath(data))); if (logger.isDebugEnabled()) { final String result = lessSource....
java
private void processLessFile(DynamicSkinInstanceData data) throws IOException, LessException { // Prepare the LESS sources for compilation final LessSource lessSource = new LessSource(new File(getSkinLessPath(data))); if (logger.isDebugEnabled()) { final String result = lessSource....
[ "private", "void", "processLessFile", "(", "DynamicSkinInstanceData", "data", ")", "throws", "IOException", ",", "LessException", "{", "// Prepare the LESS sources for compilation", "final", "LessSource", "lessSource", "=", "new", "LessSource", "(", "new", "File", "(", ...
Less compile the include file into a temporary css file. When done rename the temporary css file to the correct output filename. Since the less compilation phase takes several seconds, this insures the output css file is does not exist on the filesystem until it is complete.
[ "Less", "compile", "the", "include", "file", "into", "a", "temporary", "css", "file", ".", "When", "done", "rename", "the", "temporary", "css", "file", "to", "the", "correct", "output", "filename", ".", "Since", "the", "less", "compilation", "phase", "takes"...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java#L263-L285
57,946
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java
AbstractDynamicSkinService.getSkinNames
@Override public SortedSet<String> getSkinNames(PortletRequest request) { // Context to access the filesystem PortletContext ctx = request.getPortletSession().getPortletContext(); // Determine the full path to the skins directory String skinsFilepath = ctx.getRealPath(localRelativeR...
java
@Override public SortedSet<String> getSkinNames(PortletRequest request) { // Context to access the filesystem PortletContext ctx = request.getPortletSession().getPortletContext(); // Determine the full path to the skins directory String skinsFilepath = ctx.getRealPath(localRelativeR...
[ "@", "Override", "public", "SortedSet", "<", "String", ">", "getSkinNames", "(", "PortletRequest", "request", ")", "{", "// Context to access the filesystem", "PortletContext", "ctx", "=", "request", ".", "getPortletSession", "(", ")", ".", "getPortletContext", "(", ...
Returns the set of skins to use. This implementation parses the skinList.xml file and returns the set of skin-key element values. If there is an error parsing the XML file, return an empty set.
[ "Returns", "the", "set", "of", "skins", "to", "use", ".", "This", "implementation", "parses", "the", "skinList", ".", "xml", "file", "and", "returns", "the", "set", "of", "skin", "-", "key", "element", "values", ".", "If", "there", "is", "an", "error", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/storage/AbstractDynamicSkinService.java#L319-L349
57,947
Jasig/uPortal
uPortal-spring/src/main/java/org/springframework/web/client/interceptors/ZeroLeggedOAuthInterceptor.java
ZeroLeggedOAuthInterceptor.intercept
@Override public ClientHttpResponse intercept( HttpRequest req, byte[] body, ClientHttpRequestExecution execution) throws IOException { Assert.notNull(propertyResolver); Assert.notNull(id); try { String authString = getOAuthAuthString(req); req.getHeaders...
java
@Override public ClientHttpResponse intercept( HttpRequest req, byte[] body, ClientHttpRequestExecution execution) throws IOException { Assert.notNull(propertyResolver); Assert.notNull(id); try { String authString = getOAuthAuthString(req); req.getHeaders...
[ "@", "Override", "public", "ClientHttpResponse", "intercept", "(", "HttpRequest", "req", ",", "byte", "[", "]", "body", ",", "ClientHttpRequestExecution", "execution", ")", "throws", "IOException", "{", "Assert", ".", "notNull", "(", "propertyResolver", ")", ";", ...
Intercept a request and add the oauth headers. @param req the request @param body the request body @param execution the request execution. @return the request response @throws IOException on error
[ "Intercept", "a", "request", "and", "add", "the", "oauth", "headers", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/springframework/web/client/interceptors/ZeroLeggedOAuthInterceptor.java#L59-L73
57,948
Jasig/uPortal
uPortal-spring/src/main/java/org/springframework/web/client/interceptors/ZeroLeggedOAuthInterceptor.java
ZeroLeggedOAuthInterceptor.getOAuthAuthString
private String getOAuthAuthString(HttpRequest req) throws OAuthException, IOException, URISyntaxException { RealmOAuthConsumer consumer = getConsumer(); OAuthAccessor accessor = new OAuthAccessor(consumer); String method = req.getMethod().name(); URI uri = req.getURI(); ...
java
private String getOAuthAuthString(HttpRequest req) throws OAuthException, IOException, URISyntaxException { RealmOAuthConsumer consumer = getConsumer(); OAuthAccessor accessor = new OAuthAccessor(consumer); String method = req.getMethod().name(); URI uri = req.getURI(); ...
[ "private", "String", "getOAuthAuthString", "(", "HttpRequest", "req", ")", "throws", "OAuthException", ",", "IOException", ",", "URISyntaxException", "{", "RealmOAuthConsumer", "consumer", "=", "getConsumer", "(", ")", ";", "OAuthAccessor", "accessor", "=", "new", "...
Get the oauth Authorization string. @param req the request @return the Authorization string
[ "Get", "the", "oauth", "Authorization", "string", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/springframework/web/client/interceptors/ZeroLeggedOAuthInterceptor.java#L81-L91
57,949
Jasig/uPortal
uPortal-spring/src/main/java/org/springframework/web/client/interceptors/ZeroLeggedOAuthInterceptor.java
ZeroLeggedOAuthInterceptor.getConsumer
private synchronized RealmOAuthConsumer getConsumer() { // could just inject these, but I kinda prefer pushing this out // to the properties file... if (consumer == null) { OAuthServiceProvider serviceProvider = new OAuthServiceProvider("", "", ""); String realm = ...
java
private synchronized RealmOAuthConsumer getConsumer() { // could just inject these, but I kinda prefer pushing this out // to the properties file... if (consumer == null) { OAuthServiceProvider serviceProvider = new OAuthServiceProvider("", "", ""); String realm = ...
[ "private", "synchronized", "RealmOAuthConsumer", "getConsumer", "(", ")", "{", "// could just inject these, but I kinda prefer pushing this out", "// to the properties file...", "if", "(", "consumer", "==", "null", ")", "{", "OAuthServiceProvider", "serviceProvider", "=", "new"...
Get the OAuthConsumer. Will initialize it lazily. @return the OAuthConsumer object.
[ "Get", "the", "OAuthConsumer", ".", "Will", "initialize", "it", "lazily", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/springframework/web/client/interceptors/ZeroLeggedOAuthInterceptor.java#L98-L128
57,950
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/backgroundpreference/ViewBackgroundPreferenceController.java
ViewBackgroundPreferenceController.getView
@RenderMapping public String getView(RenderRequest req, Model model) { final String[] images = imageSetSelectionStrategy.getImageSet(req); model.addAttribute("images", images); final String[] thumbnailImages = imageSetSelectionStrategy.getImageThumbnailSet(req); model.addAttribute(...
java
@RenderMapping public String getView(RenderRequest req, Model model) { final String[] images = imageSetSelectionStrategy.getImageSet(req); model.addAttribute("images", images); final String[] thumbnailImages = imageSetSelectionStrategy.getImageThumbnailSet(req); model.addAttribute(...
[ "@", "RenderMapping", "public", "String", "getView", "(", "RenderRequest", "req", ",", "Model", "model", ")", "{", "final", "String", "[", "]", "images", "=", "imageSetSelectionStrategy", ".", "getImageSet", "(", "req", ")", ";", "model", ".", "addAttribute", ...
Display the main user-facing view of the portlet. @param request @return
[ "Display", "the", "main", "user", "-", "facing", "view", "of", "the", "portlet", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/backgroundpreference/ViewBackgroundPreferenceController.java#L42-L66
57,951
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/XmlUtilitiesImpl.java
XmlUtilitiesImpl.getElementIndex
private int getElementIndex(Node node) { final String nodeName = node.getNodeName(); int count = 1; for (Node previousSibling = node.getPreviousSibling(); previousSibling != null; previousSibling = previousSibling.getPreviousSibling()) { if (previousS...
java
private int getElementIndex(Node node) { final String nodeName = node.getNodeName(); int count = 1; for (Node previousSibling = node.getPreviousSibling(); previousSibling != null; previousSibling = previousSibling.getPreviousSibling()) { if (previousS...
[ "private", "int", "getElementIndex", "(", "Node", "node", ")", "{", "final", "String", "nodeName", "=", "node", ".", "getNodeName", "(", ")", ";", "int", "count", "=", "1", ";", "for", "(", "Node", "previousSibling", "=", "node", ".", "getPreviousSibling",...
Gets the index of this element relative to other siblings with the same node name
[ "Gets", "the", "index", "of", "this", "element", "relative", "to", "other", "siblings", "with", "the", "same", "node", "name" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/XmlUtilitiesImpl.java#L201-L215
57,952
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java
DeleteManager.applyAndUpdateDeleteSet
static void applyAndUpdateDeleteSet(Document plf, Document ilf, IntegrationResult result) { Element dSet = null; try { dSet = getDeleteSet(plf, null, false); } catch (Exception e) { LOG.error("Exception occurred while getting user's DLM delete-set.", e); } ...
java
static void applyAndUpdateDeleteSet(Document plf, Document ilf, IntegrationResult result) { Element dSet = null; try { dSet = getDeleteSet(plf, null, false); } catch (Exception e) { LOG.error("Exception occurred while getting user's DLM delete-set.", e); } ...
[ "static", "void", "applyAndUpdateDeleteSet", "(", "Document", "plf", ",", "Document", "ilf", ",", "IntegrationResult", "result", ")", "{", "Element", "dSet", "=", "null", ";", "try", "{", "dSet", "=", "getDeleteSet", "(", "plf", ",", "null", ",", "false", ...
Get the delete set if any from the plf and process each delete command removing any that fail from the delete set so that the delete set is self cleaning.
[ "Get", "the", "delete", "set", "if", "any", "from", "the", "plf", "and", "process", "each", "delete", "command", "removing", "any", "that", "fail", "from", "the", "delete", "set", "so", "that", "the", "delete", "set", "is", "self", "cleaning", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java#L55-L81
57,953
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java
DeleteManager.applyDelete
private static boolean applyDelete(Element delete, Document ilf) { String nodeID = delete.getAttribute(Constants.ATT_NAME); Element e = ilf.getElementById(nodeID); if (e == null) return false; String deleteAllowed = e.getAttribute(Constants.ATT_DELETE_ALLOWED); if (deleteAllow...
java
private static boolean applyDelete(Element delete, Document ilf) { String nodeID = delete.getAttribute(Constants.ATT_NAME); Element e = ilf.getElementById(nodeID); if (e == null) return false; String deleteAllowed = e.getAttribute(Constants.ATT_DELETE_ALLOWED); if (deleteAllow...
[ "private", "static", "boolean", "applyDelete", "(", "Element", "delete", ",", "Document", "ilf", ")", "{", "String", "nodeID", "=", "delete", ".", "getAttribute", "(", "Constants", ".", "ATT_NAME", ")", ";", "Element", "e", "=", "ilf", ".", "getElementById",...
Attempt to apply a single delete command and return true if it succeeds or false otherwise. If the delete is disallowed or the target element no longer exists in the document the delete command fails and returns false.
[ "Attempt", "to", "apply", "a", "single", "delete", "command", "and", "return", "true", "if", "it", "succeeds", "or", "false", "otherwise", ".", "If", "the", "delete", "is", "disallowed", "or", "the", "target", "element", "no", "longer", "exists", "in", "th...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java#L88-L102
57,954
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java
DeleteManager.getDeleteSet
private static Element getDeleteSet(Document plf, IPerson person, boolean create) throws PortalException { Node root = plf.getDocumentElement(); Node child = root.getFirstChild(); while (child != null) { if (child.getNodeName().equals(Constants.ELM_DELETE_SET)) return (E...
java
private static Element getDeleteSet(Document plf, IPerson person, boolean create) throws PortalException { Node root = plf.getDocumentElement(); Node child = root.getFirstChild(); while (child != null) { if (child.getNodeName().equals(Constants.ELM_DELETE_SET)) return (E...
[ "private", "static", "Element", "getDeleteSet", "(", "Document", "plf", ",", "IPerson", "person", ",", "boolean", "create", ")", "throws", "PortalException", "{", "Node", "root", "=", "plf", ".", "getDocumentElement", "(", ")", ";", "Node", "child", "=", "ro...
Get the delete set if any stored in the root of the document or create it is passed in create flag is true.
[ "Get", "the", "delete", "set", "if", "any", "stored", "in", "the", "root", "of", "the", "document", "or", "create", "it", "is", "passed", "in", "create", "flag", "is", "true", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java#L108-L137
57,955
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java
DeleteManager.addDeleteDirective
private static void addDeleteDirective( Element compViewNode, String elementID, IPerson person, Document plf, Element delSet) throws PortalException { String ID = null; try { ID = getDLS().getNextStructDirectiveId(person); } catch (Exception e) { ...
java
private static void addDeleteDirective( Element compViewNode, String elementID, IPerson person, Document plf, Element delSet) throws PortalException { String ID = null; try { ID = getDLS().getNextStructDirectiveId(person); } catch (Exception e) { ...
[ "private", "static", "void", "addDeleteDirective", "(", "Element", "compViewNode", ",", "String", "elementID", ",", "IPerson", "person", ",", "Document", "plf", ",", "Element", "delSet", ")", "throws", "PortalException", "{", "String", "ID", "=", "null", ";", ...
This method does the actual work of adding a delete directive and then recursively calling itself for any incoporated children that need to be deleted as well.
[ "This", "method", "does", "the", "actual", "work", "of", "adding", "a", "delete", "directive", "and", "then", "recursively", "calling", "itself", "for", "any", "incoporated", "children", "that", "need", "to", "be", "deleted", "as", "well", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/DeleteManager.java#L159-L190
57,956
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAResetAttribute.java
LPAResetAttribute.perform
@Override public void perform() throws PortalException { /* * push the change into the PLF */ if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) { // remove the parm edit EditManager.removeEditDirective(nodeId, name, person); } /* ...
java
@Override public void perform() throws PortalException { /* * push the change into the PLF */ if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) { // remove the parm edit EditManager.removeEditDirective(nodeId, name, person); } /* ...
[ "@", "Override", "public", "void", "perform", "(", ")", "throws", "PortalException", "{", "/*\n * push the change into the PLF\n */", "if", "(", "nodeId", ".", "startsWith", "(", "Constants", ".", "FRAGMENT_ID_USER_PREFIX", ")", ")", "{", "// remove the ...
Reset a parameter to not override the value specified by a fragment. This is done by removing the parm edit in the PLF and setting the value in the ILF to the passed-in fragment value.
[ "Reset", "a", "parameter", "to", "not", "override", "the", "value", "specified", "by", "a", "fragment", ".", "This", "is", "done", "by", "removing", "the", "parm", "edit", "in", "the", "PLF", "and", "setting", "the", "value", "in", "the", "ILF", "to", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAResetAttribute.java#L42-L59
57,957
Jasig/uPortal
uPortal-groups/uPortal-groups-local/src/main/java/org/apereo/portal/groups/local/searchers/PortletDefinitionSearcher.java
PortletDefinitionSearcher.searchForEntities
@Override public EntityIdentifier[] searchForEntities(String query, SearchMethod method) throws GroupsException { boolean allowPartial = true; switch (method) { case DISCRETE: allowPartial = false; break; case STARTS_WITH: ...
java
@Override public EntityIdentifier[] searchForEntities(String query, SearchMethod method) throws GroupsException { boolean allowPartial = true; switch (method) { case DISCRETE: allowPartial = false; break; case STARTS_WITH: ...
[ "@", "Override", "public", "EntityIdentifier", "[", "]", "searchForEntities", "(", "String", "query", ",", "SearchMethod", "method", ")", "throws", "GroupsException", "{", "boolean", "allowPartial", "=", "true", ";", "switch", "(", "method", ")", "{", "case", ...
Internal search, so shouldn't be called as case insensitive.
[ "Internal", "search", "so", "shouldn", "t", "be", "called", "as", "case", "insensitive", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-local/src/main/java/org/apereo/portal/groups/local/searchers/PortletDefinitionSearcher.java#L43-L85
57,958
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/permission/target/PermissionTargetProviderRegistryImpl.java
PermissionTargetProviderRegistryImpl.setProviders
public void setProviders(Map<String, IPermissionTargetProvider> providers) { this.providers.clear(); for (Map.Entry<String, IPermissionTargetProvider> provider : providers.entrySet()) { this.providers.put(provider.getKey(), provider.getValue()); } }
java
public void setProviders(Map<String, IPermissionTargetProvider> providers) { this.providers.clear(); for (Map.Entry<String, IPermissionTargetProvider> provider : providers.entrySet()) { this.providers.put(provider.getKey(), provider.getValue()); } }
[ "public", "void", "setProviders", "(", "Map", "<", "String", ",", "IPermissionTargetProvider", ">", "providers", ")", "{", "this", ".", "providers", ".", "clear", "(", ")", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "IPermissionTargetProvider"...
Construct a new target provider registry and initialize it with the supplied map of key -> provider pairs. @param providers
[ "Construct", "a", "new", "target", "provider", "registry", "and", "initialize", "it", "with", "the", "supplied", "map", "of", "key", "-", ">", "provider", "pairs", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/permission/target/PermissionTargetProviderRegistryImpl.java#L42-L47
57,959
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/portlet/PortletSpELServiceImpl.java
PortletSpELServiceImpl.parseString
@Override public String parseString(String expressionString, PortletRequest request) { return getValue(expressionString, request, String.class); }
java
@Override public String parseString(String expressionString, PortletRequest request) { return getValue(expressionString, request, String.class); }
[ "@", "Override", "public", "String", "parseString", "(", "String", "expressionString", ",", "PortletRequest", "request", ")", "{", "return", "getValue", "(", "expressionString", ",", "request", ",", "String", ".", "class", ")", ";", "}" ]
Primary method used assuming all defaults.
[ "Primary", "method", "used", "assuming", "all", "defaults", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/portlet/PortletSpELServiceImpl.java#L72-L75
57,960
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/portlet/PortletSpELServiceImpl.java
PortletSpELServiceImpl.getEvaluationContext
protected EvaluationContext getEvaluationContext(PortletRequest request) { Map<String, String> userInfo = (Map<String, String>) request.getAttribute(PortletRequest.USER_INFO); final SpELEnvironmentRoot root = new SpELEnvironmentRoot(new PortletWebRequest(request), userInf...
java
protected EvaluationContext getEvaluationContext(PortletRequest request) { Map<String, String> userInfo = (Map<String, String>) request.getAttribute(PortletRequest.USER_INFO); final SpELEnvironmentRoot root = new SpELEnvironmentRoot(new PortletWebRequest(request), userInf...
[ "protected", "EvaluationContext", "getEvaluationContext", "(", "PortletRequest", "request", ")", "{", "Map", "<", "String", ",", "String", ">", "userInfo", "=", "(", "Map", "<", "String", ",", "String", ">", ")", "request", ".", "getAttribute", "(", "PortletRe...
Return a SpEL evaluation context for the supplied portlet request. @param request PortletRequest @return SpEL evaluation context for the supplied portlet request
[ "Return", "a", "SpEL", "evaluation", "context", "for", "the", "supplied", "portlet", "request", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/portlet/PortletSpELServiceImpl.java#L120-L129
57,961
Jasig/uPortal
uPortal-tools/src/main/java/org/apereo/portal/version/dao/jpa/JpaVersionDao.java
JpaVersionDao.getSimpleVersion
private Version getSimpleVersion(String product) { final Tuple coreNumbers; try { final TypedQuery<Tuple> coreNumbersQuery = this.createQuery(this.findCoreVersionNumbers); coreNumbersQuery.setParameter(this.productParameter, product); coreNumbers =...
java
private Version getSimpleVersion(String product) { final Tuple coreNumbers; try { final TypedQuery<Tuple> coreNumbersQuery = this.createQuery(this.findCoreVersionNumbers); coreNumbersQuery.setParameter(this.productParameter, product); coreNumbers =...
[ "private", "Version", "getSimpleVersion", "(", "String", "product", ")", "{", "final", "Tuple", "coreNumbers", ";", "try", "{", "final", "TypedQuery", "<", "Tuple", ">", "coreNumbersQuery", "=", "this", ".", "createQuery", "(", "this", ".", "findCoreVersionNumbe...
Load a Version object with direct field queries. Used to deal with DB upgrades where not all of the fields have been loaded
[ "Load", "a", "Version", "object", "with", "direct", "field", "queries", ".", "Used", "to", "deal", "with", "DB", "upgrades", "where", "not", "all", "of", "the", "fields", "have", "been", "loaded" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tools/src/main/java/org/apereo/portal/version/dao/jpa/JpaVersionDao.java#L109-L149
57,962
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/DynamicRespondrSkinViewController.java
DynamicRespondrSkinViewController.calculateDynamicSkinUrlPathToUse
private String calculateDynamicSkinUrlPathToUse(PortletRequest request, String lessfileBaseName) throws IOException { final DynamicSkinInstanceData data = new DefaultDynamicSkinInstanceDataImpl(request); if (!service.skinCssFileExists(data)) { // Trigger the LESS compilation ...
java
private String calculateDynamicSkinUrlPathToUse(PortletRequest request, String lessfileBaseName) throws IOException { final DynamicSkinInstanceData data = new DefaultDynamicSkinInstanceDataImpl(request); if (!service.skinCssFileExists(data)) { // Trigger the LESS compilation ...
[ "private", "String", "calculateDynamicSkinUrlPathToUse", "(", "PortletRequest", "request", ",", "String", "lessfileBaseName", ")", "throws", "IOException", "{", "final", "DynamicSkinInstanceData", "data", "=", "new", "DefaultDynamicSkinInstanceDataImpl", "(", "request", ")"...
Calculate the default skin URL path or the path to a skin CSS file that is specific to the set of portlet preference values currently defined. @param request @return @throws IOException
[ "Calculate", "the", "default", "skin", "URL", "path", "or", "the", "path", "to", "a", "skin", "CSS", "file", "that", "is", "specific", "to", "the", "set", "of", "portlet", "preference", "values", "currently", "defined", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/dynamicskin/DynamicRespondrSkinViewController.java#L137-L145
57,963
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/resource/CachingResourceLoaderImpl.java
CachingResourceLoaderImpl.getLastModified
protected long getLastModified(Resource resource) { try { return resource.lastModified(); } catch (IOException e) { this.logger.warn( "Could not determine lastModified for " + resource + ". This resource ...
java
protected long getLastModified(Resource resource) { try { return resource.lastModified(); } catch (IOException e) { this.logger.warn( "Could not determine lastModified for " + resource + ". This resource ...
[ "protected", "long", "getLastModified", "(", "Resource", "resource", ")", "{", "try", "{", "return", "resource", ".", "lastModified", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "this", ".", "logger", ".", "warn", "(", "\"Could not dete...
Determine the last modified time stamp for the resource
[ "Determine", "the", "last", "modified", "time", "stamp", "for", "the", "resource" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/cache/resource/CachingResourceLoaderImpl.java#L178-L190
57,964
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/user/UserInstanceManagerImpl.java
UserInstanceManagerImpl.getUserInstance
@Override public IUserInstance getUserInstance(HttpServletRequest request) throws PortalException { try { request = this.portalRequestUtils.getOriginalPortalRequest(request); } catch (IllegalArgumentException iae) { // ignore, just means that this isn't a wrapped request ...
java
@Override public IUserInstance getUserInstance(HttpServletRequest request) throws PortalException { try { request = this.portalRequestUtils.getOriginalPortalRequest(request); } catch (IllegalArgumentException iae) { // ignore, just means that this isn't a wrapped request ...
[ "@", "Override", "public", "IUserInstance", "getUserInstance", "(", "HttpServletRequest", "request", ")", "throws", "PortalException", "{", "try", "{", "request", "=", "this", ".", "portalRequestUtils", ".", "getOriginalPortalRequest", "(", "request", ")", ";", "}",...
Returns the UserInstance object that is associated with the given request. @param request Incoming HttpServletRequest @return UserInstance object associated with the given request
[ "Returns", "the", "UserInstance", "object", "that", "is", "associated", "with", "the", "given", "request", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/user/UserInstanceManagerImpl.java#L99-L168
57,965
Jasig/uPortal
uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/PortletTabIdResolver.java
PortletTabIdResolver.containsElmentWithId
private boolean containsElmentWithId(Node node, String id) { String nodeName = node.getNodeName(); if ("channel".equals(nodeName) || "folder".equals(nodeName)) { Element e = (Element) node; if (id.equals(e.getAttribute("ID"))) { return true; } ...
java
private boolean containsElmentWithId(Node node, String id) { String nodeName = node.getNodeName(); if ("channel".equals(nodeName) || "folder".equals(nodeName)) { Element e = (Element) node; if (id.equals(e.getAttribute("ID"))) { return true; } ...
[ "private", "boolean", "containsElmentWithId", "(", "Node", "node", ",", "String", "id", ")", "{", "String", "nodeName", "=", "node", ".", "getNodeName", "(", ")", ";", "if", "(", "\"channel\"", ".", "equals", "(", "nodeName", ")", "||", "\"folder\"", ".", ...
Recursevly find out whether node contains a folder or channel with given identifier. @param node Where to search. @param id Identifier to search for. @return true if node or any of its descendats contain an element with given identifier, false otherwise.
[ "Recursevly", "find", "out", "whether", "node", "contains", "a", "folder", "or", "channel", "with", "given", "identifier", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/PortletTabIdResolver.java#L79-L97
57,966
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/web/PortalWebUtils.java
PortalWebUtils.currentRequestContextPath
public static String currentRequestContextPath() { final RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); if (null == requestAttributes) { throw new IllegalStateException( "Request attributes are not bound. " ...
java
public static String currentRequestContextPath() { final RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); if (null == requestAttributes) { throw new IllegalStateException( "Request attributes are not bound. " ...
[ "public", "static", "String", "currentRequestContextPath", "(", ")", "{", "final", "RequestAttributes", "requestAttributes", "=", "RequestContextHolder", ".", "getRequestAttributes", "(", ")", ";", "if", "(", "null", "==", "requestAttributes", ")", "{", "throw", "ne...
Get the request context path from the current request. Copes with both HttpServletRequest and PortletRequest and so usable when handling Spring-processed Servlet or Portlet requests. Requires that Spring have bound the request, as in the case of dispatcher servlet or portlet or when the binding filter or listener is ac...
[ "Get", "the", "request", "context", "path", "from", "the", "current", "request", ".", "Copes", "with", "both", "HttpServletRequest", "and", "PortletRequest", "and", "so", "usable", "when", "handling", "Spring", "-", "processed", "Servlet", "or", "Portlet", "requ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/web/PortalWebUtils.java#L132-L160
57,967
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/RequestAttributeServiceImpl.java
RequestAttributeServiceImpl.getExpectedUserAttributes
protected List<? extends UserAttribute> getExpectedUserAttributes( HttpServletRequest request, final IPortletWindow portletWindow) { final IPortletEntity portletEntity = portletWindow.getPortletEntity(); final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition(); ...
java
protected List<? extends UserAttribute> getExpectedUserAttributes( HttpServletRequest request, final IPortletWindow portletWindow) { final IPortletEntity portletEntity = portletWindow.getPortletEntity(); final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition(); ...
[ "protected", "List", "<", "?", "extends", "UserAttribute", ">", "getExpectedUserAttributes", "(", "HttpServletRequest", "request", ",", "final", "IPortletWindow", "portletWindow", ")", "{", "final", "IPortletEntity", "portletEntity", "=", "portletWindow", ".", "getPortl...
Get the list of user attributes the portlet expects. @param request The current request. @param portletWindow The window to get the expected user attributes for. @return The List of expected user attributes for the portlet
[ "Get", "the", "list", "of", "user", "attributes", "the", "portlet", "expects", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/RequestAttributeServiceImpl.java#L129-L138
57,968
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/AuthorizationPrincipalHelper.java
AuthorizationPrincipalHelper.principalFromUser
public static IAuthorizationPrincipal principalFromUser(final IPerson user) { Validate.notNull(user, "Cannot determine an authorization principal for null user."); final EntityIdentifier userEntityIdentifier = user.getEntityIdentifier(); Validate.notNull(user, "The user object is defective: la...
java
public static IAuthorizationPrincipal principalFromUser(final IPerson user) { Validate.notNull(user, "Cannot determine an authorization principal for null user."); final EntityIdentifier userEntityIdentifier = user.getEntityIdentifier(); Validate.notNull(user, "The user object is defective: la...
[ "public", "static", "IAuthorizationPrincipal", "principalFromUser", "(", "final", "IPerson", "user", ")", "{", "Validate", ".", "notNull", "(", "user", ",", "\"Cannot determine an authorization principal for null user.\"", ")", ";", "final", "EntityIdentifier", "userEntityI...
Convenience method for converting an IPerson to an IAuthorizationPrincipal. @param user a non-null valid IPerson @return an IAuthorizationPrincipal representing that user @throws IllegalArgumentException if the user object is null or defective. @since 4.1
[ "Convenience", "method", "for", "converting", "an", "IPerson", "to", "an", "IAuthorizationPrincipal", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/AuthorizationPrincipalHelper.java#L39-L55
57,969
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/PersonDirNameFinder.java
PersonDirNameFinder.primGetName
private String primGetName(String key) { String name = key; final IPersonAttributes personAttributes = this.paDao.getPerson(name); if (personAttributes != null) { Object displayName = personAttributes.getAttributeValue("displayName"); String displayNameStr = ""; ...
java
private String primGetName(String key) { String name = key; final IPersonAttributes personAttributes = this.paDao.getPerson(name); if (personAttributes != null) { Object displayName = personAttributes.getAttributeValue("displayName"); String displayNameStr = ""; ...
[ "private", "String", "primGetName", "(", "String", "key", ")", "{", "String", "name", "=", "key", ";", "final", "IPersonAttributes", "personAttributes", "=", "this", ".", "paDao", ".", "getPerson", "(", "name", ")", ";", "if", "(", "personAttributes", "!=", ...
Actually lookup a user name using the underlying IPersonAttributeDao. @param key - entity key which in this case is a unique identifier for a user @return the display name for the identified user
[ "Actually", "lookup", "a", "user", "name", "using", "the", "underlying", "IPersonAttributeDao", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/PersonDirNameFinder.java#L70-L84
57,970
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AnyUnblockedGrantPermissionPolicy.java
AnyUnblockedGrantPermissionPolicy.removeInactivePermissions
private Set<IPermission> removeInactivePermissions(final IPermission[] perms) { Date now = new Date(); Set<IPermission> rslt = new HashSet<>(1); for (int i = 0; i < perms.length; i++) { IPermission p = perms[i]; if ((p.getEffective() == null || !p.getEffective().after(...
java
private Set<IPermission> removeInactivePermissions(final IPermission[] perms) { Date now = new Date(); Set<IPermission> rslt = new HashSet<>(1); for (int i = 0; i < perms.length; i++) { IPermission p = perms[i]; if ((p.getEffective() == null || !p.getEffective().after(...
[ "private", "Set", "<", "IPermission", ">", "removeInactivePermissions", "(", "final", "IPermission", "[", "]", "perms", ")", "{", "Date", "now", "=", "new", "Date", "(", ")", ";", "Set", "<", "IPermission", ">", "rslt", "=", "new", "HashSet", "<>", "(", ...
Returns a Set containing those IPermission instances where the present date is neither after the permission expiration if present nor before the permission start date if present. Only permissions objects that have been filtered by this method should be checked. @return Potentially empty non-null Set of active permissi...
[ "Returns", "a", "Set", "containing", "those", "IPermission", "instances", "where", "the", "present", "date", "is", "neither", "after", "the", "permission", "expiration", "if", "present", "nor", "before", "the", "permission", "start", "date", "if", "present", "."...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AnyUnblockedGrantPermissionPolicy.java#L360-L375
57,971
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/firewall/RequestParameterPolicyEnforcementFilter.java
RequestParameterPolicyEnforcementFilter.throwIfUnrecognizedParamName
static void throwIfUnrecognizedParamName(Enumeration initParamNames) throws ServletException { final Set<String> recognizedParameterNames = new HashSet<String>(); recognizedParameterNames.add(ALLOW_MULTI_VALUED_PARAMETERS); recognizedParameterNames.add(PARAMETERS_TO_CHECK); recognizedPar...
java
static void throwIfUnrecognizedParamName(Enumeration initParamNames) throws ServletException { final Set<String> recognizedParameterNames = new HashSet<String>(); recognizedParameterNames.add(ALLOW_MULTI_VALUED_PARAMETERS); recognizedParameterNames.add(PARAMETERS_TO_CHECK); recognizedPar...
[ "static", "void", "throwIfUnrecognizedParamName", "(", "Enumeration", "initParamNames", ")", "throws", "ServletException", "{", "final", "Set", "<", "String", ">", "recognizedParameterNames", "=", "new", "HashSet", "<", "String", ">", "(", ")", ";", "recognizedParam...
Examines the Filter init parameter names and throws ServletException if they contain an unrecognized init parameter name. <p>This is a stateless static method. <p>This method is an implementation detail and is not exposed API. This method is only non-private to allow JUnit testing. @param initParamNames init param n...
[ "Examines", "the", "Filter", "init", "parameter", "names", "and", "throws", "ServletException", "if", "they", "contain", "an", "unrecognized", "init", "parameter", "name", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/firewall/RequestParameterPolicyEnforcementFilter.java#L257-L276
57,972
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/firewall/RequestParameterPolicyEnforcementFilter.java
RequestParameterPolicyEnforcementFilter.parseParametersToCheck
static Set<String> parseParametersToCheck(final String initParamValue) { final Set<String> parameterNames = new HashSet<String>(); if (null == initParamValue) { return parameterNames; } final String[] tokens = initParamValue.split("\\s+"); if (0 == tokens.length) ...
java
static Set<String> parseParametersToCheck(final String initParamValue) { final Set<String> parameterNames = new HashSet<String>(); if (null == initParamValue) { return parameterNames; } final String[] tokens = initParamValue.split("\\s+"); if (0 == tokens.length) ...
[ "static", "Set", "<", "String", ">", "parseParametersToCheck", "(", "final", "String", "initParamValue", ")", "{", "final", "Set", "<", "String", ">", "parameterNames", "=", "new", "HashSet", "<", "String", ">", "(", ")", ";", "if", "(", "null", "==", "i...
Parse the whitespace delimited String of parameters to check. <p>If the String is null, return the empty set. If the whitespace delimited String contains no tokens, throw IllegalArgumentException. If the sole token is an asterisk, return the empty set. If the asterisk token is encountered among other tokens, throw Ill...
[ "Parse", "the", "whitespace", "delimited", "String", "of", "parameters", "to", "check", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/firewall/RequestParameterPolicyEnforcementFilter.java#L328-L362
57,973
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/firewall/RequestParameterPolicyEnforcementFilter.java
RequestParameterPolicyEnforcementFilter.requireNotMultiValued
static void requireNotMultiValued(final Set<String> parametersToCheck, final Map parameterMap) { for (final String parameterName : parametersToCheck) { if (parameterMap.containsKey(parameterName)) { final String[] values = (String[]) parameterMap.get(parameterName); ...
java
static void requireNotMultiValued(final Set<String> parametersToCheck, final Map parameterMap) { for (final String parameterName : parametersToCheck) { if (parameterMap.containsKey(parameterName)) { final String[] values = (String[]) parameterMap.get(parameterName); ...
[ "static", "void", "requireNotMultiValued", "(", "final", "Set", "<", "String", ">", "parametersToCheck", ",", "final", "Map", "parameterMap", ")", "{", "for", "(", "final", "String", "parameterName", ":", "parametersToCheck", ")", "{", "if", "(", "parameterMap",...
For each parameter to check, verify that it has zero or one value. <p>The Set of parameters to check MAY be empty. The parameter map MAY NOT contain any given parameter to check. <p>This method is an implementation detail and is not exposed API. This method is only non-private to allow JUnit testing. <p>Static, stat...
[ "For", "each", "parameter", "to", "check", "verify", "that", "it", "has", "zero", "or", "one", "value", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/firewall/RequestParameterPolicyEnforcementFilter.java#L434-L449
57,974
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/ChainingSecurityContext.java
ChainingSecurityContext.authenticate
@Override public synchronized void authenticate() throws PortalSecurityException { int i; Enumeration e = mySubContexts.elements(); while (e.hasMoreElements()) { ISecurityContext sctx = ((Entry) e.nextElement()).getCtx(); // The principal and credential are now set f...
java
@Override public synchronized void authenticate() throws PortalSecurityException { int i; Enumeration e = mySubContexts.elements(); while (e.hasMoreElements()) { ISecurityContext sctx = ((Entry) e.nextElement()).getCtx(); // The principal and credential are now set f...
[ "@", "Override", "public", "synchronized", "void", "authenticate", "(", ")", "throws", "PortalSecurityException", "{", "int", "i", ";", "Enumeration", "e", "=", "mySubContexts", ".", "elements", "(", ")", ";", "while", "(", "e", ".", "hasMoreElements", "(", ...
We walk the chain of subcontexts assigning principals and opaqueCredentials from the parent. Note that the contexts themselves should resist actually performing the assignment if an assignment has already been made to either the credentials or the UID.
[ "We", "walk", "the", "chain", "of", "subcontexts", "assigning", "principals", "and", "opaqueCredentials", "from", "the", "parent", ".", "Note", "that", "the", "contexts", "themselves", "should", "resist", "actually", "performing", "the", "assignment", "if", "an", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/ChainingSecurityContext.java#L80-L111
57,975
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/ChainingSecurityContext.java
ChainingSecurityContext.getSubContexts
@Override public synchronized Enumeration getSubContexts() { Enumeration e = mySubContexts.elements(); class Adapter implements Enumeration { Enumeration base; public Adapter(Enumeration e) { this.base = e; } @Override pub...
java
@Override public synchronized Enumeration getSubContexts() { Enumeration e = mySubContexts.elements(); class Adapter implements Enumeration { Enumeration base; public Adapter(Enumeration e) { this.base = e; } @Override pub...
[ "@", "Override", "public", "synchronized", "Enumeration", "getSubContexts", "(", ")", "{", "Enumeration", "e", "=", "mySubContexts", ".", "elements", "(", ")", ";", "class", "Adapter", "implements", "Enumeration", "{", "Enumeration", "base", ";", "public", "Adap...
be returned in the order they appeared in the properties file.
[ "be", "returned", "in", "the", "order", "they", "appeared", "in", "the", "properties", "file", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/ChainingSecurityContext.java#L162-L183
57,976
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/ChainingSecurityContext.java
ChainingSecurityContext.getSubContextNames
@Override public synchronized Enumeration getSubContextNames() { Vector scNames = new Vector(); for (int i = 0; i < mySubContexts.size(); i++) { Entry entry = (Entry) mySubContexts.get(i); if (entry.getKey() != null) { scNames.add(entry.getKey()); ...
java
@Override public synchronized Enumeration getSubContextNames() { Vector scNames = new Vector(); for (int i = 0; i < mySubContexts.size(); i++) { Entry entry = (Entry) mySubContexts.get(i); if (entry.getKey() != null) { scNames.add(entry.getKey()); ...
[ "@", "Override", "public", "synchronized", "Enumeration", "getSubContextNames", "(", ")", "{", "Vector", "scNames", "=", "new", "Vector", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mySubContexts", ".", "size", "(", ")", ";", "i", ...
Returns an Enumeration of the names of the subcontexts.
[ "Returns", "an", "Enumeration", "of", "the", "names", "of", "the", "subcontexts", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/ChainingSecurityContext.java#L273-L283
57,977
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/favorites/FavoritesController.java
FavoritesController.initializeView
@RenderMapping public String initializeView(PortletRequest req, Model model) { final IUserInstance ui = userInstanceManager.getUserInstance(portalRequestUtils.getCurrentPortalRequest()); final UserPreferencesManager upm = (UserPreferencesManager) ui.getPreferencesManager(); f...
java
@RenderMapping public String initializeView(PortletRequest req, Model model) { final IUserInstance ui = userInstanceManager.getUserInstance(portalRequestUtils.getCurrentPortalRequest()); final UserPreferencesManager upm = (UserPreferencesManager) ui.getPreferencesManager(); f...
[ "@", "RenderMapping", "public", "String", "initializeView", "(", "PortletRequest", "req", ",", "Model", "model", ")", "{", "final", "IUserInstance", "ui", "=", "userInstanceManager", ".", "getUserInstance", "(", "portalRequestUtils", ".", "getCurrentPortalRequest", "(...
Handles all Favorites portlet VIEW mode renders. Populates model with user's favorites and selects a view to display those favorites. <p>View selection: <p>Returns "jsp/Favorites/view" in the normal case where the user has at least one favorited portlet or favorited collection. <p>Returns "jsp/Favorites/view_zero" i...
[ "Handles", "all", "Favorites", "portlet", "VIEW", "mode", "renders", ".", "Populates", "model", "with", "user", "s", "favorites", "and", "selects", "a", "view", "to", "display", "those", "favorites", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/favorites/FavoritesController.java#L86-L151
57,978
Jasig/uPortal
uPortal-soffit/uPortal-soffit-connector/src/main/java/org/apereo/portal/soffit/connector/AbstractHeaderProvider.java
AbstractHeaderProvider.getExpiration
protected final Date getExpiration(RenderRequest renderRequest) { // Expiration of the JWT final PortletSession portletSession = renderRequest.getPortletSession(); final Date rslt = new Date( portletSession.getLastAccessedTime() ...
java
protected final Date getExpiration(RenderRequest renderRequest) { // Expiration of the JWT final PortletSession portletSession = renderRequest.getPortletSession(); final Date rslt = new Date( portletSession.getLastAccessedTime() ...
[ "protected", "final", "Date", "getExpiration", "(", "RenderRequest", "renderRequest", ")", "{", "// Expiration of the JWT", "final", "PortletSession", "portletSession", "=", "renderRequest", ".", "getPortletSession", "(", ")", ";", "final", "Date", "rslt", "=", "new",...
Point at which the JWT expires
[ "Point", "at", "which", "the", "JWT", "expires" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-soffit/uPortal-soffit-connector/src/main/java/org/apereo/portal/soffit/connector/AbstractHeaderProvider.java#L48-L56
57,979
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java
AuthorizationImpl.canPrincipalManage
@Override @RequestCache public boolean canPrincipalManage(IAuthorizationPrincipal principal, String portletDefinitionId) throws AuthorizationException { final String owner = IPermission.PORTAL_PUBLISH; final String target = IPermission.PORTLET_PREFIX + portletDefinitionId; ...
java
@Override @RequestCache public boolean canPrincipalManage(IAuthorizationPrincipal principal, String portletDefinitionId) throws AuthorizationException { final String owner = IPermission.PORTAL_PUBLISH; final String target = IPermission.PORTLET_PREFIX + portletDefinitionId; ...
[ "@", "Override", "@", "RequestCache", "public", "boolean", "canPrincipalManage", "(", "IAuthorizationPrincipal", "principal", ",", "String", "portletDefinitionId", ")", "throws", "AuthorizationException", "{", "final", "String", "owner", "=", "IPermission", ".", "PORTAL...
Answers if the principal has permission to MANAGE this Channel. @param principal IAuthorizationPrincipal The user who wants to manage the portlet @param portletDefinitionId The Id of the portlet being managed @return True if the specified user is allowed to manage the specified portlet; otherwise false @exception Auth...
[ "Answers", "if", "the", "principal", "has", "permission", "to", "MANAGE", "this", "Channel", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java#L273-L332
57,980
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java
AuthorizationImpl.canPrincipalRender
@Override @RequestCache public boolean canPrincipalRender(IAuthorizationPrincipal principal, String portletDefinitionId) throws AuthorizationException { // This code simply assumes that anyone who can subscribe to a channel // should be able to render it. In the future, we'd like to...
java
@Override @RequestCache public boolean canPrincipalRender(IAuthorizationPrincipal principal, String portletDefinitionId) throws AuthorizationException { // This code simply assumes that anyone who can subscribe to a channel // should be able to render it. In the future, we'd like to...
[ "@", "Override", "@", "RequestCache", "public", "boolean", "canPrincipalRender", "(", "IAuthorizationPrincipal", "principal", ",", "String", "portletDefinitionId", ")", "throws", "AuthorizationException", "{", "// This code simply assumes that anyone who can subscribe to a channel"...
Answers if the principal has permission to RENDER this Channel. This implementation currently delegates to the SUBSCRIBE permission. @return boolean @param principal IAuthorizationPrincipal @param portletDefinitionId @exception AuthorizationException indicates authorization information could not be retrieved.
[ "Answers", "if", "the", "principal", "has", "permission", "to", "RENDER", "this", "Channel", ".", "This", "implementation", "currently", "delegates", "to", "the", "SUBSCRIBE", "permission", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java#L405-L413
57,981
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java
AuthorizationImpl.canPrincipalSubscribe
@Override @RequestCache public boolean canPrincipalSubscribe( IAuthorizationPrincipal principal, String portletDefinitionId) { String owner = IPermission.PORTAL_SUBSCRIBE; // retrieve the indicated channel from the channel registry store and // determine its current lifecycl...
java
@Override @RequestCache public boolean canPrincipalSubscribe( IAuthorizationPrincipal principal, String portletDefinitionId) { String owner = IPermission.PORTAL_SUBSCRIBE; // retrieve the indicated channel from the channel registry store and // determine its current lifecycl...
[ "@", "Override", "@", "RequestCache", "public", "boolean", "canPrincipalSubscribe", "(", "IAuthorizationPrincipal", "principal", ",", "String", "portletDefinitionId", ")", "{", "String", "owner", "=", "IPermission", ".", "PORTAL_SUBSCRIBE", ";", "// retrieve the indicated...
Answers if the principal has permission to SUBSCRIBE to this Channel. @return boolean @param principal IAuthorizationPrincipal @param portletDefinitionId @exception AuthorizationException indicates authorization information could not be retrieved.
[ "Answers", "if", "the", "principal", "has", "permission", "to", "SUBSCRIBE", "to", "this", "Channel", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java#L473-L514
57,982
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java
AuthorizationImpl.newPrincipal
@Override public IAuthorizationPrincipal newPrincipal(String key, Class type) { final Tuple<String, Class> principalKey = new Tuple<>(key, type); final Element element = this.principalCache.get(principalKey); // principalCache is self populating, it can never return a null entry retu...
java
@Override public IAuthorizationPrincipal newPrincipal(String key, Class type) { final Tuple<String, Class> principalKey = new Tuple<>(key, type); final Element element = this.principalCache.get(principalKey); // principalCache is self populating, it can never return a null entry retu...
[ "@", "Override", "public", "IAuthorizationPrincipal", "newPrincipal", "(", "String", "key", ",", "Class", "type", ")", "{", "final", "Tuple", "<", "String", ",", "Class", ">", "principalKey", "=", "new", "Tuple", "<>", "(", "key", ",", "type", ")", ";", ...
Factory method for IAuthorizationPrincipal. First check the principal cache, and if not present, create the principal and cache it. @return org.apereo.portal.security.IAuthorizationPrincipal @param key java.lang.String @param type java.lang.Class
[ "Factory", "method", "for", "IAuthorizationPrincipal", ".", "First", "check", "the", "principal", "cache", "and", "if", "not", "present", "create", "the", "principal", "and", "cache", "it", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java#L928-L934
57,983
Jasig/uPortal
uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java
AuthorizationImpl.primGetPermissionsForPrincipal
private IPermission[] primGetPermissionsForPrincipal(IAuthorizationPrincipal principal) throws AuthorizationException { if (!this.cachePermissions) { return getUncachedPermissionsForPrincipal(principal, null, null, null); } IPermissionSet ps = null; // Check the ...
java
private IPermission[] primGetPermissionsForPrincipal(IAuthorizationPrincipal principal) throws AuthorizationException { if (!this.cachePermissions) { return getUncachedPermissionsForPrincipal(principal, null, null, null); } IPermissionSet ps = null; // Check the ...
[ "private", "IPermission", "[", "]", "primGetPermissionsForPrincipal", "(", "IAuthorizationPrincipal", "principal", ")", "throws", "AuthorizationException", "{", "if", "(", "!", "this", ".", "cachePermissions", ")", "{", "return", "getUncachedPermissionsForPrincipal", "(",...
Returns permissions for a principal. First check the entity caching service, and if the permissions have not been cached, retrieve and cache them. @return IPermission[] @param principal org.apereo.portal.security.IAuthorizationPrincipal
[ "Returns", "permissions", "for", "a", "principal", ".", "First", "check", "the", "entity", "caching", "service", "and", "if", "the", "permissions", "have", "not", "been", "cached", "retrieve", "and", "cache", "them", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/security/provider/AuthorizationImpl.java#L974-L995
57,984
Jasig/uPortal
uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java
PortletDefinitionImporterExporter.getUsernameForUserId
private String getUsernameForUserId(int id) { if (id > 0) { String username = userIdentityStore.getPortalUserName(id); if (username != null) { return username; } logger.warn( "Invalid userID {} found when exporting a portlet; re...
java
private String getUsernameForUserId(int id) { if (id > 0) { String username = userIdentityStore.getPortalUserName(id); if (username != null) { return username; } logger.warn( "Invalid userID {} found when exporting a portlet; re...
[ "private", "String", "getUsernameForUserId", "(", "int", "id", ")", "{", "if", "(", "id", ">", "0", ")", "{", "String", "username", "=", "userIdentityStore", ".", "getPortalUserName", "(", "id", ")", ";", "if", "(", "username", "!=", "null", ")", "{", ...
Returns the username for a valid userId, else the system username
[ "Returns", "the", "username", "for", "a", "valid", "userId", "else", "the", "system", "username" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java#L170-L181
57,985
Jasig/uPortal
uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java
PortletDefinitionImporterExporter.savePortletDefinition
private IPortletDefinition savePortletDefinition( IPortletDefinition definition, List<PortletCategory> categories, Map<ExternalPermissionDefinition, Set<IGroupMember>> permissionMap) { boolean newChannel = (definition.getPortletDefinitionId() == null); // save the ch...
java
private IPortletDefinition savePortletDefinition( IPortletDefinition definition, List<PortletCategory> categories, Map<ExternalPermissionDefinition, Set<IGroupMember>> permissionMap) { boolean newChannel = (definition.getPortletDefinitionId() == null); // save the ch...
[ "private", "IPortletDefinition", "savePortletDefinition", "(", "IPortletDefinition", "definition", ",", "List", "<", "PortletCategory", ">", "categories", ",", "Map", "<", "ExternalPermissionDefinition", ",", "Set", "<", "IGroupMember", ">", ">", "permissionMap", ")", ...
Save a portlet definition. @param definition the portlet definition @param categories the list of categories for the portlet @param permissionMap a map of permission name -> list of groups who are granted that permission (Note: for now, only grant is supported and only for the FRAMEWORK_OWNER perm manager)
[ "Save", "a", "portlet", "definition", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java#L219-L306
57,986
Jasig/uPortal
uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java
PortletDefinitionImporterExporter.getCalendar
private static Calendar getCalendar(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); return calendar; }
java
private static Calendar getCalendar(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); return calendar; }
[ "private", "static", "Calendar", "getCalendar", "(", "Date", "date", ")", "{", "Calendar", "calendar", "=", "Calendar", ".", "getInstance", "(", ")", ";", "calendar", ".", "setTime", "(", "date", ")", ";", "return", "calendar", ";", "}" ]
Utility method to convert a date to a calendar.
[ "Utility", "method", "to", "convert", "a", "date", "to", "a", "calendar", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java#L363-L367
57,987
Jasig/uPortal
uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java
PortletDefinitionImporterExporter.toGroupMembers
private Set<IGroupMember> toGroupMembers(List<String> groupNames, String fname) { final Set<IGroupMember> groups = new HashSet<>(); for (String groupName : groupNames) { // Assumes the groupName case matches the DB values. EntityIdentifier[] gs = GroupService....
java
private Set<IGroupMember> toGroupMembers(List<String> groupNames, String fname) { final Set<IGroupMember> groups = new HashSet<>(); for (String groupName : groupNames) { // Assumes the groupName case matches the DB values. EntityIdentifier[] gs = GroupService....
[ "private", "Set", "<", "IGroupMember", ">", "toGroupMembers", "(", "List", "<", "String", ">", "groupNames", ",", "String", "fname", ")", "{", "final", "Set", "<", "IGroupMember", ">", "groups", "=", "new", "HashSet", "<>", "(", ")", ";", "for", "(", "...
Convert a list of group names to a list of groups. @param groupNames the list of group names - case sensitive. @return the list of groups.
[ "Convert", "a", "list", "of", "group", "names", "to", "a", "list", "of", "groups", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java#L521-L545
57,988
Jasig/uPortal
uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java
PortletDefinitionImporterExporter.toExternalPermissionDefinition
private ExternalPermissionDefinition toExternalPermissionDefinition( String system, String activity) { ExternalPermissionDefinition def = ExternalPermissionDefinition.find(system, activity); if (def != null) { return def; } String delim = ""; StringBuilde...
java
private ExternalPermissionDefinition toExternalPermissionDefinition( String system, String activity) { ExternalPermissionDefinition def = ExternalPermissionDefinition.find(system, activity); if (def != null) { return def; } String delim = ""; StringBuilde...
[ "private", "ExternalPermissionDefinition", "toExternalPermissionDefinition", "(", "String", "system", ",", "String", "activity", ")", "{", "ExternalPermissionDefinition", "def", "=", "ExternalPermissionDefinition", ".", "find", "(", "system", ",", "activity", ")", ";", ...
Check that a permission type from the XML file matches with a real permission. @param system The name of the permission manager @param activity The name of the permission to search for. @return the permission type string to use @throws IllegalArgumentException if an unsupported permission type is specified
[ "Check", "that", "a", "permission", "type", "from", "the", "XML", "file", "matches", "with", "a", "real", "permission", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-types/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java#L555-L578
57,989
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/cache/PortletCachingHeaderUtils.java
PortletCachingHeaderUtils.setCachingHeaders
public static void setCachingHeaders( int maxAge, boolean publicScope, long lastModified, PortletResourceOutputHandler portletResourceOutputHandler) { if (maxAge != 0) { portletResourceOutputHandler.setDateHeader("Last-Modified", lastModified); ...
java
public static void setCachingHeaders( int maxAge, boolean publicScope, long lastModified, PortletResourceOutputHandler portletResourceOutputHandler) { if (maxAge != 0) { portletResourceOutputHandler.setDateHeader("Last-Modified", lastModified); ...
[ "public", "static", "void", "setCachingHeaders", "(", "int", "maxAge", ",", "boolean", "publicScope", ",", "long", "lastModified", ",", "PortletResourceOutputHandler", "portletResourceOutputHandler", ")", "{", "if", "(", "maxAge", "!=", "0", ")", "{", "portletResour...
Set the Last-Modified, CacheControl, and Expires headers based on the maxAge, publicScope and lastModified. @param maxAge Maximum age for the content, follows the portlet rules (-1 cache forever, 0 cache never, N cache seconds) @param publicScope If the content is public @param lastModified The last modification times...
[ "Set", "the", "Last", "-", "Modified", "CacheControl", "and", "Expires", "headers", "based", "on", "the", "maxAge", "publicScope", "and", "lastModified", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/cache/PortletCachingHeaderUtils.java#L58-L81
57,990
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAEditRestriction.java
LPAEditRestriction.perform
@Override public void perform() throws PortalException { Element plfNode = HandlerUtils.getPLFNode(ilfNode, person, false, false); if (plfNode == null) return; changeRestriction(Constants.ATT_MOVE_ALLOWED, plfNode, moveAllowed); changeRestriction(Constants.ATT_MOVE_ALLOWED, ilfNode...
java
@Override public void perform() throws PortalException { Element plfNode = HandlerUtils.getPLFNode(ilfNode, person, false, false); if (plfNode == null) return; changeRestriction(Constants.ATT_MOVE_ALLOWED, plfNode, moveAllowed); changeRestriction(Constants.ATT_MOVE_ALLOWED, ilfNode...
[ "@", "Override", "public", "void", "perform", "(", ")", "throws", "PortalException", "{", "Element", "plfNode", "=", "HandlerUtils", ".", "getPLFNode", "(", "ilfNode", ",", "person", ",", "false", ",", "false", ")", ";", "if", "(", "plfNode", "==", "null",...
Pushes the indicated restriction attribute changes into both the ILF and PLF versions of the layouts since this will only be done when editing a fragment.
[ "Pushes", "the", "indicated", "restriction", "attribute", "changes", "into", "both", "the", "ILF", "and", "PLF", "versions", "of", "the", "layouts", "since", "this", "will", "only", "be", "done", "when", "editing", "a", "fragment", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAEditRestriction.java#L49-L68
57,991
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/portlet/container/services/CasTicketUserInfoService.java
CasTicketUserInfoService.getProxyTicket
private String getProxyTicket(PortletRequest request) { final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request); // try to determine the URL for our portlet String targetService = null; try { URL url = null; ...
java
private String getProxyTicket(PortletRequest request) { final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request); // try to determine the URL for our portlet String targetService = null; try { URL url = null; ...
[ "private", "String", "getProxyTicket", "(", "PortletRequest", "request", ")", "{", "final", "HttpServletRequest", "httpServletRequest", "=", "this", ".", "portalRequestUtils", ".", "getPortletHttpRequest", "(", "request", ")", ";", "// try to determine the URL for our portl...
Attempt to get a proxy ticket for the current portlet. @param request portlet request @return a proxy ticket, or <code>null</code> if we were unsuccessful
[ "Attempt", "to", "get", "a", "proxy", "ticket", "for", "the", "current", "portlet", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/portlet/container/services/CasTicketUserInfoService.java#L177-L238
57,992
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/portlet/container/services/CasTicketUserInfoService.java
CasTicketUserInfoService.getCasContext
@SuppressWarnings("unchecked") private static ISecurityContext getCasContext(ISecurityContext context) { if (context instanceof ICasSecurityContext) { return context; } Enumeration contextEnum = context.getSubContexts(); while (contextEnum.hasMoreElements()) { ...
java
@SuppressWarnings("unchecked") private static ISecurityContext getCasContext(ISecurityContext context) { if (context instanceof ICasSecurityContext) { return context; } Enumeration contextEnum = context.getSubContexts(); while (contextEnum.hasMoreElements()) { ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "static", "ISecurityContext", "getCasContext", "(", "ISecurityContext", "context", ")", "{", "if", "(", "context", "instanceof", "ICasSecurityContext", ")", "{", "return", "context", ";", "}", "Enumerati...
Looks for a security context @param context the principal security context @return the CAS security context, or null if not found.
[ "Looks", "for", "a", "security", "context" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/portlet/container/services/CasTicketUserInfoService.java#L246-L259
57,993
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/aggr/AggregationIntervalHelperImpl.java
AggregationIntervalHelperImpl.getAcademicTermsAfter
protected List<AcademicTermDetail> getAcademicTermsAfter(DateTime start) { final List<AcademicTermDetail> terms = this.eventAggregationManagementDao.getAcademicTermDetails(); final int index = Collections.binarySearch( terms, ...
java
protected List<AcademicTermDetail> getAcademicTermsAfter(DateTime start) { final List<AcademicTermDetail> terms = this.eventAggregationManagementDao.getAcademicTermDetails(); final int index = Collections.binarySearch( terms, ...
[ "protected", "List", "<", "AcademicTermDetail", ">", "getAcademicTermsAfter", "(", "DateTime", "start", ")", "{", "final", "List", "<", "AcademicTermDetail", ">", "terms", "=", "this", ".", "eventAggregationManagementDao", ".", "getAcademicTermDetails", "(", ")", ";...
Return a sorted list of AcademicTermDetail objects where the the first element of the list where the first element is the first term that starts after the specified start DateTime.
[ "Return", "a", "sorted", "list", "of", "AcademicTermDetail", "objects", "where", "the", "the", "first", "element", "of", "the", "list", "where", "the", "first", "element", "is", "the", "first", "term", "that", "starts", "after", "the", "specified", "start", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/AggregationIntervalHelperImpl.java#L248-L262
57,994
Jasig/uPortal
uPortal-groups/uPortal-groups-filesystem/src/main/java/org/apereo/portal/groups/filesystem/FileSystemGroupStore.java
FileSystemGroupStore.getFileRoot
protected File getFileRoot(Class type) { String path = getGroupsRootPath() + type.getName(); File f = new File(path); return (f.exists()) ? f : null; }
java
protected File getFileRoot(Class type) { String path = getGroupsRootPath() + type.getName(); File f = new File(path); return (f.exists()) ? f : null; }
[ "protected", "File", "getFileRoot", "(", "Class", "type", ")", "{", "String", "path", "=", "getGroupsRootPath", "(", ")", "+", "type", ".", "getName", "(", ")", ";", "File", "f", "=", "new", "File", "(", "path", ")", ";", "return", "(", "f", ".", "...
Returns a File that is the root for groups of the given type.
[ "Returns", "a", "File", "that", "is", "the", "root", "for", "groups", "of", "the", "given", "type", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-filesystem/src/main/java/org/apereo/portal/groups/filesystem/FileSystemGroupStore.java#L572-L576
57,995
Jasig/uPortal
uPortal-groups/uPortal-groups-filesystem/src/main/java/org/apereo/portal/groups/filesystem/FileSystemGroupStore.java
FileSystemGroupStore.primGetAllDirectoriesBelow
private void primGetAllDirectoriesBelow(File dir, Set allDirectories) { File[] files = dir.listFiles(fileFilter); for (int i = 0; i < files.length; i++) { if (files[i].isDirectory()) { primGetAllDirectoriesBelow(files[i], allDirectories); allDirectories.add(fi...
java
private void primGetAllDirectoriesBelow(File dir, Set allDirectories) { File[] files = dir.listFiles(fileFilter); for (int i = 0; i < files.length; i++) { if (files[i].isDirectory()) { primGetAllDirectoriesBelow(files[i], allDirectories); allDirectories.add(fi...
[ "private", "void", "primGetAllDirectoriesBelow", "(", "File", "dir", ",", "Set", "allDirectories", ")", "{", "File", "[", "]", "files", "=", "dir", ".", "listFiles", "(", "fileFilter", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "files",...
Returns all directories under dir.
[ "Returns", "all", "directories", "under", "dir", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-filesystem/src/main/java/org/apereo/portal/groups/filesystem/FileSystemGroupStore.java#L706-L714
57,996
Jasig/uPortal
uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/security/remoting/PermissionAssignmentMapController.java
PermissionAssignmentMapController.deletePermission
@RequestMapping(value = "/deletePermission", method = RequestMethod.POST) public void deletePermission( @RequestParam("principal") String principal, @RequestParam("owner") String owner, @RequestParam("activity") String activity, @RequestParam("target") String target, ...
java
@RequestMapping(value = "/deletePermission", method = RequestMethod.POST) public void deletePermission( @RequestParam("principal") String principal, @RequestParam("owner") String owner, @RequestParam("activity") String activity, @RequestParam("target") String target, ...
[ "@", "RequestMapping", "(", "value", "=", "\"/deletePermission\"", ",", "method", "=", "RequestMethod", ".", "POST", ")", "public", "void", "deletePermission", "(", "@", "RequestParam", "(", "\"principal\"", ")", "String", "principal", ",", "@", "RequestParam", ...
Deletes a specific permission @param principal @param assignment @param owner @param activity @param target @param request @param response @throws Exception
[ "Deletes", "a", "specific", "permission" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/security/remoting/PermissionAssignmentMapController.java#L156-L193
57,997
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java
PortletExecutionManager.cancelWorker
protected void cancelWorker( HttpServletRequest request, IPortletExecutionWorker<?> portletExecutionWorker) { final IPortletWindowId portletWindowId = portletExecutionWorker.getPortletWindowId(); final IPortletWindow portletWindow = this.portletWindowRegistry.getPortletWindow...
java
protected void cancelWorker( HttpServletRequest request, IPortletExecutionWorker<?> portletExecutionWorker) { final IPortletWindowId portletWindowId = portletExecutionWorker.getPortletWindowId(); final IPortletWindow portletWindow = this.portletWindowRegistry.getPortletWindow...
[ "protected", "void", "cancelWorker", "(", "HttpServletRequest", "request", ",", "IPortletExecutionWorker", "<", "?", ">", "portletExecutionWorker", ")", "{", "final", "IPortletWindowId", "portletWindowId", "=", "portletExecutionWorker", ".", "getPortletWindowId", "(", ")"...
Cancel the worker and add it to the hung workers queue
[ "Cancel", "the", "worker", "and", "add", "it", "to", "the", "hung", "workers", "queue" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java#L258-L273
57,998
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java
PortletExecutionManager.startPortletHeaderRender
@Override public void startPortletHeaderRender( IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) { if (doesPortletNeedHeaderWorker(portletWindowId, request)) { this.startPortletHeaderRenderInternal(portletWindowId, re...
java
@Override public void startPortletHeaderRender( IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) { if (doesPortletNeedHeaderWorker(portletWindowId, request)) { this.startPortletHeaderRenderInternal(portletWindowId, re...
[ "@", "Override", "public", "void", "startPortletHeaderRender", "(", "IPortletWindowId", "portletWindowId", ",", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "{", "if", "(", "doesPortletNeedHeaderWorker", "(", "portletWindowId", ",", "reque...
Only actually starts rendering the head if the portlet has the 'javax.portlet.renderHeaders' container-runtime-option present and set to "true." @see IPortletExecutionManager#startPortletHeaderRender(org.apereo.portal.portlet.om.IPortletWindowId, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletRes...
[ "Only", "actually", "starts", "rendering", "the", "head", "if", "the", "portlet", "has", "the", "javax", ".", "portlet", ".", "renderHeaders", "container", "-", "runtime", "-", "option", "present", "and", "set", "to", "true", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java#L518-L530
57,999
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java
PortletExecutionManager.getPortletRenderResult
protected PortletRenderResult getPortletRenderResult( IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) throws Exception { final IPortletRenderExecutionWorker tracker = getRenderedPortletBodyWorker(portletW...
java
protected PortletRenderResult getPortletRenderResult( IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) throws Exception { final IPortletRenderExecutionWorker tracker = getRenderedPortletBodyWorker(portletW...
[ "protected", "PortletRenderResult", "getPortletRenderResult", "(", "IPortletWindowId", "portletWindowId", ",", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "throws", "Exception", "{", "final", "IPortletRenderExecutionWorker", "tracker", "=", "...
Returns the PortletRenderResult waiting up to the portlet's timeout @return The PortletRenderResult from the portlet's execution @throws TimeoutException If the portlet's timeout was hit before a result was returned @throws Exception The exception thrown by the portlet during execution
[ "Returns", "the", "PortletRenderResult", "waiting", "up", "to", "the", "portlet", "s", "timeout" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java#L909-L918