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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
58,000 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java | PortletExecutionManager.startPortletHeaderRenderInternal | protected IPortletRenderExecutionWorker startPortletHeaderRenderInternal(
IPortletWindowId portletWindowId,
HttpServletRequest request,
HttpServletResponse response) {
IPortletRenderExecutionWorker portletHeaderRenderWorker =
this.portletWorkerFactory.createRe... | java | protected IPortletRenderExecutionWorker startPortletHeaderRenderInternal(
IPortletWindowId portletWindowId,
HttpServletRequest request,
HttpServletResponse response) {
IPortletRenderExecutionWorker portletHeaderRenderWorker =
this.portletWorkerFactory.createRe... | [
"protected",
"IPortletRenderExecutionWorker",
"startPortletHeaderRenderInternal",
"(",
"IPortletWindowId",
"portletWindowId",
",",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
")",
"{",
"IPortletRenderExecutionWorker",
"portletHeaderRenderWorker",
"=",
"... | create and submit the portlet header rendering job to the thread pool
@param portletWindowId
@param request
@param response
@return | [
"create",
"and",
"submit",
"the",
"portlet",
"header",
"rendering",
"job",
"to",
"the",
"thread",
"pool"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java#L928-L942 |
58,001 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java | PortletExecutionManager.startPortletRenderInternal | protected IPortletRenderExecutionWorker startPortletRenderInternal(
IPortletWindowId portletWindowId,
HttpServletRequest request,
HttpServletResponse response) {
// first check to see if there is a Throwable in the session for this IPortletWindowId
final Map<IPortletW... | java | protected IPortletRenderExecutionWorker startPortletRenderInternal(
IPortletWindowId portletWindowId,
HttpServletRequest request,
HttpServletResponse response) {
// first check to see if there is a Throwable in the session for this IPortletWindowId
final Map<IPortletW... | [
"protected",
"IPortletRenderExecutionWorker",
"startPortletRenderInternal",
"(",
"IPortletWindowId",
"portletWindowId",
",",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
")",
"{",
"// first check to see if there is a Throwable in the session for this IPortletW... | create and submit the portlet content rendering job to the thread pool | [
"create",
"and",
"submit",
"the",
"portlet",
"content",
"rendering",
"job",
"to",
"the",
"thread",
"pool"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletExecutionManager.java#L945-L984 |
58,002 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/threading/QualityOfServiceBlockingQueue.java | QualityOfServiceBlockingQueue.add | private boolean add(T e, boolean failWhenFull) {
final Queue<T> queue = this.getOrCreateQueue(e);
this.writeLock.lock();
try {
if (this.size == this.capacity) {
if (failWhenFull) {
throw new IllegalStateException("Queue is at capacity: " + this.ca... | java | private boolean add(T e, boolean failWhenFull) {
final Queue<T> queue = this.getOrCreateQueue(e);
this.writeLock.lock();
try {
if (this.size == this.capacity) {
if (failWhenFull) {
throw new IllegalStateException("Queue is at capacity: " + this.ca... | [
"private",
"boolean",
"add",
"(",
"T",
"e",
",",
"boolean",
"failWhenFull",
")",
"{",
"final",
"Queue",
"<",
"T",
">",
"queue",
"=",
"this",
".",
"getOrCreateQueue",
"(",
"e",
")",
";",
"this",
".",
"writeLock",
".",
"lock",
"(",
")",
";",
"try",
"... | Adds the element to the queue
@param failWhenFull If true and the queue is at capacity then this method throws a
IllegalStateException, if false then false is returned
@return true if the element was added, false if not | [
"Adds",
"the",
"element",
"to",
"the",
"queue"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/threading/QualityOfServiceBlockingQueue.java#L551-L573 |
58,003 | Jasig/uPortal | uPortal-rendering/src/main/java/org/apereo/portal/portlet/registry/PortletEntityRegistryImpl.java | PortletEntityRegistryImpl.deletePortletEntity | protected void deletePortletEntity(
HttpServletRequest request, IPortletEntity portletEntity, boolean cacheOnly) {
final IPortletEntityId portletEntityId = portletEntity.getPortletEntityId();
// Remove from request cache
final PortletEntityCache<IPortletEntity> portletEntityMap =
... | java | protected void deletePortletEntity(
HttpServletRequest request, IPortletEntity portletEntity, boolean cacheOnly) {
final IPortletEntityId portletEntityId = portletEntity.getPortletEntityId();
// Remove from request cache
final PortletEntityCache<IPortletEntity> portletEntityMap =
... | [
"protected",
"void",
"deletePortletEntity",
"(",
"HttpServletRequest",
"request",
",",
"IPortletEntity",
"portletEntity",
",",
"boolean",
"cacheOnly",
")",
"{",
"final",
"IPortletEntityId",
"portletEntityId",
"=",
"portletEntity",
".",
"getPortletEntityId",
"(",
")",
";... | Delete a portlet entity, removes it from the request, session and persistent stores | [
"Delete",
"a",
"portlet",
"entity",
"removes",
"it",
"from",
"the",
"request",
"session",
"and",
"persistent",
"stores"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/registry/PortletEntityRegistryImpl.java#L580-L613 |
58,004 | Jasig/uPortal | uPortal-rendering/src/main/java/org/apereo/portal/portlet/registry/PortletEntityRegistryImpl.java | PortletEntityRegistryImpl.getPortletEntity | protected IPortletEntity getPortletEntity(
HttpServletRequest request,
PortletEntityCache<IPortletEntity> portletEntityCache,
IPortletEntityId portletEntityId,
String layoutNodeId,
int userId) {
IPortletEntity portletEntity;
// First look in ... | java | protected IPortletEntity getPortletEntity(
HttpServletRequest request,
PortletEntityCache<IPortletEntity> portletEntityCache,
IPortletEntityId portletEntityId,
String layoutNodeId,
int userId) {
IPortletEntity portletEntity;
// First look in ... | [
"protected",
"IPortletEntity",
"getPortletEntity",
"(",
"HttpServletRequest",
"request",
",",
"PortletEntityCache",
"<",
"IPortletEntity",
">",
"portletEntityCache",
",",
"IPortletEntityId",
"portletEntityId",
",",
"String",
"layoutNodeId",
",",
"int",
"userId",
")",
"{",... | Lookup the portlet entity by layoutNodeId and userId | [
"Lookup",
"the",
"portlet",
"entity",
"by",
"layoutNodeId",
"and",
"userId"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/registry/PortletEntityRegistryImpl.java#L616-L718 |
58,005 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java | EditManager.getEditSet | private static Element getEditSet(Element node, Document plf, IPerson person, boolean create)
throws PortalException {
Node child = node.getFirstChild();
while (child != null) {
if (child.getNodeName().equals(Constants.ELM_EDIT_SET)) return (Element) child;
child = c... | java | private static Element getEditSet(Element node, Document plf, IPerson person, boolean create)
throws PortalException {
Node child = node.getFirstChild();
while (child != null) {
if (child.getNodeName().equals(Constants.ELM_EDIT_SET)) return (Element) child;
child = c... | [
"private",
"static",
"Element",
"getEditSet",
"(",
"Element",
"node",
",",
"Document",
"plf",
",",
"IPerson",
"person",
",",
"boolean",
"create",
")",
"throws",
"PortalException",
"{",
"Node",
"child",
"=",
"node",
".",
"getFirstChild",
"(",
")",
";",
"while... | Get the edit set if any stored in the passed in node. If not found and if the create flag is
true then create a new edit set and add it as a child to the passed in node. Then return it. | [
"Get",
"the",
"edit",
"set",
"if",
"any",
"stored",
"in",
"the",
"passed",
"in",
"node",
".",
"If",
"not",
"found",
"and",
"if",
"the",
"create",
"flag",
"is",
"true",
"then",
"create",
"a",
"new",
"edit",
"set",
"and",
"add",
"it",
"as",
"a",
"chi... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java#L54-L82 |
58,006 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java | EditManager.addEditDirective | static void addEditDirective(Element plfNode, String attributeName, IPerson person)
throws PortalException {
addDirective(plfNode, attributeName, Constants.ELM_EDIT, person);
} | java | static void addEditDirective(Element plfNode, String attributeName, IPerson person)
throws PortalException {
addDirective(plfNode, attributeName, Constants.ELM_EDIT, person);
} | [
"static",
"void",
"addEditDirective",
"(",
"Element",
"plfNode",
",",
"String",
"attributeName",
",",
"IPerson",
"person",
")",
"throws",
"PortalException",
"{",
"addDirective",
"(",
"plfNode",
",",
"attributeName",
",",
"Constants",
".",
"ELM_EDIT",
",",
"person"... | Create and append an edit directive to the edit set if not there. This only records that the
attribute was changed and the value in the plf copy node should be used, if allowed, during
the merge at login time. | [
"Create",
"and",
"append",
"an",
"edit",
"directive",
"to",
"the",
"edit",
"set",
"if",
"not",
"there",
".",
"This",
"only",
"records",
"that",
"the",
"attribute",
"was",
"changed",
"and",
"the",
"value",
"in",
"the",
"plf",
"copy",
"node",
"should",
"be... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java#L89-L92 |
58,007 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java | EditManager.addPrefsDirective | public static void addPrefsDirective(Element plfNode, String attributeName, IPerson person)
throws PortalException {
addDirective(plfNode, attributeName, Constants.ELM_PREF, person);
} | java | public static void addPrefsDirective(Element plfNode, String attributeName, IPerson person)
throws PortalException {
addDirective(plfNode, attributeName, Constants.ELM_PREF, person);
} | [
"public",
"static",
"void",
"addPrefsDirective",
"(",
"Element",
"plfNode",
",",
"String",
"attributeName",
",",
"IPerson",
"person",
")",
"throws",
"PortalException",
"{",
"addDirective",
"(",
"plfNode",
",",
"attributeName",
",",
"Constants",
".",
"ELM_PREF",
",... | Create and append a user preferences edit directive to the edit set if not there. This only
records that the attribute was changed. The value will be in the user preferences object for
the user. | [
"Create",
"and",
"append",
"a",
"user",
"preferences",
"edit",
"directive",
"to",
"the",
"edit",
"set",
"if",
"not",
"there",
".",
"This",
"only",
"records",
"that",
"the",
"attribute",
"was",
"changed",
".",
"The",
"value",
"will",
"be",
"in",
"the",
"u... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java#L99-L102 |
58,008 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java | EditManager.addDirective | private static void addDirective(
Element plfNode, String attributeName, String type, IPerson person)
throws PortalException {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element editSet = getEditSet(plfNode, plf, person, true);
// see if attributes has... | java | private static void addDirective(
Element plfNode, String attributeName, String type, IPerson person)
throws PortalException {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element editSet = getEditSet(plfNode, plf, person, true);
// see if attributes has... | [
"private",
"static",
"void",
"addDirective",
"(",
"Element",
"plfNode",
",",
"String",
"attributeName",
",",
"String",
"type",
",",
"IPerson",
"person",
")",
"throws",
"PortalException",
"{",
"Document",
"plf",
"=",
"(",
"Document",
")",
"person",
".",
"getAtt... | Create and append an edit directive to the edit set if not there. | [
"Create",
"and",
"append",
"an",
"edit",
"directive",
"to",
"the",
"edit",
"set",
"if",
"not",
"there",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java#L105-L140 |
58,009 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java | EditManager.applyEditSet | public static boolean applyEditSet(Element plfChild, Element original) {
// first get edit set if it exists
Element editSet = null;
try {
editSet = getEditSet(plfChild, null, null, false);
} catch (Exception e) {
// should never occur unless problem during create ... | java | public static boolean applyEditSet(Element plfChild, Element original) {
// first get edit set if it exists
Element editSet = null;
try {
editSet = getEditSet(plfChild, null, null, false);
} catch (Exception e) {
// should never occur unless problem during create ... | [
"public",
"static",
"boolean",
"applyEditSet",
"(",
"Element",
"plfChild",
",",
"Element",
"original",
")",
"{",
"// first get edit set if it exists",
"Element",
"editSet",
"=",
"null",
";",
"try",
"{",
"editSet",
"=",
"getEditSet",
"(",
"plfChild",
",",
"null",
... | Evaluate whether attribute changes exist in the ilfChild and if so apply them. Returns true
if some changes existed. If changes existed but matched those in the original node then they
are not applicable, are removed from the editSet, and false is returned. | [
"Evaluate",
"whether",
"attribute",
"changes",
"exist",
"in",
"the",
"ilfChild",
"and",
"if",
"so",
"apply",
"them",
".",
"Returns",
"true",
"if",
"some",
"changes",
"existed",
".",
"If",
"changes",
"existed",
"but",
"matched",
"those",
"in",
"the",
"origina... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java#L147-L212 |
58,010 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java | EditManager.removeDirective | private static void removeDirective(
String elementId, String attributeName, String type, IPerson person) {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element node = plf.getElementById(elementId);
if (node == null) return;
Element editSet = null;
... | java | private static void removeDirective(
String elementId, String attributeName, String type, IPerson person) {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element node = plf.getElementById(elementId);
if (node == null) return;
Element editSet = null;
... | [
"private",
"static",
"void",
"removeDirective",
"(",
"String",
"elementId",
",",
"String",
"attributeName",
",",
"String",
"type",
",",
"IPerson",
"person",
")",
"{",
"Document",
"plf",
"=",
"(",
"Document",
")",
"person",
".",
"getAttribute",
"(",
"Constants"... | Searches for a command of the passed-in type and if found removes it from the user's PLF. | [
"Searches",
"for",
"a",
"command",
"of",
"the",
"passed",
"-",
"in",
"type",
"and",
"if",
"found",
"removes",
"it",
"from",
"the",
"user",
"s",
"PLF",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/EditManager.java#L232-L272 |
58,011 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/PortletCookieServiceImpl.java | PortletCookieServiceImpl.removeExpiredPortletCookies | protected void removeExpiredPortletCookies(HttpServletRequest request) {
Map<String, SessionOnlyPortletCookieImpl> sessionOnlyCookies =
getSessionOnlyPortletCookieMap(request);
for (Entry<String, SessionOnlyPortletCookieImpl> entry : sessionOnlyCookies.entrySet()) {
String ke... | java | protected void removeExpiredPortletCookies(HttpServletRequest request) {
Map<String, SessionOnlyPortletCookieImpl> sessionOnlyCookies =
getSessionOnlyPortletCookieMap(request);
for (Entry<String, SessionOnlyPortletCookieImpl> entry : sessionOnlyCookies.entrySet()) {
String ke... | [
"protected",
"void",
"removeExpiredPortletCookies",
"(",
"HttpServletRequest",
"request",
")",
"{",
"Map",
"<",
"String",
",",
"SessionOnlyPortletCookieImpl",
">",
"sessionOnlyCookies",
"=",
"getSessionOnlyPortletCookieMap",
"(",
"request",
")",
";",
"for",
"(",
"Entry"... | Remove expired session only portlet cookies.
@param request | [
"Remove",
"expired",
"session",
"only",
"portlet",
"cookies",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/PortletCookieServiceImpl.java#L207-L217 |
58,012 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/DTDResolver.java | DTDResolver.resolveEntity | @Override
public InputSource resolveEntity(String publicId, String systemId) {
InputStream inStream = null;
// Check for a match on the systemId
if (systemId != null) {
if (dtdName != null && systemId.indexOf(dtdName) != -1) {
inStream = getResourceAsStream(dtdPa... | java | @Override
public InputSource resolveEntity(String publicId, String systemId) {
InputStream inStream = null;
// Check for a match on the systemId
if (systemId != null) {
if (dtdName != null && systemId.indexOf(dtdName) != -1) {
inStream = getResourceAsStream(dtdPa... | [
"@",
"Override",
"public",
"InputSource",
"resolveEntity",
"(",
"String",
"publicId",
",",
"String",
"systemId",
")",
"{",
"InputStream",
"inStream",
"=",
"null",
";",
"// Check for a match on the systemId",
"if",
"(",
"systemId",
"!=",
"null",
")",
"{",
"if",
"... | Sets up a new input source based on the dtd specified in the xml document
@param publicId the public ID
@param systemId the system ID
@return an input source based on the dtd specified in the xml document or null if we don't
have a dtd that matches systemId or publicId | [
"Sets",
"up",
"a",
"new",
"input",
"source",
"based",
"on",
"the",
"dtd",
"specified",
"in",
"the",
"xml",
"document"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/DTDResolver.java#L73-L107 |
58,013 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/url/PortalUrlProviderImpl.java | PortalUrlProviderImpl.verifyPortletWindowId | protected String verifyPortletWindowId(
HttpServletRequest request, IPortletWindowId portletWindowId) {
final IUserInstance userInstance = this.userInstanceManager.getUserInstance(request);
final IUserPreferencesManager preferencesManager = userInstance.getPreferencesManager();
final... | java | protected String verifyPortletWindowId(
HttpServletRequest request, IPortletWindowId portletWindowId) {
final IUserInstance userInstance = this.userInstanceManager.getUserInstance(request);
final IUserPreferencesManager preferencesManager = userInstance.getPreferencesManager();
final... | [
"protected",
"String",
"verifyPortletWindowId",
"(",
"HttpServletRequest",
"request",
",",
"IPortletWindowId",
"portletWindowId",
")",
"{",
"final",
"IUserInstance",
"userInstance",
"=",
"this",
".",
"userInstanceManager",
".",
"getUserInstance",
"(",
"request",
")",
";... | Verify the requested portlet window corresponds to a node in the user's layout and return the
corresponding layout node id | [
"Verify",
"the",
"requested",
"portlet",
"window",
"corresponds",
"to",
"a",
"node",
"in",
"the",
"user",
"s",
"layout",
"and",
"return",
"the",
"corresponding",
"layout",
"node",
"id"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/url/PortalUrlProviderImpl.java#L216-L241 |
58,014 | Jasig/uPortal | uPortal-security/uPortal-security-services/src/main/java/org/apereo/portal/services/EntityNameFinderService.java | EntityNameFinderService.initialize | private synchronized void initialize() {
Iterator types = EntityTypesLocator.getEntityTypes().getAllEntityTypes();
String factoryName = null;
while (types.hasNext()) {
Class type = (Class) types.next();
if (type != Object.class) {
String factoryKey =
... | java | private synchronized void initialize() {
Iterator types = EntityTypesLocator.getEntityTypes().getAllEntityTypes();
String factoryName = null;
while (types.hasNext()) {
Class type = (Class) types.next();
if (type != Object.class) {
String factoryKey =
... | [
"private",
"synchronized",
"void",
"initialize",
"(",
")",
"{",
"Iterator",
"types",
"=",
"EntityTypesLocator",
".",
"getEntityTypes",
"(",
")",
".",
"getAllEntityTypes",
"(",
")",
";",
"String",
"factoryName",
"=",
"null",
";",
"while",
"(",
"types",
".",
"... | Gets all the entity types and tries to instantiate and cache a finder for each one. There
needn't be a finder for every entity type, so if there's no entry in the portal.properties,
we just log the fact and continue. | [
"Gets",
"all",
"the",
"entity",
"types",
"and",
"tries",
"to",
"instantiate",
"and",
"cache",
"a",
"finder",
"for",
"each",
"one",
".",
"There",
"needn",
"t",
"be",
"a",
"finder",
"for",
"every",
"entity",
"type",
"so",
"if",
"there",
"s",
"no",
"entry... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-services/src/main/java/org/apereo/portal/services/EntityNameFinderService.java#L61-L98 |
58,015 | Jasig/uPortal | uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceIndividualGroupService.java | ReferenceIndividualGroupService.synchronizeGroupMembersOnDelete | protected void synchronizeGroupMembersOnDelete(IEntityGroup group) throws GroupsException {
GroupMemberImpl gmi = null;
for (Iterator it = group.getChildren().iterator(); it.hasNext(); ) {
gmi = (GroupMemberImpl) it.next();
gmi.invalidateInParentGroupsCache(Collections.singleton... | java | protected void synchronizeGroupMembersOnDelete(IEntityGroup group) throws GroupsException {
GroupMemberImpl gmi = null;
for (Iterator it = group.getChildren().iterator(); it.hasNext(); ) {
gmi = (GroupMemberImpl) it.next();
gmi.invalidateInParentGroupsCache(Collections.singleton... | [
"protected",
"void",
"synchronizeGroupMembersOnDelete",
"(",
"IEntityGroup",
"group",
")",
"throws",
"GroupsException",
"{",
"GroupMemberImpl",
"gmi",
"=",
"null",
";",
"for",
"(",
"Iterator",
"it",
"=",
"group",
".",
"getChildren",
"(",
")",
".",
"iterator",
"(... | Remove the back pointers of the group members of the deleted group. Then update the cache to
invalidate copies on peer servers.
@param group ILockableEntityGroup | [
"Remove",
"the",
"back",
"pointers",
"of",
"the",
"group",
"members",
"of",
"the",
"deleted",
"group",
".",
"Then",
"update",
"the",
"cache",
"to",
"invalidate",
"copies",
"on",
"peer",
"servers",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceIndividualGroupService.java#L703-L713 |
58,016 | Jasig/uPortal | uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceIndividualGroupService.java | ReferenceIndividualGroupService.synchronizeGroupMembersOnUpdate | protected void synchronizeGroupMembersOnUpdate(IEntityGroup group) throws GroupsException {
EntityGroupImpl egi = (EntityGroupImpl) group;
GroupMemberImpl gmi = null;
for (Iterator it = egi.getAddedMembers().values().iterator(); it.hasNext(); ) {
gmi = (GroupMemberImpl) it.next();
... | java | protected void synchronizeGroupMembersOnUpdate(IEntityGroup group) throws GroupsException {
EntityGroupImpl egi = (EntityGroupImpl) group;
GroupMemberImpl gmi = null;
for (Iterator it = egi.getAddedMembers().values().iterator(); it.hasNext(); ) {
gmi = (GroupMemberImpl) it.next();
... | [
"protected",
"void",
"synchronizeGroupMembersOnUpdate",
"(",
"IEntityGroup",
"group",
")",
"throws",
"GroupsException",
"{",
"EntityGroupImpl",
"egi",
"=",
"(",
"EntityGroupImpl",
")",
"group",
";",
"GroupMemberImpl",
"gmi",
"=",
"null",
";",
"for",
"(",
"Iterator",... | Adjust the back pointers of the updated group members to either add or remove the parent
group. Then update the cache to invalidate copies on peer servers.
@param group ILockableEntityGroup | [
"Adjust",
"the",
"back",
"pointers",
"of",
"the",
"updated",
"group",
"members",
"to",
"either",
"add",
"or",
"remove",
"the",
"parent",
"group",
".",
"Then",
"update",
"the",
"cache",
"to",
"invalidate",
"copies",
"on",
"peer",
"servers",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceIndividualGroupService.java#L721-L740 |
58,017 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/portlet/dao/jpa/ThreadContextClassLoaderAspect.java | ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate | public Object doThreadContextClassLoaderUpdate(ProceedingJoinPoint pjp) throws Throwable {
final Thread currentThread = Thread.currentThread();
final ClassLoader previousClassLoader = currentThread.getContextClassLoader();
Deque<ClassLoader> deque = PREVIOUS_CLASS_LOADER.get();
if (deque... | java | public Object doThreadContextClassLoaderUpdate(ProceedingJoinPoint pjp) throws Throwable {
final Thread currentThread = Thread.currentThread();
final ClassLoader previousClassLoader = currentThread.getContextClassLoader();
Deque<ClassLoader> deque = PREVIOUS_CLASS_LOADER.get();
if (deque... | [
"public",
"Object",
"doThreadContextClassLoaderUpdate",
"(",
"ProceedingJoinPoint",
"pjp",
")",
"throws",
"Throwable",
"{",
"final",
"Thread",
"currentThread",
"=",
"Thread",
".",
"currentThread",
"(",
")",
";",
"final",
"ClassLoader",
"previousClassLoader",
"=",
"cur... | Wraps the targeted execution, switching the current thread's context class loader to this
classes class loader. Usage defined in persistanceContext.xml. | [
"Wraps",
"the",
"targeted",
"execution",
"switching",
"the",
"current",
"thread",
"s",
"context",
"class",
"loader",
"to",
"this",
"classes",
"class",
"loader",
".",
"Usage",
"defined",
"in",
"persistanceContext",
".",
"xml",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/dao/jpa/ThreadContextClassLoaderAspect.java#L50-L72 |
58,018 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/ImportExportController.java | ImportExportController.deleteEntity | @RequestMapping(value = "/entity/{entityType}/{entityId}", method = RequestMethod.DELETE)
public void deleteEntity(
@PathVariable("entityType") String entityType,
@PathVariable("entityId") String entityId,
HttpServletRequest request,
HttpServletResponse response)
... | java | @RequestMapping(value = "/entity/{entityType}/{entityId}", method = RequestMethod.DELETE)
public void deleteEntity(
@PathVariable("entityType") String entityType,
@PathVariable("entityId") String entityId,
HttpServletRequest request,
HttpServletResponse response)
... | [
"@",
"RequestMapping",
"(",
"value",
"=",
"\"/entity/{entityType}/{entityId}\"",
",",
"method",
"=",
"RequestMethod",
".",
"DELETE",
")",
"public",
"void",
"deleteEntity",
"(",
"@",
"PathVariable",
"(",
"\"entityType\"",
")",
"String",
"entityType",
",",
"@",
"Pat... | Delete an uPortal database object. This method provides a REST interface for uPortal database
object deletion.
<p>The path for this method is /entity/type/identifier. The identifier generally a string
that may be used as a unique identifier, but is dependent on the entity type. For example, to
delete the "demo" user o... | [
"Delete",
"an",
"uPortal",
"database",
"object",
".",
"This",
"method",
"provides",
"a",
"REST",
"interface",
"for",
"uPortal",
"database",
"object",
"deletion",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/ImportExportController.java#L135-L157 |
58,019 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/aggr/stat/JpaStatisticalSummary.java | JpaStatisticalSummary.getStandardDeviation | @Override
public double getStandardDeviation() {
double stdDev = Double.NaN;
if (getN() > 0) {
if (getN() > 1) {
stdDev = FastMath.sqrt(getVariance());
} else {
stdDev = 0.0;
}
}
return stdDev;
} | java | @Override
public double getStandardDeviation() {
double stdDev = Double.NaN;
if (getN() > 0) {
if (getN() > 1) {
stdDev = FastMath.sqrt(getVariance());
} else {
stdDev = 0.0;
}
}
return stdDev;
} | [
"@",
"Override",
"public",
"double",
"getStandardDeviation",
"(",
")",
"{",
"double",
"stdDev",
"=",
"Double",
".",
"NaN",
";",
"if",
"(",
"getN",
"(",
")",
">",
"0",
")",
"{",
"if",
"(",
"getN",
"(",
")",
">",
"1",
")",
"{",
"stdDev",
"=",
"Fast... | Returns the standard deviation of the values that have been added.
<p>Double.NaN is returned if no values have been added.
@return the standard deviation | [
"Returns",
"the",
"standard",
"deviation",
"of",
"the",
"values",
"that",
"have",
"been",
"added",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/stat/JpaStatisticalSummary.java#L191-L202 |
58,020 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/BatchTinCanAPIProvider.java | BatchTinCanAPIProvider.sendBatch | public void sendBatch() {
LrsStatement statement = null;
List<LrsStatement> list = new ArrayList<LrsStatement>();
while ((statement = statementQueue.poll()) != null) {
list.add(statement);
}
if (!list.isEmpty()) {
postStatementList(list);
}
} | java | public void sendBatch() {
LrsStatement statement = null;
List<LrsStatement> list = new ArrayList<LrsStatement>();
while ((statement = statementQueue.poll()) != null) {
list.add(statement);
}
if (!list.isEmpty()) {
postStatementList(list);
}
} | [
"public",
"void",
"sendBatch",
"(",
")",
"{",
"LrsStatement",
"statement",
"=",
"null",
";",
"List",
"<",
"LrsStatement",
">",
"list",
"=",
"new",
"ArrayList",
"<",
"LrsStatement",
">",
"(",
")",
";",
"while",
"(",
"(",
"statement",
"=",
"statementQueue",
... | Send a batch of LRS statements. MUST BE SCHEDULED! Failure to properly configure this class
will result in memory leaks. | [
"Send",
"a",
"batch",
"of",
"LRS",
"statements",
".",
"MUST",
"BE",
"SCHEDULED!",
"Failure",
"to",
"properly",
"configure",
"this",
"class",
"will",
"result",
"in",
"memory",
"leaks",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/BatchTinCanAPIProvider.java#L51-L62 |
58,021 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/BatchTinCanAPIProvider.java | BatchTinCanAPIProvider.postStatementList | private void postStatementList(List<LrsStatement> list) {
try {
ResponseEntity<Object> response =
sendRequest(
STATEMENTS_REST_ENDPOINT, HttpMethod.POST, null, list, Object.class);
if (response.getStatusCode().series() == Series.SUCCESSFUL)... | java | private void postStatementList(List<LrsStatement> list) {
try {
ResponseEntity<Object> response =
sendRequest(
STATEMENTS_REST_ENDPOINT, HttpMethod.POST, null, list, Object.class);
if (response.getStatusCode().series() == Series.SUCCESSFUL)... | [
"private",
"void",
"postStatementList",
"(",
"List",
"<",
"LrsStatement",
">",
"list",
")",
"{",
"try",
"{",
"ResponseEntity",
"<",
"Object",
">",
"response",
"=",
"sendRequest",
"(",
"STATEMENTS_REST_ENDPOINT",
",",
"HttpMethod",
".",
"POST",
",",
"null",
","... | Send the list of batched LRS statements to the LRS.
@param list the list of statements. | [
"Send",
"the",
"list",
"of",
"batched",
"LRS",
"statements",
"to",
"the",
"LRS",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/BatchTinCanAPIProvider.java#L69-L98 |
58,022 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/aggr/BaseTimedAggregationStatsImpl.java | BaseTimedAggregationStatsImpl.addValue | public final void addValue(double v) {
if (isComplete()) {
this.getLogger()
.warn(
"{} is already closed, the new value of {} will be ignored on: {}",
this.getClass().getSimpleName(),
v,
... | java | public final void addValue(double v) {
if (isComplete()) {
this.getLogger()
.warn(
"{} is already closed, the new value of {} will be ignored on: {}",
this.getClass().getSimpleName(),
v,
... | [
"public",
"final",
"void",
"addValue",
"(",
"double",
"v",
")",
"{",
"if",
"(",
"isComplete",
"(",
")",
")",
"{",
"this",
".",
"getLogger",
"(",
")",
".",
"warn",
"(",
"\"{} is already closed, the new value of {} will be ignored on: {}\"",
",",
"this",
".",
"g... | Add the value to the summary statistics | [
"Add",
"the",
"value",
"to",
"the",
"summary",
"statistics"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/BaseTimedAggregationStatsImpl.java#L180-L199 |
58,023 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/layout/dlm/remoting/ChannelListController.java | ChannelListController.listChannels | @RequestMapping(value = "/portletList", method = RequestMethod.GET)
public ModelAndView listChannels(
WebRequest webRequest,
HttpServletRequest request,
@RequestParam(value = "type", required = false) String type) {
if (TYPE_MANAGE.equals(type)) {
throw new U... | java | @RequestMapping(value = "/portletList", method = RequestMethod.GET)
public ModelAndView listChannels(
WebRequest webRequest,
HttpServletRequest request,
@RequestParam(value = "type", required = false) String type) {
if (TYPE_MANAGE.equals(type)) {
throw new U... | [
"@",
"RequestMapping",
"(",
"value",
"=",
"\"/portletList\"",
",",
"method",
"=",
"RequestMethod",
".",
"GET",
")",
"public",
"ModelAndView",
"listChannels",
"(",
"WebRequest",
"webRequest",
",",
"HttpServletRequest",
"request",
",",
"@",
"RequestParam",
"(",
"val... | Original, pre-4.3 version of this API. Always returns the entire contents of the Portlet
Registry, including uncategorized portlets, to which the user has access. Access is based on
the SUBSCRIBE permission. | [
"Original",
"pre",
"-",
"4",
".",
"3",
"version",
"of",
"this",
"API",
".",
"Always",
"returns",
"the",
"entire",
"contents",
"of",
"the",
"Portlet",
"Registry",
"including",
"uncategorized",
"portlets",
"to",
"which",
"the",
"user",
"has",
"access",
".",
... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/layout/dlm/remoting/ChannelListController.java#L162-L181 |
58,024 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/tincan/converters/AbstractPortalEventToLrsStatementConverter.java | AbstractPortalEventToLrsStatementConverter.toLrsStatement | @Override
public LrsStatement toLrsStatement(PortalEvent event) {
return new LrsStatement(getActor(event), getVerb(event), getLrsObject(event));
} | java | @Override
public LrsStatement toLrsStatement(PortalEvent event) {
return new LrsStatement(getActor(event), getVerb(event), getLrsObject(event));
} | [
"@",
"Override",
"public",
"LrsStatement",
"toLrsStatement",
"(",
"PortalEvent",
"event",
")",
"{",
"return",
"new",
"LrsStatement",
"(",
"getActor",
"(",
"event",
")",
",",
"getVerb",
"(",
"event",
")",
",",
"getLrsObject",
"(",
"event",
")",
")",
";",
"}... | Convert an event to an LrsStatement.
@param event the portal event.
@return the new LrsStatement | [
"Convert",
"an",
"event",
"to",
"an",
"LrsStatement",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/converters/AbstractPortalEventToLrsStatementConverter.java#L91-L94 |
58,025 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/tincan/converters/AbstractPortalEventToLrsStatementConverter.java | AbstractPortalEventToLrsStatementConverter.getActor | protected LrsActor getActor(PortalEvent event) {
String username = event.getUserName();
return actorService.getLrsActor(username);
} | java | protected LrsActor getActor(PortalEvent event) {
String username = event.getUserName();
return actorService.getLrsActor(username);
} | [
"protected",
"LrsActor",
"getActor",
"(",
"PortalEvent",
"event",
")",
"{",
"String",
"username",
"=",
"event",
".",
"getUserName",
"(",
")",
";",
"return",
"actorService",
".",
"getLrsActor",
"(",
"username",
")",
";",
"}"
] | Get the actor for an event.
@param event the portal event
@return the LrsActor | [
"Get",
"the",
"actor",
"for",
"an",
"event",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/converters/AbstractPortalEventToLrsStatementConverter.java#L102-L105 |
58,026 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/tincan/converters/AbstractPortalEventToLrsStatementConverter.java | AbstractPortalEventToLrsStatementConverter.buildUrn | protected URI buildUrn(String... parts) {
UrnBuilder builder = new UrnBuilder("UTF-8", "tincan", "uportal", "activities");
builder.add(parts);
return builder.getUri();
} | java | protected URI buildUrn(String... parts) {
UrnBuilder builder = new UrnBuilder("UTF-8", "tincan", "uportal", "activities");
builder.add(parts);
return builder.getUri();
} | [
"protected",
"URI",
"buildUrn",
"(",
"String",
"...",
"parts",
")",
"{",
"UrnBuilder",
"builder",
"=",
"new",
"UrnBuilder",
"(",
"\"UTF-8\"",
",",
"\"tincan\"",
",",
"\"uportal\"",
",",
"\"activities\"",
")",
";",
"builder",
".",
"add",
"(",
"parts",
")",
... | Build the URN for the LrsStatement. This method attaches creates the base URN. Additional
elements can be attached.
@param parts Additional URN elements.
@return The formatted URI | [
"Build",
"the",
"URN",
"for",
"the",
"LrsStatement",
".",
"This",
"method",
"attaches",
"creates",
"the",
"base",
"URN",
".",
"Additional",
"elements",
"can",
"be",
"attached",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/converters/AbstractPortalEventToLrsStatementConverter.java#L125-L130 |
58,027 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getUsernameAttributeProvider | @Bean(name = "usernameAttributeProvider")
public IUsernameAttributeProvider getUsernameAttributeProvider() {
final SimpleUsernameAttributeProvider rslt = new SimpleUsernameAttributeProvider();
rslt.setUsernameAttribute(USERNAME_ATTRIBUTE);
return rslt;
} | java | @Bean(name = "usernameAttributeProvider")
public IUsernameAttributeProvider getUsernameAttributeProvider() {
final SimpleUsernameAttributeProvider rslt = new SimpleUsernameAttributeProvider();
rslt.setUsernameAttribute(USERNAME_ATTRIBUTE);
return rslt;
} | [
"@",
"Bean",
"(",
"name",
"=",
"\"usernameAttributeProvider\"",
")",
"public",
"IUsernameAttributeProvider",
"getUsernameAttributeProvider",
"(",
")",
"{",
"final",
"SimpleUsernameAttributeProvider",
"rslt",
"=",
"new",
"SimpleUsernameAttributeProvider",
"(",
")",
";",
"r... | Provides the default username attribute to use to the rest of the DAOs. | [
"Provides",
"the",
"default",
"username",
"attribute",
"to",
"use",
"to",
"the",
"rest",
"of",
"the",
"DAOs",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L99-L104 |
58,028 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getRequestAttributeSourceFilter | @Bean(name = "requestAttributeSourceFilter")
public Filter getRequestAttributeSourceFilter() {
final RequestAttributeSourceFilter rslt = new RequestAttributeSourceFilter();
rslt.setAdditionalDescriptors(getRequestAdditionalDescriptors());
rslt.setUsernameAttribute(REMOTE_USER_ATTRIBUTE); // ... | java | @Bean(name = "requestAttributeSourceFilter")
public Filter getRequestAttributeSourceFilter() {
final RequestAttributeSourceFilter rslt = new RequestAttributeSourceFilter();
rslt.setAdditionalDescriptors(getRequestAdditionalDescriptors());
rslt.setUsernameAttribute(REMOTE_USER_ATTRIBUTE); // ... | [
"@",
"Bean",
"(",
"name",
"=",
"\"requestAttributeSourceFilter\"",
")",
"public",
"Filter",
"getRequestAttributeSourceFilter",
"(",
")",
"{",
"final",
"RequestAttributeSourceFilter",
"rslt",
"=",
"new",
"RequestAttributeSourceFilter",
"(",
")",
";",
"rslt",
".",
"setA... | Servlet filter that creates an attribute for the serverName | [
"Servlet",
"filter",
"that",
"creates",
"an",
"attribute",
"for",
"the",
"serverName"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L142-L167 |
58,029 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getSessionAttributesOverridesMap | @Bean(name = "sessionAttributesOverridesMap")
@Scope(value = "globalSession", proxyMode = ScopedProxyMode.TARGET_CLASS)
public Map getSessionAttributesOverridesMap() {
return new ConcurrentHashMap();
} | java | @Bean(name = "sessionAttributesOverridesMap")
@Scope(value = "globalSession", proxyMode = ScopedProxyMode.TARGET_CLASS)
public Map getSessionAttributesOverridesMap() {
return new ConcurrentHashMap();
} | [
"@",
"Bean",
"(",
"name",
"=",
"\"sessionAttributesOverridesMap\"",
")",
"@",
"Scope",
"(",
"value",
"=",
"\"globalSession\"",
",",
"proxyMode",
"=",
"ScopedProxyMode",
".",
"TARGET_CLASS",
")",
"public",
"Map",
"getSessionAttributesOverridesMap",
"(",
")",
"{",
"... | Store attribute overrides in a session scoped map to ensure overrides don't show up for other
users and swapped attributes will be cleaned up on user logout. | [
"Store",
"attribute",
"overrides",
"in",
"a",
"session",
"scoped",
"map",
"to",
"ensure",
"overrides",
"don",
"t",
"show",
"up",
"for",
"other",
"users",
"and",
"swapped",
"attributes",
"will",
"be",
"cleaned",
"up",
"on",
"user",
"logout",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L173-L177 |
58,030 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getPersonAttributeDao | @Bean(name = "personAttributeDao")
@Qualifier("personAttributeDao")
public IPersonAttributeDao getPersonAttributeDao() {
final PortalRootPersonAttributeDao rslt = new PortalRootPersonAttributeDao();
rslt.setDelegatePersonAttributeDao(getRequestAttributeMergingDao());
rslt.setAttributeOve... | java | @Bean(name = "personAttributeDao")
@Qualifier("personAttributeDao")
public IPersonAttributeDao getPersonAttributeDao() {
final PortalRootPersonAttributeDao rslt = new PortalRootPersonAttributeDao();
rslt.setDelegatePersonAttributeDao(getRequestAttributeMergingDao());
rslt.setAttributeOve... | [
"@",
"Bean",
"(",
"name",
"=",
"\"personAttributeDao\"",
")",
"@",
"Qualifier",
"(",
"\"personAttributeDao\"",
")",
"public",
"IPersonAttributeDao",
"getPersonAttributeDao",
"(",
")",
"{",
"final",
"PortalRootPersonAttributeDao",
"rslt",
"=",
"new",
"PortalRootPersonAtt... | Overrides DAO acts as the root, it handles incorporating attributes from the attribute
swapper utility, wraps the caching DAO | [
"Overrides",
"DAO",
"acts",
"as",
"the",
"root",
"it",
"handles",
"incorporating",
"attributes",
"from",
"the",
"attribute",
"swapper",
"utility",
"wraps",
"the",
"caching",
"DAO"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L183-L190 |
58,031 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getRequestAttributeMergingDao | @Bean(name = "requestAttributeMergingDao")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getRequestAttributeMergingDao() {
final MergingPersonAttributeDaoImpl rslt = new MergingPersonAttributeDaoImpl();
rslt.setUsernameAttributeProvider(getUsernameAttributeProvider());
rslt.se... | java | @Bean(name = "requestAttributeMergingDao")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getRequestAttributeMergingDao() {
final MergingPersonAttributeDaoImpl rslt = new MergingPersonAttributeDaoImpl();
rslt.setUsernameAttributeProvider(getUsernameAttributeProvider());
rslt.se... | [
"@",
"Bean",
"(",
"name",
"=",
"\"requestAttributeMergingDao\"",
")",
"@",
"Qualifier",
"(",
"\"uPortalInternal\"",
")",
"public",
"IPersonAttributeDao",
"getRequestAttributeMergingDao",
"(",
")",
"{",
"final",
"MergingPersonAttributeDaoImpl",
"rslt",
"=",
"new",
"Mergi... | Merges attributes from the request with those from other DAOs. | [
"Merges",
"attributes",
"from",
"the",
"request",
"with",
"those",
"from",
"other",
"DAOs",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L193-L204 |
58,032 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getRequestAttributesDao | @Bean(name = "requestAttributesDao")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getRequestAttributesDao() {
final AdditionalDescriptorsPersonAttributeDao rslt =
new AdditionalDescriptorsPersonAttributeDao();
rslt.setDescriptors(getRequestAdditionalDescriptors());
... | java | @Bean(name = "requestAttributesDao")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getRequestAttributesDao() {
final AdditionalDescriptorsPersonAttributeDao rslt =
new AdditionalDescriptorsPersonAttributeDao();
rslt.setDescriptors(getRequestAdditionalDescriptors());
... | [
"@",
"Bean",
"(",
"name",
"=",
"\"requestAttributesDao\"",
")",
"@",
"Qualifier",
"(",
"\"uPortalInternal\"",
")",
"public",
"IPersonAttributeDao",
"getRequestAttributesDao",
"(",
")",
"{",
"final",
"AdditionalDescriptorsPersonAttributeDao",
"rslt",
"=",
"new",
"Additio... | The person attributes DAO that returns the attributes from the request. Uses a
currentUserProvider since the username may not always be provided by the request object. | [
"The",
"person",
"attributes",
"DAO",
"that",
"returns",
"the",
"attributes",
"from",
"the",
"request",
".",
"Uses",
"a",
"currentUserProvider",
"since",
"the",
"username",
"may",
"not",
"always",
"be",
"provided",
"by",
"the",
"request",
"object",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L210-L219 |
58,033 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getCachingPersonAttributeDao | @Bean(name = "cachingPersonAttributeDao")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getCachingPersonAttributeDao() {
final CachingPersonAttributeDaoImpl rslt = new CachingPersonAttributeDaoImpl();
rslt.setUsernameAttributeProvider(getUsernameAttributeProvider());
rslt.setC... | java | @Bean(name = "cachingPersonAttributeDao")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getCachingPersonAttributeDao() {
final CachingPersonAttributeDaoImpl rslt = new CachingPersonAttributeDaoImpl();
rslt.setUsernameAttributeProvider(getUsernameAttributeProvider());
rslt.setC... | [
"@",
"Bean",
"(",
"name",
"=",
"\"cachingPersonAttributeDao\"",
")",
"@",
"Qualifier",
"(",
"\"uPortalInternal\"",
")",
"public",
"IPersonAttributeDao",
"getCachingPersonAttributeDao",
"(",
")",
"{",
"final",
"CachingPersonAttributeDaoImpl",
"rslt",
"=",
"new",
"Caching... | Defines the order that the data providing DAOs are called, results are cached by the outer
caching DAO. | [
"Defines",
"the",
"order",
"that",
"the",
"data",
"providing",
"DAOs",
"are",
"called",
"results",
"are",
"cached",
"by",
"the",
"outer",
"caching",
"DAO",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L225-L235 |
58,034 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getInnerMergedPersonAttributeDaoList | @Bean(name = "innerMergedPersonAttributeDaoList")
public List<IPersonAttributeDao> getInnerMergedPersonAttributeDaoList() {
final List<IPersonAttributeDao> rslt = new ArrayList<>();
rslt.add(getImpersonationStatusPersonAttributeDao());
rslt.add(getUPortalAccountUserSource());
rslt.ad... | java | @Bean(name = "innerMergedPersonAttributeDaoList")
public List<IPersonAttributeDao> getInnerMergedPersonAttributeDaoList() {
final List<IPersonAttributeDao> rslt = new ArrayList<>();
rslt.add(getImpersonationStatusPersonAttributeDao());
rslt.add(getUPortalAccountUserSource());
rslt.ad... | [
"@",
"Bean",
"(",
"name",
"=",
"\"innerMergedPersonAttributeDaoList\"",
")",
"public",
"List",
"<",
"IPersonAttributeDao",
">",
"getInnerMergedPersonAttributeDaoList",
"(",
")",
"{",
"final",
"List",
"<",
"IPersonAttributeDao",
">",
"rslt",
"=",
"new",
"ArrayList",
... | IPersonAttributeDao beans defined by implementors will be added to this list when the
ApplicationContext comes up. | [
"IPersonAttributeDao",
"beans",
"defined",
"by",
"implementors",
"will",
"be",
"added",
"to",
"this",
"list",
"when",
"the",
"ApplicationContext",
"comes",
"up",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L270-L277 |
58,035 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getUPortalAccountUserSource | @Bean(name = "uPortalAccountUserSource")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getUPortalAccountUserSource() {
final LocalAccountPersonAttributeDao rslt = new LocalAccountPersonAttributeDao();
rslt.setLocalAccountDao(localAccountDao);
rslt.setUsernameAttributeProvider(... | java | @Bean(name = "uPortalAccountUserSource")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getUPortalAccountUserSource() {
final LocalAccountPersonAttributeDao rslt = new LocalAccountPersonAttributeDao();
rslt.setLocalAccountDao(localAccountDao);
rslt.setUsernameAttributeProvider(... | [
"@",
"Bean",
"(",
"name",
"=",
"\"uPortalAccountUserSource\"",
")",
"@",
"Qualifier",
"(",
"\"uPortalInternal\"",
")",
"public",
"IPersonAttributeDao",
"getUPortalAccountUserSource",
"(",
")",
"{",
"final",
"LocalAccountPersonAttributeDao",
"rslt",
"=",
"new",
"LocalAcc... | Looks in the local person-directory data. This is only used for portal-local users such as
fragment owners All attributes are searchable via this configuration, results are cached by
the underlying DAO. | [
"Looks",
"in",
"the",
"local",
"person",
"-",
"directory",
"data",
".",
"This",
"is",
"only",
"used",
"for",
"portal",
"-",
"local",
"users",
"such",
"as",
"fragment",
"owners",
"All",
"attributes",
"are",
"searchable",
"via",
"this",
"configuration",
"resul... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L294-L315 |
58,036 | Jasig/uPortal | uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java | PersonDirectoryConfiguration.getUPortalJdbcUserSource | @Bean(name = "uPortalJdbcUserSource")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getUPortalJdbcUserSource() {
final String sql = "SELECT USER_NAME FROM UP_USER WHERE {0}";
final SingleRowJdbcPersonAttributeDao rslt =
new SingleRowJdbcPersonAttributeDao(personDb, sql... | java | @Bean(name = "uPortalJdbcUserSource")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getUPortalJdbcUserSource() {
final String sql = "SELECT USER_NAME FROM UP_USER WHERE {0}";
final SingleRowJdbcPersonAttributeDao rslt =
new SingleRowJdbcPersonAttributeDao(personDb, sql... | [
"@",
"Bean",
"(",
"name",
"=",
"\"uPortalJdbcUserSource\"",
")",
"@",
"Qualifier",
"(",
"\"uPortalInternal\"",
")",
"public",
"IPersonAttributeDao",
"getUPortalJdbcUserSource",
"(",
")",
"{",
"final",
"String",
"sql",
"=",
"\"SELECT USER_NAME FROM UP_USER WHERE {0}\"",
... | Looks in the base UP_USER table, doesn't find attributes but will ensure a result if it the
user exists in the portal database and is searched for by username, results are cached by the
outer caching DAO. | [
"Looks",
"in",
"the",
"base",
"UP_USER",
"table",
"doesn",
"t",
"find",
"attributes",
"but",
"will",
"ensure",
"a",
"result",
"if",
"it",
"the",
"user",
"exists",
"in",
"the",
"portal",
"database",
"and",
"is",
"searched",
"for",
"by",
"username",
"results... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-webapp/src/main/java/org/apereo/portal/context/persondir/PersonDirectoryConfiguration.java#L322-L338 |
58,037 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAAddParameter.java | LPAAddParameter.addParameterChild | static void addParameterChild(Element node, String name, String value) {
if (node != null) {
Document doc = node.getOwnerDocument();
Element parm = doc.createElement(Constants.ELM_PARAMETER);
parm.setAttribute(Constants.ATT_NAME, name);
parm.setAttribute(Constants... | java | static void addParameterChild(Element node, String name, String value) {
if (node != null) {
Document doc = node.getOwnerDocument();
Element parm = doc.createElement(Constants.ELM_PARAMETER);
parm.setAttribute(Constants.ATT_NAME, name);
parm.setAttribute(Constants... | [
"static",
"void",
"addParameterChild",
"(",
"Element",
"node",
",",
"String",
"name",
",",
"String",
"value",
")",
"{",
"if",
"(",
"node",
"!=",
"null",
")",
"{",
"Document",
"doc",
"=",
"node",
".",
"getOwnerDocument",
"(",
")",
";",
"Element",
"parm",
... | Performs parameter child element creation in the passed in Element.
@param node the parent node in which to create the parameter.
@param name the name of the parameter to be created.
@param value the value of the parameter to be created. | [
"Performs",
"parameter",
"child",
"element",
"creation",
"in",
"the",
"passed",
"in",
"Element",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAAddParameter.java#L65-L80 |
58,038 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jpa/BaseJpaDao.java | BaseJpaDao.createQuery | protected final <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {
return this.getEntityManager().createQuery(criteriaQuery);
} | java | protected final <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {
return this.getEntityManager().createQuery(criteriaQuery);
} | [
"protected",
"final",
"<",
"T",
">",
"TypedQuery",
"<",
"T",
">",
"createQuery",
"(",
"CriteriaQuery",
"<",
"T",
">",
"criteriaQuery",
")",
"{",
"return",
"this",
".",
"getEntityManager",
"(",
")",
".",
"createQuery",
"(",
"criteriaQuery",
")",
";",
"}"
] | Common logic for creating and configuring JPA queries
@param criteriaQuery The criteria to create the query from | [
"Common",
"logic",
"for",
"creating",
"and",
"configuring",
"JPA",
"queries"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jpa/BaseJpaDao.java#L106-L108 |
58,039 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jpa/BaseJpaDao.java | BaseJpaDao.createCachedQuery | protected final <T> TypedQuery<T> createCachedQuery(CriteriaQuery<T> criteriaQuery) {
final TypedQuery<T> query = this.getEntityManager().createQuery(criteriaQuery);
final String cacheRegion = getCacheRegionName(criteriaQuery);
query.setHint("org.hibernate.cacheable", true);
query.setHin... | java | protected final <T> TypedQuery<T> createCachedQuery(CriteriaQuery<T> criteriaQuery) {
final TypedQuery<T> query = this.getEntityManager().createQuery(criteriaQuery);
final String cacheRegion = getCacheRegionName(criteriaQuery);
query.setHint("org.hibernate.cacheable", true);
query.setHin... | [
"protected",
"final",
"<",
"T",
">",
"TypedQuery",
"<",
"T",
">",
"createCachedQuery",
"(",
"CriteriaQuery",
"<",
"T",
">",
"criteriaQuery",
")",
"{",
"final",
"TypedQuery",
"<",
"T",
">",
"query",
"=",
"this",
".",
"getEntityManager",
"(",
")",
".",
"cr... | Important common logic for creating and configuring JPA queries cached in EhCache. This step
is important for the sake of scalability.
@param criteriaQuery The criteria to create a cached query from | [
"Important",
"common",
"logic",
"for",
"creating",
"and",
"configuring",
"JPA",
"queries",
"cached",
"in",
"EhCache",
".",
"This",
"step",
"is",
"important",
"for",
"the",
"sake",
"of",
"scalability",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jpa/BaseJpaDao.java#L116-L122 |
58,040 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jpa/BaseJpaDao.java | BaseJpaDao.getCacheRegionName | protected final <T> String getCacheRegionName(CriteriaQuery<T> criteriaQuery) {
final Set<Root<?>> roots = criteriaQuery.getRoots();
final Class<?> cacheRegionType = roots.iterator().next().getJavaType();
final String cacheRegion = cacheRegionType.getName() + QUERY_SUFFIX;
if (roots.siz... | java | protected final <T> String getCacheRegionName(CriteriaQuery<T> criteriaQuery) {
final Set<Root<?>> roots = criteriaQuery.getRoots();
final Class<?> cacheRegionType = roots.iterator().next().getJavaType();
final String cacheRegion = cacheRegionType.getName() + QUERY_SUFFIX;
if (roots.siz... | [
"protected",
"final",
"<",
"T",
">",
"String",
"getCacheRegionName",
"(",
"CriteriaQuery",
"<",
"T",
">",
"criteriaQuery",
")",
"{",
"final",
"Set",
"<",
"Root",
"<",
"?",
">",
">",
"roots",
"=",
"criteriaQuery",
".",
"getRoots",
"(",
")",
";",
"final",
... | Creates the cache region name for the criteria query
@param criteriaQuery The criteria to create the cache name for | [
"Creates",
"the",
"cache",
"region",
"name",
"for",
"the",
"criteria",
"query"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jpa/BaseJpaDao.java#L148-L165 |
58,041 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/favorites/AbstractFavoritesController.java | AbstractFavoritesController.setMarketplaceFName | @Value("${org.apereo.portal.portlets.favorites.MarketplaceFunctionalName:null}")
public void setMarketplaceFName(String marketplaceFunctionalName) {
// interpret null, non-text-having, or literal "null" as
// signaling lack of Marketplace functional name.
if (!StringUtils.hasText(marketplac... | java | @Value("${org.apereo.portal.portlets.favorites.MarketplaceFunctionalName:null}")
public void setMarketplaceFName(String marketplaceFunctionalName) {
// interpret null, non-text-having, or literal "null" as
// signaling lack of Marketplace functional name.
if (!StringUtils.hasText(marketplac... | [
"@",
"Value",
"(",
"\"${org.apereo.portal.portlets.favorites.MarketplaceFunctionalName:null}\"",
")",
"public",
"void",
"setMarketplaceFName",
"(",
"String",
"marketplaceFunctionalName",
")",
"{",
"// interpret null, non-text-having, or literal \"null\" as",
"// signaling lack of Marketp... | Configures FavoritesController to include a Marketplace portlet functional name in the Model,
which ultimately signals and enables the View to include convenient link to Marketplace for
user to add new favorites.
<p>When set to null, signals Favorites portlet to suppress links to Marketplace. Setting to
the empty Stri... | [
"Configures",
"FavoritesController",
"to",
"include",
"a",
"Marketplace",
"portlet",
"functional",
"name",
"in",
"the",
"Model",
"which",
"ultimately",
"signals",
"and",
"enables",
"the",
"View",
"to",
"include",
"convenient",
"link",
"to",
"Marketplace",
"for",
"... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/favorites/AbstractFavoritesController.java#L76-L87 |
58,042 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java | SearchPortletController.handleSearchResult | @EventMapping(SearchConstants.SEARCH_RESULTS_QNAME_STRING)
public void handleSearchResult(EventRequest request) {
// UP-3887 Design flaw. Both the searchLauncher portlet instance and the search portlet
// instance receive
// searchRequest and searchResult events because they are in the sam... | java | @EventMapping(SearchConstants.SEARCH_RESULTS_QNAME_STRING)
public void handleSearchResult(EventRequest request) {
// UP-3887 Design flaw. Both the searchLauncher portlet instance and the search portlet
// instance receive
// searchRequest and searchResult events because they are in the sam... | [
"@",
"EventMapping",
"(",
"SearchConstants",
".",
"SEARCH_RESULTS_QNAME_STRING",
")",
"public",
"void",
"handleSearchResult",
"(",
"EventRequest",
"request",
")",
"{",
"// UP-3887 Design flaw. Both the searchLauncher portlet instance and the search portlet",
"// instance receive",
... | Handles all the SearchResults events coming back from portlets | [
"Handles",
"all",
"the",
"SearchResults",
"events",
"coming",
"back",
"from",
"portlets"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java#L464-L517 |
58,043 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java | SearchPortletController.showSearchForm | @RequestMapping
public ModelAndView showSearchForm(RenderRequest request, RenderResponse response) {
final Map<String, Object> model = new HashMap<>();
String viewName;
// Determine if the new REST search should be used
if (isRestSearch(request)) {
viewName = "/jsp/Searc... | java | @RequestMapping
public ModelAndView showSearchForm(RenderRequest request, RenderResponse response) {
final Map<String, Object> model = new HashMap<>();
String viewName;
// Determine if the new REST search should be used
if (isRestSearch(request)) {
viewName = "/jsp/Searc... | [
"@",
"RequestMapping",
"public",
"ModelAndView",
"showSearchForm",
"(",
"RenderRequest",
"request",
",",
"RenderResponse",
"response",
")",
"{",
"final",
"Map",
"<",
"String",
",",
"Object",
">",
"model",
"=",
"new",
"HashMap",
"<>",
"(",
")",
";",
"String",
... | Display a search form | [
"Display",
"a",
"search",
"form"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java#L538-L563 |
58,044 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java | SearchPortletController.calculateSearchLaunchUrl | private String calculateSearchLaunchUrl(RenderRequest request, RenderResponse response) {
final HttpServletRequest httpRequest =
this.portalRequestUtils.getPortletHttpRequest(request);
final IPortalUrlBuilder portalUrlBuilder =
this.portalUrlProvider.getPortalUrlBuilderBy... | java | private String calculateSearchLaunchUrl(RenderRequest request, RenderResponse response) {
final HttpServletRequest httpRequest =
this.portalRequestUtils.getPortletHttpRequest(request);
final IPortalUrlBuilder portalUrlBuilder =
this.portalUrlProvider.getPortalUrlBuilderBy... | [
"private",
"String",
"calculateSearchLaunchUrl",
"(",
"RenderRequest",
"request",
",",
"RenderResponse",
"response",
")",
"{",
"final",
"HttpServletRequest",
"httpRequest",
"=",
"this",
".",
"portalRequestUtils",
".",
"getPortletHttpRequest",
"(",
"request",
")",
";",
... | Create an actionUrl for the indicated portlet The resource URL is for the ajax typing search
results response.
@param request render request
@param response render response | [
"Create",
"an",
"actionUrl",
"for",
"the",
"indicated",
"portlet",
"The",
"resource",
"URL",
"is",
"for",
"the",
"ajax",
"typing",
"search",
"results",
"response",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java#L572-L579 |
58,045 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java | SearchPortletController.showJSONSearchResults | @ResourceMapping(value = "retrieveSearchJSONResults")
public ModelAndView showJSONSearchResults(PortletRequest request) {
PortletPreferences prefs = request.getPreferences();
int maxTextLength =
Integer.parseInt(prefs.getValue(AUTOCOMPLETE_MAX_TEXT_LENGTH_PREF_NAME, "180"));
... | java | @ResourceMapping(value = "retrieveSearchJSONResults")
public ModelAndView showJSONSearchResults(PortletRequest request) {
PortletPreferences prefs = request.getPreferences();
int maxTextLength =
Integer.parseInt(prefs.getValue(AUTOCOMPLETE_MAX_TEXT_LENGTH_PREF_NAME, "180"));
... | [
"@",
"ResourceMapping",
"(",
"value",
"=",
"\"retrieveSearchJSONResults\"",
")",
"public",
"ModelAndView",
"showJSONSearchResults",
"(",
"PortletRequest",
"request",
")",
"{",
"PortletPreferences",
"prefs",
"=",
"request",
".",
"getPreferences",
"(",
")",
";",
"int",
... | Display AJAX autocomplete search results for the last query | [
"Display",
"AJAX",
"autocomplete",
"search",
"results",
"for",
"the",
"last",
"query"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java#L660-L684 |
58,046 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java | SearchPortletController.getCleanedAndSortedMapResults | private SortedMap<Integer, List<AutocompleteResultsModel>> getCleanedAndSortedMapResults(
ConcurrentMap<String, List<Tuple<SearchResult, String>>> resultsMap,
int maxTextLength) {
SortedMap<Integer, List<AutocompleteResultsModel>> prioritizedResultsMap =
createAutocomplet... | java | private SortedMap<Integer, List<AutocompleteResultsModel>> getCleanedAndSortedMapResults(
ConcurrentMap<String, List<Tuple<SearchResult, String>>> resultsMap,
int maxTextLength) {
SortedMap<Integer, List<AutocompleteResultsModel>> prioritizedResultsMap =
createAutocomplet... | [
"private",
"SortedMap",
"<",
"Integer",
",",
"List",
"<",
"AutocompleteResultsModel",
">",
">",
"getCleanedAndSortedMapResults",
"(",
"ConcurrentMap",
"<",
"String",
",",
"List",
"<",
"Tuple",
"<",
"SearchResult",
",",
"String",
">",
">",
">",
"resultsMap",
",",... | Return the search results in a sorted map based on priority of the search result type
@param resultsMap Search results map
@return Sorted map of search results ordered on search result type priority | [
"Return",
"the",
"search",
"results",
"in",
"a",
"sorted",
"map",
"based",
"on",
"priority",
"of",
"the",
"search",
"result",
"type"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java#L734-L766 |
58,047 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java | SearchPortletController.modifySearchResultLinkTitle | protected void modifySearchResultLinkTitle(
SearchResult result,
final HttpServletRequest httpServletRequest,
final IPortletWindowId portletWindowId) {
// If the title contains a SpEL expression, parse it with the portlet definition in the
// evaluation context.
... | java | protected void modifySearchResultLinkTitle(
SearchResult result,
final HttpServletRequest httpServletRequest,
final IPortletWindowId portletWindowId) {
// If the title contains a SpEL expression, parse it with the portlet definition in the
// evaluation context.
... | [
"protected",
"void",
"modifySearchResultLinkTitle",
"(",
"SearchResult",
"result",
",",
"final",
"HttpServletRequest",
"httpServletRequest",
",",
"final",
"IPortletWindowId",
"portletWindowId",
")",
"{",
"// If the title contains a SpEL expression, parse it with the portlet definitio... | Since portlets don't have access to the portlet definition to create a useful search results
link using something like the portlet definition's title, post-process the link text and for
those portlets whose type is present in the substitution set, replace the title with the
portlet definition's title.
@param result Se... | [
"Since",
"portlets",
"don",
"t",
"have",
"access",
"to",
"the",
"portlet",
"definition",
"to",
"create",
"a",
"useful",
"search",
"results",
"link",
"using",
"something",
"like",
"the",
"portlet",
"definition",
"s",
"title",
"post",
"-",
"process",
"the",
"l... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java#L845-L868 |
58,048 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java | SearchPortletController.getResultUrl | protected String getResultUrl(
HttpServletRequest httpServletRequest,
SearchResult result,
IPortletWindowId portletWindowId) {
final String externalUrl = result.getExternalUrl();
if (externalUrl != null) {
return externalUrl;
}
UrlType url... | java | protected String getResultUrl(
HttpServletRequest httpServletRequest,
SearchResult result,
IPortletWindowId portletWindowId) {
final String externalUrl = result.getExternalUrl();
if (externalUrl != null) {
return externalUrl;
}
UrlType url... | [
"protected",
"String",
"getResultUrl",
"(",
"HttpServletRequest",
"httpServletRequest",
",",
"SearchResult",
"result",
",",
"IPortletWindowId",
"portletWindowId",
")",
"{",
"final",
"String",
"externalUrl",
"=",
"result",
".",
"getExternalUrl",
"(",
")",
";",
"if",
... | Determine the url for the search result | [
"Determine",
"the",
"url",
"for",
"the",
"search",
"result"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/search/SearchPortletController.java#L871-L930 |
58,049 | Jasig/uPortal | uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/dlm/FragmentChannelInfo.java | FragmentChannelInfo.getParameterValue | public String getParameterValue(String name) {
NodeList parms = node.getChildNodes();
for (int i = 0; i < parms.getLength(); i++) {
Element parm = (Element) parms.item(i);
if (parm.getTagName().equals(Constants.ELM_PARAMETER)) {
String parmName = parm.getAttribut... | java | public String getParameterValue(String name) {
NodeList parms = node.getChildNodes();
for (int i = 0; i < parms.getLength(); i++) {
Element parm = (Element) parms.item(i);
if (parm.getTagName().equals(Constants.ELM_PARAMETER)) {
String parmName = parm.getAttribut... | [
"public",
"String",
"getParameterValue",
"(",
"String",
"name",
")",
"{",
"NodeList",
"parms",
"=",
"node",
".",
"getChildNodes",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"parms",
".",
"getLength",
"(",
")",
";",
"i",
"++",
"... | Returns the value of an parameter or null if such a parameter is not defined on the
underlying channel element. | [
"Returns",
"the",
"value",
"of",
"an",
"parameter",
"or",
"null",
"if",
"such",
"a",
"parameter",
"is",
"not",
"defined",
"on",
"the",
"underlying",
"channel",
"element",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/dlm/FragmentChannelInfo.java#L37-L52 |
58,050 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/oauth/OidcUserInfoController.java | OidcUserInfoController.userInfo | @RequestMapping(
value = USERINFO_ENDPOINT_URI,
produces = USERINFO_CONTENT_TYPE,
method = {RequestMethod.GET, RequestMethod.POST})
public String userInfo(
HttpServletRequest request,
@RequestParam(value = "claims", required = false) String claims,
... | java | @RequestMapping(
value = USERINFO_ENDPOINT_URI,
produces = USERINFO_CONTENT_TYPE,
method = {RequestMethod.GET, RequestMethod.POST})
public String userInfo(
HttpServletRequest request,
@RequestParam(value = "claims", required = false) String claims,
... | [
"@",
"RequestMapping",
"(",
"value",
"=",
"USERINFO_ENDPOINT_URI",
",",
"produces",
"=",
"USERINFO_CONTENT_TYPE",
",",
"method",
"=",
"{",
"RequestMethod",
".",
"GET",
",",
"RequestMethod",
".",
"POST",
"}",
")",
"public",
"String",
"userInfo",
"(",
"HttpServlet... | Obtain an OIDC Id token for the current user. | [
"Obtain",
"an",
"OIDC",
"Id",
"token",
"for",
"the",
"current",
"user",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/oauth/OidcUserInfoController.java#L92-L103 |
58,051 | Jasig/uPortal | uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/permission/target/SimpleStringTargetProviderImpl.java | SimpleStringTargetProviderImpl.setTargets | public void setTargets(Collection<IPermissionTarget> targets) {
// clear out any existing targets
targetMap.clear();
// add each target to the internal map and index it by the target key
for (IPermissionTarget target : targets) {
targetMap.put(target.getKey(), target);
... | java | public void setTargets(Collection<IPermissionTarget> targets) {
// clear out any existing targets
targetMap.clear();
// add each target to the internal map and index it by the target key
for (IPermissionTarget target : targets) {
targetMap.put(target.getKey(), target);
... | [
"public",
"void",
"setTargets",
"(",
"Collection",
"<",
"IPermissionTarget",
">",
"targets",
")",
"{",
"// clear out any existing targets",
"targetMap",
".",
"clear",
"(",
")",
";",
"// add each target to the internal map and index it by the target key",
"for",
"(",
"IPermi... | Set the permission targets for this provider.
@param targets collection of targets | [
"Set",
"the",
"permission",
"targets",
"for",
"this",
"provider",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-permissions/src/main/java/org/apereo/portal/permission/target/SimpleStringTargetProviderImpl.java#L48-L57 |
58,052 | Jasig/uPortal | uPortal-persondir/src/main/java/org/apereo/portal/persondir/PortalRootPersonAttributeDao.java | PortalRootPersonAttributeDao.getPerson | @Override
public IPersonAttributes getPerson(String uid) {
final IPersonAttributes rslt = delegatePersonAttributeDao.getPerson(uid);
if (rslt == null) {
// Nothing we can do with that
return null;
}
return postProcessPerson(rslt, uid);
} | java | @Override
public IPersonAttributes getPerson(String uid) {
final IPersonAttributes rslt = delegatePersonAttributeDao.getPerson(uid);
if (rslt == null) {
// Nothing we can do with that
return null;
}
return postProcessPerson(rslt, uid);
} | [
"@",
"Override",
"public",
"IPersonAttributes",
"getPerson",
"(",
"String",
"uid",
")",
"{",
"final",
"IPersonAttributes",
"rslt",
"=",
"delegatePersonAttributeDao",
".",
"getPerson",
"(",
"uid",
")",
";",
"if",
"(",
"rslt",
"==",
"null",
")",
"{",
"// Nothing... | This method is for "filling" a specific individual.
@param uid The username (identity) of a known individual
@return A completely "filled" person, including overrides, or <code>null</code> if the person
is unknown | [
"This",
"method",
"is",
"for",
"filling",
"a",
"specific",
"individual",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-persondir/src/main/java/org/apereo/portal/persondir/PortalRootPersonAttributeDao.java#L110-L120 |
58,053 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/LocalPortletContextManager.java | LocalPortletContextManager.register | @Override
public synchronized String register(ServletConfig config) throws PortletContainerException {
ServletContext servletContext = config.getServletContext();
String contextPath = servletContext.getContextPath();
if (!portletContexts.containsKey(contextPath)) {
PortletApplic... | java | @Override
public synchronized String register(ServletConfig config) throws PortletContainerException {
ServletContext servletContext = config.getServletContext();
String contextPath = servletContext.getContextPath();
if (!portletContexts.containsKey(contextPath)) {
PortletApplic... | [
"@",
"Override",
"public",
"synchronized",
"String",
"register",
"(",
"ServletConfig",
"config",
")",
"throws",
"PortletContainerException",
"{",
"ServletContext",
"servletContext",
"=",
"config",
".",
"getServletContext",
"(",
")",
";",
"String",
"contextPath",
"=",
... | Retrieves the PortletContext associated with the given ServletContext. If one does not exist,
it is created.
@param config the servlet config.
@return the InternalPortletContext associated with the ServletContext.
@throws PortletContainerException | [
"Retrieves",
"the",
"PortletContext",
"associated",
"with",
"the",
"given",
"ServletContext",
".",
"If",
"one",
"does",
"not",
"exist",
"it",
"is",
"created",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/LocalPortletContextManager.java#L126-L184 |
58,054 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/LocalPortletContextManager.java | LocalPortletContextManager.getPortletAppDD | public synchronized PortletApplicationDefinition getPortletAppDD(
ServletContext servletContext, String name, String contextPath)
throws PortletContainerException {
PortletApplicationDefinition portletApp =
this.portletAppDefinitionCache.get(servletContext);
if (p... | java | public synchronized PortletApplicationDefinition getPortletAppDD(
ServletContext servletContext, String name, String contextPath)
throws PortletContainerException {
PortletApplicationDefinition portletApp =
this.portletAppDefinitionCache.get(servletContext);
if (p... | [
"public",
"synchronized",
"PortletApplicationDefinition",
"getPortletAppDD",
"(",
"ServletContext",
"servletContext",
",",
"String",
"name",
",",
"String",
"contextPath",
")",
"throws",
"PortletContainerException",
"{",
"PortletApplicationDefinition",
"portletApp",
"=",
"this... | Retrieve the Portlet Application Deployment Descriptor for the given servlet context. Create
it if it does not allready exist.
@param servletContext the servlet context.
@return The portlet application deployment descriptor.
@throws PortletContainerException if the descriptor can not be found or parsed | [
"Retrieve",
"the",
"Portlet",
"Application",
"Deployment",
"Descriptor",
"for",
"the",
"given",
"servlet",
"context",
".",
"Create",
"it",
"if",
"it",
"does",
"not",
"allready",
"exist",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/LocalPortletContextManager.java#L306-L316 |
58,055 | Jasig/uPortal | uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/LocalPortletContextManager.java | LocalPortletContextManager.createDefinition | private PortletApplicationDefinition createDefinition(
ServletContext servletContext, String name, String contextPath)
throws PortletContainerException {
PortletApplicationDefinition portletApp = null;
try {
InputStream paIn = servletContext.getResourceAsStream(PORTLE... | java | private PortletApplicationDefinition createDefinition(
ServletContext servletContext, String name, String contextPath)
throws PortletContainerException {
PortletApplicationDefinition portletApp = null;
try {
InputStream paIn = servletContext.getResourceAsStream(PORTLE... | [
"private",
"PortletApplicationDefinition",
"createDefinition",
"(",
"ServletContext",
"servletContext",
",",
"String",
"name",
",",
"String",
"contextPath",
")",
"throws",
"PortletContainerException",
"{",
"PortletApplicationDefinition",
"portletApp",
"=",
"null",
";",
"try... | Creates the portlet.xml deployment descriptor representation.
@param servletContext the servlet context for which the DD is requested.
@return the Portlet Application Deployment Descriptor.
@throws PortletContainerException | [
"Creates",
"the",
"portlet",
".",
"xml",
"deployment",
"descriptor",
"representation",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/container/services/LocalPortletContextManager.java#L327-L355 |
58,056 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java | JpaClusterLockDao.getClusterMutexInternal | protected ClusterMutex getClusterMutexInternal(final String mutexName) {
final TransactionOperations transactionOperations = this.getTransactionOperations();
return transactionOperations.execute(
new TransactionCallback<ClusterMutex>() {
@Override
... | java | protected ClusterMutex getClusterMutexInternal(final String mutexName) {
final TransactionOperations transactionOperations = this.getTransactionOperations();
return transactionOperations.execute(
new TransactionCallback<ClusterMutex>() {
@Override
... | [
"protected",
"ClusterMutex",
"getClusterMutexInternal",
"(",
"final",
"String",
"mutexName",
")",
"{",
"final",
"TransactionOperations",
"transactionOperations",
"=",
"this",
".",
"getTransactionOperations",
"(",
")",
";",
"return",
"transactionOperations",
".",
"execute"... | Retrieves a ClusterMutex in a new TX | [
"Retrieves",
"a",
"ClusterMutex",
"in",
"a",
"new",
"TX"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java#L217-L241 |
58,057 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java | JpaClusterLockDao.createClusterMutex | protected void createClusterMutex(final String mutexName) {
this.executeIgnoreRollback(
new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
final EntityManager e... | java | protected void createClusterMutex(final String mutexName) {
this.executeIgnoreRollback(
new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
final EntityManager e... | [
"protected",
"void",
"createClusterMutex",
"(",
"final",
"String",
"mutexName",
")",
"{",
"this",
".",
"executeIgnoreRollback",
"(",
"new",
"TransactionCallbackWithoutResult",
"(",
")",
"{",
"@",
"Override",
"protected",
"void",
"doInTransactionWithoutResult",
"(",
"T... | Creates a new ClusterMutex with the specified name. Returns the created mutex or null if the
mutex already exists. | [
"Creates",
"a",
"new",
"ClusterMutex",
"with",
"the",
"specified",
"name",
".",
"Returns",
"the",
"created",
"mutex",
"or",
"null",
"if",
"the",
"mutex",
"already",
"exists",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java#L247-L273 |
58,058 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java | JpaClusterLockDao.validateLockedMutex | protected void validateLockedMutex(ClusterMutex clusterMutex) {
if (!clusterMutex.isLocked()) {
throw new IllegalMonitorStateException(
"Mutex is not currently locked, it cannot be updated: " + clusterMutex);
}
final String serverName = this.portalInfoProvider.get... | java | protected void validateLockedMutex(ClusterMutex clusterMutex) {
if (!clusterMutex.isLocked()) {
throw new IllegalMonitorStateException(
"Mutex is not currently locked, it cannot be updated: " + clusterMutex);
}
final String serverName = this.portalInfoProvider.get... | [
"protected",
"void",
"validateLockedMutex",
"(",
"ClusterMutex",
"clusterMutex",
")",
"{",
"if",
"(",
"!",
"clusterMutex",
".",
"isLocked",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalMonitorStateException",
"(",
"\"Mutex is not currently locked, it cannot be updated: \""... | Validates that the specified mutex is locked by this server, throws
IllegalMonitorStateException if either test fails | [
"Validates",
"that",
"the",
"specified",
"mutex",
"is",
"locked",
"by",
"this",
"server",
"throws",
"IllegalMonitorStateException",
"if",
"either",
"test",
"fails"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java#L279-L292 |
58,059 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java | JpaClusterLockDao.unlockAbandonedLock | protected void unlockAbandonedLock(final String mutexName) {
this.executeIgnoreRollback(
new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
final EntityManager ... | java | protected void unlockAbandonedLock(final String mutexName) {
this.executeIgnoreRollback(
new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
final EntityManager ... | [
"protected",
"void",
"unlockAbandonedLock",
"(",
"final",
"String",
"mutexName",
")",
"{",
"this",
".",
"executeIgnoreRollback",
"(",
"new",
"TransactionCallbackWithoutResult",
"(",
")",
"{",
"@",
"Override",
"protected",
"void",
"doInTransactionWithoutResult",
"(",
"... | Unlocks an abandoned mutex | [
"Unlocks",
"an",
"abandoned",
"mutex"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java#L295-L320 |
58,060 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java | JpaClusterLockDao.executeIgnoreRollback | protected <T> T executeIgnoreRollback(TransactionCallback<T> action, T rollbackValue) {
try {
// Try to create the mutex in a new TX
return this.newTransactionTemplate.execute(action);
} catch (TransactionSystemException e) {
if (e.getCause() instanceof RollbackExcept... | java | protected <T> T executeIgnoreRollback(TransactionCallback<T> action, T rollbackValue) {
try {
// Try to create the mutex in a new TX
return this.newTransactionTemplate.execute(action);
} catch (TransactionSystemException e) {
if (e.getCause() instanceof RollbackExcept... | [
"protected",
"<",
"T",
">",
"T",
"executeIgnoreRollback",
"(",
"TransactionCallback",
"<",
"T",
">",
"action",
",",
"T",
"rollbackValue",
")",
"{",
"try",
"{",
"// Try to create the mutex in a new TX",
"return",
"this",
".",
"newTransactionTemplate",
".",
"execute",... | Utility for using TransactionTemplate when we know that a rollback might happen and just want
to ignore it | [
"Utility",
"for",
"using",
"TransactionTemplate",
"when",
"we",
"know",
"that",
"a",
"rollback",
"might",
"happen",
"and",
"just",
"want",
"to",
"ignore",
"it"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/JpaClusterLockDao.java#L335-L348 |
58,061 | Jasig/uPortal | uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/favorites/FavoritesUtils.java | FavoritesUtils.hasAnyFavorites | public boolean hasAnyFavorites(IUserLayout layout) {
Validate.notNull(layout, "Cannot determine whether a null layout contains favorites.");
// (premature) performance optimization: short circuit returns true if nonzero favorite
// portlets
return (!getFavoritePortletLayoutNodes(layout)... | java | public boolean hasAnyFavorites(IUserLayout layout) {
Validate.notNull(layout, "Cannot determine whether a null layout contains favorites.");
// (premature) performance optimization: short circuit returns true if nonzero favorite
// portlets
return (!getFavoritePortletLayoutNodes(layout)... | [
"public",
"boolean",
"hasAnyFavorites",
"(",
"IUserLayout",
"layout",
")",
"{",
"Validate",
".",
"notNull",
"(",
"layout",
",",
"\"Cannot determine whether a null layout contains favorites.\"",
")",
";",
"// (premature) performance optimization: short circuit returns true if nonzer... | True if the layout contains any favorited collections or favorited individual portlets, false
otherwise.
@param layout non-null user layout that might contain favorite portlets and/or collections
@return true if the layout contains at least one favorited portlet or collection, false
otherwise
@throws IllegalArgumentEx... | [
"True",
"if",
"the",
"layout",
"contains",
"any",
"favorited",
"collections",
"or",
"favorited",
"individual",
"portlets",
"false",
"otherwise",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/favorites/FavoritesUtils.java#L280-L287 |
58,062 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAChangeAttribute.java | LPAChangeAttribute.perform | @Override
public void perform() throws PortalException {
// push the change into the PLF
if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) {
// we are dealing with an incorporated node, so get a plf ghost
// node, set its attribute, then add a directive indicating the... | java | @Override
public void perform() throws PortalException {
// push the change into the PLF
if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) {
// we are dealing with an incorporated node, so get a plf ghost
// node, set its attribute, then add a directive indicating the... | [
"@",
"Override",
"public",
"void",
"perform",
"(",
")",
"throws",
"PortalException",
"{",
"// push the change into the PLF",
"if",
"(",
"nodeId",
".",
"startsWith",
"(",
"Constants",
".",
"FRAGMENT_ID_USER_PREFIX",
")",
")",
"{",
"// we are dealing with an incorporated ... | Apply the attribute change. | [
"Apply",
"the",
"attribute",
"change",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAChangeAttribute.java#L39-L76 |
58,063 | Jasig/uPortal | uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/PersonDirectoryUserInfoService.java | PersonDirectoryUserInfoService.getUserInfo | protected Map<String, String> getUserInfo(
String remoteUser, HttpServletRequest httpServletRequest, IPortletWindow portletWindow)
throws PortletContainerException {
// Get the list of user attributes the portal knows about the user
final IPersonAttributes personAttributes = this... | java | protected Map<String, String> getUserInfo(
String remoteUser, HttpServletRequest httpServletRequest, IPortletWindow portletWindow)
throws PortletContainerException {
// Get the list of user attributes the portal knows about the user
final IPersonAttributes personAttributes = this... | [
"protected",
"Map",
"<",
"String",
",",
"String",
">",
"getUserInfo",
"(",
"String",
"remoteUser",
",",
"HttpServletRequest",
"httpServletRequest",
",",
"IPortletWindow",
"portletWindow",
")",
"throws",
"PortletContainerException",
"{",
"// Get the list of user attributes t... | Commons logic to get a subset of the user's attributes for the specified portlet window.
@param remoteUser The user to get attributes for.
@param httpServletRequest The current, underlying httpServletRequest
@param portletWindow The window to filter attributes for
@return A Map of user attributes for the user and wind... | [
"Commons",
"logic",
"to",
"get",
"a",
"subset",
"of",
"the",
"user",
"s",
"attributes",
"for",
"the",
"specified",
"portlet",
"window",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/PersonDirectoryUserInfoService.java#L122-L136 |
58,064 | Jasig/uPortal | uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/PersonDirectoryUserInfoService.java | PersonDirectoryUserInfoService.generateUserInfo | protected Map<String, String> generateUserInfo(
final IPersonAttributes personAttributes,
final List<? extends UserAttribute> expectedUserAttributes,
HttpServletRequest httpServletRequest) {
final Map<String, String> portletUserAttributes =
new HashMap<String,... | java | protected Map<String, String> generateUserInfo(
final IPersonAttributes personAttributes,
final List<? extends UserAttribute> expectedUserAttributes,
HttpServletRequest httpServletRequest) {
final Map<String, String> portletUserAttributes =
new HashMap<String,... | [
"protected",
"Map",
"<",
"String",
",",
"String",
">",
"generateUserInfo",
"(",
"final",
"IPersonAttributes",
"personAttributes",
",",
"final",
"List",
"<",
"?",
"extends",
"UserAttribute",
">",
"expectedUserAttributes",
",",
"HttpServletRequest",
"httpServletRequest",
... | Using the Map of portal user attributes and a List of expected attributes generate the
USER_INFO map for the portlet
@param portalUserAttributes All the attributes the portal knows about the user
@param expectedUserAttributes The attributes the portlet expects to get
@return The Map to use for the USER_INFO attribute | [
"Using",
"the",
"Map",
"of",
"portal",
"user",
"attributes",
"and",
"a",
"List",
"of",
"expected",
"attributes",
"generate",
"the",
"USER_INFO",
"map",
"for",
"the",
"portlet"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/PersonDirectoryUserInfoService.java#L146-L168 |
58,065 | Jasig/uPortal | uPortal-security/uPortal-security-mvc/src/main/java/org/apereo/portal/security/mvc/LoginController.java | LoginController.service | @RequestMapping
public void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
// create... | java | @RequestMapping
public void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
// create... | [
"@",
"RequestMapping",
"public",
"void",
"service",
"(",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
")",
"throws",
"ServletException",
",",
"IOException",
"{",
"response",
".",
"setHeader",
"(",
"\"Pragma\"",
",",
"\"no-cache\"",
")",
"... | Process the incoming HttpServletRequest. Note that this processing occurs after
PortalPreAuthenticatedProcessingFilter has run and performed pre-processing.
@param request
@param response
@exception ServletException
@exception IOException | [
"Process",
"the",
"incoming",
"HttpServletRequest",
".",
"Note",
"that",
"this",
"processing",
"occurs",
"after",
"PortalPreAuthenticatedProcessingFilter",
"has",
"run",
"and",
"performed",
"pre",
"-",
"processing",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-mvc/src/main/java/org/apereo/portal/security/mvc/LoginController.java#L75-L149 |
58,066 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/statistics/BasePortletLayoutStatisticsController.java | BasePortletLayoutStatisticsController.selectFormDefaultPortlet | protected void selectFormDefaultPortlet(final F report) {
final Set<AggregatedPortletMapping> portlets = this.getPortlets();
if (!portlets.isEmpty()) {
report.getPortlets().add(portlets.iterator().next().getFname());
}
} | java | protected void selectFormDefaultPortlet(final F report) {
final Set<AggregatedPortletMapping> portlets = this.getPortlets();
if (!portlets.isEmpty()) {
report.getPortlets().add(portlets.iterator().next().getFname());
}
} | [
"protected",
"void",
"selectFormDefaultPortlet",
"(",
"final",
"F",
"report",
")",
"{",
"final",
"Set",
"<",
"AggregatedPortletMapping",
">",
"portlets",
"=",
"this",
".",
"getPortlets",
"(",
")",
";",
"if",
"(",
"!",
"portlets",
".",
"isEmpty",
"(",
")",
... | Select the first portlet name by default for the form | [
"Select",
"the",
"first",
"portlet",
"name",
"by",
"default",
"for",
"the",
"form"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/statistics/BasePortletLayoutStatisticsController.java#L83-L88 |
58,067 | Jasig/uPortal | uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/DatabaseMetaDataImpl.java | DatabaseMetaDataImpl.getMetaData | private void getMetaData(final Connection conn) {
try {
final DatabaseMetaData dmd = conn.getMetaData();
this.databaseProductName = dmd.getDatabaseProductName();
this.databaseProductVersion = dmd.getDatabaseProductVersion();
this.driverName = dmd.getDriverName();... | java | private void getMetaData(final Connection conn) {
try {
final DatabaseMetaData dmd = conn.getMetaData();
this.databaseProductName = dmd.getDatabaseProductName();
this.databaseProductVersion = dmd.getDatabaseProductVersion();
this.driverName = dmd.getDriverName();... | [
"private",
"void",
"getMetaData",
"(",
"final",
"Connection",
"conn",
")",
"{",
"try",
"{",
"final",
"DatabaseMetaData",
"dmd",
"=",
"conn",
".",
"getMetaData",
"(",
")",
";",
"this",
".",
"databaseProductName",
"=",
"dmd",
".",
"getDatabaseProductName",
"(",
... | Gets meta data about the connection. | [
"Gets",
"meta",
"data",
"about",
"the",
"connection",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/jdbc/DatabaseMetaDataImpl.java#L314-L328 |
58,068 | Jasig/uPortal | uPortal-rendering/src/main/java/org/apereo/portal/rendering/PortalController.java | PortalController.actionRequest | @RequestMapping(
headers = {"org.apereo.portal.url.UrlType=ACTION"},
method = RequestMethod.POST)
public void actionRequest(HttpServletRequest request, HttpServletResponse response)
throws IOException {
final IPortalRequestInfo portalRequestInfo =
this.ur... | java | @RequestMapping(
headers = {"org.apereo.portal.url.UrlType=ACTION"},
method = RequestMethod.POST)
public void actionRequest(HttpServletRequest request, HttpServletResponse response)
throws IOException {
final IPortalRequestInfo portalRequestInfo =
this.ur... | [
"@",
"RequestMapping",
"(",
"headers",
"=",
"{",
"\"org.apereo.portal.url.UrlType=ACTION\"",
"}",
",",
"method",
"=",
"RequestMethod",
".",
"POST",
")",
"public",
"void",
"actionRequest",
"(",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
")... | HTTP POST required for security. | [
"HTTP",
"POST",
"required",
"for",
"security",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/rendering/PortalController.java#L112-L162 |
58,069 | Jasig/uPortal | uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/localization/UserLocaleHelper.java | UserLocaleHelper.getLocales | public List<LocaleBean> getLocales(Locale currentLocale) {
List<LocaleBean> locales = new ArrayList<>();
// get the array of locales available from the portal
List<Locale> portalLocales = localeManagerFactory.getPortalLocales();
for (Locale locale : portalLocales) {
if (curr... | java | public List<LocaleBean> getLocales(Locale currentLocale) {
List<LocaleBean> locales = new ArrayList<>();
// get the array of locales available from the portal
List<Locale> portalLocales = localeManagerFactory.getPortalLocales();
for (Locale locale : portalLocales) {
if (curr... | [
"public",
"List",
"<",
"LocaleBean",
">",
"getLocales",
"(",
"Locale",
"currentLocale",
")",
"{",
"List",
"<",
"LocaleBean",
">",
"locales",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"// get the array of locales available from the portal",
"List",
"<",
"Locale... | Return a list of LocaleBeans matching the currently available locales for the portal.
@param currentLocale
@return | [
"Return",
"a",
"list",
"of",
"LocaleBeans",
"matching",
"the",
"currently",
"available",
"locales",
"for",
"the",
"portal",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/localization/UserLocaleHelper.java#L77-L92 |
58,070 | Jasig/uPortal | uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/localization/UserLocaleHelper.java | UserLocaleHelper.getCurrentUserLocale | public Locale getCurrentUserLocale(PortletRequest request) {
final HttpServletRequest originalPortalRequest =
this.portalRequestUtils.getPortletHttpRequest(request);
IUserInstance ui = userInstanceManager.getUserInstance(originalPortalRequest);
IUserPreferencesManager upm = ui.ge... | java | public Locale getCurrentUserLocale(PortletRequest request) {
final HttpServletRequest originalPortalRequest =
this.portalRequestUtils.getPortletHttpRequest(request);
IUserInstance ui = userInstanceManager.getUserInstance(originalPortalRequest);
IUserPreferencesManager upm = ui.ge... | [
"public",
"Locale",
"getCurrentUserLocale",
"(",
"PortletRequest",
"request",
")",
"{",
"final",
"HttpServletRequest",
"originalPortalRequest",
"=",
"this",
".",
"portalRequestUtils",
".",
"getPortletHttpRequest",
"(",
"request",
")",
";",
"IUserInstance",
"ui",
"=",
... | Return the current user's locale.
@param request The current {@link PortletRequest}
@return | [
"Return",
"the",
"current",
"user",
"s",
"locale",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/localization/UserLocaleHelper.java#L100-L123 |
58,071 | Jasig/uPortal | uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/localization/UserLocaleHelper.java | UserLocaleHelper.updateUserLocale | public void updateUserLocale(HttpServletRequest request, String localeString) {
IUserInstance ui = userInstanceManager.getUserInstance(request);
IUserPreferencesManager upm = ui.getPreferencesManager();
final IUserProfile userProfile = upm.getUserProfile();
LocaleManager localeManager =... | java | public void updateUserLocale(HttpServletRequest request, String localeString) {
IUserInstance ui = userInstanceManager.getUserInstance(request);
IUserPreferencesManager upm = ui.getPreferencesManager();
final IUserProfile userProfile = upm.getUserProfile();
LocaleManager localeManager =... | [
"public",
"void",
"updateUserLocale",
"(",
"HttpServletRequest",
"request",
",",
"String",
"localeString",
")",
"{",
"IUserInstance",
"ui",
"=",
"userInstanceManager",
".",
"getUserInstance",
"(",
"request",
")",
";",
"IUserPreferencesManager",
"upm",
"=",
"ui",
"."... | Update the current user's locale to match the selected locale. This implementation will
update the session locale, and if the user is not a guest, will also update the locale in the
user's persisted preferences.
@param request
@param localeString | [
"Update",
"the",
"current",
"user",
"s",
"locale",
"to",
"match",
"the",
"selected",
"locale",
".",
"This",
"implementation",
"will",
"update",
"the",
"session",
"locale",
"and",
"if",
"the",
"user",
"is",
"not",
"a",
"guest",
"will",
"also",
"update",
"th... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/localization/UserLocaleHelper.java#L133-L168 |
58,072 | Jasig/uPortal | uPortal-tenants/src/main/java/org/apereo/portal/tenants/TemplateDataTenantOperationsListener.java | TemplateDataTenantOperationsListener.importWithResources | public TenantOperationResponse importWithResources(
final ITenant tenant, final Set<Resource> resources) {
/*
* First load dom4j Documents and sort the entity files into the proper order
*/
final Map<PortalDataKey, Set<BucketTuple>> importQueue;
try {
im... | java | public TenantOperationResponse importWithResources(
final ITenant tenant, final Set<Resource> resources) {
/*
* First load dom4j Documents and sort the entity files into the proper order
*/
final Map<PortalDataKey, Set<BucketTuple>> importQueue;
try {
im... | [
"public",
"TenantOperationResponse",
"importWithResources",
"(",
"final",
"ITenant",
"tenant",
",",
"final",
"Set",
"<",
"Resource",
">",
"resources",
")",
"{",
"/*\n * First load dom4j Documents and sort the entity files into the proper order\n */",
"final",
"Map... | High-level implementation method that brokers the queuing, importing, and reporting that is
common to Create and Update. | [
"High",
"-",
"level",
"implementation",
"method",
"that",
"brokers",
"the",
"queuing",
"importing",
"and",
"reporting",
"that",
"is",
"common",
"to",
"Create",
"and",
"Update",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tenants/src/main/java/org/apereo/portal/tenants/TemplateDataTenantOperationsListener.java#L319-L367 |
58,073 | Jasig/uPortal | uPortal-tenants/src/main/java/org/apereo/portal/tenants/TemplateDataTenantOperationsListener.java | TemplateDataTenantOperationsListener.prepareImportQueue | private Map<PortalDataKey, Set<BucketTuple>> prepareImportQueue(
final ITenant tenant, final Set<Resource> templates) throws Exception {
final Map<PortalDataKey, Set<BucketTuple>> rslt = new HashMap<>();
Resource rsc = null;
try {
for (Resource r : templates) {
... | java | private Map<PortalDataKey, Set<BucketTuple>> prepareImportQueue(
final ITenant tenant, final Set<Resource> templates) throws Exception {
final Map<PortalDataKey, Set<BucketTuple>> rslt = new HashMap<>();
Resource rsc = null;
try {
for (Resource r : templates) {
... | [
"private",
"Map",
"<",
"PortalDataKey",
",",
"Set",
"<",
"BucketTuple",
">",
">",
"prepareImportQueue",
"(",
"final",
"ITenant",
"tenant",
",",
"final",
"Set",
"<",
"Resource",
">",
"templates",
")",
"throws",
"Exception",
"{",
"final",
"Map",
"<",
"PortalDa... | Loads dom4j Documents and sorts the entity files into the proper order for Import. | [
"Loads",
"dom4j",
"Documents",
"and",
"sorts",
"the",
"entity",
"files",
"into",
"the",
"proper",
"order",
"for",
"Import",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tenants/src/main/java/org/apereo/portal/tenants/TemplateDataTenantOperationsListener.java#L370-L423 |
58,074 | Jasig/uPortal | uPortal-tenants/src/main/java/org/apereo/portal/tenants/TemplateDataTenantOperationsListener.java | TemplateDataTenantOperationsListener.importQueue | private void importQueue(
final ITenant tenant,
final Map<PortalDataKey, Set<BucketTuple>> queue,
final StringBuilder importReport)
throws Exception {
final StandardEvaluationContext ctx = new StandardEvaluationContext();
ctx.setRootObject(new RootObjectI... | java | private void importQueue(
final ITenant tenant,
final Map<PortalDataKey, Set<BucketTuple>> queue,
final StringBuilder importReport)
throws Exception {
final StandardEvaluationContext ctx = new StandardEvaluationContext();
ctx.setRootObject(new RootObjectI... | [
"private",
"void",
"importQueue",
"(",
"final",
"ITenant",
"tenant",
",",
"final",
"Map",
"<",
"PortalDataKey",
",",
"Set",
"<",
"BucketTuple",
">",
">",
"queue",
",",
"final",
"StringBuilder",
"importReport",
")",
"throws",
"Exception",
"{",
"final",
"Standar... | Imports the specified entities in the proper order. | [
"Imports",
"the",
"specified",
"entities",
"in",
"the",
"proper",
"order",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tenants/src/main/java/org/apereo/portal/tenants/TemplateDataTenantOperationsListener.java#L426-L462 |
58,075 | Jasig/uPortal | uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/ThreadNamingRequestFilter.java | ThreadNamingRequestFilter.updateCurrentUsername | public void updateCurrentUsername(String newUsername) {
final String originalThreadName = originalThreadNameLocal.get();
if (originalThreadName != null && newUsername != null) {
final Thread currentThread = Thread.currentThread();
final String threadName = getThreadName(originalT... | java | public void updateCurrentUsername(String newUsername) {
final String originalThreadName = originalThreadNameLocal.get();
if (originalThreadName != null && newUsername != null) {
final Thread currentThread = Thread.currentThread();
final String threadName = getThreadName(originalT... | [
"public",
"void",
"updateCurrentUsername",
"(",
"String",
"newUsername",
")",
"{",
"final",
"String",
"originalThreadName",
"=",
"originalThreadNameLocal",
".",
"get",
"(",
")",
";",
"if",
"(",
"originalThreadName",
"!=",
"null",
"&&",
"newUsername",
"!=",
"null",... | Update the thread name to use the specified username. Useful for authentication requests
where the username changes mid-request | [
"Update",
"the",
"thread",
"name",
"to",
"use",
"the",
"specified",
"username",
".",
"Useful",
"for",
"authentication",
"requests",
"where",
"the",
"username",
"changes",
"mid",
"-",
"request"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/ThreadNamingRequestFilter.java#L41-L48 |
58,076 | Jasig/uPortal | uPortal-api/uPortal-api-platform-impl/src/main/java/org/apereo/portal/api/groups/EntityService.java | EntityService.search | public Set<Entity> search(String entityType, String searchTerm) {
if (StringUtils.isBlank(entityType) && StringUtils.isBlank(searchTerm)) {
return null;
}
Set<Entity> results = new HashSet<Entity>();
EntityEnum entityEnum = EntityEnum.getEntityEnum(entityType);
Entity... | java | public Set<Entity> search(String entityType, String searchTerm) {
if (StringUtils.isBlank(entityType) && StringUtils.isBlank(searchTerm)) {
return null;
}
Set<Entity> results = new HashSet<Entity>();
EntityEnum entityEnum = EntityEnum.getEntityEnum(entityType);
Entity... | [
"public",
"Set",
"<",
"Entity",
">",
"search",
"(",
"String",
"entityType",
",",
"String",
"searchTerm",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isBlank",
"(",
"entityType",
")",
"&&",
"StringUtils",
".",
"isBlank",
"(",
"searchTerm",
")",
")",
"{",
"r... | External search, thus case insensitive. | [
"External",
"search",
"thus",
"case",
"insensitive",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-platform-impl/src/main/java/org/apereo/portal/api/groups/EntityService.java#L52-L90 |
58,077 | Jasig/uPortal | uPortal-spring/src/main/java/org/apereo/portal/spring/security/evaluator/PortalPermissionEvaluator.java | PortalPermissionEvaluator.getAuthorizationPrincipal | private IAuthorizationPrincipal getAuthorizationPrincipal(Authentication authentication) {
final Object authPrincipal = authentication.getPrincipal();
logger.trace("getAuthorizationPrincipal -- authPrincipal=[{}]", authPrincipal);
String username;
if (authPrincipal instanceof UserDetai... | java | private IAuthorizationPrincipal getAuthorizationPrincipal(Authentication authentication) {
final Object authPrincipal = authentication.getPrincipal();
logger.trace("getAuthorizationPrincipal -- authPrincipal=[{}]", authPrincipal);
String username;
if (authPrincipal instanceof UserDetai... | [
"private",
"IAuthorizationPrincipal",
"getAuthorizationPrincipal",
"(",
"Authentication",
"authentication",
")",
"{",
"final",
"Object",
"authPrincipal",
"=",
"authentication",
".",
"getPrincipal",
"(",
")",
";",
"logger",
".",
"trace",
"(",
"\"getAuthorizationPrincipal -... | Prepare a uPortal IAuthorizationPrincipal based in the Spring principal | [
"Prepare",
"a",
"uPortal",
"IAuthorizationPrincipal",
"based",
"in",
"the",
"Spring",
"principal"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/apereo/portal/spring/security/evaluator/PortalPermissionEvaluator.java#L153-L174 |
58,078 | Jasig/uPortal | uPortal-events/src/main/java/org/apereo/portal/events/aggr/BaseAggregationImpl.java | BaseAggregationImpl.setDuration | public final void setDuration(int duration) {
if (isComplete()) {
this.getLogger()
.warn(
"{} is already closed, the new duration of {} will be ignored on: {}",
this.getClass().getSimpleName(),
du... | java | public final void setDuration(int duration) {
if (isComplete()) {
this.getLogger()
.warn(
"{} is already closed, the new duration of {} will be ignored on: {}",
this.getClass().getSimpleName(),
du... | [
"public",
"final",
"void",
"setDuration",
"(",
"int",
"duration",
")",
"{",
"if",
"(",
"isComplete",
"(",
")",
")",
"{",
"this",
".",
"getLogger",
"(",
")",
".",
"warn",
"(",
"\"{} is already closed, the new duration of {} will be ignored on: {}\"",
",",
"this",
... | Set the duration of the interval | [
"Set",
"the",
"duration",
"of",
"the",
"interval"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/BaseAggregationImpl.java#L133-L144 |
58,079 | Jasig/uPortal | uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStore.java | GrouperEntityGroupStore.createUportalGroupFromGrouperGroup | protected IEntityGroup createUportalGroupFromGrouperGroup(WsGroup wsGroup) {
IEntityGroup iEntityGroup = new EntityGroupImpl(wsGroup.getName(), IPerson.class);
// need to set the group name and description to the actual
// display name and description
iEntityGroup.setName(wsGroup.getDis... | java | protected IEntityGroup createUportalGroupFromGrouperGroup(WsGroup wsGroup) {
IEntityGroup iEntityGroup = new EntityGroupImpl(wsGroup.getName(), IPerson.class);
// need to set the group name and description to the actual
// display name and description
iEntityGroup.setName(wsGroup.getDis... | [
"protected",
"IEntityGroup",
"createUportalGroupFromGrouperGroup",
"(",
"WsGroup",
"wsGroup",
")",
"{",
"IEntityGroup",
"iEntityGroup",
"=",
"new",
"EntityGroupImpl",
"(",
"wsGroup",
".",
"getName",
"(",
")",
",",
"IPerson",
".",
"class",
")",
";",
"// need to set t... | Construct an IEntityGroup from a Grouper WsGroup.
@param wsGroup
@return the group | [
"Construct",
"an",
"IEntityGroup",
"from",
"a",
"Grouper",
"WsGroup",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStore.java#L508-L516 |
58,080 | Jasig/uPortal | uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStore.java | GrouperEntityGroupStore.findGroupFromKey | protected WsGroup findGroupFromKey(String key) {
WsGroup wsGroup = null;
if (key != null) {
GcFindGroups gcFindGroups = new GcFindGroups();
gcFindGroups.addGroupName(key);
WsFindGroupsResults results = gcFindGroups.execute();
// if no results were retur... | java | protected WsGroup findGroupFromKey(String key) {
WsGroup wsGroup = null;
if (key != null) {
GcFindGroups gcFindGroups = new GcFindGroups();
gcFindGroups.addGroupName(key);
WsFindGroupsResults results = gcFindGroups.execute();
// if no results were retur... | [
"protected",
"WsGroup",
"findGroupFromKey",
"(",
"String",
"key",
")",
"{",
"WsGroup",
"wsGroup",
"=",
"null",
";",
"if",
"(",
"key",
"!=",
"null",
")",
"{",
"GcFindGroups",
"gcFindGroups",
"=",
"new",
"GcFindGroups",
"(",
")",
";",
"gcFindGroups",
".",
"a... | Find the Grouper group matching the specified key.
@param key
@return the group or null | [
"Find",
"the",
"Grouper",
"group",
"matching",
"the",
"specified",
"key",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStore.java#L524-L548 |
58,081 | Jasig/uPortal | uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStore.java | GrouperEntityGroupStore.getStemPrefix | protected static String getStemPrefix() {
String uportalStem = GrouperClientUtils.propertiesValue(STEM_PREFIX, false);
// make sure it ends in colon
if (!StringUtils.isBlank(uportalStem)) {
if (uportalStem.endsWith(":")) {
uportalStem = uportalStem.substring(0, upor... | java | protected static String getStemPrefix() {
String uportalStem = GrouperClientUtils.propertiesValue(STEM_PREFIX, false);
// make sure it ends in colon
if (!StringUtils.isBlank(uportalStem)) {
if (uportalStem.endsWith(":")) {
uportalStem = uportalStem.substring(0, upor... | [
"protected",
"static",
"String",
"getStemPrefix",
"(",
")",
"{",
"String",
"uportalStem",
"=",
"GrouperClientUtils",
".",
"propertiesValue",
"(",
"STEM_PREFIX",
",",
"false",
")",
";",
"// make sure it ends in colon",
"if",
"(",
"!",
"StringUtils",
".",
"isBlank",
... | Get the prefix for the stem containing uPortal groups. If this value is non-empty, all groups
will be required to be prefixed with the specified stem name.
@return the uportal stem in the registry, without trailing colon | [
"Get",
"the",
"prefix",
"for",
"the",
"stem",
"containing",
"uPortal",
"groups",
".",
"If",
"this",
"value",
"is",
"non",
"-",
"empty",
"all",
"groups",
"will",
"be",
"required",
"to",
"be",
"prefixed",
"with",
"the",
"specified",
"stem",
"name",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-grouper/src/main/java/org/apereo/portal/groups/grouper/GrouperEntityGroupStore.java#L556-L568 |
58,082 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPARemoveParameter.java | LPARemoveParameter.perform | @Override
public void perform() throws PortalException {
// push the change into the PLF
if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) {
// we are dealing with an incorporated node
ParameterEditManager.removeParmEditDirective(nodeId, name, person);
} else ... | java | @Override
public void perform() throws PortalException {
// push the change into the PLF
if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) {
// we are dealing with an incorporated node
ParameterEditManager.removeParmEditDirective(nodeId, name, person);
} else ... | [
"@",
"Override",
"public",
"void",
"perform",
"(",
")",
"throws",
"PortalException",
"{",
"// push the change into the PLF",
"if",
"(",
"nodeId",
".",
"startsWith",
"(",
"Constants",
".",
"FRAGMENT_ID_USER_PREFIX",
")",
")",
"{",
"// we are dealing with an incorporated ... | Remove the parameter from a channel in both the ILF and PLF using the appropriate mechanisms
for incorporated nodes versus owned nodes. | [
"Remove",
"the",
"parameter",
"from",
"a",
"channel",
"in",
"both",
"the",
"ILF",
"and",
"PLF",
"using",
"the",
"appropriate",
"mechanisms",
"for",
"incorporated",
"nodes",
"versus",
"owned",
"nodes",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPARemoveParameter.java#L40-L54 |
58,083 | Jasig/uPortal | uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/layout/dlm/remoting/registry/v43/PortletCategoryBean.java | PortletCategoryBean.create | public static PortletCategoryBean create(
String id,
String name,
String description,
Set<PortletCategoryBean> subcategories,
Set<PortletDefinitionBean> portlets) {
return new PortletCategoryBean(id, name, description, subcategories, portlets);
} | java | public static PortletCategoryBean create(
String id,
String name,
String description,
Set<PortletCategoryBean> subcategories,
Set<PortletDefinitionBean> portlets) {
return new PortletCategoryBean(id, name, description, subcategories, portlets);
} | [
"public",
"static",
"PortletCategoryBean",
"create",
"(",
"String",
"id",
",",
"String",
"name",
",",
"String",
"description",
",",
"Set",
"<",
"PortletCategoryBean",
">",
"subcategories",
",",
"Set",
"<",
"PortletDefinitionBean",
">",
"portlets",
")",
"{",
"ret... | Creates a new bean based on the provided inputs. | [
"Creates",
"a",
"new",
"bean",
"based",
"on",
"the",
"provided",
"inputs",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/layout/dlm/remoting/registry/v43/PortletCategoryBean.java#L57-L64 |
58,084 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java | PermissionsRESTController.getOwners | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/owners.json", method = RequestMethod.GET)
public ModelAndView getOwners() {
// get a l... | java | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/owners.json", method = RequestMethod.GET)
public ModelAndView getOwners() {
// get a l... | [
"@",
"PreAuthorize",
"(",
"\"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\"",
")",
"@",
"RequestMapping",
"(",
"value",
"=",
"\"/permissions/owners.json\"",
",",
"method",
"=",
"Reques... | Provide a JSON view of all known permission owners registered with uPortal. | [
"Provide",
"a",
"JSON",
"view",
"of",
"all",
"known",
"permission",
"owners",
"registered",
"with",
"uPortal",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java#L96-L109 |
58,085 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java | PermissionsRESTController.getOwners | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/owners/{owner}.json", method = RequestMethod.GET)
public ModelAndView getOwners(
@P... | java | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/owners/{owner}.json", method = RequestMethod.GET)
public ModelAndView getOwners(
@P... | [
"@",
"PreAuthorize",
"(",
"\"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\"",
")",
"@",
"RequestMapping",
"(",
"value",
"=",
"\"/permissions/owners/{owner}.json\"",
",",
"method",
"=",
... | Provide a detailed view of the specified IPermissionOwner. This view should contain a list of
the owner's defined activities. | [
"Provide",
"a",
"detailed",
"view",
"of",
"the",
"specified",
"IPermissionOwner",
".",
"This",
"view",
"should",
"contain",
"a",
"list",
"of",
"the",
"owner",
"s",
"defined",
"activities",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java#L115-L143 |
58,086 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java | PermissionsRESTController.getActivities | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/activities.json", method = RequestMethod.GET)
public ModelAndView getActivities(@RequestParam(v... | java | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/activities.json", method = RequestMethod.GET)
public ModelAndView getActivities(@RequestParam(v... | [
"@",
"PreAuthorize",
"(",
"\"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\"",
")",
"@",
"RequestMapping",
"(",
"value",
"=",
"\"/permissions/activities.json\"",
",",
"method",
"=",
"Re... | Provide a list of all registered IPermissionActivities. If an optional search string is
provided, the returned list will be restricted to activities matching the query. | [
"Provide",
"a",
"list",
"of",
"all",
"registered",
"IPermissionActivities",
".",
"If",
"an",
"optional",
"search",
"string",
"is",
"provided",
"the",
"returned",
"list",
"will",
"be",
"restricted",
"to",
"activities",
"matching",
"the",
"query",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java#L149-L176 |
58,087 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java | PermissionsRESTController.getTargets | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/{activity}/targets.json", method = RequestMethod.GET)
public ModelAndView getTargets(
... | java | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping(value = "/permissions/{activity}/targets.json", method = RequestMethod.GET)
public ModelAndView getTargets(
... | [
"@",
"PreAuthorize",
"(",
"\"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\"",
")",
"@",
"RequestMapping",
"(",
"value",
"=",
"\"/permissions/{activity}/targets.json\"",
",",
"method",
"=... | Return a list of targets defined for a particular IPermissionActivity matching the specified
search query. | [
"Return",
"a",
"list",
"of",
"targets",
"defined",
"for",
"a",
"particular",
"IPermissionActivity",
"matching",
"the",
"specified",
"search",
"query",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java#L182-L210 |
58,088 | Jasig/uPortal | uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java | PermissionsRESTController.getAssignmentsForUser | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping("/v5-5/permissions/assignments/users/{username}")
public ModelAndView getAssignmentsForUser(
@PathVariabl... | java | @PreAuthorize(
"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
@RequestMapping("/v5-5/permissions/assignments/users/{username}")
public ModelAndView getAssignmentsForUser(
@PathVariabl... | [
"@",
"PreAuthorize",
"(",
"\"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\"",
")",
"@",
"RequestMapping",
"(",
"\"/v5-5/permissions/assignments/users/{username}\"",
")",
"public",
"ModelAndV... | Provides the collection of permission assignments that apply to the specified user,
optionally including inherited assignments.
@since 5.5 | [
"Provides",
"the",
"collection",
"of",
"permission",
"assignments",
"that",
"apply",
"to",
"the",
"specified",
"user",
"optionally",
"including",
"inherited",
"assignments",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/permissions/PermissionsRESTController.java#L235-L252 |
58,089 | Jasig/uPortal | uPortal-portlets/src/main/java/org/apereo/portal/portlets/statistics/TabRenderStatisticsController.java | TabRenderStatisticsController.setReportFormTabs | private void setReportFormTabs(final TabRenderReportForm report) {
if (!report.getTabs().isEmpty()) {
// Tabs are already set, do nothing
return;
}
final Set<AggregatedTabMapping> tabs = this.getTabs();
if (!tabs.isEmpty()) {
report.getTabs().add(tabs... | java | private void setReportFormTabs(final TabRenderReportForm report) {
if (!report.getTabs().isEmpty()) {
// Tabs are already set, do nothing
return;
}
final Set<AggregatedTabMapping> tabs = this.getTabs();
if (!tabs.isEmpty()) {
report.getTabs().add(tabs... | [
"private",
"void",
"setReportFormTabs",
"(",
"final",
"TabRenderReportForm",
"report",
")",
"{",
"if",
"(",
"!",
"report",
".",
"getTabs",
"(",
")",
".",
"isEmpty",
"(",
")",
")",
"{",
"// Tabs are already set, do nothing",
"return",
";",
"}",
"final",
"Set",
... | Set the tab names to have first selected by default | [
"Set",
"the",
"tab",
"names",
"to",
"have",
"first",
"selected",
"by",
"default"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/statistics/TabRenderStatisticsController.java#L99-L109 |
58,090 | Jasig/uPortal | uPortal-io/uPortal-io-core/src/main/java/org/apereo/portal/io/xml/JaxbPortalDataHandlerService.java | JaxbPortalDataHandlerService.setDataFileIncludes | @javax.annotation.Resource(name = "dataFileIncludes")
public void setDataFileIncludes(Set<String> dataFileIncludes) {
this.dataFileIncludes = dataFileIncludes;
} | java | @javax.annotation.Resource(name = "dataFileIncludes")
public void setDataFileIncludes(Set<String> dataFileIncludes) {
this.dataFileIncludes = dataFileIncludes;
} | [
"@",
"javax",
".",
"annotation",
".",
"Resource",
"(",
"name",
"=",
"\"dataFileIncludes\"",
")",
"public",
"void",
"setDataFileIncludes",
"(",
"Set",
"<",
"String",
">",
"dataFileIncludes",
")",
"{",
"this",
".",
"dataFileIncludes",
"=",
"dataFileIncludes",
";",... | Ant path matching patterns that files must match to be included | [
"Ant",
"path",
"matching",
"patterns",
"that",
"files",
"must",
"match",
"to",
"be",
"included"
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-core/src/main/java/org/apereo/portal/io/xml/JaxbPortalDataHandlerService.java#L221-L224 |
58,091 | Jasig/uPortal | uPortal-io/uPortal-io-core/src/main/java/org/apereo/portal/io/xml/JaxbPortalDataHandlerService.java | JaxbPortalDataHandlerService.importDataArchive | private void importDataArchive(
final Resource resource,
final ArchiveInputStream resourceStream,
BatchImportOptions options) {
final File tempDir = Files.createTempDir();
try {
ArchiveEntry archiveEntry;
while ((archiveEntry = resourceStream.... | java | private void importDataArchive(
final Resource resource,
final ArchiveInputStream resourceStream,
BatchImportOptions options) {
final File tempDir = Files.createTempDir();
try {
ArchiveEntry archiveEntry;
while ((archiveEntry = resourceStream.... | [
"private",
"void",
"importDataArchive",
"(",
"final",
"Resource",
"resource",
",",
"final",
"ArchiveInputStream",
"resourceStream",
",",
"BatchImportOptions",
"options",
")",
"{",
"final",
"File",
"tempDir",
"=",
"Files",
".",
"createTempDir",
"(",
")",
";",
"try"... | Extracts the archive resource and then runs the batch-import process on it. | [
"Extracts",
"the",
"archive",
"resource",
"and",
"then",
"runs",
"the",
"batch",
"-",
"import",
"process",
"on",
"it",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-core/src/main/java/org/apereo/portal/io/xml/JaxbPortalDataHandlerService.java#L490-L520 |
58,092 | Jasig/uPortal | uPortal-io/uPortal-io-core/src/main/java/org/apereo/portal/io/xml/JaxbPortalDataHandlerService.java | JaxbPortalDataHandlerService.waitForFutures | private List<FutureHolder<?>> waitForFutures(
final Queue<? extends FutureHolder<?>> futures,
final PrintWriter reportWriter,
final File reportDirectory,
final boolean wait)
throws InterruptedException {
final List<FutureHolder<?>> failedFutures = new... | java | private List<FutureHolder<?>> waitForFutures(
final Queue<? extends FutureHolder<?>> futures,
final PrintWriter reportWriter,
final File reportDirectory,
final boolean wait)
throws InterruptedException {
final List<FutureHolder<?>> failedFutures = new... | [
"private",
"List",
"<",
"FutureHolder",
"<",
"?",
">",
">",
"waitForFutures",
"(",
"final",
"Queue",
"<",
"?",
"extends",
"FutureHolder",
"<",
"?",
">",
">",
"futures",
",",
"final",
"PrintWriter",
"reportWriter",
",",
"final",
"File",
"reportDirectory",
","... | Used by batch import and export to wait for queued tasks to complete. Handles fail-fast
behavior if any of the tasks threw and exception by canceling all queued futures and logging
a summary of the failures. All completed futures are removed from the queue.
@param futures Queued futures to check for completeness
@para... | [
"Used",
"by",
"batch",
"import",
"and",
"export",
"to",
"wait",
"for",
"queued",
"tasks",
"to",
"complete",
".",
"Handles",
"fail",
"-",
"fast",
"behavior",
"if",
"any",
"of",
"the",
"tasks",
"threw",
"and",
"exception",
"by",
"canceling",
"all",
"queued",... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-io/uPortal-io-core/src/main/java/org/apereo/portal/io/xml/JaxbPortalDataHandlerService.java#L1123-L1214 |
58,093 | Jasig/uPortal | uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/node/UserLayoutChannelDescription.java | UserLayoutChannelDescription.setParameterValue | @Override
public String setParameterValue(String parameterName, String parameterValue) {
// don't try to store a null value
if (parameterValue == null) return null;
return (String) parameters.put(parameterName, parameterValue);
} | java | @Override
public String setParameterValue(String parameterName, String parameterValue) {
// don't try to store a null value
if (parameterValue == null) return null;
return (String) parameters.put(parameterName, parameterValue);
} | [
"@",
"Override",
"public",
"String",
"setParameterValue",
"(",
"String",
"parameterName",
",",
"String",
"parameterValue",
")",
"{",
"// don't try to store a null value",
"if",
"(",
"parameterValue",
"==",
"null",
")",
"return",
"null",
";",
"return",
"(",
"String",... | Set a channel parameter value.
@param parameterValue a <code>String</code> value
@param parameterName a <code>String</code> value
@return a <code>String</code> value that was set. | [
"Set",
"a",
"channel",
"parameter",
"value",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/node/UserLayoutChannelDescription.java#L374-L379 |
58,094 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java | ParameterEditManager.applyAndUpdateParmEditSet | static void applyAndUpdateParmEditSet(Document plf, Document ilf, IntegrationResult result) {
Element pSet = null;
try {
pSet = getParmEditSet(plf, null, false);
} catch (Exception e) {
LOG.error("Exception occurred while getting user's DLM " + "paramter-edit-set.", e);
... | java | static void applyAndUpdateParmEditSet(Document plf, Document ilf, IntegrationResult result) {
Element pSet = null;
try {
pSet = getParmEditSet(plf, null, false);
} catch (Exception e) {
LOG.error("Exception occurred while getting user's DLM " + "paramter-edit-set.", e);
... | [
"static",
"void",
"applyAndUpdateParmEditSet",
"(",
"Document",
"plf",
",",
"Document",
"ilf",
",",
"IntegrationResult",
"result",
")",
"{",
"Element",
"pSet",
"=",
"null",
";",
"try",
"{",
"pSet",
"=",
"getParmEditSet",
"(",
"plf",
",",
"null",
",",
"false"... | Get the parm edit set if any from the plf and process each edit command removing any that
fail from the set so that the set is self cleaning.
@throws Exception | [
"Get",
"the",
"parm",
"edit",
"set",
"if",
"any",
"from",
"the",
"plf",
"and",
"process",
"each",
"edit",
"command",
"removing",
"any",
"that",
"fail",
"from",
"the",
"set",
"so",
"that",
"the",
"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/ParameterEditManager.java#L59-L85 |
58,095 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java | ParameterEditManager.applyEdit | private static boolean applyEdit(Element edit, Document ilf) {
String nodeID = edit.getAttribute(Constants.ATT_TARGET);
Element channel = ilf.getElementById(nodeID);
if (channel == null) return false;
// now get the name of the parameter to be edited and find that element
Stri... | java | private static boolean applyEdit(Element edit, Document ilf) {
String nodeID = edit.getAttribute(Constants.ATT_TARGET);
Element channel = ilf.getElementById(nodeID);
if (channel == null) return false;
// now get the name of the parameter to be edited and find that element
Stri... | [
"private",
"static",
"boolean",
"applyEdit",
"(",
"Element",
"edit",
",",
"Document",
"ilf",
")",
"{",
"String",
"nodeID",
"=",
"edit",
".",
"getAttribute",
"(",
"Constants",
".",
"ATT_TARGET",
")",
";",
"Element",
"channel",
"=",
"ilf",
".",
"getElementById... | Attempt to apply a single channel parameter edit command and return true if it succeeds or
false otherwise. If the edit is disallowed or the target element no longer exists in the
document the edit command fails and returns false.
@throws Exception | [
"Attempt",
"to",
"apply",
"a",
"single",
"channel",
"parameter",
"edit",
"command",
"and",
"return",
"true",
"if",
"it",
"succeeds",
"or",
"false",
"otherwise",
".",
"If",
"the",
"edit",
"is",
"disallowed",
"or",
"the",
"target",
"element",
"no",
"longer",
... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java#L94-L168 |
58,096 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java | ParameterEditManager.getParmEditSet | private static Element getParmEditSet(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_PARM_SET)) return (E... | java | private static Element getParmEditSet(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_PARM_SET)) return (E... | [
"private",
"static",
"Element",
"getParmEditSet",
"(",
"Document",
"plf",
",",
"IPerson",
"person",
",",
"boolean",
"create",
")",
"throws",
"PortalException",
"{",
"Node",
"root",
"=",
"plf",
".",
"getDocumentElement",
"(",
")",
";",
"Node",
"child",
"=",
"... | Get the parameter edits set if any stored in the root of the document or create it if
passed-in create flag is true. | [
"Get",
"the",
"parameter",
"edits",
"set",
"if",
"any",
"stored",
"in",
"the",
"root",
"of",
"the",
"document",
"or",
"create",
"it",
"if",
"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/ParameterEditManager.java#L174-L204 |
58,097 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java | ParameterEditManager.addParmEditDirective | public static synchronized void addParmEditDirective(
String targetId, String name, String value, IPerson person) throws PortalException {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element parmSet = getParmEditSet(plf, person, true);
NodeList edits = parmSet.getCh... | java | public static synchronized void addParmEditDirective(
String targetId, String name, String value, IPerson person) throws PortalException {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element parmSet = getParmEditSet(plf, person, true);
NodeList edits = parmSet.getCh... | [
"public",
"static",
"synchronized",
"void",
"addParmEditDirective",
"(",
"String",
"targetId",
",",
"String",
"name",
",",
"String",
"value",
",",
"IPerson",
"person",
")",
"throws",
"PortalException",
"{",
"Document",
"plf",
"=",
"(",
"Document",
")",
"person",... | Create and append a parameter edit directive to parameter edits set for applying a user
specified value to a named parameter of the incorporated channel represented by the passed-in
target id. If one already exists for that node and that name then the value of the existing
edit is changed to the passed-in value. | [
"Create",
"and",
"append",
"a",
"parameter",
"edit",
"directive",
"to",
"parameter",
"edits",
"set",
"for",
"applying",
"a",
"user",
"specified",
"value",
"to",
"a",
"named",
"parameter",
"of",
"the",
"incorporated",
"channel",
"represented",
"by",
"the",
"pas... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java#L212-L233 |
58,098 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java | ParameterEditManager.addParmEditDirective | private static void addParmEditDirective(
String targetID,
String name,
String value,
IPerson person,
Document plf,
Element parmSet)
throws PortalException {
String ID = null;
try {
ID = getDLS().getNextStr... | java | private static void addParmEditDirective(
String targetID,
String name,
String value,
IPerson person,
Document plf,
Element parmSet)
throws PortalException {
String ID = null;
try {
ID = getDLS().getNextStr... | [
"private",
"static",
"void",
"addParmEditDirective",
"(",
"String",
"targetID",
",",
"String",
"name",
",",
"String",
"value",
",",
"IPerson",
"person",
",",
"Document",
"plf",
",",
"Element",
"parmSet",
")",
"throws",
"PortalException",
"{",
"String",
"ID",
"... | This method does the actual work of adding a newly created parameter edit and adding it to
the parameter edits set. | [
"This",
"method",
"does",
"the",
"actual",
"work",
"of",
"adding",
"a",
"newly",
"created",
"parameter",
"edit",
"and",
"adding",
"it",
"to",
"the",
"parameter",
"edits",
"set",
"."
] | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java#L239-L268 |
58,099 | Jasig/uPortal | uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java | ParameterEditManager.removeParmEditDirective | public static void removeParmEditDirective(String targetId, String name, IPerson person)
throws PortalException {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element parmSet = getParmEditSet(plf, person, false);
if (parmSet == null) return; // no set so no edit to ... | java | public static void removeParmEditDirective(String targetId, String name, IPerson person)
throws PortalException {
Document plf = (Document) person.getAttribute(Constants.PLF);
Element parmSet = getParmEditSet(plf, person, false);
if (parmSet == null) return; // no set so no edit to ... | [
"public",
"static",
"void",
"removeParmEditDirective",
"(",
"String",
"targetId",
",",
"String",
"name",
",",
"IPerson",
"person",
")",
"throws",
"PortalException",
"{",
"Document",
"plf",
"=",
"(",
"Document",
")",
"person",
".",
"getAttribute",
"(",
"Constants... | Remove a parameter edit directive from the parameter edits set for applying user specified
values to a named parameter of an incorporated channel represented by the passed-in target
id. If one doesn't exists for that node and that name then this call returns without any
effects. | [
"Remove",
"a",
"parameter",
"edit",
"directive",
"from",
"the",
"parameter",
"edits",
"set",
"for",
"applying",
"user",
"specified",
"values",
"to",
"a",
"named",
"parameter",
"of",
"an",
"incorporated",
"channel",
"represented",
"by",
"the",
"passed",
"-",
"i... | c1986542abb9acd214268f2df21c6305ad2f262b | https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/ParameterEditManager.java#L275-L297 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.