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,100
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/JdbcUtils.java
JdbcUtils.dropTableIfExists
public static final <T> T dropTableIfExists( JdbcOperations jdbcOperations, final String table, final Function<JdbcOperations, T> preDropCallback) { LOGGER.info("Dropping table: " + table); final boolean tableExists = doesTableExist(jdbcOperations, table); i...
java
public static final <T> T dropTableIfExists( JdbcOperations jdbcOperations, final String table, final Function<JdbcOperations, T> preDropCallback) { LOGGER.info("Dropping table: " + table); final boolean tableExists = doesTableExist(jdbcOperations, table); i...
[ "public", "static", "final", "<", "T", ">", "T", "dropTableIfExists", "(", "JdbcOperations", "jdbcOperations", ",", "final", "String", "table", ",", "final", "Function", "<", "JdbcOperations", ",", "T", ">", "preDropCallback", ")", "{", "LOGGER", ".", "info", ...
Check if the named table exists, if it does drop it, calling the preDropCallback first @param jdbcOperations {@link JdbcOperations} used to check if the table exists and execute the drop @param table The name of the table to drop, case insensitive @param preDropCallback The callback to execute immediately before the t...
[ "Check", "if", "the", "named", "table", "exists", "if", "it", "does", "drop", "it", "calling", "the", "preDropCallback", "first" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/JdbcUtils.java#L44-L59
58,101
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/JdbcUtils.java
JdbcUtils.doesTableExist
public static boolean doesTableExist(JdbcOperations jdbcOperations, final String table) { final boolean tableExists = jdbcOperations.execute( new ConnectionCallback<Boolean>() { @Override public Boolean doInConnecti...
java
public static boolean doesTableExist(JdbcOperations jdbcOperations, final String table) { final boolean tableExists = jdbcOperations.execute( new ConnectionCallback<Boolean>() { @Override public Boolean doInConnecti...
[ "public", "static", "boolean", "doesTableExist", "(", "JdbcOperations", "jdbcOperations", ",", "final", "String", "table", ")", "{", "final", "boolean", "tableExists", "=", "jdbcOperations", ".", "execute", "(", "new", "ConnectionCallback", "<", "Boolean", ">", "(...
Check if the specified table exists
[ "Check", "if", "the", "specified", "table", "exists" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/JdbcUtils.java#L62-L86
58,102
Jasig/uPortal
uPortal-persondir/src/main/java/org/apereo/portal/RDBMUserIdentityStore.java
RDBMUserIdentityStore.getPortalUID
@Override public int getPortalUID(IPerson person, boolean createPortalData) throws AuthorizationException { int uid; String username = (String) person.getAttribute(IPerson.USERNAME); // only synchronize a non-guest request. if (PersonFactory.getGuestUsernames().contains(...
java
@Override public int getPortalUID(IPerson person, boolean createPortalData) throws AuthorizationException { int uid; String username = (String) person.getAttribute(IPerson.USERNAME); // only synchronize a non-guest request. if (PersonFactory.getGuestUsernames().contains(...
[ "@", "Override", "public", "int", "getPortalUID", "(", "IPerson", "person", ",", "boolean", "createPortalData", ")", "throws", "AuthorizationException", "{", "int", "uid", ";", "String", "username", "=", "(", "String", ")", "person", ".", "getAttribute", "(", ...
Get the portal user ID for this person object. @param person The {@link IPerson} for whom a UID is requested @param createPortalData indicating whether to try to create all uPortal data for this user from template prototype @return uPortalUID number or -1 if unable to create user. @throws AuthorizationException if cre...
[ "Get", "the", "portal", "user", "ID", "for", "this", "person", "object", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-persondir/src/main/java/org/apereo/portal/RDBMUserIdentityStore.java#L268-L283
58,103
Jasig/uPortal
uPortal-persondir/src/main/java/org/apereo/portal/RDBMUserIdentityStore.java
RDBMUserIdentityStore.getPortalUser
private PortalUser getPortalUser(final String userName) { return jdbcOperations.execute( (ConnectionCallback<PortalUser>) con -> { PortalUser portalUser = null; PreparedStatement pstmt = null; ...
java
private PortalUser getPortalUser(final String userName) { return jdbcOperations.execute( (ConnectionCallback<PortalUser>) con -> { PortalUser portalUser = null; PreparedStatement pstmt = null; ...
[ "private", "PortalUser", "getPortalUser", "(", "final", "String", "userName", ")", "{", "return", "jdbcOperations", ".", "execute", "(", "(", "ConnectionCallback", "<", "PortalUser", ">", ")", "con", "->", "{", "PortalUser", "portalUser", "=", "null", ";", "Pr...
Gets the PortalUser data store object for the specified user name. @param userName The user's name @return A PortalUser object or null if the user doesn't exist.
[ "Gets", "the", "PortalUser", "data", "store", "object", "for", "the", "specified", "user", "name", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-persondir/src/main/java/org/apereo/portal/RDBMUserIdentityStore.java#L377-L423
58,104
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/importexport/ImportExportPortletController.java
ImportExportPortletController.getExportView
@RequestMapping(params = "action=export") public ModelAndView getExportView(PortletRequest request) { Map<String, Object> model = new HashMap<String, Object>(); // add a list of all permitted export types final Iterable<IPortalDataType> exportPortalDataTypes = this.portalDat...
java
@RequestMapping(params = "action=export") public ModelAndView getExportView(PortletRequest request) { Map<String, Object> model = new HashMap<String, Object>(); // add a list of all permitted export types final Iterable<IPortalDataType> exportPortalDataTypes = this.portalDat...
[ "@", "RequestMapping", "(", "params", "=", "\"action=export\"", ")", "public", "ModelAndView", "getExportView", "(", "PortletRequest", "request", ")", "{", "Map", "<", "String", ",", "Object", ">", "model", "=", "new", "HashMap", "<", "String", ",", "Object", ...
Display the entity export form view. @param request @return
[ "Display", "the", "entity", "export", "form", "view", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/importexport/ImportExportPortletController.java#L84-L96
58,105
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/importexport/ImportExportPortletController.java
ImportExportPortletController.getDeleteView
@RequestMapping(params = "action=delete") public ModelAndView getDeleteView(PortletRequest request) { Map<String, Object> model = new HashMap<String, Object>(); // add a list of all permitted deletion types final Iterable<IPortalDataType> deletePortalDataTypes = this.portalD...
java
@RequestMapping(params = "action=delete") public ModelAndView getDeleteView(PortletRequest request) { Map<String, Object> model = new HashMap<String, Object>(); // add a list of all permitted deletion types final Iterable<IPortalDataType> deletePortalDataTypes = this.portalD...
[ "@", "RequestMapping", "(", "params", "=", "\"action=delete\"", ")", "public", "ModelAndView", "getDeleteView", "(", "PortletRequest", "request", ")", "{", "Map", "<", "String", ",", "Object", ">", "model", "=", "new", "HashMap", "<", "String", ",", "Object", ...
Display the entity deletion form view. @param request @return
[ "Display", "the", "entity", "deletion", "form", "view", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/importexport/ImportExportPortletController.java#L104-L116
58,106
Jasig/uPortal
uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/groupadmin/GroupFormValidator.java
GroupFormValidator.validateEditDetails
public void validateEditDetails(GroupForm group, MessageContext context) { // ensure the group name is set if (StringUtils.isBlank(group.getName())) { context.addMessage( new MessageBuilder().error().source("name").code("please.enter.name").build()); } }
java
public void validateEditDetails(GroupForm group, MessageContext context) { // ensure the group name is set if (StringUtils.isBlank(group.getName())) { context.addMessage( new MessageBuilder().error().source("name").code("please.enter.name").build()); } }
[ "public", "void", "validateEditDetails", "(", "GroupForm", "group", ",", "MessageContext", "context", ")", "{", "// ensure the group name is set", "if", "(", "StringUtils", ".", "isBlank", "(", "group", ".", "getName", "(", ")", ")", ")", "{", "context", ".", ...
Validate the detail editing group view @param group @param context
[ "Validate", "the", "detail", "editing", "group", "view" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/portlets/groupadmin/GroupFormValidator.java#L30-L37
58,107
Jasig/uPortal
uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/layout/dlm/remoting/JsonEntityBean.java
JsonEntityBean.getTypeAndIdHash
public String getTypeAndIdHash() { assert (entityType != null); assert (id != null); String idStr = id.replaceAll("\\W", "__"); return entityType.toString().toLowerCase() + "_" + idStr; }
java
public String getTypeAndIdHash() { assert (entityType != null); assert (id != null); String idStr = id.replaceAll("\\W", "__"); return entityType.toString().toLowerCase() + "_" + idStr; }
[ "public", "String", "getTypeAndIdHash", "(", ")", "{", "assert", "(", "entityType", "!=", "null", ")", ";", "assert", "(", "id", "!=", "null", ")", ";", "String", "idStr", "=", "id", ".", "replaceAll", "(", "\"\\\\W\"", ",", "\"__\"", ")", ";", "return...
Compute a hash based on type and ID to uniquely identify this bean. This method helps avoid the unlikely case where a group and person in the same principal list have the same ID. <p>Periods are replaced to avoid issues in JSP EL and form names can't contain spaces. Also SpEL parsing of form field names fails with cha...
[ "Compute", "a", "hash", "based", "on", "type", "and", "ID", "to", "uniquely", "identify", "this", "bean", ".", "This", "method", "helps", "avoid", "the", "unlikely", "case", "where", "a", "group", "and", "person", "in", "the", "same", "principal", "list", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-internal/src/main/java/org/apereo/portal/layout/dlm/remoting/JsonEntityBean.java#L173-L178
58,108
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/googleanalytics/GoogleAnalyticsController.java
GoogleAnalyticsController.filterAnalyticsGroups
private void filterAnalyticsGroups( IGroupMember groupMember, JsonNode config, Map<String, Boolean> isMemberCache) { if (config == null) { return; } final JsonNode dimensionGroups = config.get("dimensionGroups"); if (dimensionGroups == null) { return;...
java
private void filterAnalyticsGroups( IGroupMember groupMember, JsonNode config, Map<String, Boolean> isMemberCache) { if (config == null) { return; } final JsonNode dimensionGroups = config.get("dimensionGroups"); if (dimensionGroups == null) { return;...
[ "private", "void", "filterAnalyticsGroups", "(", "IGroupMember", "groupMember", ",", "JsonNode", "config", ",", "Map", "<", "String", ",", "Boolean", ">", "isMemberCache", ")", "{", "if", "(", "config", "==", "null", ")", "{", "return", ";", "}", "final", ...
Remove groups from the AnalyticsConfig that the current user is not a member of
[ "Remove", "groups", "from", "the", "AnalyticsConfig", "that", "the", "current", "user", "is", "not", "a", "member", "of" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/googleanalytics/GoogleAnalyticsController.java#L94-L125
58,109
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/googleanalytics/GoogleAnalyticsController.java
GoogleAnalyticsController.isMember
private boolean isMember(IGroupMember groupMember, String groupName) { try { IEntityGroup group = GroupService.findGroup(groupName); if (group != null) { return groupMember.isDeepMemberOf(group); } final EntityIdentifier[] results = ...
java
private boolean isMember(IGroupMember groupMember, String groupName) { try { IEntityGroup group = GroupService.findGroup(groupName); if (group != null) { return groupMember.isDeepMemberOf(group); } final EntityIdentifier[] results = ...
[ "private", "boolean", "isMember", "(", "IGroupMember", "groupMember", ",", "String", "groupName", ")", "{", "try", "{", "IEntityGroup", "group", "=", "GroupService", ".", "findGroup", "(", "groupName", ")", ";", "if", "(", "group", "!=", "null", ")", "{", ...
Check if the user is a member of the specified group name <p>Internal search, thus case sensitive.
[ "Check", "if", "the", "user", "is", "a", "member", "of", "the", "specified", "group", "name" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/googleanalytics/GoogleAnalyticsController.java#L132-L166
58,110
Jasig/uPortal
uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/profile/StickyProfileMapperImpl.java
StickyProfileMapperImpl.warnOnApathyKeyInMappings
@PostConstruct public void warnOnApathyKeyInMappings() { if (null != profileKeyForNoSelection && immutableMappings.containsKey(profileKeyForNoSelection)) { logger.warn( "Configured to treat profile key {} as apathy, " + "yet also co...
java
@PostConstruct public void warnOnApathyKeyInMappings() { if (null != profileKeyForNoSelection && immutableMappings.containsKey(profileKeyForNoSelection)) { logger.warn( "Configured to treat profile key {} as apathy, " + "yet also co...
[ "@", "PostConstruct", "public", "void", "warnOnApathyKeyInMappings", "(", ")", "{", "if", "(", "null", "!=", "profileKeyForNoSelection", "&&", "immutableMappings", ".", "containsKey", "(", "profileKeyForNoSelection", ")", ")", "{", "logger", ".", "warn", "(", "\"C...
Log a warning when configured such that a profile key both means apathy and means a particular profile fname.
[ "Log", "a", "warning", "when", "configured", "such", "that", "a", "profile", "key", "both", "means", "apathy", "and", "means", "a", "particular", "profile", "fname", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-core/src/main/java/org/apereo/portal/layout/profile/StickyProfileMapperImpl.java#L81-L92
58,111
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/ChunkingEventReader.java
ChunkingEventReader.chunkString
protected void chunkString( final List<CharacterEvent> characterEvents, final CharSequence buffer, int patternIndex) { // Iterate over the chunking patterns for (; patternIndex < this.chunkingPatterns.length; patternIndex++) { final Pattern pattern = this....
java
protected void chunkString( final List<CharacterEvent> characterEvents, final CharSequence buffer, int patternIndex) { // Iterate over the chunking patterns for (; patternIndex < this.chunkingPatterns.length; patternIndex++) { final Pattern pattern = this....
[ "protected", "void", "chunkString", "(", "final", "List", "<", "CharacterEvent", ">", "characterEvents", ",", "final", "CharSequence", "buffer", ",", "int", "patternIndex", ")", "{", "// Iterate over the chunking patterns", "for", "(", ";", "patternIndex", "<", "thi...
Breaks up the String into a List of CharacterEvents based on the configured Map of Patterns to CharacterEventSources
[ "Breaks", "up", "the", "String", "into", "a", "List", "of", "CharacterEvents", "based", "on", "the", "configured", "Map", "of", "Patterns", "to", "CharacterEventSources" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/ChunkingEventReader.java#L192-L238
58,112
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/RemoteUserPersonManager.java
RemoteUserPersonManager.getPerson
@Override public IPerson getPerson(HttpServletRequest request) throws PortalSecurityException { /* * This method overrides the implementation of getPerson() in BasePersonManager, but we only * want the RemoteUser behavior here if we're using RemoteUser AuthN. */ if (!remo...
java
@Override public IPerson getPerson(HttpServletRequest request) throws PortalSecurityException { /* * This method overrides the implementation of getPerson() in BasePersonManager, but we only * want the RemoteUser behavior here if we're using RemoteUser AuthN. */ if (!remo...
[ "@", "Override", "public", "IPerson", "getPerson", "(", "HttpServletRequest", "request", ")", "throws", "PortalSecurityException", "{", "/*\n * This method overrides the implementation of getPerson() in BasePersonManager, but we only\n * want the RemoteUser behavior here if w...
Retrieve an IPerson object for the incoming request @param request The current HttpServletRequest @return IPerson object for the incoming request @exception PortalSecurityException Description of the Exception
[ "Retrieve", "an", "IPerson", "object", "for", "the", "incoming", "request" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/RemoteUserPersonManager.java#L45-L121
58,113
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/SafeFilenameUtils.java
SafeFilenameUtils.makeSafeFilename
public static String makeSafeFilename(String filename) { // Replace invalid characters for (final Map.Entry<Pattern, String> pair : REPLACEMENT_PAIRS.entrySet()) { final Pattern pattern = pair.getKey(); final Matcher matcher = pattern.matcher(filename); filename = mat...
java
public static String makeSafeFilename(String filename) { // Replace invalid characters for (final Map.Entry<Pattern, String> pair : REPLACEMENT_PAIRS.entrySet()) { final Pattern pattern = pair.getKey(); final Matcher matcher = pattern.matcher(filename); filename = mat...
[ "public", "static", "String", "makeSafeFilename", "(", "String", "filename", ")", "{", "// Replace invalid characters", "for", "(", "final", "Map", ".", "Entry", "<", "Pattern", ",", "String", ">", "pair", ":", "REPLACEMENT_PAIRS", ".", "entrySet", "(", ")", "...
Makes 'safe' filename
[ "Makes", "safe", "filename" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/SafeFilenameUtils.java#L48-L65
58,114
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/cache/PortletCacheControlServiceImpl.java
PortletCacheControlServiceImpl.getPortletCacheState
@SuppressWarnings("unchecked") protected <D extends CachedPortletResultHolder<T>, T extends Serializable> CacheState<D, T> getPortletCacheState( HttpServletRequest request, IPortletWindow portletWindow, PublicPortletCacheKey publicCacheKey, ...
java
@SuppressWarnings("unchecked") protected <D extends CachedPortletResultHolder<T>, T extends Serializable> CacheState<D, T> getPortletCacheState( HttpServletRequest request, IPortletWindow portletWindow, PublicPortletCacheKey publicCacheKey, ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "<", "D", "extends", "CachedPortletResultHolder", "<", "T", ">", ",", "T", "extends", "Serializable", ">", "CacheState", "<", "D", ",", "T", ">", "getPortletCacheState", "(", "HttpServletRequest", ...
Get the cached portlet data looking in both the public and then private caches returning the first found @param request The current request @param portletWindow The window to get data for @param publicCacheKey The public cache key @param publicOutputCache The public cache @param privateOutputCache The private cache
[ "Get", "the", "cached", "portlet", "data", "looking", "in", "both", "the", "public", "and", "then", "private", "caches", "returning", "the", "first", "found" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/cache/PortletCacheControlServiceImpl.java#L345-L384
58,115
Jasig/uPortal
uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/PrincipalsRESTController.java
PrincipalsRESTController.getPrincipals
@PreAuthorize( "hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))") @RequestMapping(value = "/permissions/principals.json", method = RequestMethod.GET) public ModelAndView getPrincipals( @R...
java
@PreAuthorize( "hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))") @RequestMapping(value = "/permissions/principals.json", method = RequestMethod.GET) public ModelAndView getPrincipals( @R...
[ "@", "PreAuthorize", "(", "\"hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\"", ")", "@", "RequestMapping", "(", "value", "=", "\"/permissions/principals.json\"", ",", "method", "=", "Re...
Return a JSON view of the uPortal principals matching the supplied query string. @param query @param request @param response @return @throws Exception
[ "Return", "a", "JSON", "view", "of", "the", "uPortal", "principals", "matching", "the", "supplied", "query", "string", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-api/uPortal-api-rest/src/main/java/org/apereo/portal/rest/PrincipalsRESTController.java#L53-L79
58,116
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/PLFIntegrator.java
PLFIntegrator.appendChild
static Element appendChild(Element plfChild, Element parent, boolean copyChildren) { Document document = parent.getOwnerDocument(); Element copy = (Element) document.importNode(plfChild, false); parent.appendChild(copy); // set the identifier for the doc if warrented String id =...
java
static Element appendChild(Element plfChild, Element parent, boolean copyChildren) { Document document = parent.getOwnerDocument(); Element copy = (Element) document.importNode(plfChild, false); parent.appendChild(copy); // set the identifier for the doc if warrented String id =...
[ "static", "Element", "appendChild", "(", "Element", "plfChild", ",", "Element", "parent", ",", "boolean", "copyChildren", ")", "{", "Document", "document", "=", "parent", ".", "getOwnerDocument", "(", ")", ";", "Element", "copy", "=", "(", "Element", ")", "d...
This method copies a plf node and any of its children into the passed in compViewParent.
[ "This", "method", "copies", "a", "plf", "node", "and", "any", "of", "its", "children", "into", "the", "passed", "in", "compViewParent", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/PLFIntegrator.java#L208-L225
58,117
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/ReferenceEntityLockService.java
ReferenceEntityLockService.isLocked
private boolean isLocked(Class entityType, String entityKey) throws LockingException { return isLocked(entityType, entityKey, null); }
java
private boolean isLocked(Class entityType, String entityKey) throws LockingException { return isLocked(entityType, entityKey, null); }
[ "private", "boolean", "isLocked", "(", "Class", "entityType", ",", "String", "entityKey", ")", "throws", "LockingException", "{", "return", "isLocked", "(", "entityType", ",", "entityKey", ",", "null", ")", ";", "}" ]
Answers if the entity represented by the entityType and entityKey already has a lock of some type. @param entityType @param entityKey @exception org.apereo.portal.concurrency.LockingException
[ "Answers", "if", "the", "entity", "represented", "by", "the", "entityType", "and", "entityKey", "already", "has", "a", "lock", "of", "some", "type", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/ReferenceEntityLockService.java#L190-L192
58,118
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/ReferenceEntityLockService.java
ReferenceEntityLockService.renew
@Override public void renew(IEntityLock lock, int duration) throws LockingException { if (isValid(lock)) { Date newExpiration = getNewExpiration(duration); getLockStore().update(lock, newExpiration); ((EntityLockImpl) lock).setExpirationTime(newExpiration); } else...
java
@Override public void renew(IEntityLock lock, int duration) throws LockingException { if (isValid(lock)) { Date newExpiration = getNewExpiration(duration); getLockStore().update(lock, newExpiration); ((EntityLockImpl) lock).setExpirationTime(newExpiration); } else...
[ "@", "Override", "public", "void", "renew", "(", "IEntityLock", "lock", ",", "int", "duration", ")", "throws", "LockingException", "{", "if", "(", "isValid", "(", "lock", ")", ")", "{", "Date", "newExpiration", "=", "getNewExpiration", "(", "duration", ")", ...
Extends the expiration time of the lock by some service-defined increment. @param lock IEntityLock @exception LockingException
[ "Extends", "the", "expiration", "time", "of", "the", "lock", "by", "some", "service", "-", "defined", "increment", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/concurrency/locking/ReferenceEntityLockService.java#L370-L379
58,119
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java
PortletAdministrationHelper.createPortletDefinitionForm
public PortletDefinitionForm createPortletDefinitionForm(IPerson person, String portletId) { IPortletDefinition def = portletDefinitionRegistry.getPortletDefinition(portletId); // create the new form final PortletDefinitionForm form; if (def != null) { // if this is a pre-e...
java
public PortletDefinitionForm createPortletDefinitionForm(IPerson person, String portletId) { IPortletDefinition def = portletDefinitionRegistry.getPortletDefinition(portletId); // create the new form final PortletDefinitionForm form; if (def != null) { // if this is a pre-e...
[ "public", "PortletDefinitionForm", "createPortletDefinitionForm", "(", "IPerson", "person", ",", "String", "portletId", ")", "{", "IPortletDefinition", "def", "=", "portletDefinitionRegistry", ".", "getPortletDefinition", "(", "portletId", ")", ";", "// create the new form"...
Construct a new PortletDefinitionForm for the given IPortletDefinition id. If a PortletDefinition matching this ID already exists, the form will be pre-populated with the PortletDefinition's current configuration. If the PortletDefinition does not yet exist, a new default form will be created. @param person user that ...
[ "Construct", "a", "new", "PortletDefinitionForm", "for", "the", "given", "IPortletDefinition", "id", ".", "If", "a", "PortletDefinition", "matching", "this", "ID", "already", "exists", "the", "form", "will", "be", "pre", "-", "populated", "with", "the", "Portlet...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java#L179-L216
58,120
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java
PortletAdministrationHelper.removePortletRegistration
public void removePortletRegistration(IPerson person, PortletDefinitionForm form) { /* TODO: Service-Layer Security Reboot (great need of refactoring with a community-approved plan in place) */ // Arguably a check here is redundant since -- in the current // portlet-manager webflow -- you can'...
java
public void removePortletRegistration(IPerson person, PortletDefinitionForm form) { /* TODO: Service-Layer Security Reboot (great need of refactoring with a community-approved plan in place) */ // Arguably a check here is redundant since -- in the current // portlet-manager webflow -- you can'...
[ "public", "void", "removePortletRegistration", "(", "IPerson", "person", ",", "PortletDefinitionForm", "form", ")", "{", "/* TODO: Service-Layer Security Reboot (great need of refactoring with a community-approved plan in place) */", "// Arguably a check here is redundant since -- in the cu...
Delete the portlet with the given portlet ID. @param person the person removing the portlet @param form
[ "Delete", "the", "portlet", "with", "the", "given", "portlet", "ID", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java#L518-L546
58,121
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java
PortletAdministrationHelper.shouldDisplayLayoutLink
public boolean shouldDisplayLayoutLink( IPerson person, PortletDefinitionForm form, String portletId) { if (!form.isNew()) { return false; } // only include the "do layout" link for published portlets. if (form.getLifecycleState() != PortletLifecycleState.PUBLISH...
java
public boolean shouldDisplayLayoutLink( IPerson person, PortletDefinitionForm form, String portletId) { if (!form.isNew()) { return false; } // only include the "do layout" link for published portlets. if (form.getLifecycleState() != PortletLifecycleState.PUBLISH...
[ "public", "boolean", "shouldDisplayLayoutLink", "(", "IPerson", "person", ",", "PortletDefinitionForm", "form", ",", "String", "portletId", ")", "{", "if", "(", "!", "form", ".", "isNew", "(", ")", ")", "{", "return", "false", ";", "}", "// only include the \"...
Check if the link to the Fragment admin portlet should display in the status message. <p>Checks that the portlet is new, that the portlet has been published and that the user has necessary permissions to go to the fragment admin page. @param person the person publishing/editing the portlet @param form the portlet bei...
[ "Check", "if", "the", "link", "to", "the", "Fragment", "admin", "portlet", "should", "display", "in", "the", "status", "message", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java#L559-L583
58,122
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java
PortletAdministrationHelper.getFragmentAdminURL
public String getFragmentAdminURL(HttpServletRequest request) { IPortalUrlBuilder builder = urlProvider.getPortalUrlBuilderByPortletFName( request, PORTLET_FNAME_FRAGMENT_ADMIN_PORTLET, UrlType.RENDER); IPortletUrlBuilder portletUrlBuilder = builder.getTargetedPor...
java
public String getFragmentAdminURL(HttpServletRequest request) { IPortalUrlBuilder builder = urlProvider.getPortalUrlBuilderByPortletFName( request, PORTLET_FNAME_FRAGMENT_ADMIN_PORTLET, UrlType.RENDER); IPortletUrlBuilder portletUrlBuilder = builder.getTargetedPor...
[ "public", "String", "getFragmentAdminURL", "(", "HttpServletRequest", "request", ")", "{", "IPortalUrlBuilder", "builder", "=", "urlProvider", ".", "getPortalUrlBuilderByPortletFName", "(", "request", ",", "PORTLET_FNAME_FRAGMENT_ADMIN_PORTLET", ",", "UrlType", ".", "RENDER...
Get the link to the fragment admin portlet. @param request the current http request. @return the portlet link
[ "Get", "the", "link", "to", "the", "fragment", "admin", "portlet", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java#L591-L600
58,123
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java
PortletAdministrationHelper.getArbitraryPortletPreferenceNames
public Set<String> getArbitraryPortletPreferenceNames(PortletDefinitionForm form) { // set default values for all portlet parameters PortletPublishingDefinition cpd = this.portletPublishingDefinitionDao.getChannelPublishingDefinition( form.getTypeId()); Se...
java
public Set<String> getArbitraryPortletPreferenceNames(PortletDefinitionForm form) { // set default values for all portlet parameters PortletPublishingDefinition cpd = this.portletPublishingDefinitionDao.getChannelPublishingDefinition( form.getTypeId()); Se...
[ "public", "Set", "<", "String", ">", "getArbitraryPortletPreferenceNames", "(", "PortletDefinitionForm", "form", ")", "{", "// set default values for all portlet parameters", "PortletPublishingDefinition", "cpd", "=", "this", ".", "portletPublishingDefinitionDao", ".", "getChan...
Get a list of the key names of the currently-set arbitrary portlet preferences. @param form @return
[ "Get", "a", "list", "of", "the", "key", "names", "of", "the", "currently", "-", "set", "arbitrary", "portlet", "preferences", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java#L608-L623
58,124
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java
PortletAdministrationHelper.getPortletApplications
public List<PortletApplicationDefinition> getPortletApplications() { final PortletRegistryService portletRegistryService = portalDriverContainerServices.getPortletRegistryService(); final List<PortletApplicationDefinition> contexts = new ArrayList<>(); for (final Iterator<String...
java
public List<PortletApplicationDefinition> getPortletApplications() { final PortletRegistryService portletRegistryService = portalDriverContainerServices.getPortletRegistryService(); final List<PortletApplicationDefinition> contexts = new ArrayList<>(); for (final Iterator<String...
[ "public", "List", "<", "PortletApplicationDefinition", ">", "getPortletApplications", "(", ")", "{", "final", "PortletRegistryService", "portletRegistryService", "=", "portalDriverContainerServices", ".", "getPortletRegistryService", "(", ")", ";", "final", "List", "<", "...
Retreive the list of portlet application contexts currently available in this portlet container. @return list of portlet context
[ "Retreive", "the", "list", "of", "portlet", "application", "contexts", "currently", "available", "in", "this", "portlet", "container", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/portletadmin/PortletAdministrationHelper.java#L830-L891
58,125
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/cas/CasAssertionSecurityContext.java
CasAssertionSecurityContext.copyAssertionAttributesToUserAttributes
private void copyAssertionAttributesToUserAttributes(Assertion assertion) { if (!copyAssertionAttributesToUserAttributes) { return; } // skip this if there are no attributes or if the attribute set is empty. if (assertion.getPrincipal().getAttributes() == null ...
java
private void copyAssertionAttributesToUserAttributes(Assertion assertion) { if (!copyAssertionAttributesToUserAttributes) { return; } // skip this if there are no attributes or if the attribute set is empty. if (assertion.getPrincipal().getAttributes() == null ...
[ "private", "void", "copyAssertionAttributesToUserAttributes", "(", "Assertion", "assertion", ")", "{", "if", "(", "!", "copyAssertionAttributesToUserAttributes", ")", "{", "return", ";", "}", "// skip this if there are no attributes or if the attribute set is empty.", "if", "("...
If enabled, convert CAS assertion person attributes into uPortal user attributes. @param assertion the Assertion that was retrieved from the ThreadLocal. CANNOT be NULL.
[ "If", "enabled", "convert", "CAS", "assertion", "person", "attributes", "into", "uPortal", "user", "attributes", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/cas/CasAssertionSecurityContext.java#L219-L280
58,126
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityCachingService.java
EntityCachingService.get
@Override public IBasicEntity get(Class<? extends IBasicEntity> type, String key) throws CachingException { return EntityCachingServiceLocator.getEntityCachingService().get(type, key); }
java
@Override public IBasicEntity get(Class<? extends IBasicEntity> type, String key) throws CachingException { return EntityCachingServiceLocator.getEntityCachingService().get(type, key); }
[ "@", "Override", "public", "IBasicEntity", "get", "(", "Class", "<", "?", "extends", "IBasicEntity", ">", "type", ",", "String", "key", ")", "throws", "CachingException", "{", "return", "EntityCachingServiceLocator", ".", "getEntityCachingService", "(", ")", ".", ...
Returns the cached entity identified by type and key. @param type Class @param key String @return IBasicEntity entity @exception org.apereo.portal.concurrency.CachingException
[ "Returns", "the", "cached", "entity", "identified", "by", "type", "and", "key", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityCachingService.java#L103-L107
58,127
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityCachingService.java
EntityCachingService.get
public IBasicEntity get(EntityIdentifier entityID) throws CachingException { return EntityCachingServiceLocator.getEntityCachingService() .get(entityID.getType(), entityID.getKey()); }
java
public IBasicEntity get(EntityIdentifier entityID) throws CachingException { return EntityCachingServiceLocator.getEntityCachingService() .get(entityID.getType(), entityID.getKey()); }
[ "public", "IBasicEntity", "get", "(", "EntityIdentifier", "entityID", ")", "throws", "CachingException", "{", "return", "EntityCachingServiceLocator", ".", "getEntityCachingService", "(", ")", ".", "get", "(", "entityID", ".", "getType", "(", ")", ",", "entityID", ...
Returns the cached entity referred to by entityID. @param entityID entity identifier @return IBasicEntity entity @exception org.apereo.portal.concurrency.CachingException
[ "Returns", "the", "cached", "entity", "referred", "to", "by", "entityID", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityCachingService.java#L116-L119
58,128
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityCachingService.java
EntityCachingService.remove
@Override public void remove(Class<? extends IBasicEntity> type, String key) throws CachingException { EntityCachingServiceLocator.getEntityCachingService().remove(type, key); }
java
@Override public void remove(Class<? extends IBasicEntity> type, String key) throws CachingException { EntityCachingServiceLocator.getEntityCachingService().remove(type, key); }
[ "@", "Override", "public", "void", "remove", "(", "Class", "<", "?", "extends", "IBasicEntity", ">", "type", ",", "String", "key", ")", "throws", "CachingException", "{", "EntityCachingServiceLocator", ".", "getEntityCachingService", "(", ")", ".", "remove", "("...
Removes the entity identified by type and key from the cache and notifies peer caches. @param type Class @param key String @exception org.apereo.portal.concurrency.CachingException
[ "Removes", "the", "entity", "identified", "by", "type", "and", "key", "from", "the", "cache", "and", "notifies", "peer", "caches", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/services/EntityCachingService.java#L128-L131
58,129
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlets/error/PortletErrorController.java
PortletErrorController.renderError
@RequestMapping("VIEW") public String renderError(RenderRequest request, RenderResponse response, ModelMap model) throws Exception { HttpServletRequest httpRequest = this.portalRequestUtils.getPortletHttpRequest(request); IPortletWindowId currentFailedPortletWindowId = (...
java
@RequestMapping("VIEW") public String renderError(RenderRequest request, RenderResponse response, ModelMap model) throws Exception { HttpServletRequest httpRequest = this.portalRequestUtils.getPortletHttpRequest(request); IPortletWindowId currentFailedPortletWindowId = (...
[ "@", "RequestMapping", "(", "\"VIEW\"", ")", "public", "String", "renderError", "(", "RenderRequest", "request", ",", "RenderResponse", "response", ",", "ModelMap", "model", ")", "throws", "Exception", "{", "HttpServletRequest", "httpRequest", "=", "this", ".", "p...
Render the error portlet view. @param request @param response @param model @return the name of the view to display @throws Exception
[ "Render", "the", "error", "portlet", "view", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlets/error/PortletErrorController.java#L101-L149
58,130
Jasig/uPortal
uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/SimpleLdapSecurityContext.java
SimpleLdapSecurityContext.getAttributeValue
private String getAttributeValue(Attributes attrs, int attribute) throws NamingException { NamingEnumeration values = null; String aValue = ""; if (!isAttribute(attribute)) return aValue; Attribute attrib = attrs.get(attributes[attribute]); if (attrib != null) { for (...
java
private String getAttributeValue(Attributes attrs, int attribute) throws NamingException { NamingEnumeration values = null; String aValue = ""; if (!isAttribute(attribute)) return aValue; Attribute attrib = attrs.get(attributes[attribute]); if (attrib != null) { for (...
[ "private", "String", "getAttributeValue", "(", "Attributes", "attrs", ",", "int", "attribute", ")", "throws", "NamingException", "{", "NamingEnumeration", "values", "=", "null", ";", "String", "aValue", "=", "\"\"", ";", "if", "(", "!", "isAttribute", "(", "at...
Return a single value of an attribute from possibly multiple values, grossly ignoring anything else. If there are no values, then return an empty string. @param attrs LDAP query results @param attribute LDAP attribute we are interested in @return a single value of the attribute
[ "Return", "a", "single", "value", "of", "an", "attribute", "from", "possibly", "multiple", "values", "grossly", "ignoring", "anything", "else", ".", "If", "there", "are", "no", "values", "then", "return", "an", "empty", "string", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-authn/src/main/java/org/apereo/portal/security/provider/SimpleLdapSecurityContext.java#L203-L215
58,131
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java
RDBMUserLayoutStore.addUserProfile
@Override public UserProfile addUserProfile(final IPerson person, final IUserProfile profile) { final int userId = person.getID(); final int layoutId = getLayoutId(person, profile); // generate an id for this profile return jdbcOperations.execute( (ConnectionCallback...
java
@Override public UserProfile addUserProfile(final IPerson person, final IUserProfile profile) { final int userId = person.getID(); final int layoutId = getLayoutId(person, profile); // generate an id for this profile return jdbcOperations.execute( (ConnectionCallback...
[ "@", "Override", "public", "UserProfile", "addUserProfile", "(", "final", "IPerson", "person", ",", "final", "IUserProfile", "profile", ")", "{", "final", "int", "userId", "=", "person", ".", "getID", "(", ")", ";", "final", "int", "layoutId", "=", "getLayou...
Add a user profile
[ "Add", "a", "user", "profile" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java#L208-L272
58,132
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java
RDBMUserLayoutStore.createLayout
private void createLayout(HashMap layoutStructure, Document doc, Element root, int structId) { while (structId != 0) { LayoutStructure ls = (LayoutStructure) layoutStructure.get(structId); // replaced with call to method in containing class to allow overriding // by subclasse...
java
private void createLayout(HashMap layoutStructure, Document doc, Element root, int structId) { while (structId != 0) { LayoutStructure ls = (LayoutStructure) layoutStructure.get(structId); // replaced with call to method in containing class to allow overriding // by subclasse...
[ "private", "void", "createLayout", "(", "HashMap", "layoutStructure", ",", "Document", "doc", ",", "Element", "root", ",", "int", "structId", ")", "{", "while", "(", "structId", "!=", "0", ")", "{", "LayoutStructure", "ls", "=", "(", "LayoutStructure", ")", ...
Create a layout
[ "Create", "a", "layout" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java#L314-L331
58,133
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java
RDBMUserLayoutStore.getNextStructId
protected String getNextStructId(final IPerson person, final String prefix) { final int userId = person.getID(); return nextStructTransactionOperations.execute( status -> jdbcOperations.execute( new ConnectionCallback<String>() { ...
java
protected String getNextStructId(final IPerson person, final String prefix) { final int userId = person.getID(); return nextStructTransactionOperations.execute( status -> jdbcOperations.execute( new ConnectionCallback<String>() { ...
[ "protected", "String", "getNextStructId", "(", "final", "IPerson", "person", ",", "final", "String", "prefix", ")", "{", "final", "int", "userId", "=", "person", ".", "getID", "(", ")", ";", "return", "nextStructTransactionOperations", ".", "execute", "(", "st...
Return the next available structure id for a user @return next free structure ID
[ "Return", "the", "next", "available", "structure", "id", "for", "a", "user" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java#L367-L407
58,134
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java
RDBMUserLayoutStore.getLayoutID
private int getLayoutID(final int userId, final int profileId) { return jdbcOperations.execute( (ConnectionCallback<Integer>) con -> { String query = "SELECT LAYOUT_ID " ...
java
private int getLayoutID(final int userId, final int profileId) { return jdbcOperations.execute( (ConnectionCallback<Integer>) con -> { String query = "SELECT LAYOUT_ID " ...
[ "private", "int", "getLayoutID", "(", "final", "int", "userId", ",", "final", "int", "profileId", ")", "{", "return", "jdbcOperations", ".", "execute", "(", "(", "ConnectionCallback", "<", "Integer", ">", ")", "con", "->", "{", "String", "query", "=", "\"S...
Returns the current layout ID for the user and profile. If the profile doesn't exist or the layout_id field is null 0 is returned. @param userId The userId for the profile @param profileId The profileId for the profile @return The layout_id field or 0 if it does not exist or is null
[ "Returns", "the", "current", "layout", "ID", "for", "the", "user", "and", "profile", ".", "If", "the", "profile", "doesn", "t", "exist", "or", "the", "layout_id", "field", "is", "null", "0", "is", "returned", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/simple/RDBMUserLayoutStore.java#L1491-L1525
58,135
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java
ResourceLoader.getResourceAsURLString
public static String getResourceAsURLString(Class<?> requestingClass, String resource) throws ResourceMissingException { return getResourceAsURL(requestingClass, resource).toString(); }
java
public static String getResourceAsURLString(Class<?> requestingClass, String resource) throws ResourceMissingException { return getResourceAsURL(requestingClass, resource).toString(); }
[ "public", "static", "String", "getResourceAsURLString", "(", "Class", "<", "?", ">", "requestingClass", ",", "String", "resource", ")", "throws", "ResourceMissingException", "{", "return", "getResourceAsURL", "(", "requestingClass", ",", "resource", ")", ".", "toStr...
Returns the requested resource as a URL string. @param requestingClass the java.lang.Class object of the class that is attempting to load the resource @param resource a String describing the full or partial URL of the resource to load @return the requested resource as a URL string @throws ResourceMissingException
[ "Returns", "the", "requested", "resource", "as", "a", "URL", "string", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java#L180-L183
58,136
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java
ResourceLoader.getResourceAsStream
public static InputStream getResourceAsStream(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { return getResourceAsURL(requestingClass, resource).openStream(); }
java
public static InputStream getResourceAsStream(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { return getResourceAsURL(requestingClass, resource).openStream(); }
[ "public", "static", "InputStream", "getResourceAsStream", "(", "Class", "<", "?", ">", "requestingClass", ",", "String", "resource", ")", "throws", "ResourceMissingException", ",", "IOException", "{", "return", "getResourceAsURL", "(", "requestingClass", ",", "resourc...
Returns the requested resource as a stream. @param requestingClass the java.lang.Class object of the class that is attempting to load the resource @param resource a String describing the full or partial URL of the resource to load @return the requested resource as a stream @throws ResourceMissingException @throws java...
[ "Returns", "the", "requested", "resource", "as", "a", "stream", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java#L212-L215
58,137
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java
ResourceLoader.getResourceAsSAXInputSource
public static InputSource getResourceAsSAXInputSource(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { URL url = getResourceAsURL(requestingClass, resource); InputSource source = new InputSource(url.openStream()); source.setPublicId(url.toExte...
java
public static InputSource getResourceAsSAXInputSource(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { URL url = getResourceAsURL(requestingClass, resource); InputSource source = new InputSource(url.openStream()); source.setPublicId(url.toExte...
[ "public", "static", "InputSource", "getResourceAsSAXInputSource", "(", "Class", "<", "?", ">", "requestingClass", ",", "String", "resource", ")", "throws", "ResourceMissingException", ",", "IOException", "{", "URL", "url", "=", "getResourceAsURL", "(", "requestingClas...
Returns the requested resource as a SAX input source. @param requestingClass the java.lang.Class object of the class that is attempting to load the resource @param resource a String describing the full or partial URL of the resource to load @return the requested resource as a SAX input source @throws ResourceMissingEx...
[ "Returns", "the", "requested", "resource", "as", "a", "SAX", "input", "source", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java#L227-L233
58,138
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java
ResourceLoader.getResourceAsDocument
public static Document getResourceAsDocument( Class<?> requestingClass, String resource, boolean validate) throws ResourceMissingException, IOException, ParserConfigurationException, SAXException { Document document = null; InputStream inputStream = null; ...
java
public static Document getResourceAsDocument( Class<?> requestingClass, String resource, boolean validate) throws ResourceMissingException, IOException, ParserConfigurationException, SAXException { Document document = null; InputStream inputStream = null; ...
[ "public", "static", "Document", "getResourceAsDocument", "(", "Class", "<", "?", ">", "requestingClass", ",", "String", "resource", ",", "boolean", "validate", ")", "throws", "ResourceMissingException", ",", "IOException", ",", "ParserConfigurationException", ",", "SA...
Get the contents of a URL as an XML Document @param requestingClass the java.lang.Class object of the class that is attempting to load the resource @param resource a String describing the full or partial URL of the resource whose contents to load @param validate boolean. True if the document builder factory should val...
[ "Get", "the", "contents", "of", "a", "URL", "as", "an", "XML", "Document" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java#L250-L277
58,139
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java
ResourceLoader.getResourceAsDocument
public static Document getResourceAsDocument(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException, ParserConfigurationException, SAXException { // Default is non-validating... return getResourceAsDocument(requestingClass, resource, fals...
java
public static Document getResourceAsDocument(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException, ParserConfigurationException, SAXException { // Default is non-validating... return getResourceAsDocument(requestingClass, resource, fals...
[ "public", "static", "Document", "getResourceAsDocument", "(", "Class", "<", "?", ">", "requestingClass", ",", "String", "resource", ")", "throws", "ResourceMissingException", ",", "IOException", ",", "ParserConfigurationException", ",", "SAXException", "{", "// Default ...
Get the contents of a URL as an XML Document, first trying to read the Document with validation turned on, and falling back to reading it with validation turned off. @param requestingClass the java.lang.Class object of the class that is attempting to load the resource @param resource a String describing the full or pa...
[ "Get", "the", "contents", "of", "a", "URL", "as", "an", "XML", "Document", "first", "trying", "to", "read", "the", "Document", "with", "validation", "turned", "on", "and", "falling", "back", "to", "reading", "it", "with", "validation", "turned", "off", "."...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java#L293-L299
58,140
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java
ResourceLoader.getResourceAsProperties
public static Properties getResourceAsProperties(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { InputStream inputStream = null; Properties props = null; try { inputStream = getResourceAsStream(requestingClass, resource); ...
java
public static Properties getResourceAsProperties(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { InputStream inputStream = null; Properties props = null; try { inputStream = getResourceAsStream(requestingClass, resource); ...
[ "public", "static", "Properties", "getResourceAsProperties", "(", "Class", "<", "?", ">", "requestingClass", ",", "String", "resource", ")", "throws", "ResourceMissingException", ",", "IOException", "{", "InputStream", "inputStream", "=", "null", ";", "Properties", ...
Get the contents of a URL as a java.util.Properties object @param requestingClass the java.lang.Class object of the class that is attempting to load the resource @param resource a String describing the full or partial URL of the resource whose contents to load @return the actual contents of the resource as a Propertie...
[ "Get", "the", "contents", "of", "a", "URL", "as", "a", "java", ".", "util", ".", "Properties", "object" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java#L312-L324
58,141
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java
ResourceLoader.getResourceAsString
public static String getResourceAsString(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { String line = null; BufferedReader in = null; StringBuffer sbText = null; try { in = new BufferedReader( ...
java
public static String getResourceAsString(Class<?> requestingClass, String resource) throws ResourceMissingException, IOException { String line = null; BufferedReader in = null; StringBuffer sbText = null; try { in = new BufferedReader( ...
[ "public", "static", "String", "getResourceAsString", "(", "Class", "<", "?", ">", "requestingClass", ",", "String", "resource", ")", "throws", "ResourceMissingException", ",", "IOException", "{", "String", "line", "=", "null", ";", "BufferedReader", "in", "=", "...
Get the contents of a URL as a String @param requestingClass the java.lang.Class object of the class that is attempting to load the resource @param resource a String describing the full or partial URL of the resource whose contents to load @return the actual contents of the resource as a String @throws ResourceMissing...
[ "Get", "the", "contents", "of", "a", "URL", "as", "a", "String" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/ResourceLoader.java#L337-L353
58,142
Jasig/uPortal
uPortal-security/uPortal-security-services/src/main/java/org/apereo/portal/services/Authentication.java
Authentication.setContextParameters
public void setContextParameters( Map<String, String> principals, Map<String, String> credentials, String ctxName, ISecurityContext securityContext) { if (log.isDebugEnabled()) { final StringBuilder msg = new StringBuilder(); msg.append("P...
java
public void setContextParameters( Map<String, String> principals, Map<String, String> credentials, String ctxName, ISecurityContext securityContext) { if (log.isDebugEnabled()) { final StringBuilder msg = new StringBuilder(); msg.append("P...
[ "public", "void", "setContextParameters", "(", "Map", "<", "String", ",", "String", ">", "principals", ",", "Map", "<", "String", ",", "String", ">", "credentials", ",", "String", "ctxName", ",", "ISecurityContext", "securityContext", ")", "{", "if", "(", "l...
Get the principal and credential for a specific context and store them in the context. @param principals @param credentials @param ctxName @param securityContext
[ "Get", "the", "principal", "and", "credential", "for", "a", "specific", "context", "and", "store", "them", "in", "the", "context", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-services/src/main/java/org/apereo/portal/services/Authentication.java#L288-L341
58,143
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletRendererImpl.java
PortletRendererImpl.publishRenderEvent
protected void publishRenderEvent( IPortletWindow portletWindow, HttpServletRequest httpServletRequest, RenderPart renderPart, long executionTime, boolean cached) { final IPortletWindowId portletWindowId = portletWindow.getPortletWindowId(); ...
java
protected void publishRenderEvent( IPortletWindow portletWindow, HttpServletRequest httpServletRequest, RenderPart renderPart, long executionTime, boolean cached) { final IPortletWindowId portletWindowId = portletWindow.getPortletWindowId(); ...
[ "protected", "void", "publishRenderEvent", "(", "IPortletWindow", "portletWindow", ",", "HttpServletRequest", "httpServletRequest", ",", "RenderPart", "renderPart", ",", "long", "executionTime", ",", "boolean", "cached", ")", "{", "final", "IPortletWindowId", "portletWind...
Publish the portlet render event
[ "Publish", "the", "portlet", "render", "event" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletRendererImpl.java#L579-L602
58,144
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletRendererImpl.java
PortletRendererImpl.publishResourceEvent
protected void publishResourceEvent( IPortletWindow portletWindow, HttpServletRequest httpServletRequest, long executionTime, boolean usedBrowserCache, boolean usedPortalCache) { final IPortletWindowId portletWindowId = portletWindow.getPortletWindowI...
java
protected void publishResourceEvent( IPortletWindow portletWindow, HttpServletRequest httpServletRequest, long executionTime, boolean usedBrowserCache, boolean usedPortalCache) { final IPortletWindowId portletWindowId = portletWindow.getPortletWindowI...
[ "protected", "void", "publishResourceEvent", "(", "IPortletWindow", "portletWindow", ",", "HttpServletRequest", "httpServletRequest", ",", "long", "executionTime", ",", "boolean", "usedBrowserCache", ",", "boolean", "usedPortalCache", ")", "{", "final", "IPortletWindowId", ...
Publish the portlet resource event
[ "Publish", "the", "portlet", "resource", "event" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletRendererImpl.java#L840-L856
58,145
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletRendererImpl.java
PortletRendererImpl.enforceConfigPermission
protected void enforceConfigPermission( final HttpServletRequest httpServletRequest, final IPortletWindow portletWindow) { Validate.notNull( httpServletRequest, "Servlet request must not be null to determine remote user."); Validate.notNull(portletWindow, "Portlet window mus...
java
protected void enforceConfigPermission( final HttpServletRequest httpServletRequest, final IPortletWindow portletWindow) { Validate.notNull( httpServletRequest, "Servlet request must not be null to determine remote user."); Validate.notNull(portletWindow, "Portlet window mus...
[ "protected", "void", "enforceConfigPermission", "(", "final", "HttpServletRequest", "httpServletRequest", ",", "final", "IPortletWindow", "portletWindow", ")", "{", "Validate", ".", "notNull", "(", "httpServletRequest", ",", "\"Servlet request must not be null to determine remo...
Enforces config mode access control. If requesting user does not have CONFIG permission, and the PortletWindow specifies config mode, throws AuthorizationException. Otherwise does nothing. @param httpServletRequest the non-null current HttpServletRequest (for determining requesting user) @param portletWindow a non-nul...
[ "Enforces", "config", "mode", "access", "control", ".", "If", "requesting", "user", "does", "not", "have", "CONFIG", "permission", "and", "the", "PortletWindow", "specifies", "config", "mode", "throws", "AuthorizationException", ".", "Otherwise", "does", "nothing", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletRendererImpl.java#L960-L1002
58,146
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/security/provider/PersonImpl.java
PersonImpl.getAttributeValues
@Override public Object[] getAttributeValues(String key) { if (userAttributes == null) { return null; } final List<Object> values = userAttributes.get(key); if (values != null) { return values.toArray(); } return null; }
java
@Override public Object[] getAttributeValues(String key) { if (userAttributes == null) { return null; } final List<Object> values = userAttributes.get(key); if (values != null) { return values.toArray(); } return null; }
[ "@", "Override", "public", "Object", "[", "]", "getAttributeValues", "(", "String", "key", ")", "{", "if", "(", "userAttributes", "==", "null", ")", "{", "return", "null", ";", "}", "final", "List", "<", "Object", ">", "values", "=", "userAttributes", "....
Returns multiple attributes for a key. If only one value exists, it will be returned in an array of size one. @param key the attribute name @return the array of attribute values identified by the key
[ "Returns", "multiple", "attributes", "for", "a", "key", ".", "If", "only", "one", "value", "exists", "it", "will", "be", "returned", "in", "an", "array", "of", "size", "one", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/security/provider/PersonImpl.java#L80-L92
58,147
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/security/provider/PersonImpl.java
PersonImpl.setAttribute
@Override public void setAttribute(String key, Object value) { if (value == null) { setAttribute(key, null); } else { setAttribute(key, Collections.singletonList(value)); } }
java
@Override public void setAttribute(String key, Object value) { if (value == null) { setAttribute(key, null); } else { setAttribute(key, Collections.singletonList(value)); } }
[ "@", "Override", "public", "void", "setAttribute", "(", "String", "key", ",", "Object", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "setAttribute", "(", "key", ",", "null", ")", ";", "}", "else", "{", "setAttribute", "(", "key", ",...
Sets the specified attribute to a value. <p>Reference implementation checks for the setting of the username attribute and updates the EntityIdentifier accordingly @param key Attribute's name @param value Attribute's value
[ "Sets", "the", "specified", "attribute", "to", "a", "value", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/security/provider/PersonImpl.java#L114-L121
58,148
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/security/provider/PersonImpl.java
PersonImpl.isGuest
@Override public boolean isGuest() { String userName = (String) getAttribute(IPerson.USERNAME); boolean isGuestUsername = PersonFactory.getGuestUsernames().contains(userName); boolean isAuthenticated = m_securityContext != null && m_securityContext.isAuthenticated(); return isGuestUs...
java
@Override public boolean isGuest() { String userName = (String) getAttribute(IPerson.USERNAME); boolean isGuestUsername = PersonFactory.getGuestUsernames().contains(userName); boolean isAuthenticated = m_securityContext != null && m_securityContext.isAuthenticated(); return isGuestUs...
[ "@", "Override", "public", "boolean", "isGuest", "(", ")", "{", "String", "userName", "=", "(", "String", ")", "getAttribute", "(", "IPerson", ".", "USERNAME", ")", ";", "boolean", "isGuestUsername", "=", "PersonFactory", ".", "getGuestUsernames", "(", ")", ...
Determines whether or not this person is a "guest" user. <p>This person is a "guest" if both of the following are true: <ol> <li>This person's user name is listed as a guest user account. <li>This person does not have a live instance ISecurityContext that states he/she has been successfully authenticated. (It can be ...
[ "Determines", "whether", "or", "not", "this", "person", "is", "a", "guest", "user", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/security/provider/PersonImpl.java#L234-L240
58,149
Jasig/uPortal
uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceEntityStoreFactory.java
ReferenceEntityStoreFactory.newInstance
public IEntityStore newInstance() throws GroupsException { try { return new RDBMEntityStore(); } catch (Exception ex) { log.error("ReferenceEntityStoreFactory.newInstance(): " + ex); throw new GroupsException(ex); } }
java
public IEntityStore newInstance() throws GroupsException { try { return new RDBMEntityStore(); } catch (Exception ex) { log.error("ReferenceEntityStoreFactory.newInstance(): " + ex); throw new GroupsException(ex); } }
[ "public", "IEntityStore", "newInstance", "(", ")", "throws", "GroupsException", "{", "try", "{", "return", "new", "RDBMEntityStore", "(", ")", ";", "}", "catch", "(", "Exception", "ex", ")", "{", "log", ".", "error", "(", "\"ReferenceEntityStoreFactory.newInstan...
Return an instance of the entity store implementation. @return IEntityStore @exception GroupsException
[ "Return", "an", "instance", "of", "the", "entity", "store", "implementation", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceEntityStoreFactory.java#L45-L52
58,150
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/InjectingXMLEventReader.java
InjectingXMLEventReader.getAdditionalEvents
protected Deque<XMLEvent> getAdditionalEvents(XMLEvent event) { final XMLEvent additionalEvent = this.getAdditionalEvent(event); if (additionalEvent == null) { return null; } final Deque<XMLEvent> additionalEvents = new LinkedList<XMLEvent>(); additionalEvents.push(a...
java
protected Deque<XMLEvent> getAdditionalEvents(XMLEvent event) { final XMLEvent additionalEvent = this.getAdditionalEvent(event); if (additionalEvent == null) { return null; } final Deque<XMLEvent> additionalEvents = new LinkedList<XMLEvent>(); additionalEvents.push(a...
[ "protected", "Deque", "<", "XMLEvent", ">", "getAdditionalEvents", "(", "XMLEvent", "event", ")", "{", "final", "XMLEvent", "additionalEvent", "=", "this", ".", "getAdditionalEvent", "(", "event", ")", ";", "if", "(", "additionalEvent", "==", "null", ")", "{",...
The Deque with the additional events WILL BE MODIFIED by the calling code. @param event The current event @return Any additional events that should be injected before the current event. If null the current event is returned
[ "The", "Deque", "with", "the", "additional", "events", "WILL", "BE", "MODIFIED", "by", "the", "calling", "code", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/xml/stream/InjectingXMLEventReader.java#L73-L82
58,151
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/StylesheetUserPreferencesServiceImpl.java
StylesheetUserPreferencesServiceImpl.getStyleSheetName
protected String getStyleSheetName(final HttpServletRequest request, PreferencesScope scope) { final String stylesheetNameFromRequest; if (scope.equals(PreferencesScope.STRUCTURE)) { stylesheetNameFromRequest = (String) request.getAttribute(STYLESHEET_STRUCTURE_OVERRIDE_...
java
protected String getStyleSheetName(final HttpServletRequest request, PreferencesScope scope) { final String stylesheetNameFromRequest; if (scope.equals(PreferencesScope.STRUCTURE)) { stylesheetNameFromRequest = (String) request.getAttribute(STYLESHEET_STRUCTURE_OVERRIDE_...
[ "protected", "String", "getStyleSheetName", "(", "final", "HttpServletRequest", "request", ",", "PreferencesScope", "scope", ")", "{", "final", "String", "stylesheetNameFromRequest", ";", "if", "(", "scope", ".", "equals", "(", "PreferencesScope", ".", "STRUCTURE", ...
Returns the stylesheet name if overridden in the request object. @param request HttpRequest @param scope Scope (Structure or Theme) @return Stylesheet name if set as an override in the request, else null if it was not.
[ "Returns", "the", "stylesheet", "name", "if", "overridden", "in", "the", "request", "object", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/StylesheetUserPreferencesServiceImpl.java#L1254-L1266
58,152
Jasig/uPortal
uPortal-security/uPortal-security-mvc/src/main/java/org/apereo/portal/security/mvc/LogoutController.java
LogoutController.doLogout
@RequestMapping public void doLogout(HttpServletRequest request, HttpServletResponse response) throws IOException { String redirect = this.selectRedirectionUrl(request); final HttpSession session = request.getSession(false); if (session != null) { // Record that an ...
java
@RequestMapping public void doLogout(HttpServletRequest request, HttpServletResponse response) throws IOException { String redirect = this.selectRedirectionUrl(request); final HttpSession session = request.getSession(false); if (session != null) { // Record that an ...
[ "@", "RequestMapping", "public", "void", "doLogout", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "throws", "IOException", "{", "String", "redirect", "=", "this", ".", "selectRedirectionUrl", "(", "request", ")", ";", "final", ...
Process the incoming request and response. @param request HttpServletRequest object @param response HttpServletResponse object
[ "Process", "the", "incoming", "request", "and", "response", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-mvc/src/main/java/org/apereo/portal/security/mvc/LogoutController.java#L79-L127
58,153
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java
PropertiesManager.loadProps
protected static void loadProps() { PropertiesManager.props = new Properties(); try { String pfile = System.getProperty(PORTAL_PROPERTIES_FILE_SYSTEM_VARIABLE); if (pfile == null) { pfile = PORTAL_PROPERTIES_FILE_NAME; } PropertiesManager.p...
java
protected static void loadProps() { PropertiesManager.props = new Properties(); try { String pfile = System.getProperty(PORTAL_PROPERTIES_FILE_SYSTEM_VARIABLE); if (pfile == null) { pfile = PORTAL_PROPERTIES_FILE_NAME; } PropertiesManager.p...
[ "protected", "static", "void", "loadProps", "(", ")", "{", "PropertiesManager", ".", "props", "=", "new", "Properties", "(", ")", ";", "try", "{", "String", "pfile", "=", "System", ".", "getProperty", "(", "PORTAL_PROPERTIES_FILE_SYSTEM_VARIABLE", ")", ";", "i...
Load up the portal properties. Right now the portal properties is a simple .properties file with name value pairs. It may evolve to become an XML file later on.
[ "Load", "up", "the", "portal", "properties", ".", "Right", "now", "the", "portal", "properties", "is", "a", "simple", ".", "properties", "file", "with", "name", "value", "pairs", ".", "It", "may", "evolve", "to", "become", "an", "XML", "file", "later", "...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java#L83-L94
58,154
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java
PropertiesManager.getProperty
public static String getProperty(String name) throws MissingPropertyException { if (log.isTraceEnabled()) { log.trace("entering getProperty(" + name + ")"); } if (PropertiesManager.props == null) loadProps(); String val = getPropertyUntrimmed(name); val = val.trim(); ...
java
public static String getProperty(String name) throws MissingPropertyException { if (log.isTraceEnabled()) { log.trace("entering getProperty(" + name + ")"); } if (PropertiesManager.props == null) loadProps(); String val = getPropertyUntrimmed(name); val = val.trim(); ...
[ "public", "static", "String", "getProperty", "(", "String", "name", ")", "throws", "MissingPropertyException", "{", "if", "(", "log", ".", "isTraceEnabled", "(", ")", ")", "{", "log", ".", "trace", "(", "\"entering getProperty(\"", "+", "name", "+", "\")\"", ...
Returns the value of a property for a given name. Any whitespace is trimmed off the beginning and end of the property value. Note that this method will never return null. If the requested property cannot be found, this method throws an UndeclaredPortalException. @param name the name of the requested property @return v...
[ "Returns", "the", "value", "of", "a", "property", "for", "a", "given", "name", ".", "Any", "whitespace", "is", "trimmed", "off", "the", "beginning", "and", "end", "of", "the", "property", "value", ".", "Note", "that", "this", "method", "will", "never", "...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java#L105-L116
58,155
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java
PropertiesManager.getPropertyUntrimmed
public static String getPropertyUntrimmed(String name) throws MissingPropertyException { if (PropertiesManager.props == null) loadProps(); if (props == null) { boolean alreadyReported = registerMissingProperty(name); throw new MissingPropertyException(name, alreadyReported); ...
java
public static String getPropertyUntrimmed(String name) throws MissingPropertyException { if (PropertiesManager.props == null) loadProps(); if (props == null) { boolean alreadyReported = registerMissingProperty(name); throw new MissingPropertyException(name, alreadyReported); ...
[ "public", "static", "String", "getPropertyUntrimmed", "(", "String", "name", ")", "throws", "MissingPropertyException", "{", "if", "(", "PropertiesManager", ".", "props", "==", "null", ")", "loadProps", "(", ")", ";", "if", "(", "props", "==", "null", ")", "...
Returns the value of a property for a given name including whitespace trailing the property value, but not including whitespace leading the property value. An UndeclaredPortalException is thrown if the property cannot be found. This method will never return null. @param name the name of the requested property @return ...
[ "Returns", "the", "value", "of", "a", "property", "for", "a", "given", "name", "including", "whitespace", "trailing", "the", "property", "value", "but", "not", "including", "whitespace", "leading", "the", "property", "value", ".", "An", "UndeclaredPortalException"...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java#L127-L141
58,156
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java
PropertiesManager.registerMissingProperty
private static boolean registerMissingProperty(String name) { final boolean previouslyReported = !PropertiesManager.missingProperties.add(name); if (!previouslyReported && log.isInfoEnabled()) { log.info("Property [" + name + "] was requested but not found."); } return previ...
java
private static boolean registerMissingProperty(String name) { final boolean previouslyReported = !PropertiesManager.missingProperties.add(name); if (!previouslyReported && log.isInfoEnabled()) { log.info("Property [" + name + "] was requested but not found."); } return previ...
[ "private", "static", "boolean", "registerMissingProperty", "(", "String", "name", ")", "{", "final", "boolean", "previouslyReported", "=", "!", "PropertiesManager", ".", "missingProperties", ".", "add", "(", "name", ")", ";", "if", "(", "!", "previouslyReported", ...
Registers that a given property was sought but not found. Currently adds the property to the set of missing properties and logs if this is the first time the property has been requested. @param name - the name of the missing property @return true if the property was previously registered, false otherwise
[ "Registers", "that", "a", "given", "property", "was", "sought", "but", "not", "found", ".", "Currently", "adds", "the", "property", "to", "the", "set", "of", "missing", "properties", "and", "logs", "if", "this", "is", "the", "first", "time", "the", "proper...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java#L308-L315
58,157
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java
PropertiesManager.getProperty
public static String getProperty(String name, String defaultValue) { if (PropertiesManager.props == null) loadProps(); String returnValue = defaultValue; try { returnValue = getProperty(name); } catch (MissingPropertyException mpe) { // Do nothing, since we have a...
java
public static String getProperty(String name, String defaultValue) { if (PropertiesManager.props == null) loadProps(); String returnValue = defaultValue; try { returnValue = getProperty(name); } catch (MissingPropertyException mpe) { // Do nothing, since we have a...
[ "public", "static", "String", "getProperty", "(", "String", "name", ",", "String", "defaultValue", ")", "{", "if", "(", "PropertiesManager", ".", "props", "==", "null", ")", "loadProps", "(", ")", ";", "String", "returnValue", "=", "defaultValue", ";", "try"...
Get the value of the property with the given name. If the named property is not found, returns the supplied default value. This error handling behavior makes this method attractive for use in static initializers. @param name - the name of the property to be retrieved. @param defaultValue - a fallback default value whi...
[ "Get", "the", "value", "of", "the", "property", "with", "the", "given", "name", ".", "If", "the", "named", "property", "is", "not", "found", "returns", "the", "supplied", "default", "value", ".", "This", "error", "handling", "behavior", "makes", "this", "m...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java#L329-L338
58,158
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java
PropertiesManager.getPropertyAsBoolean
public static boolean getPropertyAsBoolean(final String name, final boolean defaultValue) { if (PropertiesManager.props == null) loadProps(); boolean returnValue = defaultValue; try { returnValue = getPropertyAsBoolean(name); } catch (MissingPropertyException mpe) { ...
java
public static boolean getPropertyAsBoolean(final String name, final boolean defaultValue) { if (PropertiesManager.props == null) loadProps(); boolean returnValue = defaultValue; try { returnValue = getPropertyAsBoolean(name); } catch (MissingPropertyException mpe) { ...
[ "public", "static", "boolean", "getPropertyAsBoolean", "(", "final", "String", "name", ",", "final", "boolean", "defaultValue", ")", "{", "if", "(", "PropertiesManager", ".", "props", "==", "null", ")", "loadProps", "(", ")", ";", "boolean", "returnValue", "="...
Get a property as a boolean, specifying a default value. If for any reason we are unable to lookup the desired property, this method returns the supplied default value. This error handling behavior makes this method suitable for calling from static initializers. @param name - the name of the property to be accessed @p...
[ "Get", "a", "property", "as", "a", "boolean", "specifying", "a", "default", "value", ".", "If", "for", "any", "reason", "we", "are", "unable", "to", "lookup", "the", "desired", "property", "this", "method", "returns", "the", "supplied", "default", "value", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java#L350-L359
58,159
Jasig/uPortal
uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java
PropertiesManager.getPropertyAsByte
public static byte getPropertyAsByte(final String name, final byte defaultValue) { if (PropertiesManager.props == null) loadProps(); byte returnValue = defaultValue; try { returnValue = getPropertyAsByte(name); } catch (Throwable t) { log.error( ...
java
public static byte getPropertyAsByte(final String name, final byte defaultValue) { if (PropertiesManager.props == null) loadProps(); byte returnValue = defaultValue; try { returnValue = getPropertyAsByte(name); } catch (Throwable t) { log.error( ...
[ "public", "static", "byte", "getPropertyAsByte", "(", "final", "String", "name", ",", "final", "byte", "defaultValue", ")", "{", "if", "(", "PropertiesManager", ".", "props", "==", "null", ")", "loadProps", "(", ")", ";", "byte", "returnValue", "=", "default...
Get the value of the given property as a byte, specifying a fallback default value. If for any reason we are unable to lookup the desired property, this method returns the supplied default value. This error handling behavior makes this method suitable for calling from static initializers. @param name - the name of the...
[ "Get", "the", "value", "of", "the", "given", "property", "as", "a", "byte", "specifying", "a", "fallback", "default", "value", ".", "If", "for", "any", "reason", "we", "are", "unable", "to", "lookup", "the", "desired", "property", "this", "method", "return...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-core/src/main/java/org/apereo/portal/properties/PropertiesManager.java#L372-L387
58,160
Jasig/uPortal
uPortal-tools/src/main/java/org/apereo/portal/version/VersionUtils.java
VersionUtils.parseVersion
public static Version parseVersion(String versionString) { final Matcher versionMatcher = VERSION_PATTERN.matcher(versionString); if (!versionMatcher.matches()) { return null; } final int major = Integer.parseInt(versionMatcher.group(1)); final int minor = Integer.pa...
java
public static Version parseVersion(String versionString) { final Matcher versionMatcher = VERSION_PATTERN.matcher(versionString); if (!versionMatcher.matches()) { return null; } final int major = Integer.parseInt(versionMatcher.group(1)); final int minor = Integer.pa...
[ "public", "static", "Version", "parseVersion", "(", "String", "versionString", ")", "{", "final", "Matcher", "versionMatcher", "=", "VERSION_PATTERN", ".", "matcher", "(", "versionString", ")", ";", "if", "(", "!", "versionMatcher", ".", "matches", "(", ")", "...
Parse a version string into a Version object, if the string doesn't match the pattern null is returned. <p>The regular expression used in parsing is: ^(\d+)\.(\d+)\.(\d+)(?:\.(\d+))?(?:[\.-].*)?$ <p>Examples that match correctly: <ul> <li>4.0.5 <li>4.0.5.123123 <li>4.0.5-SNAPSHOT <ul> Examples do NOT match correctly...
[ "Parse", "a", "version", "string", "into", "a", "Version", "object", "if", "the", "string", "doesn", "t", "match", "the", "pattern", "null", "is", "returned", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tools/src/main/java/org/apereo/portal/version/VersionUtils.java#L46-L61
58,161
Jasig/uPortal
uPortal-tools/src/main/java/org/apereo/portal/version/VersionUtils.java
VersionUtils.getMostSpecificMatchingField
public static Version.Field getMostSpecificMatchingField(Version v1, Version v2) { if (v1.getMajor() != v2.getMajor()) { return null; } if (v1.getMinor() != v2.getMinor()) { return Version.Field.MAJOR; } if (v1.getPatch() != v2.getPatch()) { ...
java
public static Version.Field getMostSpecificMatchingField(Version v1, Version v2) { if (v1.getMajor() != v2.getMajor()) { return null; } if (v1.getMinor() != v2.getMinor()) { return Version.Field.MAJOR; } if (v1.getPatch() != v2.getPatch()) { ...
[ "public", "static", "Version", ".", "Field", "getMostSpecificMatchingField", "(", "Version", "v1", ",", "Version", "v2", ")", "{", "if", "(", "v1", ".", "getMajor", "(", ")", "!=", "v2", ".", "getMajor", "(", ")", ")", "{", "return", "null", ";", "}", ...
Determine how much of two versions match. Returns null if the versions do not match at all. @return null for no match or the name of the most specific field that matches.
[ "Determine", "how", "much", "of", "two", "versions", "match", ".", "Returns", "null", "if", "the", "versions", "do", "not", "match", "at", "all", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-tools/src/main/java/org/apereo/portal/version/VersionUtils.java#L68-L88
58,162
Jasig/uPortal
uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java
UrlStringBuilder.setParameter
public UrlStringBuilder setParameter(String name, String... values) { this.setParameter(name, values != null ? Arrays.asList(values) : null); return this; }
java
public UrlStringBuilder setParameter(String name, String... values) { this.setParameter(name, values != null ? Arrays.asList(values) : null); return this; }
[ "public", "UrlStringBuilder", "setParameter", "(", "String", "name", ",", "String", "...", "values", ")", "{", "this", ".", "setParameter", "(", "name", ",", "values", "!=", "null", "?", "Arrays", ".", "asList", "(", "values", ")", ":", "null", ")", ";",...
Sets a URL parameter, replacing any existing parameter with the same name. @param name Parameter name, can not be null @param values Values for the parameter, null is valid @return this
[ "Sets", "a", "URL", "parameter", "replacing", "any", "existing", "parameter", "with", "the", "same", "name", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java#L116-L119
58,163
Jasig/uPortal
uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java
UrlStringBuilder.addParameter
public UrlStringBuilder addParameter(String name, String... values) { this.addParameter(name, values != null ? Arrays.asList(values) : null); return this; }
java
public UrlStringBuilder addParameter(String name, String... values) { this.addParameter(name, values != null ? Arrays.asList(values) : null); return this; }
[ "public", "UrlStringBuilder", "addParameter", "(", "String", "name", ",", "String", "...", "values", ")", "{", "this", ".", "addParameter", "(", "name", ",", "values", "!=", "null", "?", "Arrays", ".", "asList", "(", "values", ")", ":", "null", ")", ";",...
Adds to a URL parameter, if a parameter with the same name already exists its values are added to @param name Parameter name, can not be null @param values Values for the parameter, null is valid @return this
[ "Adds", "to", "a", "URL", "parameter", "if", "a", "parameter", "with", "the", "same", "name", "already", "exists", "its", "values", "are", "added", "to" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java#L137-L140
58,164
Jasig/uPortal
uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java
UrlStringBuilder.setParameters
public UrlStringBuilder setParameters(String namespace, Map<String, List<String>> parameters) { for (final String name : parameters.keySet()) { Validate.notNull(name, "parameter map cannot contain any null keys"); } this.parameters.clear(); this.addParameters(namespace, para...
java
public UrlStringBuilder setParameters(String namespace, Map<String, List<String>> parameters) { for (final String name : parameters.keySet()) { Validate.notNull(name, "parameter map cannot contain any null keys"); } this.parameters.clear(); this.addParameters(namespace, para...
[ "public", "UrlStringBuilder", "setParameters", "(", "String", "namespace", ",", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "parameters", ")", "{", "for", "(", "final", "String", "name", ":", "parameters", ".", "keySet", "(", ")", ")", "{...
Removes all existing parameters and sets the contents of the specified Map as the parameters. @param namespace String to prepend to each parameter name in the Map @param parameters Map of parameters to set @return this
[ "Removes", "all", "existing", "parameters", "and", "sets", "the", "contents", "of", "the", "specified", "Map", "as", "the", "parameters", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java#L174-L182
58,165
Jasig/uPortal
uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java
UrlStringBuilder.setPath
public UrlStringBuilder setPath(String... elements) { Validate.noNullElements(elements, "elements cannot be null"); this.path.clear(); this.addPath(elements); return this; }
java
public UrlStringBuilder setPath(String... elements) { Validate.noNullElements(elements, "elements cannot be null"); this.path.clear(); this.addPath(elements); return this; }
[ "public", "UrlStringBuilder", "setPath", "(", "String", "...", "elements", ")", "{", "Validate", ".", "noNullElements", "(", "elements", ",", "\"elements cannot be null\"", ")", ";", "this", ".", "path", ".", "clear", "(", ")", ";", "this", ".", "addPath", "...
Removes any existing path elements and sets the provided elements as the path @param elements Path elements to set @return this
[ "Removes", "any", "existing", "path", "elements", "and", "sets", "the", "provided", "elements", "as", "the", "path" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java#L243-L249
58,166
Jasig/uPortal
uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java
UrlStringBuilder.addPath
public UrlStringBuilder addPath(String element) { Validate.notNull(element, "element cannot be null"); this.path.add(element); return this; }
java
public UrlStringBuilder addPath(String element) { Validate.notNull(element, "element cannot be null"); this.path.add(element); return this; }
[ "public", "UrlStringBuilder", "addPath", "(", "String", "element", ")", "{", "Validate", ".", "notNull", "(", "element", ",", "\"element cannot be null\"", ")", ";", "this", ".", "path", ".", "add", "(", "element", ")", ";", "return", "this", ";", "}" ]
Adds a single element to the path. @param element The element to add @return this
[ "Adds", "a", "single", "element", "to", "the", "path", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java#L257-L261
58,167
Jasig/uPortal
uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java
UrlStringBuilder.addPath
public UrlStringBuilder addPath(String... elements) { Validate.noNullElements(elements, "elements cannot be null"); for (final String element : elements) { this.path.add(element); } return this; }
java
public UrlStringBuilder addPath(String... elements) { Validate.noNullElements(elements, "elements cannot be null"); for (final String element : elements) { this.path.add(element); } return this; }
[ "public", "UrlStringBuilder", "addPath", "(", "String", "...", "elements", ")", "{", "Validate", ".", "noNullElements", "(", "elements", ",", "\"elements cannot be null\"", ")", ";", "for", "(", "final", "String", "element", ":", "elements", ")", "{", "this", ...
Adds the provided elements to the path @param elements Path elements to add @return this
[ "Adds", "the", "provided", "elements", "to", "the", "path" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-url/src/main/java/org/apereo/portal/url/UrlStringBuilder.java#L269-L276
58,168
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/GuestPortletEntityPreferencesImpl.java
GuestPortletEntityPreferencesImpl.getSessionPreferences
@SuppressWarnings("unchecked") protected Map<String, IPortletPreference> getSessionPreferences( IPortletEntityId portletEntityId, HttpServletRequest httpServletRequest) { final HttpSession session = httpServletRequest.getSession(); final Map<IPortletEntityId, Map<String, IPortletPrefere...
java
@SuppressWarnings("unchecked") protected Map<String, IPortletPreference> getSessionPreferences( IPortletEntityId portletEntityId, HttpServletRequest httpServletRequest) { final HttpSession session = httpServletRequest.getSession(); final Map<IPortletEntityId, Map<String, IPortletPrefere...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "Map", "<", "String", ",", "IPortletPreference", ">", "getSessionPreferences", "(", "IPortletEntityId", "portletEntityId", ",", "HttpServletRequest", "httpServletRequest", ")", "{", "final", "HttpSession", ...
Gets the session-stored list of IPortletPreferences for the specified request and IPortletEntityId. @return List of IPortletPreferences for the entity and session, may be null if no preferences have been set.
[ "Gets", "the", "session", "-", "stored", "list", "of", "IPortletPreferences", "for", "the", "specified", "request", "and", "IPortletEntityId", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/services/GuestPortletEntityPreferencesImpl.java#L138-L157
58,169
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/directory/DirectoryPortletController.java
DirectoryPortletController.searchDirectory
protected List<IPersonAttributes> searchDirectory(String query, PortletRequest request) { final Map<String, Object> queryAttributes = new HashMap<>(); for (String attr : directoryQueryAttributes) { queryAttributes.put(attr, query); } final List<IPersonAttributes> people; ...
java
protected List<IPersonAttributes> searchDirectory(String query, PortletRequest request) { final Map<String, Object> queryAttributes = new HashMap<>(); for (String attr : directoryQueryAttributes) { queryAttributes.put(attr, query); } final List<IPersonAttributes> people; ...
[ "protected", "List", "<", "IPersonAttributes", ">", "searchDirectory", "(", "String", "query", ",", "PortletRequest", "request", ")", "{", "final", "Map", "<", "String", ",", "Object", ">", "queryAttributes", "=", "new", "HashMap", "<>", "(", ")", ";", "for"...
Search the directory for people matching the search query. Search results will be scoped to the permissions of the user performing the search. @param query @param request @return
[ "Search", "the", "directory", "for", "people", "matching", "the", "search", "query", ".", "Search", "results", "will", "be", "scoped", "to", "the", "permissions", "of", "the", "user", "performing", "the", "search", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/directory/DirectoryPortletController.java#L228-L250
58,170
Jasig/uPortal
uPortal-portlets/src/main/java/org/apereo/portal/portlets/directory/DirectoryPortletController.java
DirectoryPortletController.isMobile
protected boolean isMobile(PortletRequest request) { final String themeName = request.getProperty(IPortletRenderer.THEME_NAME_PROPERTY); return "UniversalityMobile".equals(themeName); }
java
protected boolean isMobile(PortletRequest request) { final String themeName = request.getProperty(IPortletRenderer.THEME_NAME_PROPERTY); return "UniversalityMobile".equals(themeName); }
[ "protected", "boolean", "isMobile", "(", "PortletRequest", "request", ")", "{", "final", "String", "themeName", "=", "request", ".", "getProperty", "(", "IPortletRenderer", ".", "THEME_NAME_PROPERTY", ")", ";", "return", "\"UniversalityMobile\"", ".", "equals", "(",...
Determine if this should be a mobile view. @param request @return
[ "Determine", "if", "this", "should", "be", "a", "mobile", "view", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-portlets/src/main/java/org/apereo/portal/portlets/directory/DirectoryPortletController.java#L258-L261
58,171
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/dao/trans/TransientPortletEntityDao.java
TransientPortletEntityDao.unwrapEntity
protected IPortletEntity unwrapEntity(IPortletEntity portletEntity) { if (portletEntity instanceof TransientPortletEntity) { return ((TransientPortletEntity) portletEntity).getDelegatePortletEntity(); } return portletEntity; }
java
protected IPortletEntity unwrapEntity(IPortletEntity portletEntity) { if (portletEntity instanceof TransientPortletEntity) { return ((TransientPortletEntity) portletEntity).getDelegatePortletEntity(); } return portletEntity; }
[ "protected", "IPortletEntity", "unwrapEntity", "(", "IPortletEntity", "portletEntity", ")", "{", "if", "(", "portletEntity", "instanceof", "TransientPortletEntity", ")", "{", "return", "(", "(", "TransientPortletEntity", ")", "portletEntity", ")", ".", "getDelegatePortl...
Returns the unwrapped entity if it is an instance of TransientPortletEntity. If not the original entity is returned.
[ "Returns", "the", "unwrapped", "entity", "if", "it", "is", "an", "instance", "of", "TransientPortletEntity", ".", "If", "not", "the", "original", "entity", "is", "returned", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/dao/trans/TransientPortletEntityDao.java#L175-L181
58,172
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/dao/trans/TransientPortletEntityDao.java
TransientPortletEntityDao.wrapEntity
protected IPortletEntity wrapEntity(IPortletEntity portletEntity) { if (portletEntity == null) { return null; } final String persistentLayoutNodeId = portletEntity.getLayoutNodeId(); if (persistentLayoutNodeId.startsWith(TransientUserLayoutManagerWrapper.SUBSCRIBE_PREFIX)) {...
java
protected IPortletEntity wrapEntity(IPortletEntity portletEntity) { if (portletEntity == null) { return null; } final String persistentLayoutNodeId = portletEntity.getLayoutNodeId(); if (persistentLayoutNodeId.startsWith(TransientUserLayoutManagerWrapper.SUBSCRIBE_PREFIX)) {...
[ "protected", "IPortletEntity", "wrapEntity", "(", "IPortletEntity", "portletEntity", ")", "{", "if", "(", "portletEntity", "==", "null", ")", "{", "return", "null", ";", "}", "final", "String", "persistentLayoutNodeId", "=", "portletEntity", ".", "getLayoutNodeId", ...
Adds a TransientPortletEntity wrapper to the portletEntity if it is needed. If the specified entity is transient but no transient subscribe id has been registered for it yet in the transientIdMap null is returned. If no wrapping is needed the original entity is returned.
[ "Adds", "a", "TransientPortletEntity", "wrapper", "to", "the", "portletEntity", "if", "it", "is", "needed", ".", "If", "the", "specified", "entity", "is", "transient", "but", "no", "transient", "subscribe", "id", "has", "been", "registered", "for", "it", "yet"...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/dao/trans/TransientPortletEntityDao.java#L188-L210
58,173
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/jsp/Util.java
Util.isValidUrl
public static boolean isValidUrl(String url) { HttpURLConnection huc = null; boolean isValid = false; try { URL u = new URL(url); huc = (HttpURLConnection) u.openConnection(); huc.setRequestMethod("GET"); huc.connect(); int response = h...
java
public static boolean isValidUrl(String url) { HttpURLConnection huc = null; boolean isValid = false; try { URL u = new URL(url); huc = (HttpURLConnection) u.openConnection(); huc.setRequestMethod("GET"); huc.connect(); int response = h...
[ "public", "static", "boolean", "isValidUrl", "(", "String", "url", ")", "{", "HttpURLConnection", "huc", "=", "null", ";", "boolean", "isValid", "=", "false", ";", "try", "{", "URL", "u", "=", "new", "URL", "(", "url", ")", ";", "huc", "=", "(", "Htt...
Tests if a string is a valid URL Will open a connection and make sure that it can connect to the URL it looks for an HTTP status code of 200 on a GET. This is a valid URL. @param url - A string representing a url @return True if URL is valid according to included definition
[ "Tests", "if", "a", "string", "is", "a", "valid", "URL", "Will", "open", "a", "connection", "and", "make", "sure", "that", "it", "can", "connect", "to", "the", "URL", "it", "looks", "for", "an", "HTTP", "status", "code", "of", "200", "on", "a", "GET"...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/jsp/Util.java#L83-L111
58,174
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/IncludeExcludeUtils.java
IncludeExcludeUtils.included
public static <T> boolean included( T value, Collection<? extends T> includes, Collection<? extends T> excludes) { return (includes.isEmpty() && excludes.isEmpty()) || includes.contains(value) || (includes.isEmpty() && !excludes.contains(value)); }
java
public static <T> boolean included( T value, Collection<? extends T> includes, Collection<? extends T> excludes) { return (includes.isEmpty() && excludes.isEmpty()) || includes.contains(value) || (includes.isEmpty() && !excludes.contains(value)); }
[ "public", "static", "<", "T", ">", "boolean", "included", "(", "T", "value", ",", "Collection", "<", "?", "extends", "T", ">", "includes", ",", "Collection", "<", "?", "extends", "T", ">", "excludes", ")", "{", "return", "(", "includes", ".", "isEmpty"...
Determines if the specified value is included based on the contents of the include and exclude collections. <p>Returns true if one of the following is true: <br> includes is empty && excludes is empty<br> includes contains value<br> includes is empty and excludes does not contain value<br> @param value Value to test ...
[ "Determines", "if", "the", "specified", "value", "is", "included", "based", "on", "the", "contents", "of", "the", "include", "and", "exclude", "collections", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/IncludeExcludeUtils.java#L37-L42
58,175
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/BasePersonManager.java
BasePersonManager.init
@EventListener public void init(ContextRefreshedEvent event) { idTokenFactory = context.getBean(IdTokenFactory.class); // Make sure we have a guestUsernameSelectors collection & sort it if (guestUsernameSelectors == null) { guestUsernameSelectors = Collections.emptyList(); ...
java
@EventListener public void init(ContextRefreshedEvent event) { idTokenFactory = context.getBean(IdTokenFactory.class); // Make sure we have a guestUsernameSelectors collection & sort it if (guestUsernameSelectors == null) { guestUsernameSelectors = Collections.emptyList(); ...
[ "@", "EventListener", "public", "void", "init", "(", "ContextRefreshedEvent", "event", ")", "{", "idTokenFactory", "=", "context", ".", "getBean", "(", "IdTokenFactory", ".", "class", ")", ";", "// Make sure we have a guestUsernameSelectors collection & sort it", "if", ...
To avoid circular reference issues, this bean obtains its dependencies when the context finishes starting.
[ "To", "avoid", "circular", "reference", "issues", "this", "bean", "obtains", "its", "dependencies", "when", "the", "context", "finishes", "starting", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/BasePersonManager.java#L60-L69
58,176
Jasig/uPortal
uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/PortletResourceResponseContextImpl.java
PortletResourceResponseContextImpl.handleResourceHeader
protected boolean handleResourceHeader(String key, String value) { if (ResourceResponse.HTTP_STATUS_CODE.equals(key)) { this.portletResourceOutputHandler.setStatus(Integer.parseInt(value)); return true; } if ("Content-Type".equals(key)) { final ContentType con...
java
protected boolean handleResourceHeader(String key, String value) { if (ResourceResponse.HTTP_STATUS_CODE.equals(key)) { this.portletResourceOutputHandler.setStatus(Integer.parseInt(value)); return true; } if ("Content-Type".equals(key)) { final ContentType con...
[ "protected", "boolean", "handleResourceHeader", "(", "String", "key", ",", "String", "value", ")", "{", "if", "(", "ResourceResponse", ".", "HTTP_STATUS_CODE", ".", "equals", "(", "key", ")", ")", "{", "this", ".", "portletResourceOutputHandler", ".", "setStatus...
Handles resource response specific headers. Returns true if the header was consumed by this method and requires no further processing @return
[ "Handles", "resource", "response", "specific", "headers", ".", "Returns", "true", "if", "the", "header", "was", "consumed", "by", "this", "method", "and", "requires", "no", "further", "processing" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rendering/src/main/java/org/apereo/portal/portlet/container/PortletResourceResponseContextImpl.java#L112-L141
58,177
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAResetParameter.java
LPAResetParameter.perform
@Override public void perform() throws PortalException { // push the change into the PLF if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) { // remove the parm edit ParameterEditManager.removeParmEditDirective(nodeId, name, person); } // push the fragm...
java
@Override public void perform() throws PortalException { // push the change into the PLF if (nodeId.startsWith(Constants.FRAGMENT_ID_USER_PREFIX)) { // remove the parm edit ParameterEditManager.removeParmEditDirective(nodeId, name, person); } // push the fragm...
[ "@", "Override", "public", "void", "perform", "(", ")", "throws", "PortalException", "{", "// push the change into the PLF", "if", "(", "nodeId", ".", "startsWith", "(", "Constants", ".", "FRAGMENT_ID_USER_PREFIX", ")", ")", "{", "// remove the parm edit", "ParameterE...
Reset the parameter to not override the value specified by a fragment. This is done by removing the parm edit in the PLF and setting the value in the ILF to the passed-in fragment value.
[ "Reset", "the", "parameter", "to", "not", "override", "the", "value", "specified", "by", "a", "fragment", ".", "This", "is", "done", "by", "removing", "the", "parm", "edit", "in", "the", "PLF", "and", "setting", "the", "value", "in", "the", "ILF", "to", ...
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/dlm/LPAResetParameter.java#L43-L52
58,178
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.add
@Override public void add(IPermission perm) throws AuthorizationException { Connection conn = null; int rc = 0; try { conn = RDBMServices.getConnection(); String sQuery = getInsertPermissionSql(); PreparedStatement ps = conn.prepareStatement(sQuery); ...
java
@Override public void add(IPermission perm) throws AuthorizationException { Connection conn = null; int rc = 0; try { conn = RDBMServices.getConnection(); String sQuery = getInsertPermissionSql(); PreparedStatement ps = conn.prepareStatement(sQuery); ...
[ "@", "Override", "public", "void", "add", "(", "IPermission", "perm", ")", "throws", "AuthorizationException", "{", "Connection", "conn", "=", "null", ";", "int", "rc", "=", "0", ";", "try", "{", "conn", "=", "RDBMServices", ".", "getConnection", "(", ")",...
Add the IPermission to the store. @param perm org.apereo.portal.security.IPermission @exception AuthorizationException - wraps an Exception specific to the store.
[ "Add", "the", "IPermission", "to", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L104-L130
58,179
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.delete
@Override public void delete(IPermission[] perms) throws AuthorizationException { if (perms.length > 0) { try { primDelete(perms); } catch (Exception ex) { log.error("Exception deleting permissions " + Arrays.toString(perms), ex); throw...
java
@Override public void delete(IPermission[] perms) throws AuthorizationException { if (perms.length > 0) { try { primDelete(perms); } catch (Exception ex) { log.error("Exception deleting permissions " + Arrays.toString(perms), ex); throw...
[ "@", "Override", "public", "void", "delete", "(", "IPermission", "[", "]", "perms", ")", "throws", "AuthorizationException", "{", "if", "(", "perms", ".", "length", ">", "0", ")", "{", "try", "{", "primDelete", "(", "perms", ")", ";", "}", "catch", "("...
Delete the IPermissions from the store. @param perms org.apereo.portal.security.IPermission[] @exception AuthorizationException - wraps an Exception specific to the store.
[ "Delete", "the", "IPermissions", "from", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L137-L148
58,180
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.delete
@Override public void delete(IPermission perm) throws AuthorizationException { Connection conn = null; try { conn = RDBMServices.getConnection(); String sQuery = getDeletePermissionSql(); PreparedStatement ps = conn.prepareStatement(sQuery); try { ...
java
@Override public void delete(IPermission perm) throws AuthorizationException { Connection conn = null; try { conn = RDBMServices.getConnection(); String sQuery = getDeletePermissionSql(); PreparedStatement ps = conn.prepareStatement(sQuery); try { ...
[ "@", "Override", "public", "void", "delete", "(", "IPermission", "perm", ")", "throws", "AuthorizationException", "{", "Connection", "conn", "=", "null", ";", "try", "{", "conn", "=", "RDBMServices", ".", "getConnection", "(", ")", ";", "String", "sQuery", "...
Delete a single IPermission from the store. @param perm org.apereo.portal.security.IPermission @exception AuthorizationException - wraps an Exception specific to the store.
[ "Delete", "a", "single", "IPermission", "from", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L155-L174
58,181
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.getPrincipalType
private int getPrincipalType(String principalString) { return Integer.parseInt( principalString.substring(0, principalString.indexOf(PRINCIPAL_SEPARATOR))); }
java
private int getPrincipalType(String principalString) { return Integer.parseInt( principalString.substring(0, principalString.indexOf(PRINCIPAL_SEPARATOR))); }
[ "private", "int", "getPrincipalType", "(", "String", "principalString", ")", "{", "return", "Integer", ".", "parseInt", "(", "principalString", ".", "substring", "(", "0", ",", "principalString", ".", "indexOf", "(", "PRINCIPAL_SEPARATOR", ")", ")", ")", ";", ...
Returns the principal type portion of the principal. @return int @param principalString
[ "Returns", "the", "principal", "type", "portion", "of", "the", "principal", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L283-L286
58,182
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.primDelete
private int primDelete(IPermission perm, PreparedStatement ps) throws Exception { ps.clearParameters(); ps.setString(1, perm.getOwner()); ps.setInt(2, getPrincipalType(perm)); ps.setString(3, getPrincipalKey(perm)); ps.setString(4, perm.getActivity()); ps.setString(5, per...
java
private int primDelete(IPermission perm, PreparedStatement ps) throws Exception { ps.clearParameters(); ps.setString(1, perm.getOwner()); ps.setInt(2, getPrincipalType(perm)); ps.setString(3, getPrincipalKey(perm)); ps.setString(4, perm.getActivity()); ps.setString(5, per...
[ "private", "int", "primDelete", "(", "IPermission", "perm", ",", "PreparedStatement", "ps", ")", "throws", "Exception", "{", "ps", ".", "clearParameters", "(", ")", ";", "ps", ".", "setString", "(", "1", ",", "perm", ".", "getOwner", "(", ")", ")", ";", ...
Set the params on the PreparedStatement and execute the delete. @param perm org.apereo.portal.security.IPermission @param ps java.sql.PreparedStatement - the PreparedStatement for deleting a Permission row. @return int - the return code from the PreparedStatement @exception Exception
[ "Set", "the", "params", "on", "the", "PreparedStatement", "and", "execute", "the", "delete", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L498-L508
58,183
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.primUpdate
private int primUpdate(IPermission perm, PreparedStatement ps) throws Exception { java.sql.Timestamp ts = null; // UPDATE COLUMNS: ps.clearParameters(); // TYPE: if (perm.getType() == null) { ps.setNull(1, Types.VARCHAR); } else { ps.setString(1,...
java
private int primUpdate(IPermission perm, PreparedStatement ps) throws Exception { java.sql.Timestamp ts = null; // UPDATE COLUMNS: ps.clearParameters(); // TYPE: if (perm.getType() == null) { ps.setNull(1, Types.VARCHAR); } else { ps.setString(1,...
[ "private", "int", "primUpdate", "(", "IPermission", "perm", ",", "PreparedStatement", "ps", ")", "throws", "Exception", "{", "java", ".", "sql", ".", "Timestamp", "ts", "=", "null", ";", "// UPDATE COLUMNS:", "ps", ".", "clearParameters", "(", ")", ";", "// ...
Set the params on the PreparedStatement and execute the update. @param perm org.apereo.portal.security.IPermission @param ps java.sql.PreparedStatement - the PreparedStatement for updating a Permission row. @return int - the return code from the PreparedStatement @exception Exception
[ "Set", "the", "params", "on", "the", "PreparedStatement", "and", "execute", "the", "update", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L554-L589
58,184
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.select
@Override public IPermission[] select( String owner, String principal, String activity, String target, String type) throws AuthorizationException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; List<IPermission> perms = new ArrayL...
java
@Override public IPermission[] select( String owner, String principal, String activity, String target, String type) throws AuthorizationException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; List<IPermission> perms = new ArrayL...
[ "@", "Override", "public", "IPermission", "[", "]", "select", "(", "String", "owner", ",", "String", "principal", ",", "String", "activity", ",", "String", "target", ",", "String", "type", ")", "throws", "AuthorizationException", "{", "Connection", "conn", "="...
Select the Permissions from the store. @param owner String - the Permission owner @param principal String - the Permission principal @param activity String - the Permission activity @exception AuthorizationException - wraps an Exception specific to the store.
[ "Select", "the", "Permissions", "from", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L689-L759
58,185
Jasig/uPortal
uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java
RDBMPermissionImpl.update
@Override public void update(IPermission perm) throws AuthorizationException { Connection conn = null; try { conn = RDBMServices.getConnection(); String sQuery = getUpdatePermissionSql(); if (log.isDebugEnabled()) log.debug("RDBMPermissionImpl.update(): " + sQuer...
java
@Override public void update(IPermission perm) throws AuthorizationException { Connection conn = null; try { conn = RDBMServices.getConnection(); String sQuery = getUpdatePermissionSql(); if (log.isDebugEnabled()) log.debug("RDBMPermissionImpl.update(): " + sQuer...
[ "@", "Override", "public", "void", "update", "(", "IPermission", "perm", ")", "throws", "AuthorizationException", "{", "Connection", "conn", "=", "null", ";", "try", "{", "conn", "=", "RDBMServices", ".", "getConnection", "(", ")", ";", "String", "sQuery", "...
Update a single IPermission in the store. @param perm org.apereo.portal.security.IPermission @exception AuthorizationException - wraps an Exception specific to the store.
[ "Update", "a", "single", "IPermission", "in", "the", "store", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-security/uPortal-security-core/src/main/java/org/apereo/portal/security/provider/RDBMPermissionImpl.java#L783-L803
58,186
Jasig/uPortal
uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletEventCoordinatationService.java
PortletEventCoordinatationService.getPortletEventQueue
@Override public PortletEventQueue getPortletEventQueue(HttpServletRequest request) { request = this.portalRequestUtils.getOriginalPortalRequest(request); synchronized (PortalWebUtils.getRequestAttributeMutex(request)) { PortletEventQueue portletEventQueue = (Portlet...
java
@Override public PortletEventQueue getPortletEventQueue(HttpServletRequest request) { request = this.portalRequestUtils.getOriginalPortalRequest(request); synchronized (PortalWebUtils.getRequestAttributeMutex(request)) { PortletEventQueue portletEventQueue = (Portlet...
[ "@", "Override", "public", "PortletEventQueue", "getPortletEventQueue", "(", "HttpServletRequest", "request", ")", "{", "request", "=", "this", ".", "portalRequestUtils", ".", "getOriginalPortalRequest", "(", "request", ")", ";", "synchronized", "(", "PortalWebUtils", ...
Returns a request scoped PortletEventQueue used to track events to process and events to dispatch
[ "Returns", "a", "request", "scoped", "PortletEventQueue", "used", "to", "track", "events", "to", "process", "and", "events", "to", "dispatch" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-web/src/main/java/org/apereo/portal/portlet/rendering/PortletEventCoordinatationService.java#L155-L168
58,187
Jasig/uPortal
uPortal-spring/src/main/java/org/apereo/portal/spring/web/flow/PortalWebFlowUtilsImpl.java
PortalWebFlowUtilsImpl.getServletRequestFromExternalContext
protected HttpServletRequest getServletRequestFromExternalContext( ExternalContext externalContext) { Object request = externalContext.getNativeRequest(); if (request instanceof PortletRequest) { return portalRequestUtils.getPortletHttpRequest( (PortletReques...
java
protected HttpServletRequest getServletRequestFromExternalContext( ExternalContext externalContext) { Object request = externalContext.getNativeRequest(); if (request instanceof PortletRequest) { return portalRequestUtils.getPortletHttpRequest( (PortletReques...
[ "protected", "HttpServletRequest", "getServletRequestFromExternalContext", "(", "ExternalContext", "externalContext", ")", "{", "Object", "request", "=", "externalContext", ".", "getNativeRequest", "(", ")", ";", "if", "(", "request", "instanceof", "PortletRequest", ")", ...
Get the HttpServletRequest associated with the supplied ExternalContext. @param externalContext @return
[ "Get", "the", "HttpServletRequest", "associated", "with", "the", "supplied", "ExternalContext", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-spring/src/main/java/org/apereo/portal/spring/web/flow/PortalWebFlowUtilsImpl.java#L73-L89
58,188
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/TransientUserLayoutManagerWrapper.java
TransientUserLayoutManagerWrapper.getChannelDefinition
protected IPortletDefinition getChannelDefinition(String subId) throws PortalException { IPortletDefinition chanDef = mChanMap.get(subId); if (null == chanDef) { String fname = getFname(subId); if (log.isDebugEnabled()) log.debug( "Transie...
java
protected IPortletDefinition getChannelDefinition(String subId) throws PortalException { IPortletDefinition chanDef = mChanMap.get(subId); if (null == chanDef) { String fname = getFname(subId); if (log.isDebugEnabled()) log.debug( "Transie...
[ "protected", "IPortletDefinition", "getChannelDefinition", "(", "String", "subId", ")", "throws", "PortalException", "{", "IPortletDefinition", "chanDef", "=", "mChanMap", ".", "get", "(", "subId", ")", ";", "if", "(", "null", "==", "chanDef", ")", "{", "String"...
Given a subscribe Id, return a ChannelDefinition. @param subId the subscribe id for the ChannelDefinition. @return a <code>ChannelDefinition</code>
[ "Given", "a", "subscribe", "Id", "return", "a", "ChannelDefinition", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/TransientUserLayoutManagerWrapper.java#L317-L339
58,189
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/TransientUserLayoutManagerWrapper.java
TransientUserLayoutManagerWrapper.getSubscribeId
@Override public String getSubscribeId(String fname) throws PortalException { // see if a given subscribe id is already in the map String subId = mFnameMap.get(fname); if (subId == null) { // see if a given subscribe id is already in the layout subId = man.getSubscri...
java
@Override public String getSubscribeId(String fname) throws PortalException { // see if a given subscribe id is already in the map String subId = mFnameMap.get(fname); if (subId == null) { // see if a given subscribe id is already in the layout subId = man.getSubscri...
[ "@", "Override", "public", "String", "getSubscribeId", "(", "String", "fname", ")", "throws", "PortalException", "{", "// see if a given subscribe id is already in the map", "String", "subId", "=", "mFnameMap", ".", "get", "(", "fname", ")", ";", "if", "(", "subId",...
Given an functional name, return its subscribe id. @param fname the functional name to lookup @return the fname's subscribe id.
[ "Given", "an", "functional", "name", "return", "its", "subscribe", "id", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/TransientUserLayoutManagerWrapper.java#L361-L397
58,190
Jasig/uPortal
uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/TransientUserLayoutManagerWrapper.java
TransientUserLayoutManagerWrapper.getTransientNode
private IUserLayoutChannelDescription getTransientNode(String nodeId) throws PortalException { // get fname from subscribe id final String fname = getFname(nodeId); if (null == fname || fname.equals("")) { return null; } try { // check cache first ...
java
private IUserLayoutChannelDescription getTransientNode(String nodeId) throws PortalException { // get fname from subscribe id final String fname = getFname(nodeId); if (null == fname || fname.equals("")) { return null; } try { // check cache first ...
[ "private", "IUserLayoutChannelDescription", "getTransientNode", "(", "String", "nodeId", ")", "throws", "PortalException", "{", "// get fname from subscribe id", "final", "String", "fname", "=", "getFname", "(", "nodeId", ")", ";", "if", "(", "null", "==", "fname", ...
Return an IUserLayoutChannelDescription by way of nodeId @param nodeId the node (subscribe) id to get the channel for. @return a <code>IUserLayoutNodeDescription</code>
[ "Return", "an", "IUserLayoutChannelDescription", "by", "way", "of", "nodeId" ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-layout/uPortal-layout-impl/src/main/java/org/apereo/portal/layout/TransientUserLayoutManagerWrapper.java#L427-L450
58,191
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java
DefaultTinCanAPIProvider.sendEvent
@Override public boolean sendEvent(LrsStatement statement) { if (!isEnabled()) { return false; } ResponseEntity<Object> response = sendRequest( STATEMENTS_REST_ENDPOINT, HttpMethod.POST, null, statement, Object.class); if (response...
java
@Override public boolean sendEvent(LrsStatement statement) { if (!isEnabled()) { return false; } ResponseEntity<Object> response = sendRequest( STATEMENTS_REST_ENDPOINT, HttpMethod.POST, null, statement, Object.class); if (response...
[ "@", "Override", "public", "boolean", "sendEvent", "(", "LrsStatement", "statement", ")", "{", "if", "(", "!", "isEnabled", "(", ")", ")", "{", "return", "false", ";", "}", "ResponseEntity", "<", "Object", ">", "response", "=", "sendRequest", "(", "STATEME...
Actually send an event to the provider. @param statement the LRS statement to send.
[ "Actually", "send", "an", "event", "to", "the", "provider", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java#L299-L317
58,192
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java
DefaultTinCanAPIProvider.loadConfig
protected void loadConfig() { if (!isEnabled()) { return; } final String urlProp = format(PROPERTY_FORMAT, id, "url"); LRSUrl = propertyResolver.getProperty(urlProp); actorName = propertyResolver.getProperty(format(PROPERTY_FORMAT, id, "actor-name"), ...
java
protected void loadConfig() { if (!isEnabled()) { return; } final String urlProp = format(PROPERTY_FORMAT, id, "url"); LRSUrl = propertyResolver.getProperty(urlProp); actorName = propertyResolver.getProperty(format(PROPERTY_FORMAT, id, "actor-name"), ...
[ "protected", "void", "loadConfig", "(", ")", "{", "if", "(", "!", "isEnabled", "(", ")", ")", "{", "return", ";", "}", "final", "String", "urlProp", "=", "format", "(", "PROPERTY_FORMAT", ",", "id", ",", "\"url\"", ")", ";", "LRSUrl", "=", "propertyRes...
Read the LRS config. <p>"url" is the only required property. If not set, will disable this LRS provider. <p>Rather than asking installations to write a lot of XML, this pushes most of the configuration out to portal.properties. It reads dynamically named properties based on the "id" of this LRS provider. This is simi...
[ "Read", "the", "LRS", "config", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java#L332-L366
58,193
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java
DefaultTinCanAPIProvider.sendRequest
protected <T> ResponseEntity<T> sendRequest( String pathFragment, HttpMethod method, List<? extends NameValuePair> getParams, Object postData, Class<T> returnType) { HttpHeaders headers = new HttpHeaders(); headers.add(XAPI_VERSION_HEADER, XAPI...
java
protected <T> ResponseEntity<T> sendRequest( String pathFragment, HttpMethod method, List<? extends NameValuePair> getParams, Object postData, Class<T> returnType) { HttpHeaders headers = new HttpHeaders(); headers.add(XAPI_VERSION_HEADER, XAPI...
[ "protected", "<", "T", ">", "ResponseEntity", "<", "T", ">", "sendRequest", "(", "String", "pathFragment", ",", "HttpMethod", "method", ",", "List", "<", "?", "extends", "NameValuePair", ">", "getParams", ",", "Object", "postData", ",", "Class", "<", "T", ...
Send a request to the LRS. @param pathFragment the URL. Should be relative to the xAPI API root @param method the HTTP method @param getParams the set of GET params @param postData the post data. @param returnType the type of object to expect in the response @param <T> The type of object to expect in the response @ret...
[ "Send", "a", "request", "to", "the", "LRS", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java#L379-L399
58,194
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java
DefaultTinCanAPIProvider.buildRequestURI
private URI buildRequestURI(String pathFragment, List<? extends NameValuePair> params) { try { String queryString = ""; if (params != null && !params.isEmpty()) { queryString = "?" + URLEncodedUtils.format(params, "UTF-8"); } URI fullURI = new URI...
java
private URI buildRequestURI(String pathFragment, List<? extends NameValuePair> params) { try { String queryString = ""; if (params != null && !params.isEmpty()) { queryString = "?" + URLEncodedUtils.format(params, "UTF-8"); } URI fullURI = new URI...
[ "private", "URI", "buildRequestURI", "(", "String", "pathFragment", ",", "List", "<", "?", "extends", "NameValuePair", ">", "params", ")", "{", "try", "{", "String", "queryString", "=", "\"\"", ";", "if", "(", "params", "!=", "null", "&&", "!", "params", ...
Build a URI for the REST request. <p>Note: this converts to URI instead of using a string because the activities/state API requires you to pass JSON as a GET parameter. The {...} confuses the RestTemplate path parameter handling. By converting to URI, I skip that. @param pathFragment The path fragment relative to the...
[ "Build", "a", "URI", "for", "the", "REST", "request", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/tincan/providers/DefaultTinCanAPIProvider.java#L412-L424
58,195
Jasig/uPortal
uPortal-events/src/main/java/org/apereo/portal/events/aggr/portletexec/JpaPortletExecutionAggregationDao.java
JpaPortletExecutionAggregationDao.bindAggregationSpecificKeyParameters
@Override protected void bindAggregationSpecificKeyParameters( TypedQuery<PortletExecutionAggregationImpl> query, Set<PortletExecutionAggregationKey> keys) { query.setParameter(this.portletMappingParameter, extractAggregatePortletMappings(keys)); query.setParameter(this.execu...
java
@Override protected void bindAggregationSpecificKeyParameters( TypedQuery<PortletExecutionAggregationImpl> query, Set<PortletExecutionAggregationKey> keys) { query.setParameter(this.portletMappingParameter, extractAggregatePortletMappings(keys)); query.setParameter(this.execu...
[ "@", "Override", "protected", "void", "bindAggregationSpecificKeyParameters", "(", "TypedQuery", "<", "PortletExecutionAggregationImpl", ">", "query", ",", "Set", "<", "PortletExecutionAggregationKey", ">", "keys", ")", "{", "query", ".", "setParameter", "(", "this", ...
The execution type is obtained from the first PortletExecutionAggregationKey.
[ "The", "execution", "type", "is", "obtained", "from", "the", "first", "PortletExecutionAggregationKey", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-events/src/main/java/org/apereo/portal/events/aggr/portletexec/JpaPortletExecutionAggregationDao.java#L84-L90
58,196
Jasig/uPortal
uPortal-rdbm/src/main/java/org/apereo/portal/jpa/OpenEntityManagerAspect.java
OpenEntityManagerAspect.getTransactionalEntityManager
protected EntityManager getTransactionalEntityManager(EntityManagerFactory emf) throws IllegalStateException { Assert.state(emf != null, "No EntityManagerFactory specified"); return EntityManagerFactoryUtils.getTransactionalEntityManager(emf); }
java
protected EntityManager getTransactionalEntityManager(EntityManagerFactory emf) throws IllegalStateException { Assert.state(emf != null, "No EntityManagerFactory specified"); return EntityManagerFactoryUtils.getTransactionalEntityManager(emf); }
[ "protected", "EntityManager", "getTransactionalEntityManager", "(", "EntityManagerFactory", "emf", ")", "throws", "IllegalStateException", "{", "Assert", ".", "state", "(", "emf", "!=", "null", ",", "\"No EntityManagerFactory specified\"", ")", ";", "return", "EntityManag...
Obtain the transactional EntityManager for this accessor's EntityManagerFactory, if any. @return the transactional EntityManager, or <code>null</code> if none @throws IllegalStateException if this accessor is not configured with an EntityManagerFactory @see EntityManagerFactoryUtils#getTransactionalEntityManager(javax...
[ "Obtain", "the", "transactional", "EntityManager", "for", "this", "accessor", "s", "EntityManagerFactory", "if", "any", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rdbm/src/main/java/org/apereo/portal/jpa/OpenEntityManagerAspect.java#L99-L103
58,197
Jasig/uPortal
uPortal-rdbm/src/main/java/org/apereo/portal/jpa/OpenEntityManagerAspect.java
OpenEntityManagerAspect.getEntityManagerFactory
protected EntityManagerFactory getEntityManagerFactory(OpenEntityManager openEntityManager) { final CacheKey key = this.createEntityManagerFactoryKey(openEntityManager); EntityManagerFactory emf = this.entityManagerFactories.get(key); if (emf == null) { emf = this.lookupEntityManager...
java
protected EntityManagerFactory getEntityManagerFactory(OpenEntityManager openEntityManager) { final CacheKey key = this.createEntityManagerFactoryKey(openEntityManager); EntityManagerFactory emf = this.entityManagerFactories.get(key); if (emf == null) { emf = this.lookupEntityManager...
[ "protected", "EntityManagerFactory", "getEntityManagerFactory", "(", "OpenEntityManager", "openEntityManager", ")", "{", "final", "CacheKey", "key", "=", "this", ".", "createEntityManagerFactoryKey", "(", "openEntityManager", ")", ";", "EntityManagerFactory", "emf", "=", ...
Get the EntityManagerFactory that this filter should use. @return the EntityManagerFactory to use @see #lookupEntityManagerFactory(OpenEntityManager)
[ "Get", "the", "EntityManagerFactory", "that", "this", "filter", "should", "use", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rdbm/src/main/java/org/apereo/portal/jpa/OpenEntityManagerAspect.java#L111-L119
58,198
Jasig/uPortal
uPortal-rdbm/src/main/java/org/apereo/portal/jpa/OpenEntityManagerAspect.java
OpenEntityManagerAspect.lookupEntityManagerFactory
protected EntityManagerFactory lookupEntityManagerFactory(OpenEntityManager openEntityManager) { String emfBeanName = openEntityManager.name(); String puName = openEntityManager.unitName(); if (StringUtils.hasLength(emfBeanName)) { return this.applicationContext.getBean(emfBeanName, ...
java
protected EntityManagerFactory lookupEntityManagerFactory(OpenEntityManager openEntityManager) { String emfBeanName = openEntityManager.name(); String puName = openEntityManager.unitName(); if (StringUtils.hasLength(emfBeanName)) { return this.applicationContext.getBean(emfBeanName, ...
[ "protected", "EntityManagerFactory", "lookupEntityManagerFactory", "(", "OpenEntityManager", "openEntityManager", ")", "{", "String", "emfBeanName", "=", "openEntityManager", ".", "name", "(", ")", ";", "String", "puName", "=", "openEntityManager", ".", "unitName", "(",...
Look up the EntityManagerFactory that this filter should use. <p>The default implementation looks for a bean with the specified name in Spring's root application context. @return the EntityManagerFactory to use @see #getEntityManagerFactoryBeanName
[ "Look", "up", "the", "EntityManagerFactory", "that", "this", "filter", "should", "use", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-rdbm/src/main/java/org/apereo/portal/jpa/OpenEntityManagerAspect.java#L130-L146
58,199
Jasig/uPortal
uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/SmartCache.java
SmartCache.put
@Override public synchronized Object put(Object key, Object value) { ValueWrapper valueWrapper = new ValueWrapper(value); return super.put(key, valueWrapper); }
java
@Override public synchronized Object put(Object key, Object value) { ValueWrapper valueWrapper = new ValueWrapper(value); return super.put(key, valueWrapper); }
[ "@", "Override", "public", "synchronized", "Object", "put", "(", "Object", "key", ",", "Object", "value", ")", "{", "ValueWrapper", "valueWrapper", "=", "new", "ValueWrapper", "(", "value", ")", ";", "return", "super", ".", "put", "(", "key", ",", "valueWr...
Add a new value to the cache. The value will expire in accordance with the cache's expiration timeout value which was set when the cache was created. @param key the key, typically a String @param value the value @return the previous value of the specified key in this hashtable, or null if it did not have one.
[ "Add", "a", "new", "value", "to", "the", "cache", ".", "The", "value", "will", "expire", "in", "accordance", "with", "the", "cache", "s", "expiration", "timeout", "value", "which", "was", "set", "when", "the", "cache", "was", "created", "." ]
c1986542abb9acd214268f2df21c6305ad2f262b
https://github.com/Jasig/uPortal/blob/c1986542abb9acd214268f2df21c6305ad2f262b/uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/utils/SmartCache.java#L80-L84