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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
68,300 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java | JmsConnectionImpl.initExceptionThreadPool | private static void initExceptionThreadPool() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initExceptionThreadPool");
// Do a synchronous check to ensure once-only creation
synchronized (exceptionTPCreateSync) {
if (exceptionThreadP... | java | private static void initExceptionThreadPool() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initExceptionThreadPool");
// Do a synchronous check to ensure once-only creation
synchronized (exceptionTPCreateSync) {
if (exceptionThreadP... | [
"private",
"static",
"void",
"initExceptionThreadPool",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"initExceptionThreadPool\"",
")... | PK59962 Ensure the existence of a single thread pool within the process | [
"PK59962",
"Ensure",
"the",
"existence",
"of",
"a",
"single",
"thread",
"pool",
"within",
"the",
"process"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L1167-L1197 |
68,301 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java | JmsConnectionImpl.addClientId | private void addClientId(String clientId) {
//Sometimes the client Id will be null. For instance in the case QueueConnectionFactory, there is no default client Id specified in metatype.xml.
if (clientId == null)
return; //do nothing
ConcurrentHashMap<String, Integer> clientIdTable =... | java | private void addClientId(String clientId) {
//Sometimes the client Id will be null. For instance in the case QueueConnectionFactory, there is no default client Id specified in metatype.xml.
if (clientId == null)
return; //do nothing
ConcurrentHashMap<String, Integer> clientIdTable =... | [
"private",
"void",
"addClientId",
"(",
"String",
"clientId",
")",
"{",
"//Sometimes the client Id will be null. For instance in the case QueueConnectionFactory, there is no default client Id specified in metatype.xml.",
"if",
"(",
"clientId",
"==",
"null",
")",
"return",
";",
"//do... | If there is no entry for the given Client Id in the "clientIdTable", then add it with count as "1".
If its already exists then just increment the counter value by "1".
@param clientId | [
"If",
"there",
"is",
"no",
"entry",
"for",
"the",
"given",
"Client",
"Id",
"in",
"the",
"clientIdTable",
"then",
"add",
"it",
"with",
"count",
"as",
"1",
".",
"If",
"its",
"already",
"exists",
"then",
"just",
"increment",
"the",
"counter",
"value",
"by",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L1479-L1492 |
68,302 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java | JmsConnectionImpl.removeClientId | private void removeClientId(String clientId) {
//Sometimes the client Id will be null. For instance in the case QueueConnectionFactory, there is no default client Id specified in metatype.xml.
if (clientId == null)
return; //do nothing
ConcurrentHashMap<String, Integer> clientIdTab... | java | private void removeClientId(String clientId) {
//Sometimes the client Id will be null. For instance in the case QueueConnectionFactory, there is no default client Id specified in metatype.xml.
if (clientId == null)
return; //do nothing
ConcurrentHashMap<String, Integer> clientIdTab... | [
"private",
"void",
"removeClientId",
"(",
"String",
"clientId",
")",
"{",
"//Sometimes the client Id will be null. For instance in the case QueueConnectionFactory, there is no default client Id specified in metatype.xml. ",
"if",
"(",
"clientId",
"==",
"null",
")",
"return",
";",
"... | To remove the client id from client table.
Whenever this method is called, the counter of respective HashMap entry is decremented by one. If the count reaches "0", then that entry wil be removed from the
clientIdTable.
@param clientId | [
"To",
"remove",
"the",
"client",
"id",
"from",
"client",
"table",
".",
"Whenever",
"this",
"method",
"is",
"called",
"the",
"counter",
"of",
"respective",
"HashMap",
"entry",
"is",
"decremented",
"by",
"one",
".",
"If",
"the",
"count",
"reaches",
"0",
"the... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L1501-L1516 |
68,303 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java | InvocationContextImpl.initializeForAroundConstruct | public void initializeForAroundConstruct(ManagedObjectContext managedObjectContext,
Object[] interceptors, InterceptorProxy[] proxies) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "initializeForAroundConstruct : context ... | java | public void initializeForAroundConstruct(ManagedObjectContext managedObjectContext,
Object[] interceptors, InterceptorProxy[] proxies) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "initializeForAroundConstruct : context ... | [
"public",
"void",
"initializeForAroundConstruct",
"(",
"ManagedObjectContext",
"managedObjectContext",
",",
"Object",
"[",
"]",
"interceptors",
",",
"InterceptorProxy",
"[",
"]",
"proxies",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
... | Initialize a InvocationContext for AroundConstruct with
an array of interceptor instances created for this bean instance
and the interceptor proxies.
@param interceptors is the ordered array of interceptor instances
created for the bean.
@param proxies is an array of InterceptorProxy objects that
represent the list of... | [
"Initialize",
"a",
"InvocationContext",
"for",
"AroundConstruct",
"with",
"an",
"array",
"of",
"interceptor",
"instances",
"created",
"for",
"this",
"bean",
"instance",
"and",
"the",
"interceptor",
"proxies",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java#L195-L205 |
68,304 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java | InvocationContextImpl.doAroundInvoke | public Object doAroundInvoke(InterceptorProxy[] proxies, Method businessMethod, Object[] parameters, EJSDeployedSupport s) //LIDB3294-41
throws Exception {
ivMethod = businessMethod;
ivParameters = parameters;
ivEJSDeployedSupport = s; //LIDB3294-41
ivInterceptorProxi... | java | public Object doAroundInvoke(InterceptorProxy[] proxies, Method businessMethod, Object[] parameters, EJSDeployedSupport s) //LIDB3294-41
throws Exception {
ivMethod = businessMethod;
ivParameters = parameters;
ivEJSDeployedSupport = s; //LIDB3294-41
ivInterceptorProxi... | [
"public",
"Object",
"doAroundInvoke",
"(",
"InterceptorProxy",
"[",
"]",
"proxies",
",",
"Method",
"businessMethod",
",",
"Object",
"[",
"]",
"parameters",
",",
"EJSDeployedSupport",
"s",
")",
"//LIDB3294-41",
"throws",
"Exception",
"{",
"ivMethod",
"=",
"business... | Invoke each AroundInvoke interceptor methods for a specified
business method of an EJB being invoked.
@param proxies is an array of InterceptorProxy objects that
represent the list of AroundInvoke interceptor
methods to be invoked.
@param businessMethod is the Method object for invoking the business method.
@param par... | [
"Invoke",
"each",
"AroundInvoke",
"interceptor",
"methods",
"for",
"a",
"specified",
"business",
"method",
"of",
"an",
"EJB",
"being",
"invoked",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java#L254-L280 |
68,305 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java | InvocationContextImpl.doAroundInterceptor | private Object doAroundInterceptor() throws Exception {
// Note, we do not call setParameters since the assumption is the
// wrapper code passes an Object array that always contains the
// correct type. If we want type checking to ensure wrapper
// code is correct, we could call setPara... | java | private Object doAroundInterceptor() throws Exception {
// Note, we do not call setParameters since the assumption is the
// wrapper code passes an Object array that always contains the
// correct type. If we want type checking to ensure wrapper
// code is correct, we could call setPara... | [
"private",
"Object",
"doAroundInterceptor",
"(",
")",
"throws",
"Exception",
"{",
"// Note, we do not call setParameters since the assumption is the",
"// wrapper code passes an Object array that always contains the",
"// correct type. If we want type checking to ensure wrapper",
"// code is ... | Invoke each AroundInvoke or AroundConstruct interceptor methods
@return the Object that is returned by business method.
@throws Exception from around invoke or business method. | [
"Invoke",
"each",
"AroundInvoke",
"or",
"AroundConstruct",
"interceptor",
"methods"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java#L289-L299 |
68,306 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java | InvocationContextImpl.doLifeCycle | public void doLifeCycle(InterceptorProxy[] proxies, EJBModuleMetaDataImpl mmd) // F743-14982
{
ivMethod = null;
ivParameters = null; // d367572.8
ivInterceptorProxies = proxies;
ivNumberOfInterceptors = ivInterceptorProxies.length;
if (TraceComponent.isAnyTracingEnabled() && ... | java | public void doLifeCycle(InterceptorProxy[] proxies, EJBModuleMetaDataImpl mmd) // F743-14982
{
ivMethod = null;
ivParameters = null; // d367572.8
ivInterceptorProxies = proxies;
ivNumberOfInterceptors = ivInterceptorProxies.length;
if (TraceComponent.isAnyTracingEnabled() && ... | [
"public",
"void",
"doLifeCycle",
"(",
"InterceptorProxy",
"[",
"]",
"proxies",
",",
"EJBModuleMetaDataImpl",
"mmd",
")",
"// F743-14982",
"{",
"ivMethod",
"=",
"null",
";",
"ivParameters",
"=",
"null",
";",
"// d367572.8",
"ivInterceptorProxies",
"=",
"proxies",
"... | d450431 - add appExceptionMap parameter. | [
"d450431",
"-",
"add",
"appExceptionMap",
"parameter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java#L312-L338 |
68,307 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java | InvocationContextImpl.lifeCycleExceptionHandler | private void lifeCycleExceptionHandler(Throwable t, EJBModuleMetaDataImpl mmd) // F743-14982
{
if (t instanceof RuntimeException) {
// Is the RuntimeException an application exception?
RuntimeException rtex = (RuntimeException) t;
if (mmd.getApplicationExceptionRollback(r... | java | private void lifeCycleExceptionHandler(Throwable t, EJBModuleMetaDataImpl mmd) // F743-14982
{
if (t instanceof RuntimeException) {
// Is the RuntimeException an application exception?
RuntimeException rtex = (RuntimeException) t;
if (mmd.getApplicationExceptionRollback(r... | [
"private",
"void",
"lifeCycleExceptionHandler",
"(",
"Throwable",
"t",
",",
"EJBModuleMetaDataImpl",
"mmd",
")",
"// F743-14982",
"{",
"if",
"(",
"t",
"instanceof",
"RuntimeException",
")",
"{",
"// Is the RuntimeException an application exception?",
"RuntimeException",
"rt... | d450431 - ensure runtime exception is not an application exception. | [
"d450431",
"-",
"ensure",
"runtime",
"exception",
"is",
"not",
"an",
"application",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java#L351-L403 |
68,308 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java | InvocationContextImpl.throwUndeclaredExceptionCause | private void throwUndeclaredExceptionCause(Throwable undeclaredException) throws Exception {
Throwable cause = undeclaredException.getCause();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "proceed unwrappering " + undeclaredException.getClass().getSimpleName(... | java | private void throwUndeclaredExceptionCause(Throwable undeclaredException) throws Exception {
Throwable cause = undeclaredException.getCause();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "proceed unwrappering " + undeclaredException.getClass().getSimpleName(... | [
"private",
"void",
"throwUndeclaredExceptionCause",
"(",
"Throwable",
"undeclaredException",
")",
"throws",
"Exception",
"{",
"Throwable",
"cause",
"=",
"undeclaredException",
".",
"getCause",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"("... | Since some interceptor methods cannot throw 'Exception', but the target
method on the bean can throw application exceptions, this method may be
used to unwrap the application exception from either an
InvocationTargetException or UndeclaredThrowableException.
@param undeclaredException the InvocationTargetException or ... | [
"Since",
"some",
"interceptor",
"methods",
"cannot",
"throw",
"Exception",
"but",
"the",
"target",
"method",
"on",
"the",
"bean",
"can",
"throw",
"application",
"exceptions",
"this",
"method",
"may",
"be",
"used",
"to",
"unwrap",
"the",
"application",
"exception... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InvocationContextImpl.java#L624-L645 |
68,309 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/UnauthenticatedSubjectServiceImpl.java | UnauthenticatedSubjectServiceImpl.setCredentialProvider | protected void setCredentialProvider(ServiceReference<CredentialProvider> ref) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Resetting unauthenticatedSubject as new CredentialProvider has been set");
}
synchronized (unauthenticatedSubjectLock) {
... | java | protected void setCredentialProvider(ServiceReference<CredentialProvider> ref) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Resetting unauthenticatedSubject as new CredentialProvider has been set");
}
synchronized (unauthenticatedSubjectLock) {
... | [
"protected",
"void",
"setCredentialProvider",
"(",
"ServiceReference",
"<",
"CredentialProvider",
">",
"ref",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug"... | When CredentialProviders come and go, reset the unauthenticated subject.
@param ref | [
"When",
"CredentialProviders",
"come",
"and",
"go",
"reset",
"the",
"unauthenticated",
"subject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/UnauthenticatedSubjectServiceImpl.java#L73-L80 |
68,310 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/UnauthenticatedSubjectServiceImpl.java | UnauthenticatedSubjectServiceImpl.getUnauthenticatedSubject | @Override
@FFDCIgnore(Exception.class)
public Subject getUnauthenticatedSubject() {
if (unauthenticatedSubject == null) {
CredentialsService cs = credentialsServiceRef.getService();
String unauthenticatedUserid = cs.getUnauthenticatedUserid();
try {
Su... | java | @Override
@FFDCIgnore(Exception.class)
public Subject getUnauthenticatedSubject() {
if (unauthenticatedSubject == null) {
CredentialsService cs = credentialsServiceRef.getService();
String unauthenticatedUserid = cs.getUnauthenticatedUserid();
try {
Su... | [
"@",
"Override",
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"public",
"Subject",
"getUnauthenticatedSubject",
"(",
")",
"{",
"if",
"(",
"unauthenticatedSubject",
"==",
"null",
")",
"{",
"CredentialsService",
"cs",
"=",
"credentialsServiceRef",
".",
... | Return the unauthenticated subject. If we don't already have one create it.
@return unauthenticated subject | [
"Return",
"the",
"unauthenticated",
"subject",
".",
"If",
"we",
"don",
"t",
"already",
"have",
"one",
"create",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/UnauthenticatedSubjectServiceImpl.java#L147-L176 |
68,311 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java | WSX509KeyManager.setClientAlias | public void setClientAlias(String alias) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "setClientAlias", new Object[] { alias });
if (!ks.containsAlias(alias)) {
String keyFileName = config.getProperty(Constants.SSLPROP_KEY_STORE... | java | public void setClientAlias(String alias) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "setClientAlias", new Object[] { alias });
if (!ks.containsAlias(alias)) {
String keyFileName = config.getProperty(Constants.SSLPROP_KEY_STORE... | [
"public",
"void",
"setClientAlias",
"(",
"String",
"alias",
")",
"throws",
"Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setClie... | Set the client alias value for the given slot number.
@param alias
@param slotnum
@throws Exception | [
"Set",
"the",
"client",
"alias",
"value",
"for",
"the",
"given",
"slot",
"number",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java#L118-L138 |
68,312 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java | WSX509KeyManager.chooseClientAlias | public String chooseClientAlias(String keyType, Principal[] issuers) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "chooseClientAlias", new Object[] { keyType, issuers });
Map<String, Object> connectionInfo = JSSEHelper.getInstance().getOutboundConnectionIn... | java | public String chooseClientAlias(String keyType, Principal[] issuers) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "chooseClientAlias", new Object[] { keyType, issuers });
Map<String, Object> connectionInfo = JSSEHelper.getInstance().getOutboundConnectionIn... | [
"public",
"String",
"chooseClientAlias",
"(",
"String",
"keyType",
",",
"Principal",
"[",
"]",
"issuers",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"("... | Choose a client alias.
@param keyType
@param issuers
@return String | [
"Choose",
"a",
"client",
"alias",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java#L248-L305 |
68,313 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java | WSX509KeyManager.chooseEngineServerAlias | @Override
public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "chooseEngineServerAlias", new Object[] { keyType, issuers, engine });
String rc = null;
if (nul... | java | @Override
public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "chooseEngineServerAlias", new Object[] { keyType, issuers, engine });
String rc = null;
if (nul... | [
"@",
"Override",
"public",
"String",
"chooseEngineServerAlias",
"(",
"String",
"keyType",
",",
"Principal",
"[",
"]",
"issuers",
",",
"SSLEngine",
"engine",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryE... | Handshakes that use the SSLEngine and not an SSLSocket require this method
from the extended X509KeyManager.
@see javax.net.ssl.X509ExtendedKeyManager#chooseEngineServerAlias(java.lang.String, java.security.Principal[], javax.net.ssl.SSLEngine) | [
"Handshakes",
"that",
"use",
"the",
"SSLEngine",
"and",
"not",
"an",
"SSLSocket",
"require",
"this",
"method",
"from",
"the",
"extended",
"X509KeyManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java#L313-L329 |
68,314 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java | WSX509KeyManager.getX509KeyManager | public X509KeyManager getX509KeyManager() {
if (customKM != null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getX509KeyManager -> " + customKM.getClass().getName());
return customKM;
}
if (TraceComponent.isAnyTracingEn... | java | public X509KeyManager getX509KeyManager() {
if (customKM != null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getX509KeyManager -> " + customKM.getClass().getName());
return customKM;
}
if (TraceComponent.isAnyTracingEn... | [
"public",
"X509KeyManager",
"getX509KeyManager",
"(",
")",
"{",
"if",
"(",
"customKM",
"!=",
"null",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"... | Get the appropriate X509KeyManager for this instance.
@return X509KeyManager | [
"Get",
"the",
"appropriate",
"X509KeyManager",
"for",
"this",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509KeyManager.java#L496-L505 |
68,315 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/AlpnSupportUtils.java | AlpnSupportUtils.getAlpnResult | protected static void getAlpnResult(SSLEngine engine, SSLConnectionLink link) {
alpnNegotiator.tryToRemoveAlpnNegotiator(link.getAlpnNegotiator(), engine, link);
} | java | protected static void getAlpnResult(SSLEngine engine, SSLConnectionLink link) {
alpnNegotiator.tryToRemoveAlpnNegotiator(link.getAlpnNegotiator(), engine, link);
} | [
"protected",
"static",
"void",
"getAlpnResult",
"(",
"SSLEngine",
"engine",
",",
"SSLConnectionLink",
"link",
")",
"{",
"alpnNegotiator",
".",
"tryToRemoveAlpnNegotiator",
"(",
"link",
".",
"getAlpnNegotiator",
"(",
")",
",",
"engine",
",",
"link",
")",
";",
"}"... | This must be called after the SSL handshake has completed. If an ALPN protocol was selected by the available provider,
that protocol will be set on the SSLConnectionLink. Also, additional cleanup will be done for some ALPN providers.
@param SSLEngine
@param SSLConnectionLink | [
"This",
"must",
"be",
"called",
"after",
"the",
"SSL",
"handshake",
"has",
"completed",
".",
"If",
"an",
"ALPN",
"protocol",
"was",
"selected",
"by",
"the",
"available",
"provider",
"that",
"protocol",
"will",
"be",
"set",
"on",
"the",
"SSLConnectionLink",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/AlpnSupportUtils.java#L58-L60 |
68,316 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.metadataProcessingInitialize | void metadataProcessingInitialize(ComponentNameSpaceConfiguration nameSpaceConfig)
{
ivContext = (InjectionProcessorContext) nameSpaceConfig.getInjectionProcessorContext();
ivNameSpaceConfig = nameSpaceConfig;
// Following must be available after ivContext and ivNameSpaceConfig are cleared
... | java | void metadataProcessingInitialize(ComponentNameSpaceConfiguration nameSpaceConfig)
{
ivContext = (InjectionProcessorContext) nameSpaceConfig.getInjectionProcessorContext();
ivNameSpaceConfig = nameSpaceConfig;
// Following must be available after ivContext and ivNameSpaceConfig are cleared
... | [
"void",
"metadataProcessingInitialize",
"(",
"ComponentNameSpaceConfiguration",
"nameSpaceConfig",
")",
"{",
"ivContext",
"=",
"(",
"InjectionProcessorContext",
")",
"nameSpaceConfig",
".",
"getInjectionProcessorContext",
"(",
")",
";",
"ivNameSpaceConfig",
"=",
"nameSpaceCon... | d730349.1 | [
"d730349",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L225-L232 |
68,317 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.mergeError | protected void mergeError(Object oldValue,
Object newValue,
boolean xml,
String elementName,
boolean property,
String key) throws InjectionConfigurationException {
... | java | protected void mergeError(Object oldValue,
Object newValue,
boolean xml,
String elementName,
boolean property,
String key) throws InjectionConfigurationException {
... | [
"protected",
"void",
"mergeError",
"(",
"Object",
"oldValue",
",",
"Object",
"newValue",
",",
"boolean",
"xml",
",",
"String",
"elementName",
",",
"boolean",
"property",
",",
"String",
"key",
")",
"throws",
"InjectionConfigurationException",
"{",
"JNDIEnvironmentRef... | Indication that an error has occurred while merging an attribute value.
<p>This method requires {@link #getJNDIEnvironmentRefType} to be defined.
@param oldValue the old value
@param newValue the new value
@param xml true if the error occurred for an XML element
@param elementName the XML element name if xml is true,... | [
"Indication",
"that",
"an",
"error",
"has",
"occurred",
"while",
"merging",
"an",
"attribute",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L807-L871 |
68,318 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.mergeAnnotationBoolean | protected Boolean mergeAnnotationBoolean(Boolean oldValue,
boolean oldValueXML,
boolean newValue,
String elementName,
boolean defaultValue) ... | java | protected Boolean mergeAnnotationBoolean(Boolean oldValue,
boolean oldValueXML,
boolean newValue,
String elementName,
boolean defaultValue) ... | [
"protected",
"Boolean",
"mergeAnnotationBoolean",
"(",
"Boolean",
"oldValue",
",",
"boolean",
"oldValueXML",
",",
"boolean",
"newValue",
",",
"String",
"elementName",
",",
"boolean",
"defaultValue",
")",
"throws",
"InjectionConfigurationException",
"{",
"if",
"(",
"ne... | Merges the value of a boolean annotation value.
<p>If an error occurs, {@link #mergeError} will be called, which
requires {@link #getJNDIEnvironmentRefType} to be defined.
@param oldValue the old value
@param oldValueXML true if the old value was set by XML
@param newValue the new value
@param elementName the annotat... | [
"Merges",
"the",
"value",
"of",
"a",
"boolean",
"annotation",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L887-L906 |
68,319 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.mergeAnnotationInteger | protected Integer mergeAnnotationInteger(Integer oldValue,
boolean oldValueXML,
int newValue,
String elementName,
int defaultValue,
... | java | protected Integer mergeAnnotationInteger(Integer oldValue,
boolean oldValueXML,
int newValue,
String elementName,
int defaultValue,
... | [
"protected",
"Integer",
"mergeAnnotationInteger",
"(",
"Integer",
"oldValue",
",",
"boolean",
"oldValueXML",
",",
"int",
"newValue",
",",
"String",
"elementName",
",",
"int",
"defaultValue",
",",
"Map",
"<",
"Integer",
",",
"String",
">",
"valueNames",
")",
"thr... | Merges the value of an integer annotation value.
<p>If an error occurs, {@link #mergeError} will be called, which
requires {@link #getJNDIEnvironmentRefType} to be defined.
@param oldValue the old value
@param oldValueXML true if the old value was set by XML
@param newValue the new value
@param elementName the annota... | [
"Merges",
"the",
"value",
"of",
"an",
"integer",
"annotation",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L922-L944 |
68,320 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.mergeAnnotationValue | protected <T> T mergeAnnotationValue(T oldValue,
boolean oldValueXML,
T newValue,
String elementName,
T defaultValue) throws InjectionConfigurationException... | java | protected <T> T mergeAnnotationValue(T oldValue,
boolean oldValueXML,
T newValue,
String elementName,
T defaultValue) throws InjectionConfigurationException... | [
"protected",
"<",
"T",
">",
"T",
"mergeAnnotationValue",
"(",
"T",
"oldValue",
",",
"boolean",
"oldValueXML",
",",
"T",
"newValue",
",",
"String",
"elementName",
",",
"T",
"defaultValue",
")",
"throws",
"InjectionConfigurationException",
"{",
"if",
"(",
"newValu... | Merges the value of a String or Enum annotation value.
<p>If an error occurs, {@link #mergeError} will be called, which
requires {@link #getJNDIEnvironmentRefType} to be defined.
@param oldValue the old value
@param oldValueXML true if the old value was set by XML
@param newValue the new value
@param elementName the ... | [
"Merges",
"the",
"value",
"of",
"a",
"String",
"or",
"Enum",
"annotation",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L960-L975 |
68,321 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.mergeXMLValue | protected <T> T mergeXMLValue(T oldValue,
T newValue,
String elementName,
String key,
Map<T, String> valueNames) throws InjectionConfigurationException {
if (newValue == null) ... | java | protected <T> T mergeXMLValue(T oldValue,
T newValue,
String elementName,
String key,
Map<T, String> valueNames) throws InjectionConfigurationException {
if (newValue == null) ... | [
"protected",
"<",
"T",
">",
"T",
"mergeXMLValue",
"(",
"T",
"oldValue",
",",
"T",
"newValue",
",",
"String",
"elementName",
",",
"String",
"key",
",",
"Map",
"<",
"T",
",",
"String",
">",
"valueNames",
")",
"throws",
"InjectionConfigurationException",
"{",
... | Merges a value specified in XML.
<p>If an error occurs, {@link #mergeError} will be called, which
requires {@link #getJNDIEnvironmentRefType} to be defined.
@param oldValue the old value
@param newValue the new value
@param elementName the name of the XML element containing the value
@param key the optional key to be... | [
"Merges",
"a",
"value",
"specified",
"in",
"XML",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1075-L1092 |
68,322 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.mergeXMLProperties | protected Map<String, String> mergeXMLProperties(Map<String, String> oldProperties,
Set<String> oldXMLProperties,
List<Property> properties) throws InjectionConfigurationException {
if (!properties.isEmpty(... | java | protected Map<String, String> mergeXMLProperties(Map<String, String> oldProperties,
Set<String> oldXMLProperties,
List<Property> properties) throws InjectionConfigurationException {
if (!properties.isEmpty(... | [
"protected",
"Map",
"<",
"String",
",",
"String",
">",
"mergeXMLProperties",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"oldProperties",
",",
"Set",
"<",
"String",
">",
"oldXMLProperties",
",",
"List",
"<",
"Property",
">",
"properties",
")",
"throws",
... | Merges the properties specified in XML.
<p>If an error occurs, {@link #mergeError} will be called, which
requires {@link #getJNDIEnvironmentRefType} to be defined.
@param oldProperties the old properties, or null if uninitialized
@param oldXMLPropertyNames the old property names set by XML to be updated
@param newPro... | [
"Merges",
"the",
"properties",
"specified",
"in",
"XML",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1106-L1129 |
68,323 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.addOrRemoveProperty | protected static <K, V> void addOrRemoveProperty(Map<K, V> props, K key, V value)
{
if (value == null) {
// Generic properties have already been added to the map. Remove them
// so they aren't confused with the builtin properties.
props.remove(key);
} else {
... | java | protected static <K, V> void addOrRemoveProperty(Map<K, V> props, K key, V value)
{
if (value == null) {
// Generic properties have already been added to the map. Remove them
// so they aren't confused with the builtin properties.
props.remove(key);
} else {
... | [
"protected",
"static",
"<",
"K",
",",
"V",
">",
"void",
"addOrRemoveProperty",
"(",
"Map",
"<",
"K",
",",
"V",
">",
"props",
",",
"K",
"key",
",",
"V",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"// Generic properties have already b... | Add the specified property if the value is non-null, or remove it from
the map if it is null.
@param props the properties to update
@param key the key
@param value the value | [
"Add",
"the",
"specified",
"property",
"if",
"the",
"value",
"is",
"non",
"-",
"null",
"or",
"remove",
"it",
"from",
"the",
"map",
"if",
"it",
"is",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1203-L1212 |
68,324 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.createDefinitionReference | public Reference createDefinitionReference(String bindingName, String type, Map<String, Object> properties) throws InjectionException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Map<String, Object> traceProps = properties;
... | java | public Reference createDefinitionReference(String bindingName, String type, Map<String, Object> properties) throws InjectionException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Map<String, Object> traceProps = properties;
... | [
"public",
"Reference",
"createDefinitionReference",
"(",
"String",
"bindingName",
",",
"String",
"type",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"throws",
"InjectionException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
... | Create a Reference to a resource definition.
@param bindingName the binding name, or null if none
@param type the resource type
@param properties the resource-specific properties
@return the resource definition Reference | [
"Create",
"a",
"Reference",
"to",
"a",
"resource",
"definition",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1222-L1247 |
68,325 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.setObjects | public void setObjects(Object injectionObject, Reference bindingObject)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "setObjects", injectionObject, bindingObjectToString(... | java | public void setObjects(Object injectionObject, Reference bindingObject)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "setObjects", injectionObject, bindingObjectToString(... | [
"public",
"void",
"setObjects",
"(",
"Object",
"injectionObject",
",",
"Reference",
"bindingObject",
")",
"throws",
"InjectionException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
... | Sets the object to use for injection and the Reference to use for
binding. Usually, the injection object is null.
@param injectionObject the object to inject, or null if the object should
be obtained from the binding object instead
@param bindingObject the object to bind, or null if injectionObject
should be bound dir... | [
"Sets",
"the",
"object",
"to",
"use",
"for",
"injection",
"and",
"the",
"Reference",
"to",
"use",
"for",
"binding",
".",
"Usually",
"the",
"injection",
"object",
"is",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1283-L1305 |
68,326 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.setReferenceObject | public void setReferenceObject(Reference bindingObject,
Class<? extends ObjectFactory> objectFactory)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
T... | java | public void setReferenceObject(Reference bindingObject,
Class<? extends ObjectFactory> objectFactory)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
T... | [
"public",
"void",
"setReferenceObject",
"(",
"Reference",
"bindingObject",
",",
"Class",
"<",
"?",
"extends",
"ObjectFactory",
">",
"objectFactory",
")",
"throws",
"InjectionException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEna... | F623-841.1 | [
"F623",
"-",
"841",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1328-L1340 |
68,327 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.getInjectionObjectInstance | protected Object getInjectionObjectInstance(Object targetObject,
InjectionTargetContext targetContext)
throws Exception
{
ObjectFactory objectFactory = ivObjectFactory; // volatile-read
InjectionObjectFactory injObjFactory = ivInjec... | java | protected Object getInjectionObjectInstance(Object targetObject,
InjectionTargetContext targetContext)
throws Exception
{
ObjectFactory objectFactory = ivObjectFactory; // volatile-read
InjectionObjectFactory injObjFactory = ivInjec... | [
"protected",
"Object",
"getInjectionObjectInstance",
"(",
"Object",
"targetObject",
",",
"InjectionTargetContext",
"targetContext",
")",
"throws",
"Exception",
"{",
"ObjectFactory",
"objectFactory",
"=",
"ivObjectFactory",
";",
"// volatile-read",
"InjectionObjectFactory",
"i... | F48603.4 | [
"F48603",
".",
"4"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1519-L1553 |
68,328 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.setJndiName | public final void setJndiName(String jndiName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() && jndiName.length() != 0)
Tr.debug(tc, "setJndiName: " + jndiName);
// Starting with Java EE 6, reference names may now start with java: and
// then global, app, mod... | java | public final void setJndiName(String jndiName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() && jndiName.length() != 0)
Tr.debug(tc, "setJndiName: " + jndiName);
// Starting with Java EE 6, reference names may now start with java: and
// then global, app, mod... | [
"public",
"final",
"void",
"setJndiName",
"(",
"String",
"jndiName",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
"&&",
"jndiName",
".",
"length",
"(",
")",
"!=",
"0",
")",
"Tr"... | d367834.14 Ends | [
"d367834",
".",
"14",
"Ends"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1614-L1625 |
68,329 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.setInjectionClassType | public void setInjectionClassType(Class<?> injectionClassType) throws InjectionException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setInjectionClassType: " + injectionClassType);
// if the injection class type hasn't been set yet ( null from XML or... | java | public void setInjectionClassType(Class<?> injectionClassType) throws InjectionException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setInjectionClassType: " + injectionClassType);
// if the injection class type hasn't been set yet ( null from XML or... | [
"public",
"void",
"setInjectionClassType",
"(",
"Class",
"<",
"?",
">",
"injectionClassType",
")",
"throws",
"InjectionException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
"... | Set the InjectionClassType to be most fine grained injection target Class type.
For instance, if there are three injection classes
named Object,Cart,myCart where each extends the prior, the setInjectionClassType
will set the class to be myCart.
@param injectionClassType type of the object association with reference
@... | [
"Set",
"the",
"InjectionClassType",
"to",
"be",
"most",
"fine",
"grained",
"injection",
"target",
"Class",
"type",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1658-L1692 |
68,330 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.setInjectionClassTypeName | public void setInjectionClassTypeName(String name) // F743-32443
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setInjectionClassType: " + name);
if (ivInjectionClassTypeName != null)
{
throw new IllegalStateException("duplicate refe... | java | public void setInjectionClassTypeName(String name) // F743-32443
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setInjectionClassType: " + name);
if (ivInjectionClassTypeName != null)
{
throw new IllegalStateException("duplicate refe... | [
"public",
"void",
"setInjectionClassTypeName",
"(",
"String",
"name",
")",
"// F743-32443",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"setIn... | Sets the injection class type name. When class names are specified in
XML rather than annotation, sub-classes must call this method or override
getInjectionClassTypeName in order to support callers of the injection
engine that do not have a class loader.
@param name the type name of the referenced object | [
"Sets",
"the",
"injection",
"class",
"type",
"name",
".",
"When",
"class",
"names",
"are",
"specified",
"in",
"XML",
"rather",
"than",
"annotation",
"sub",
"-",
"classes",
"must",
"call",
"this",
"method",
"or",
"override",
"getInjectionClassTypeName",
"in",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1702-L1713 |
68,331 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.isClassesCompatible | public static boolean isClassesCompatible(Class<?> memberClass,
Class<?> injectClass)
{
// If the class of the field or method is the injection
// type or a parent of it, then the injection may occur. d433391
if (memberClass.isAssignabl... | java | public static boolean isClassesCompatible(Class<?> memberClass,
Class<?> injectClass)
{
// If the class of the field or method is the injection
// type or a parent of it, then the injection may occur. d433391
if (memberClass.isAssignabl... | [
"public",
"static",
"boolean",
"isClassesCompatible",
"(",
"Class",
"<",
"?",
">",
"memberClass",
",",
"Class",
"<",
"?",
">",
"injectClass",
")",
"{",
"// If the class of the field or method is the injection",
"// type or a parent of it, then the injection may occur. ... | Test if the input two classes are auto-boxing compatible.
@param memberClass Class type of the method or field
@param injectClass Class type of object being injected | [
"Test",
"if",
"the",
"input",
"two",
"classes",
"are",
"auto",
"-",
"boxing",
"compatible",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1869-L1889 |
68,332 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.mostSpecificClass | public static Class<?> mostSpecificClass(Class<?> classOne,
Class<?> classTwo)
{
if (classOne.isAssignableFrom(classTwo)) {
return classTwo; // d479669
}
else if (classTwo.isAssignableFrom(classOne)) {
return classOne; // d... | java | public static Class<?> mostSpecificClass(Class<?> classOne,
Class<?> classTwo)
{
if (classOne.isAssignableFrom(classTwo)) {
return classTwo; // d479669
}
else if (classTwo.isAssignableFrom(classOne)) {
return classOne; // d... | [
"public",
"static",
"Class",
"<",
"?",
">",
"mostSpecificClass",
"(",
"Class",
"<",
"?",
">",
"classOne",
",",
"Class",
"<",
"?",
">",
"classTwo",
")",
"{",
"if",
"(",
"classOne",
".",
"isAssignableFrom",
"(",
"classTwo",
")",
")",
"{",
"return",
"clas... | Returns the most most specific class to the caller. If the two
classes are not compatible a null is returned.
@param classOne Class type of the method or field
@param classTwo Class type of object being injected | [
"Returns",
"the",
"most",
"most",
"specific",
"class",
"to",
"the",
"caller",
".",
"If",
"the",
"two",
"classes",
"are",
"not",
"compatible",
"a",
"null",
"is",
"returned",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L1898-L1909 |
68,333 | OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java | InjectionBinding.toStringSecure | public static String toStringSecure(Annotation ann) {
Class<?> annType = ann.annotationType();
StringBuilder sb = new StringBuilder();
sb.append('@').append(annType.getName()).append('(');
boolean any = false;
for (Method m : annType.getMethods()) {
Object defaultVa... | java | public static String toStringSecure(Annotation ann) {
Class<?> annType = ann.annotationType();
StringBuilder sb = new StringBuilder();
sb.append('@').append(annType.getName()).append('(');
boolean any = false;
for (Method m : annType.getMethods()) {
Object defaultVa... | [
"public",
"static",
"String",
"toStringSecure",
"(",
"Annotation",
"ann",
")",
"{",
"Class",
"<",
"?",
">",
"annType",
"=",
"ann",
".",
"annotationType",
"(",
")",
";",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append... | Convert an annotation to a string, but mask members named password.
@param ann the annotation
@return the string representation of the annotation | [
"Convert",
"an",
"annotation",
"to",
"a",
"string",
"but",
"mask",
"members",
"named",
"password",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionBinding.java#L2139-L2176 |
68,334 | OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/CacheHashMap.java | CacheHashMap.overQualLastAccessTimeUpdate | @Override
@FFDCIgnore(Exception.class) //manually logged
protected int overQualLastAccessTimeUpdate(BackedSession sess, long nowTime) {
final boolean trace = TraceComponent.isAnyTracingEnabled();
String id = sess.getId();
int updateCount;
try {
if (trace && tc.isDe... | java | @Override
@FFDCIgnore(Exception.class) //manually logged
protected int overQualLastAccessTimeUpdate(BackedSession sess, long nowTime) {
final boolean trace = TraceComponent.isAnyTracingEnabled();
String id = sess.getId();
int updateCount;
try {
if (trace && tc.isDe... | [
"@",
"Override",
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"//manually logged",
"protected",
"int",
"overQualLastAccessTimeUpdate",
"(",
"BackedSession",
"sess",
",",
"long",
"nowTime",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".... | Attempts to update the last access time ensuring the old value matches.
This verifies that the copy we have in cache is still valid.
@see com.ibm.ws.session.store.common.BackedHashMap#overQualLastAccessTimeUpdate(com.ibm.ws.session.store.common.BackedSession, long) | [
"Attempts",
"to",
"update",
"the",
"last",
"access",
"time",
"ensuring",
"the",
"old",
"value",
"matches",
".",
"This",
"verifies",
"that",
"the",
"copy",
"we",
"have",
"in",
"cache",
"is",
"still",
"valid",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/CacheHashMap.java#L829-L884 |
68,335 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/impl/MediaTypeHeaderProvider.java | MediaTypeHeaderProvider.typeToString | @Trivial
public static String typeToString(MediaType type, List<String> ignoreParams) {
if (type == null) {
throw new IllegalArgumentException("MediaType parameter is null");
}
StringBuilder sb = new StringBuilder();
sb.append(type.getType()).append('/').append(type.getSu... | java | @Trivial
public static String typeToString(MediaType type, List<String> ignoreParams) {
if (type == null) {
throw new IllegalArgumentException("MediaType parameter is null");
}
StringBuilder sb = new StringBuilder();
sb.append(type.getType()).append('/').append(type.getSu... | [
"@",
"Trivial",
"public",
"static",
"String",
"typeToString",
"(",
"MediaType",
"type",
",",
"List",
"<",
"String",
">",
"ignoreParams",
")",
"{",
"if",
"(",
"type",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"MediaType paramete... | to the implementation | [
"to",
"the",
"implementation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/impl/MediaTypeHeaderProvider.java#L147-L168 |
68,336 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/CompHandshakeFactory.java | CompHandshakeFactory.createHandshakeInstance | private static void createHandshakeInstance() throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createHandshakeInstance");
try {
instance = Class.forName(MfpConstants.COMP_HANDSHAKE_CLASS).newInstance();
} catch (Exception e) {
FFDCFilter.proces... | java | private static void createHandshakeInstance() throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createHandshakeInstance");
try {
instance = Class.forName(MfpConstants.COMP_HANDSHAKE_CLASS).newInstance();
} catch (Exception e) {
FFDCFilter.proces... | [
"private",
"static",
"void",
"createHandshakeInstance",
"(",
")",
"throws",
"Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"creat... | Create the singleton ComponentHandshake instance.
@exception Exception The method rethrows any Exception caught during
creaton of the singleton object. | [
"Create",
"the",
"singleton",
"ComponentHandshake",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/CompHandshakeFactory.java#L67-L77 |
68,337 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFactoryDataImpl.java | ChannelFactoryDataImpl.setProperties | synchronized void setProperties(Map<Object, Object> m) throws ChannelFactoryPropertyIgnoredException {
this.myProperties = m;
if (cf != null) {
cf.updateProperties(m);
}
} | java | synchronized void setProperties(Map<Object, Object> m) throws ChannelFactoryPropertyIgnoredException {
this.myProperties = m;
if (cf != null) {
cf.updateProperties(m);
}
} | [
"synchronized",
"void",
"setProperties",
"(",
"Map",
"<",
"Object",
",",
"Object",
">",
"m",
")",
"throws",
"ChannelFactoryPropertyIgnoredException",
"{",
"this",
".",
"myProperties",
"=",
"m",
";",
"if",
"(",
"cf",
"!=",
"null",
")",
"{",
"cf",
".",
"upda... | internally set the properties associated with this object
@param m
@throws ChannelFactoryPropertyIgnoredException | [
"internally",
"set",
"the",
"properties",
"associated",
"with",
"this",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFactoryDataImpl.java#L104-L110 |
68,338 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFactoryDataImpl.java | ChannelFactoryDataImpl.setProperty | synchronized void setProperty(Object key, Object value) throws ChannelFactoryPropertyIgnoredException {
if (null == key) {
throw new ChannelFactoryPropertyIgnoredException("Ignored channel factory property key of null");
}
if (myProperties == null) {
this.myProperties = n... | java | synchronized void setProperty(Object key, Object value) throws ChannelFactoryPropertyIgnoredException {
if (null == key) {
throw new ChannelFactoryPropertyIgnoredException("Ignored channel factory property key of null");
}
if (myProperties == null) {
this.myProperties = n... | [
"synchronized",
"void",
"setProperty",
"(",
"Object",
"key",
",",
"Object",
"value",
")",
"throws",
"ChannelFactoryPropertyIgnoredException",
"{",
"if",
"(",
"null",
"==",
"key",
")",
"{",
"throw",
"new",
"ChannelFactoryPropertyIgnoredException",
"(",
"\"Ignored chann... | Iternally set a property associated with this object
@param key
@param value
@throws ChannelFactoryPropertyIgnoredException | [
"Iternally",
"set",
"a",
"property",
"associated",
"with",
"this",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFactoryDataImpl.java#L119-L130 |
68,339 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFactoryDataImpl.java | ChannelFactoryDataImpl.setChannelFactory | synchronized void setChannelFactory(ChannelFactory factory) throws ChannelFactoryException {
if (factory != null && cf != null) {
throw new ChannelFactoryException("ChannelFactory already exists");
}
this.cf = factory;
} | java | synchronized void setChannelFactory(ChannelFactory factory) throws ChannelFactoryException {
if (factory != null && cf != null) {
throw new ChannelFactoryException("ChannelFactory already exists");
}
this.cf = factory;
} | [
"synchronized",
"void",
"setChannelFactory",
"(",
"ChannelFactory",
"factory",
")",
"throws",
"ChannelFactoryException",
"{",
"if",
"(",
"factory",
"!=",
"null",
"&&",
"cf",
"!=",
"null",
")",
"{",
"throw",
"new",
"ChannelFactoryException",
"(",
"\"ChannelFactory al... | Internally set the channel factory in this data object.
@param factory
@throws ChannelFactoryException | [
"Internally",
"set",
"the",
"channel",
"factory",
"in",
"this",
"data",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFactoryDataImpl.java#L147-L152 |
68,340 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/SecWorkContextHandler.java | SecWorkContextHandler.dissociate | public void dissociate() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "dissociate");
}
if (WSSecurityHelper.isServerSecurityEnabled()) {
J2CSecurityHelper.removeRunAsSubject();
}
if (TraceComponent.isAnyTracingEnabled()... | java | public void dissociate() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "dissociate");
}
if (WSSecurityHelper.isServerSecurityEnabled()) {
J2CSecurityHelper.removeRunAsSubject();
}
if (TraceComponent.isAnyTracingEnabled()... | [
"public",
"void",
"dissociate",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"dissociate\"",
")",
";",
"}",
"if",
"(",
"... | This method is called by the WorkProxy class to dissociate the inflown
SecurityContext from the workmanager thread after it has run the work
By the time this method is called, the WSSubject.doAs method call would
have exited and the runAs subject would be dissociated. So all that is
left to do here is to clear the Thre... | [
"This",
"method",
"is",
"called",
"by",
"the",
"WorkProxy",
"class",
"to",
"dissociate",
"the",
"inflown",
"SecurityContext",
"from",
"the",
"workmanager",
"thread",
"after",
"it",
"has",
"run",
"the",
"work",
"By",
"the",
"time",
"this",
"method",
"is",
"ca... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/SecWorkContextHandler.java#L252-L262 |
68,341 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/BatchStatusValidator.java | BatchStatusValidator.validateStatusAtInstanceRestart | public static void validateStatusAtInstanceRestart(long jobInstanceId, Properties restartJobParameters) throws JobRestartException, JobExecutionAlreadyCompleteException {
IPersistenceManagerService iPers = ServicesManagerStaticAnchor.getServicesManager().getPersistenceManagerService();
WSJobInstance jo... | java | public static void validateStatusAtInstanceRestart(long jobInstanceId, Properties restartJobParameters) throws JobRestartException, JobExecutionAlreadyCompleteException {
IPersistenceManagerService iPers = ServicesManagerStaticAnchor.getServicesManager().getPersistenceManagerService();
WSJobInstance jo... | [
"public",
"static",
"void",
"validateStatusAtInstanceRestart",
"(",
"long",
"jobInstanceId",
",",
"Properties",
"restartJobParameters",
")",
"throws",
"JobRestartException",
",",
"JobExecutionAlreadyCompleteException",
"{",
"IPersistenceManagerService",
"iPers",
"=",
"ServicesM... | validates job is restart-able,
validates the jobInstance is in failed or stopped | [
"validates",
"job",
"is",
"restart",
"-",
"able",
"validates",
"the",
"jobInstance",
"is",
"in",
"failed",
"or",
"stopped"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/BatchStatusValidator.java#L48-L58 |
68,342 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/DataItem.java | DataItem.write | protected void write(WriteableLogRecord logRecord)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "write", new Object[]{logRecord, this});
// Retrieve the data stored within this data item. This will either come from
// the cached in memory copy or retrieved from disk.
byte[] data = this.g... | java | protected void write(WriteableLogRecord logRecord)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "write", new Object[]{logRecord, this});
// Retrieve the data stored within this data item. This will either come from
// the cached in memory copy or retrieved from disk.
byte[] data = this.g... | [
"protected",
"void",
"write",
"(",
"WriteableLogRecord",
"logRecord",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"write\"",
",",
"new",
"Object",
"[",
"]",
"{",
"logRecord",
",",
"this",
"}",
... | Instructs this DataItem to write its data to the given WriteableLogRecord.
The write involves writing the length of the data as an int followed by
the data itself. The data is written at the log record's current position.
@param logRecord The WriteableLogRecord to write the enapsulated data to. | [
"Instructs",
"this",
"DataItem",
"to",
"write",
"its",
"data",
"to",
"the",
"given",
"WriteableLogRecord",
".",
"The",
"write",
"involves",
"writing",
"the",
"length",
"of",
"the",
"data",
"as",
"an",
"int",
"followed",
"by",
"the",
"data",
"itself",
".",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/DataItem.java#L187-L233 |
68,343 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/DataItem.java | DataItem.getData | protected byte[] getData()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getData", this);
byte[] data = _data;
if (data != null)
{
// There is data cached in memory. Simply use this directly.
if (tc.isDebugEnabled()) Tr.debug(tc, "Cached data located");
}
... | java | protected byte[] getData()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getData", this);
byte[] data = _data;
if (data != null)
{
// There is data cached in memory. Simply use this directly.
if (tc.isDebugEnabled()) Tr.debug(tc, "Cached data located");
}
... | [
"protected",
"byte",
"[",
"]",
"getData",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getData\"",
",",
"this",
")",
";",
"byte",
"[",
"]",
"data",
"=",
"_data",
";",
"if",
"(",
"d... | Returns the data encapsulated by this DataItem instance. If this DataItem
is memory back the in memory copy of the data is always returned. If the
DataItem is file backed and it has been written to disk the data is
retrieved from disk and then returned.
@return This DataItem instance's data | [
"Returns",
"the",
"data",
"encapsulated",
"by",
"this",
"DataItem",
"instance",
".",
"If",
"this",
"DataItem",
"is",
"memory",
"back",
"the",
"in",
"memory",
"copy",
"of",
"the",
"data",
"is",
"always",
"returned",
".",
"If",
"the",
"DataItem",
"is",
"file... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/DataItem.java#L244-L288 |
68,344 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security.impl/src/com/ibm/ws/security/intfc/internal/WSSecurityServiceImpl.java | WSSecurityServiceImpl.getActiveUserRegistry | private UserRegistry getActiveUserRegistry() throws WSSecurityException {
final String METHOD = "getUserRegistry";
UserRegistry activeUserRegistry = null;
try {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, METHOD + " securityServiceR... | java | private UserRegistry getActiveUserRegistry() throws WSSecurityException {
final String METHOD = "getUserRegistry";
UserRegistry activeUserRegistry = null;
try {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, METHOD + " securityServiceR... | [
"private",
"UserRegistry",
"getActiveUserRegistry",
"(",
")",
"throws",
"WSSecurityException",
"{",
"final",
"String",
"METHOD",
"=",
"\"getUserRegistry\"",
";",
"UserRegistry",
"activeUserRegistry",
"=",
"null",
";",
"try",
"{",
"if",
"(",
"TraceComponent",
".",
"i... | Returns the active UserRegistry. If the active user registry is an instance of
com.ibm.ws.security.registry.UserRegistry, then it will be wrapped. Otherwise,
if the active user registry is an instance of CustomUserRegistryWrapper, then the
underlying com.ibm.websphere.security.UserRegistry will be returned.
@return Us... | [
"Returns",
"the",
"active",
"UserRegistry",
".",
"If",
"the",
"active",
"user",
"registry",
"is",
"an",
"instance",
"of",
"com",
".",
"ibm",
".",
"ws",
".",
"security",
".",
"registry",
".",
"UserRegistry",
"then",
"it",
"will",
"be",
"wrapped",
".",
"Ot... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.impl/src/com/ibm/ws/security/intfc/internal/WSSecurityServiceImpl.java#L156-L193 |
68,345 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SessionBeanO.java | SessionBeanO.getUserTransaction | @Override
public synchronized UserTransaction getUserTransaction()
{
// d367572.1 start
if (state == PRE_CREATE)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "Incorrect state: " + getStateName(state));
throw new I... | java | @Override
public synchronized UserTransaction getUserTransaction()
{
// d367572.1 start
if (state == PRE_CREATE)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "Incorrect state: " + getStateName(state));
throw new I... | [
"@",
"Override",
"public",
"synchronized",
"UserTransaction",
"getUserTransaction",
"(",
")",
"{",
"// d367572.1 start",
"if",
"(",
"state",
"==",
"PRE_CREATE",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebu... | Get user transaction object that bean can use to demarcate
transactions. | [
"Get",
"user",
"transaction",
"object",
"that",
"bean",
"can",
"use",
"to",
"demarcate",
"transactions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SessionBeanO.java#L221-L235 |
68,346 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SessionBeanO.java | SessionBeanO.getContextData | @Override
public Map<String, Object> getContextData()
{
// Calling getContextData is not allowed from setSessionContext.
if (state == PRE_CREATE || state == DESTROYED)
{
IllegalStateException ise;
ise = new IllegalStateException("SessionBean: getContextData " +
... | java | @Override
public Map<String, Object> getContextData()
{
// Calling getContextData is not allowed from setSessionContext.
if (state == PRE_CREATE || state == DESTROYED)
{
IllegalStateException ise;
ise = new IllegalStateException("SessionBean: getContextData " +
... | [
"@",
"Override",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getContextData",
"(",
")",
"{",
"// Calling getContextData is not allowed from setSessionContext.",
"if",
"(",
"state",
"==",
"PRE_CREATE",
"||",
"state",
"==",
"DESTROYED",
")",
"{",
"IllegalStat... | F743-21028 | [
"F743",
"-",
"21028"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SessionBeanO.java#L243-L261 |
68,347 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SessionBeanO.java | SessionBeanO.canBeRemoved | protected void canBeRemoved()
throws RemoveException
{
ContainerTx tx = container.getCurrentContainerTx();//d171654
//-------------------------------------------------------------
// If there is no current transaction then we are removing a
// TX_BEAN_MANAGED ses... | java | protected void canBeRemoved()
throws RemoveException
{
ContainerTx tx = container.getCurrentContainerTx();//d171654
//-------------------------------------------------------------
// If there is no current transaction then we are removing a
// TX_BEAN_MANAGED ses... | [
"protected",
"void",
"canBeRemoved",
"(",
")",
"throws",
"RemoveException",
"{",
"ContainerTx",
"tx",
"=",
"container",
".",
"getCurrentContainerTx",
"(",
")",
";",
"//d171654",
"//-------------------------------------------------------------",
"// If there is no current transa... | Checks if beanO can be removed. Throws RemoveException if
cannot be removed. | [
"Checks",
"if",
"beanO",
"can",
"be",
"removed",
".",
"Throws",
"RemoveException",
"if",
"cannot",
"be",
"removed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SessionBeanO.java#L267-L293 |
68,348 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.toKey | @Trivial
private static String toKey(String name, String filter, SearchControls cons) {
int length = name.length() + filter.length() + 100;
StringBuffer key = new StringBuffer(length);
key.append(name);
key.append("|");
key.append(filter);
key.append("|");
key... | java | @Trivial
private static String toKey(String name, String filter, SearchControls cons) {
int length = name.length() + filter.length() + 100;
StringBuffer key = new StringBuffer(length);
key.append(name);
key.append("|");
key.append(filter);
key.append("|");
key... | [
"@",
"Trivial",
"private",
"static",
"String",
"toKey",
"(",
"String",
"name",
",",
"String",
"filter",
",",
"SearchControls",
"cons",
")",
"{",
"int",
"length",
"=",
"name",
".",
"length",
"(",
")",
"+",
"filter",
".",
"length",
"(",
")",
"+",
"100",
... | Returns a hash key for the name|filter|cons tuple used in the search
query-results cache.
@param name The name of the object from which to retrieve attributes.
@param filter the filter used in the search.
@param cons The search controls used in the search.
@throws NamingException If a naming exception is encountered. | [
"Returns",
"a",
"hash",
"key",
"for",
"the",
"name|filter|cons",
"tuple",
"used",
"in",
"the",
"search",
"query",
"-",
"results",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L209-L231 |
68,349 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.toKey | @Trivial
private static String toKey(String name, String filterExpr, Object[] filterArgs, SearchControls cons) {
int length = name.length() + filterExpr.length() + filterArgs.length + 200;
StringBuffer key = new StringBuffer(length);
key.append(name);
key.append("|");
key.app... | java | @Trivial
private static String toKey(String name, String filterExpr, Object[] filterArgs, SearchControls cons) {
int length = name.length() + filterExpr.length() + filterArgs.length + 200;
StringBuffer key = new StringBuffer(length);
key.append(name);
key.append("|");
key.app... | [
"@",
"Trivial",
"private",
"static",
"String",
"toKey",
"(",
"String",
"name",
",",
"String",
"filterExpr",
",",
"Object",
"[",
"]",
"filterArgs",
",",
"SearchControls",
"cons",
")",
"{",
"int",
"length",
"=",
"name",
".",
"length",
"(",
")",
"+",
"filte... | Returns a hash key for the name|filterExpr|filterArgs|cons tuple used in the search
query-results cache.
@param name The name of the context or object to search
@param filterExpr the filter expression used in the search.
@param filterArgs the filter arguments used in the search.
@param cons The search controls used in... | [
"Returns",
"a",
"hash",
"key",
"for",
"the",
"name|filterExpr|filterArgs|cons",
"tuple",
"used",
"in",
"the",
"search",
"query",
"-",
"results",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L243-L262 |
68,350 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.getNameParser | public NameParser getNameParser() throws WIMException {
if (iNameParser == null) {
TimedDirContext ctx = iContextManager.getDirContext();
try {
try {
iNameParser = ctx.getNameParser("");
} catch (NamingException e) {
... | java | public NameParser getNameParser() throws WIMException {
if (iNameParser == null) {
TimedDirContext ctx = iContextManager.getDirContext();
try {
try {
iNameParser = ctx.getNameParser("");
} catch (NamingException e) {
... | [
"public",
"NameParser",
"getNameParser",
"(",
")",
"throws",
"WIMException",
"{",
"if",
"(",
"iNameParser",
"==",
"null",
")",
"{",
"TimedDirContext",
"ctx",
"=",
"iContextManager",
".",
"getDirContext",
"(",
")",
";",
"try",
"{",
"try",
"{",
"iNameParser",
... | Retrieves the parser associated with the root context.
@return The {@link NameParser}.
@throws WIMException If the {@link NameParser} could not be queried from the LDAP server. | [
"Retrieves",
"the",
"parser",
"associated",
"with",
"the",
"root",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L270-L291 |
68,351 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.initializeCaches | private void initializeCaches(Map<String, Object> configProps) {
final String METHODNAME = "initializeCaches(DataObject)";
/*
* initialize the cache pool names
*/
iAttrsCacheName = iReposId + "/" + iAttrsCacheName;
iSearchResultsCacheName = iReposId + "/" + iSearchResu... | java | private void initializeCaches(Map<String, Object> configProps) {
final String METHODNAME = "initializeCaches(DataObject)";
/*
* initialize the cache pool names
*/
iAttrsCacheName = iReposId + "/" + iAttrsCacheName;
iSearchResultsCacheName = iReposId + "/" + iSearchResu... | [
"private",
"void",
"initializeCaches",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"configProps",
")",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"initializeCaches(DataObject)\"",
";",
"/*\n * initialize the cache pool names\n */",
"iAttrsCacheName",
"=... | Initialize search and attribute caches.
@param configProps Configuration properties for the component. | [
"Initialize",
"search",
"and",
"attribute",
"caches",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L517-L602 |
68,352 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.createSearchResultsCache | private void createSearchResultsCache() {
final String METHODNAME = "createSearchResultsCache";
if (iSearchResultsCacheEnabled) {
if (FactoryManager.getCacheUtil().isCacheAvailable()) {
iSearchResultsCache = FactoryManager.getCacheUtil().initialize("SearchResultsCache", iSea... | java | private void createSearchResultsCache() {
final String METHODNAME = "createSearchResultsCache";
if (iSearchResultsCacheEnabled) {
if (FactoryManager.getCacheUtil().isCacheAvailable()) {
iSearchResultsCache = FactoryManager.getCacheUtil().initialize("SearchResultsCache", iSea... | [
"private",
"void",
"createSearchResultsCache",
"(",
")",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"createSearchResultsCache\"",
";",
"if",
"(",
"iSearchResultsCacheEnabled",
")",
"{",
"if",
"(",
"FactoryManager",
".",
"getCacheUtil",
"(",
")",
".",
"isCacheAvail... | Method to create the search results cache, if configured. | [
"Method",
"to",
"create",
"the",
"search",
"results",
"cache",
"if",
"configured",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L607-L625 |
68,353 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.createAttributesCache | private void createAttributesCache() {
final String METHODNAME = "createAttributesCache";
if (iAttrsCacheEnabled) {
if (FactoryManager.getCacheUtil().isCacheAvailable()) {
iAttrsCache = FactoryManager.getCacheUtil().initialize("AttributesCache", iAttrsCacheSize, iAttrsCacheS... | java | private void createAttributesCache() {
final String METHODNAME = "createAttributesCache";
if (iAttrsCacheEnabled) {
if (FactoryManager.getCacheUtil().isCacheAvailable()) {
iAttrsCache = FactoryManager.getCacheUtil().initialize("AttributesCache", iAttrsCacheSize, iAttrsCacheS... | [
"private",
"void",
"createAttributesCache",
"(",
")",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"createAttributesCache\"",
";",
"if",
"(",
"iAttrsCacheEnabled",
")",
"{",
"if",
"(",
"FactoryManager",
".",
"getCacheUtil",
"(",
")",
".",
"isCacheAvailable",
"(",
... | Method to create the attributes cache, if configured. | [
"Method",
"to",
"create",
"the",
"attributes",
"cache",
"if",
"configured",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L630-L648 |
68,354 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.invalidateAttributes | public void invalidateAttributes(String DN, String extId, String uniqueName) {
final String METHODNAME = "invalidateAttributes(String, String, String)";
if (getAttributesCache() != null) {
if (DN != null) {
getAttributesCache().invalidate(toKey(DN));
}
... | java | public void invalidateAttributes(String DN, String extId, String uniqueName) {
final String METHODNAME = "invalidateAttributes(String, String, String)";
if (getAttributesCache() != null) {
if (DN != null) {
getAttributesCache().invalidate(toKey(DN));
}
... | [
"public",
"void",
"invalidateAttributes",
"(",
"String",
"DN",
",",
"String",
"extId",
",",
"String",
"uniqueName",
")",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"invalidateAttributes(String, String, String)\"",
";",
"if",
"(",
"getAttributesCache",
"(",
")",
"!... | Method to invalidate the specified entry from the attributes cache. One or all
parameters can be set in a single call. If all parameters are null, then this
operation no-ops.
@param DN The distinguished name of the entity to invalidate attributes on.
@param extId The external ID of the entity to invalidate attributes ... | [
"Method",
"to",
"invalidate",
"the",
"specified",
"entry",
"from",
"the",
"attributes",
"cache",
".",
"One",
"or",
"all",
"parameters",
"can",
"be",
"set",
"in",
"a",
"single",
"call",
".",
"If",
"all",
"parameters",
"are",
"null",
"then",
"this",
"operati... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L683-L703 |
68,355 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.getEntityByIdentifier | public LdapEntry getEntityByIdentifier(IdentifierType id, List<String> inEntityTypes, List<String> propNames, boolean getMbrshipAttr,
boolean getMbrAttr) throws WIMException {
return getEntityByIdentifier(id.getExternalName(), id.getExternalId(), id.getUniqueName(),
... | java | public LdapEntry getEntityByIdentifier(IdentifierType id, List<String> inEntityTypes, List<String> propNames, boolean getMbrshipAttr,
boolean getMbrAttr) throws WIMException {
return getEntityByIdentifier(id.getExternalName(), id.getExternalId(), id.getUniqueName(),
... | [
"public",
"LdapEntry",
"getEntityByIdentifier",
"(",
"IdentifierType",
"id",
",",
"List",
"<",
"String",
">",
"inEntityTypes",
",",
"List",
"<",
"String",
">",
"propNames",
",",
"boolean",
"getMbrshipAttr",
",",
"boolean",
"getMbrAttr",
")",
"throws",
"WIMExceptio... | Get an LDAP entity by an identifier.
@param id An {@link IdentifierType} entity.
@param inEntityTypes The acceptable entity types to look up.
@param propNames The property names to return in the LdapEntry.
@param getMbrshipAttr Whether to return the membership attribute.
@param getMbrAttr Whether to return the member ... | [
"Get",
"an",
"LDAP",
"entity",
"by",
"an",
"identifier",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L759-L763 |
68,356 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.getEntityByIdentifier | public LdapEntry getEntityByIdentifier(String dn, String extId, String uniqueName, List<String> inEntityTypes,
List<String> propNames, boolean getMbrshipAttr, boolean getMbrAttr) throws WIMException {
String[] attrIds = iLdapConfigMgr.getAttributeNames(inEntityTypes, p... | java | public LdapEntry getEntityByIdentifier(String dn, String extId, String uniqueName, List<String> inEntityTypes,
List<String> propNames, boolean getMbrshipAttr, boolean getMbrAttr) throws WIMException {
String[] attrIds = iLdapConfigMgr.getAttributeNames(inEntityTypes, p... | [
"public",
"LdapEntry",
"getEntityByIdentifier",
"(",
"String",
"dn",
",",
"String",
"extId",
",",
"String",
"uniqueName",
",",
"List",
"<",
"String",
">",
"inEntityTypes",
",",
"List",
"<",
"String",
">",
"propNames",
",",
"boolean",
"getMbrshipAttr",
",",
"bo... | Get an LDAP entity by an identifier. One of 'dn', 'extId' or 'uniqueName' must be non-null.
@param dn The distinguished name for the entity.
@param extId The external name for the entity.
@param uniqueName The unique name for the entity.
@param inEntityTypes The acceptable entity types to look up.
@param propNames The... | [
"Get",
"an",
"LDAP",
"entity",
"by",
"an",
"identifier",
".",
"One",
"of",
"dn",
"extId",
"or",
"uniqueName",
"must",
"be",
"non",
"-",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L778-L820 |
68,357 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.getUniqueName | private String getUniqueName(String dn, String entityType, Attributes attrs) throws WIMException {
final String METHODNAME = "getUniqueName";
String uniqueName = null;
dn = iLdapConfigMgr.switchToNode(dn);
if (iLdapConfigMgr.needTranslateRDN() && iLdapConfigMgr.needTranslateRDN(entityTyp... | java | private String getUniqueName(String dn, String entityType, Attributes attrs) throws WIMException {
final String METHODNAME = "getUniqueName";
String uniqueName = null;
dn = iLdapConfigMgr.switchToNode(dn);
if (iLdapConfigMgr.needTranslateRDN() && iLdapConfigMgr.needTranslateRDN(entityTyp... | [
"private",
"String",
"getUniqueName",
"(",
"String",
"dn",
",",
"String",
"entityType",
",",
"Attributes",
"attrs",
")",
"throws",
"WIMException",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"getUniqueName\"",
";",
"String",
"uniqueName",
"=",
"null",
";",
"dn"... | Get the unique name for the specified distinguished name.
@param dn The distinguished name.
@param entityType The entity type for the distinguished name.
@param attrs The attributes for the entity.
@return The unique name.
@throws WIMException If there was an error retrieving portions of the unique name. | [
"Get",
"the",
"unique",
"name",
"for",
"the",
"specified",
"distinguished",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L831-L895 |
68,358 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.getAttributes | @FFDCIgnore({ NamingException.class, NameNotFoundException.class })
private Attributes getAttributes(String name, String[] attrIds) throws WIMException {
Attributes attributes = null;
if (iLdapConfigMgr.getUseEncodingInSearchExpression() != null)
name = LdapHelper.encodeAttribute(name, ... | java | @FFDCIgnore({ NamingException.class, NameNotFoundException.class })
private Attributes getAttributes(String name, String[] attrIds) throws WIMException {
Attributes attributes = null;
if (iLdapConfigMgr.getUseEncodingInSearchExpression() != null)
name = LdapHelper.encodeAttribute(name, ... | [
"@",
"FFDCIgnore",
"(",
"{",
"NamingException",
".",
"class",
",",
"NameNotFoundException",
".",
"class",
"}",
")",
"private",
"Attributes",
"getAttributes",
"(",
"String",
"name",
",",
"String",
"[",
"]",
"attrIds",
")",
"throws",
"WIMException",
"{",
"Attrib... | Get the specified attributes for the distinguished name.
@param name The distinguished name.
@param attrIds The attribute IDs to retrieve.
@return The {@link Attributes} instance.
@throws WIMException If there was an error retrieving the attributes from the LDAP server. | [
"Get",
"the",
"specified",
"attributes",
"for",
"the",
"distinguished",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L905-L945 |
68,359 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.checkAttributesCache | public Attributes checkAttributesCache(String name, String[] attrIds) throws WIMException {
final String METHODNAME = "checkAttributesCache";
Attributes attributes = null;
// If attribute cache is available, look up cache first
if (getAttributesCache() != null) {
String key ... | java | public Attributes checkAttributesCache(String name, String[] attrIds) throws WIMException {
final String METHODNAME = "checkAttributesCache";
Attributes attributes = null;
// If attribute cache is available, look up cache first
if (getAttributesCache() != null) {
String key ... | [
"public",
"Attributes",
"checkAttributesCache",
"(",
"String",
"name",
",",
"String",
"[",
"]",
"attrIds",
")",
"throws",
"WIMException",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"checkAttributesCache\"",
";",
"Attributes",
"attributes",
"=",
"null",
";",
"// ... | Check the attributes cache for the attributes on the distinguished name.
If any of the attributes are missing, a call to the LDAP server will be made to retrieve them.
@param name The distinguished name to look up the attributes in the cache for.
@param attrIds The attributes to retrieve.
@return The {@link Attributes... | [
"Check",
"the",
"attributes",
"cache",
"for",
"the",
"attributes",
"on",
"the",
"distinguished",
"name",
".",
"If",
"any",
"of",
"the",
"attributes",
"are",
"missing",
"a",
"call",
"to",
"the",
"LDAP",
"server",
"will",
"be",
"made",
"to",
"retrieve",
"the... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L993-L1048 |
68,360 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.updateAttributesCache | private void updateAttributesCache(String uniqueNameKey, String dn, Attributes newAttrs, String[] attrIds) {
final String METHODNAME = "updateAttributesCache(key,dn,newAttrs)";
/*
* Add uniqueName to DN mapping to cache
*/
getAttributesCache().put(uniqueNameKey, dn, 1, iAttrsC... | java | private void updateAttributesCache(String uniqueNameKey, String dn, Attributes newAttrs, String[] attrIds) {
final String METHODNAME = "updateAttributesCache(key,dn,newAttrs)";
/*
* Add uniqueName to DN mapping to cache
*/
getAttributesCache().put(uniqueNameKey, dn, 1, iAttrsC... | [
"private",
"void",
"updateAttributesCache",
"(",
"String",
"uniqueNameKey",
",",
"String",
"dn",
",",
"Attributes",
"newAttrs",
",",
"String",
"[",
"]",
"attrIds",
")",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"updateAttributesCache(key,dn,newAttrs)\"",
";",
"/*... | Update the attributes cache by adding a mapping of the unique name to distinguished name
and mapping the distinguished name to the updated attributes.
@param uniqueNameKey The unique name to map the distinguished name to.
@param dn The distinguished name to map to the unique name. This will also be used to map
the att... | [
"Update",
"the",
"attributes",
"cache",
"by",
"adding",
"a",
"mapping",
"of",
"the",
"unique",
"name",
"to",
"distinguished",
"name",
"and",
"mapping",
"the",
"distinguished",
"name",
"to",
"the",
"updated",
"attributes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L1073-L1095 |
68,361 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.updateAttributesCache | private void updateAttributesCache(String key, Attributes missAttrs, Attributes cachedAttrs, String[] missAttrIds) {
final String METHODNAME = "updateAttributesCache(key,missAttrs,cachedAttrs,missAttrIds)";
if (missAttrIds != null) {
boolean newattr = false; // differentiate between a new en... | java | private void updateAttributesCache(String key, Attributes missAttrs, Attributes cachedAttrs, String[] missAttrIds) {
final String METHODNAME = "updateAttributesCache(key,missAttrs,cachedAttrs,missAttrIds)";
if (missAttrIds != null) {
boolean newattr = false; // differentiate between a new en... | [
"private",
"void",
"updateAttributesCache",
"(",
"String",
"key",
",",
"Attributes",
"missAttrs",
",",
"Attributes",
"cachedAttrs",
",",
"String",
"[",
"]",
"missAttrIds",
")",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"updateAttributesCache(key,missAttrs,cachedAttrs... | Update the cached attributes for the specified key. Only attribute IDs that are in the
"missAttrIds" array will be added into the cached attributes.
@param key The key for the cached attributes. This is usually the distinguished name.
@param missAttrs The missing/new attributes.
@param cachedAttrs The cached attribute... | [
"Update",
"the",
"cached",
"attributes",
"for",
"the",
"specified",
"key",
".",
"Only",
"attribute",
"IDs",
"that",
"are",
"in",
"the",
"missAttrIds",
"array",
"will",
"be",
"added",
"into",
"the",
"cached",
"attributes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L1106-L1162 |
68,362 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.updateAttributesCache | private void updateAttributesCache(String key, Attributes missAttrs, Attributes cachedAttrs) {
final String METHODNAME = "updateAttributeCache(key,missAttrs,cachedAttrs)";
if (missAttrs.size() > 0) {
boolean newAttr = false; // differentiate between a new entry and an entry we'll update so w... | java | private void updateAttributesCache(String key, Attributes missAttrs, Attributes cachedAttrs) {
final String METHODNAME = "updateAttributeCache(key,missAttrs,cachedAttrs)";
if (missAttrs.size() > 0) {
boolean newAttr = false; // differentiate between a new entry and an entry we'll update so w... | [
"private",
"void",
"updateAttributesCache",
"(",
"String",
"key",
",",
"Attributes",
"missAttrs",
",",
"Attributes",
"cachedAttrs",
")",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"updateAttributeCache(key,missAttrs,cachedAttrs)\"",
";",
"if",
"(",
"missAttrs",
".",
... | Update the attributes cache for the specified key.
@param key The key for the cached attributes. This is usually the distinguished name.
@param missAttrs The missing/new attributes.
@param cachedAttrs The cached attributes. | [
"Update",
"the",
"attributes",
"cache",
"for",
"the",
"specified",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L1171-L1199 |
68,363 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.checkSearchCache | private NamingEnumeration<SearchResult> checkSearchCache(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws WIMException {
final String METHODNAME = "checkSearchCache";
NamingEnumeration<SearchResult> neu = null;
if (getSearchResultsCache() != null) {
St... | java | private NamingEnumeration<SearchResult> checkSearchCache(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws WIMException {
final String METHODNAME = "checkSearchCache";
NamingEnumeration<SearchResult> neu = null;
if (getSearchResultsCache() != null) {
St... | [
"private",
"NamingEnumeration",
"<",
"SearchResult",
">",
"checkSearchCache",
"(",
"String",
"name",
",",
"String",
"filterExpr",
",",
"Object",
"[",
"]",
"filterArgs",
",",
"SearchControls",
"cons",
")",
"throws",
"WIMException",
"{",
"final",
"String",
"METHODNA... | Check the search cache for previously performed searches. If the result is not cached,
query the LDAP server.
@param name The name of the context or object to search
@param filterExpr the filter expression used in the search.
@param filterArgs the filter arguments used in the search.
@param cons The search controls us... | [
"Check",
"the",
"search",
"cache",
"for",
"previously",
"performed",
"searches",
".",
"If",
"the",
"result",
"is",
"not",
"cached",
"query",
"the",
"LDAP",
"server",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L1233-L1262 |
68,364 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.updateSearchCache | @FFDCIgnore(NamingException.class)
private NamingEnumeration<SearchResult> updateSearchCache(String searchBase, String key, NamingEnumeration<SearchResult> neu,
String[] reqAttrIds) throws WIMSystemException {
final String METHODNAME = "updateSea... | java | @FFDCIgnore(NamingException.class)
private NamingEnumeration<SearchResult> updateSearchCache(String searchBase, String key, NamingEnumeration<SearchResult> neu,
String[] reqAttrIds) throws WIMSystemException {
final String METHODNAME = "updateSea... | [
"@",
"FFDCIgnore",
"(",
"NamingException",
".",
"class",
")",
"private",
"NamingEnumeration",
"<",
"SearchResult",
">",
"updateSearchCache",
"(",
"String",
"searchBase",
",",
"String",
"key",
",",
"NamingEnumeration",
"<",
"SearchResult",
">",
"neu",
",",
"String"... | Update the search cache with search results.
@param searchBase The base entry the search was made from.
@param key The key for the entry in the search cache.
@param neu The search results.
@param reqAttrIds The attribute IDs that were requested.
@return The {@link CachedNamingEnumeration} with the original search resu... | [
"Update",
"the",
"search",
"cache",
"with",
"search",
"results",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L1274-L1316 |
68,365 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.getDynamicGroups | public Map<String, LdapEntry> getDynamicGroups(String bases[], List<String> propNames, boolean getMbrshipAttr) throws WIMException {
Map<String, LdapEntry> dynaGrps = new HashMap<String, LdapEntry>();
String[] attrIds = iLdapConfigMgr.getAttributeNames(iLdapConfigMgr.getGroupTypes(), propNames, getMbrsh... | java | public Map<String, LdapEntry> getDynamicGroups(String bases[], List<String> propNames, boolean getMbrshipAttr) throws WIMException {
Map<String, LdapEntry> dynaGrps = new HashMap<String, LdapEntry>();
String[] attrIds = iLdapConfigMgr.getAttributeNames(iLdapConfigMgr.getGroupTypes(), propNames, getMbrsh... | [
"public",
"Map",
"<",
"String",
",",
"LdapEntry",
">",
"getDynamicGroups",
"(",
"String",
"bases",
"[",
"]",
",",
"List",
"<",
"String",
">",
"propNames",
",",
"boolean",
"getMbrshipAttr",
")",
"throws",
"WIMException",
"{",
"Map",
"<",
"String",
",",
"Lda... | Get dynamic groups.
@param bases Search bases.
@param propNames Properties to return.
@param getMbrshipAttr Whether to request the membership attribute.
@return Map of group distinguished names to {@link LdapEntry}.
@throws WIMException If there was an error resolving the dynamic groups from the LDAP server. | [
"Get",
"dynamic",
"groups",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L1647-L1676 |
68,366 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.isMemberInURLQuery | public boolean isMemberInURLQuery(LdapURL[] urls, String dn) throws WIMException {
boolean result = false;
String[] attrIds = {};
String rdn = LdapHelper.getRDN(dn);
if (urls != null) {
for (int i = 0; i < urls.length; i++) {
LdapURL ldapURL = urls[i];
... | java | public boolean isMemberInURLQuery(LdapURL[] urls, String dn) throws WIMException {
boolean result = false;
String[] attrIds = {};
String rdn = LdapHelper.getRDN(dn);
if (urls != null) {
for (int i = 0; i < urls.length; i++) {
LdapURL ldapURL = urls[i];
... | [
"public",
"boolean",
"isMemberInURLQuery",
"(",
"LdapURL",
"[",
"]",
"urls",
",",
"String",
"dn",
")",
"throws",
"WIMException",
"{",
"boolean",
"result",
"=",
"false",
";",
"String",
"[",
"]",
"attrIds",
"=",
"{",
"}",
";",
"String",
"rdn",
"=",
"LdapHe... | Determine whether the distinguished name is in the LDAP URL query.
@param urls The {@link LdapURL}s to query.
@param dn The distinguished name to check.
@return True if the distinguished name is resolved by one of the {@link LdapURL}s.
@throws WIMException If there were issues resolving any of the LDAP URLs. | [
"Determine",
"whether",
"the",
"distinguished",
"name",
"is",
"in",
"the",
"LDAP",
"URL",
"query",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L1686-L1736 |
68,367 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.searchByOperationalAttribute | public SearchResult searchByOperationalAttribute(String dn, String filter, List<String> inEntityTypes, List<String> propNames, String oprAttribute) throws WIMException {
String inEntityType = null;
List<String> supportedProps = propNames;
if (inEntityTypes != null && inEntityTypes.size() > 0) {
... | java | public SearchResult searchByOperationalAttribute(String dn, String filter, List<String> inEntityTypes, List<String> propNames, String oprAttribute) throws WIMException {
String inEntityType = null;
List<String> supportedProps = propNames;
if (inEntityTypes != null && inEntityTypes.size() > 0) {
... | [
"public",
"SearchResult",
"searchByOperationalAttribute",
"(",
"String",
"dn",
",",
"String",
"filter",
",",
"List",
"<",
"String",
">",
"inEntityTypes",
",",
"List",
"<",
"String",
">",
"propNames",
",",
"String",
"oprAttribute",
")",
"throws",
"WIMException",
... | Search using operational attribute specified in the parameter.
@param dn The DN to search on
@param filter The LDAP filter for the search.
@param inEntityTypes The entity types to search for.
@param propNames The property names to return.
@param oprAttribute The operational attribute.
@return The search results or nul... | [
"Search",
"using",
"operational",
"attribute",
"specified",
"in",
"the",
"parameter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L2066-L2094 |
68,368 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.getBinaryAttributes | private String getBinaryAttributes() {
// Add binary settings for all octet string attributes.
StringBuffer binaryAttrNamesBuffer = new StringBuffer();
// Check the ldap data type of the extId attribute.
Map<String, LdapAttribute> attrMap = iLdapConfigMgr.getAttributes();
for ... | java | private String getBinaryAttributes() {
// Add binary settings for all octet string attributes.
StringBuffer binaryAttrNamesBuffer = new StringBuffer();
// Check the ldap data type of the extId attribute.
Map<String, LdapAttribute> attrMap = iLdapConfigMgr.getAttributes();
for ... | [
"private",
"String",
"getBinaryAttributes",
"(",
")",
"{",
"// Add binary settings for all octet string attributes.",
"StringBuffer",
"binaryAttrNamesBuffer",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"// Check the ldap data type of the extId attribute.",
"Map",
"<",
"String",
... | Get the list of configure binary attributes.
@return A white-space delimited string of binary attribute names, suitable for use
configuring JNDI. | [
"Get",
"the",
"list",
"of",
"configure",
"binary",
"attributes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L2102-L2118 |
68,369 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.modifyAttributes | public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException, WIMException {
TimedDirContext ctx = iContextManager.getDirContext();
// checkWritePermission(ctx); TODO Why are we not checking for permission here?
try {
try {
ctx.modifyAttri... | java | public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException, WIMException {
TimedDirContext ctx = iContextManager.getDirContext();
// checkWritePermission(ctx); TODO Why are we not checking for permission here?
try {
try {
ctx.modifyAttri... | [
"public",
"void",
"modifyAttributes",
"(",
"String",
"name",
",",
"ModificationItem",
"[",
"]",
"mods",
")",
"throws",
"NamingException",
",",
"WIMException",
"{",
"TimedDirContext",
"ctx",
"=",
"iContextManager",
".",
"getDirContext",
"(",
")",
";",
"// checkWrit... | Modify the given LDAP name according to the specified modification items.
@param dn The distinguished name to modify attributes on.
@param mod_op The operation to perform.
@param mods The modification items.
@throws NamingException If there was an issue writing the new attribute values.
@throws WIMException If there w... | [
"Modify",
"the",
"given",
"LDAP",
"name",
"according",
"to",
"the",
"specified",
"modification",
"items",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L2131-L2152 |
68,370 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.modifyAttributes | public void modifyAttributes(String dn, int mod_op, Attributes attrs) throws NamingException, WIMException {
TimedDirContext ctx = iContextManager.getDirContext();
iContextManager.checkWritePermission(ctx);
try {
try {
ctx.modifyAttributes(new LdapName(dn), mod_op, at... | java | public void modifyAttributes(String dn, int mod_op, Attributes attrs) throws NamingException, WIMException {
TimedDirContext ctx = iContextManager.getDirContext();
iContextManager.checkWritePermission(ctx);
try {
try {
ctx.modifyAttributes(new LdapName(dn), mod_op, at... | [
"public",
"void",
"modifyAttributes",
"(",
"String",
"dn",
",",
"int",
"mod_op",
",",
"Attributes",
"attrs",
")",
"throws",
"NamingException",
",",
"WIMException",
"{",
"TimedDirContext",
"ctx",
"=",
"iContextManager",
".",
"getDirContext",
"(",
")",
";",
"iCont... | Modify the attributes for the specified distinguished name.
@param dn The distinguished name to modify attributes on.
@param mod_op The operation to perform.
@param attrs The attributes to modify.
@throws NamingException If there was an issue writing the new attribute values.
@throws WIMException If there was an issue... | [
"Modify",
"the",
"attributes",
"for",
"the",
"specified",
"distinguished",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L2165-L2188 |
68,371 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java | LdapConnection.rename | public void rename(String dn, String newDn) throws WIMException {
TimedDirContext ctx = iContextManager.getDirContext();
iContextManager.checkWritePermission(ctx);
try {
try {
ctx.rename(dn, newDn);
} catch (NamingException e) {
if (!Contex... | java | public void rename(String dn, String newDn) throws WIMException {
TimedDirContext ctx = iContextManager.getDirContext();
iContextManager.checkWritePermission(ctx);
try {
try {
ctx.rename(dn, newDn);
} catch (NamingException e) {
if (!Contex... | [
"public",
"void",
"rename",
"(",
"String",
"dn",
",",
"String",
"newDn",
")",
"throws",
"WIMException",
"{",
"TimedDirContext",
"ctx",
"=",
"iContextManager",
".",
"getDirContext",
"(",
")",
";",
"iContextManager",
".",
"checkWritePermission",
"(",
"ctx",
")",
... | Rename an entity.
@param dn The distinguished name to rename.
@param newDn The new distinguished name.
@throws WIMException If there was an issue getting or releasing a context, or the context is on a
fail-over server and writing to fail-over servers is prohibited, or the distinguished
name does not exist. | [
"Rename",
"an",
"entity",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConnection.java#L2199-L2218 |
68,372 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java | AbstractTagLibrary.addConverter | protected final void addConverter(String name, String converterId)
{
_factories.put(name, new ConverterHandlerFactory(converterId));
} | java | protected final void addConverter(String name, String converterId)
{
_factories.put(name, new ConverterHandlerFactory(converterId));
} | [
"protected",
"final",
"void",
"addConverter",
"(",
"String",
"name",
",",
"String",
"converterId",
")",
"{",
"_factories",
".",
"put",
"(",
"name",
",",
"new",
"ConverterHandlerFactory",
"(",
"converterId",
")",
")",
";",
"}"
] | Add a ConvertHandler for the specified converterId
@see javax.faces.view.facelets.ConverterHandler
@see javax.faces.application.Application#createConverter(java.lang.String)
@param name
name to use, "foo" would be <my:foo />
@param converterId
id to pass to Application instance | [
"Add",
"a",
"ConvertHandler",
"for",
"the",
"specified",
"converterId"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java#L197-L200 |
68,373 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java | AbstractTagLibrary.addConverter | protected final void addConverter(String name, String converterId, Class<? extends TagHandler> type)
{
_factories.put(name, new UserConverterHandlerFactory(converterId, type));
} | java | protected final void addConverter(String name, String converterId, Class<? extends TagHandler> type)
{
_factories.put(name, new UserConverterHandlerFactory(converterId, type));
} | [
"protected",
"final",
"void",
"addConverter",
"(",
"String",
"name",
",",
"String",
"converterId",
",",
"Class",
"<",
"?",
"extends",
"TagHandler",
">",
"type",
")",
"{",
"_factories",
".",
"put",
"(",
"name",
",",
"new",
"UserConverterHandlerFactory",
"(",
... | Add a ConvertHandler for the specified converterId of a TagHandler type
@see javax.faces.view.facelets.ConverterHandler
@see javax.faces.view.facelets.ConverterConfig
@see javax.faces.application.Application#createConverter(java.lang.String)
@param name
name to use, "foo" would be <my:foo />
@param converterId
id t... | [
"Add",
"a",
"ConvertHandler",
"for",
"the",
"specified",
"converterId",
"of",
"a",
"TagHandler",
"type"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java#L215-L218 |
68,374 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java | AbstractTagLibrary.addTagHandler | protected final void addTagHandler(String name, Class<? extends TagHandler> handlerType)
{
_factories.put(name, new HandlerFactory(handlerType));
} | java | protected final void addTagHandler(String name, Class<? extends TagHandler> handlerType)
{
_factories.put(name, new HandlerFactory(handlerType));
} | [
"protected",
"final",
"void",
"addTagHandler",
"(",
"String",
"name",
",",
"Class",
"<",
"?",
"extends",
"TagHandler",
">",
"handlerType",
")",
"{",
"_factories",
".",
"put",
"(",
"name",
",",
"new",
"HandlerFactory",
"(",
"handlerType",
")",
")",
";",
"}"... | Use the specified HandlerType in compiling Facelets. HandlerType must extend TagHandler.
@see TagHandler
@param name
name to use, "foo" would be <my:foo />
@param handlerType
must extend TagHandler | [
"Use",
"the",
"specified",
"HandlerType",
"in",
"compiling",
"Facelets",
".",
"HandlerType",
"must",
"extend",
"TagHandler",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java#L262-L265 |
68,375 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java | AbstractTagLibrary.addUserTag | protected final void addUserTag(String name, URL source)
{
if (_strictJsf2FaceletsCompatibility == null)
{
MyfacesConfig config = MyfacesConfig.getCurrentInstance(
FacesContext.getCurrentInstance().getExternalContext());
_strictJsf2FaceletsCompatibility =... | java | protected final void addUserTag(String name, URL source)
{
if (_strictJsf2FaceletsCompatibility == null)
{
MyfacesConfig config = MyfacesConfig.getCurrentInstance(
FacesContext.getCurrentInstance().getExternalContext());
_strictJsf2FaceletsCompatibility =... | [
"protected",
"final",
"void",
"addUserTag",
"(",
"String",
"name",
",",
"URL",
"source",
")",
"{",
"if",
"(",
"_strictJsf2FaceletsCompatibility",
"==",
"null",
")",
"{",
"MyfacesConfig",
"config",
"=",
"MyfacesConfig",
".",
"getCurrentInstance",
"(",
"FacesContext... | Add a UserTagHandler specified a the URL source.
@see UserTagHandler
@param name
name to use, "foo" would be <my:foo />
@param source
source where the Facelet (Tag) source is | [
"Add",
"a",
"UserTagHandler",
"specified",
"a",
"the",
"URL",
"source",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java#L276-L293 |
68,376 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.setUserRegistry | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(!(com.ibm.ws.security.registry.type=QuickStartSecurityRegistry))")
protected synchronized void setUserRegistry(ServiceReference<UserRegistry> ref) {
urs.add(ref);
unregisterQuickStartSecurityRegistry... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(!(com.ibm.ws.security.registry.type=QuickStartSecurityRegistry))")
protected synchronized void setUserRegistry(ServiceReference<UserRegistry> ref) {
urs.add(ref);
unregisterQuickStartSecurityRegistry... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
",",
"target",
"=",
"\"(!(com.ibm.ws.security.registry.type=QuickStartSecurityRegistry))\"",
")",
"protected",
"synchronized",
"void",
... | This method will only be called for UserRegistryConfigurations that are not
the one we have defined here.
@param ref | [
"This",
"method",
"will",
"only",
"be",
"called",
"for",
"UserRegistryConfigurations",
"that",
"are",
"not",
"the",
"one",
"we",
"have",
"defined",
"here",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L109-L114 |
68,377 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.setManagementRole | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE,
target = "(!(com.ibm.ws.management.security.role.name=QuickStartSecurityAdministratorRole))")
protected synchronized void setManagementRole(ServiceReference<ManagementRole> ref) {
managementRoles.add(ref... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE,
target = "(!(com.ibm.ws.management.security.role.name=QuickStartSecurityAdministratorRole))")
protected synchronized void setManagementRole(ServiceReference<ManagementRole> ref) {
managementRoles.add(ref... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
",",
"target",
"=",
"\"(!(com.ibm.ws.management.security.role.name=QuickStartSecurityAdministratorRole))\"",
")",
"protected",
"synchroni... | This method will only be called for ManagementRoles that are not
the one we have defined here.
@param ref | [
"This",
"method",
"will",
"only",
"be",
"called",
"for",
"ManagementRoles",
"that",
"are",
"not",
"the",
"one",
"we",
"have",
"defined",
"here",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L134-L140 |
68,378 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.modify | @Modified
protected synchronized void modify(QuickStartSecurityConfig config) {
this.config = config;
validateConfigurationProperties();
if (urConfigReg == null) {
registerQuickStartSecurityRegistryConfiguration();
} else {
updateQuickStartSecurityRegistryCo... | java | @Modified
protected synchronized void modify(QuickStartSecurityConfig config) {
this.config = config;
validateConfigurationProperties();
if (urConfigReg == null) {
registerQuickStartSecurityRegistryConfiguration();
} else {
updateQuickStartSecurityRegistryCo... | [
"@",
"Modified",
"protected",
"synchronized",
"void",
"modify",
"(",
"QuickStartSecurityConfig",
"config",
")",
"{",
"this",
".",
"config",
"=",
"config",
";",
"validateConfigurationProperties",
"(",
")",
";",
"if",
"(",
"urConfigReg",
"==",
"null",
")",
"{",
... | Push the new user and password into the registry's configuration. | [
"Push",
"the",
"new",
"user",
"and",
"password",
"into",
"the",
"registry",
"s",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L168-L182 |
68,379 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.isStringValueUndefined | @Trivial
private boolean isStringValueUndefined(Object str) {
if (str instanceof SerializableProtectedString) {
// Avoid constructing a String from a ProtectedString
char[] contents = ((SerializableProtectedString) str).getChars();
for (char ch : contents)
... | java | @Trivial
private boolean isStringValueUndefined(Object str) {
if (str instanceof SerializableProtectedString) {
// Avoid constructing a String from a ProtectedString
char[] contents = ((SerializableProtectedString) str).getChars();
for (char ch : contents)
... | [
"@",
"Trivial",
"private",
"boolean",
"isStringValueUndefined",
"(",
"Object",
"str",
")",
"{",
"if",
"(",
"str",
"instanceof",
"SerializableProtectedString",
")",
"{",
"// Avoid constructing a String from a ProtectedString",
"char",
"[",
"]",
"contents",
"=",
"(",
"(... | Check if the value is non-null, not empty, and not all white-space.
@return {@code false} if the string has characters, {@code true} otherwise. | [
"Check",
"if",
"the",
"value",
"is",
"non",
"-",
"null",
"not",
"empty",
"and",
"not",
"all",
"white",
"-",
"space",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L198-L211 |
68,380 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.buildUserRegistryConfigProps | private Dictionary<String, Object> buildUserRegistryConfigProps() {
Hashtable<String, Object> properties = new Hashtable<String, Object>();
properties.put("config.id", QUICK_START_SECURITY_REGISTRY_ID);
properties.put("id", QUICK_START_SECURITY_REGISTRY_ID);
properties.put(UserRegistrySe... | java | private Dictionary<String, Object> buildUserRegistryConfigProps() {
Hashtable<String, Object> properties = new Hashtable<String, Object>();
properties.put("config.id", QUICK_START_SECURITY_REGISTRY_ID);
properties.put("id", QUICK_START_SECURITY_REGISTRY_ID);
properties.put(UserRegistrySe... | [
"private",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"buildUserRegistryConfigProps",
"(",
")",
"{",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"properties",
"=",
"new",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"(",
")",
";",
"properties",
... | Build the UserRegistryConfiguration properties based on the current
user and password.
@return UserRegistryConfiguration properties | [
"Build",
"the",
"UserRegistryConfiguration",
"properties",
"based",
"on",
"the",
"current",
"user",
"and",
"password",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L257-L265 |
68,381 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.registerQuickStartSecurityRegistryConfiguration | private void registerQuickStartSecurityRegistryConfiguration() {
if (bc == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "BundleContext is null, we must be deactivated.");
}
return;
}
if (urConfigReg !=... | java | private void registerQuickStartSecurityRegistryConfiguration() {
if (bc == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "BundleContext is null, we must be deactivated.");
}
return;
}
if (urConfigReg !=... | [
"private",
"void",
"registerQuickStartSecurityRegistryConfiguration",
"(",
")",
"{",
"if",
"(",
"bc",
"==",
"null",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",... | Create, register and return the ServiceRegistration for the quick start
security UserRegistryConfiguration.
@param bc | [
"Create",
"register",
"and",
"return",
"the",
"ServiceRegistration",
"for",
"the",
"quick",
"start",
"security",
"UserRegistryConfiguration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L273-L310 |
68,382 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.unregisterQuickStartSecurityRegistryConfiguration | private void unregisterQuickStartSecurityRegistryConfiguration() {
if (urConfigReg != null) {
urConfigReg.unregister();
urConfigReg = null;
quickStartRegistry = null;
} else {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | private void unregisterQuickStartSecurityRegistryConfiguration() {
if (urConfigReg != null) {
urConfigReg.unregister();
urConfigReg = null;
quickStartRegistry = null;
} else {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | [
"private",
"void",
"unregisterQuickStartSecurityRegistryConfiguration",
"(",
")",
"{",
"if",
"(",
"urConfigReg",
"!=",
"null",
")",
"{",
"urConfigReg",
".",
"unregister",
"(",
")",
";",
"urConfigReg",
"=",
"null",
";",
"quickStartRegistry",
"=",
"null",
";",
"}"... | Unregister the quick start security security UserRegistryConfiguration. | [
"Unregister",
"the",
"quick",
"start",
"security",
"security",
"UserRegistryConfiguration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L344-L354 |
68,383 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java | QuickStartSecurity.registerQuickStartSecurityAdministratorRole | private void registerQuickStartSecurityAdministratorRole() {
if (bc == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "BundleContext is null, we must be deactivated.");
}
return;
}
if (managementRoleReg ... | java | private void registerQuickStartSecurityAdministratorRole() {
if (bc == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "BundleContext is null, we must be deactivated.");
}
return;
}
if (managementRoleReg ... | [
"private",
"void",
"registerQuickStartSecurityAdministratorRole",
"(",
")",
"{",
"if",
"(",
"bc",
"==",
"null",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"... | Register the quick start security management role. | [
"Register",
"the",
"quick",
"start",
"security",
"management",
"role",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.quickstart/src/com/ibm/ws/security/quickstart/internal/QuickStartSecurity.java#L359-L399 |
68,384 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/DeferrableScheduledExecutorImpl.java | DeferrableScheduledExecutorImpl.roundUpDelay | static long roundUpDelay(long delay, TimeUnit unit, long now) {
if (delay < 0) {
// Negative is treated as 0.
delay = 0;
}
long target = now + unit.toMillis(delay);
if (target < now) {
// We can't add the delay to the current time without overflow.
... | java | static long roundUpDelay(long delay, TimeUnit unit, long now) {
if (delay < 0) {
// Negative is treated as 0.
delay = 0;
}
long target = now + unit.toMillis(delay);
if (target < now) {
// We can't add the delay to the current time without overflow.
... | [
"static",
"long",
"roundUpDelay",
"(",
"long",
"delay",
",",
"TimeUnit",
"unit",
",",
"long",
"now",
")",
"{",
"if",
"(",
"delay",
"<",
"0",
")",
"{",
"// Negative is treated as 0.",
"delay",
"=",
"0",
";",
"}",
"long",
"target",
"=",
"now",
"+",
"unit... | Round up delays so that all tasks fire at approximately with approximately the same 15s period. | [
"Round",
"up",
"delays",
"so",
"that",
"all",
"tasks",
"fire",
"at",
"approximately",
"with",
"approximately",
"the",
"same",
"15s",
"period",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/DeferrableScheduledExecutorImpl.java#L32-L60 |
68,385 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/IOUtils.java | IOUtils.copyStream | public static void copyStream(InputStream from, OutputStream to) throws IOException {
byte buffer[] = new byte[2048];
int bytesRead;
while ((bytesRead = from.read(buffer)) != -1) {
to.write(buffer, 0, bytesRead);
}
from.close();
} | java | public static void copyStream(InputStream from, OutputStream to) throws IOException {
byte buffer[] = new byte[2048];
int bytesRead;
while ((bytesRead = from.read(buffer)) != -1) {
to.write(buffer, 0, bytesRead);
}
from.close();
} | [
"public",
"static",
"void",
"copyStream",
"(",
"InputStream",
"from",
",",
"OutputStream",
"to",
")",
"throws",
"IOException",
"{",
"byte",
"buffer",
"[",
"]",
"=",
"new",
"byte",
"[",
"2048",
"]",
";",
"int",
"bytesRead",
";",
"while",
"(",
"(",
"bytesR... | Copy the given InputStream to the given OutputStream.
Note: the InputStream is closed when the copy is complete. The OutputStream
is left open. | [
"Copy",
"the",
"given",
"InputStream",
"to",
"the",
"given",
"OutputStream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/IOUtils.java#L27-L34 |
68,386 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/IOUtils.java | IOUtils.copyReader | public static void copyReader(Reader from, Writer to) throws IOException {
char buffer[] = new char[2048];
int charsRead;
while ((charsRead = from.read(buffer)) != -1) {
to.write(buffer, 0, charsRead);
}
from.close();
to.flush();
} | java | public static void copyReader(Reader from, Writer to) throws IOException {
char buffer[] = new char[2048];
int charsRead;
while ((charsRead = from.read(buffer)) != -1) {
to.write(buffer, 0, charsRead);
}
from.close();
to.flush();
} | [
"public",
"static",
"void",
"copyReader",
"(",
"Reader",
"from",
",",
"Writer",
"to",
")",
"throws",
"IOException",
"{",
"char",
"buffer",
"[",
"]",
"=",
"new",
"char",
"[",
"2048",
"]",
";",
"int",
"charsRead",
";",
"while",
"(",
"(",
"charsRead",
"="... | Copy the given Reader to the given Writer.
This method is basically the same as copyStream; however Reader and Writer
objects are cognizant of character encoding, whereas InputStream and OutputStreams
objects deal only with bytes.
Note: the Reader is closed when the copy is complete. The Writer
is left open. The Wr... | [
"Copy",
"the",
"given",
"Reader",
"to",
"the",
"given",
"Writer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/IOUtils.java#L46-L55 |
68,387 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/ResultHandler.java | ResultHandler.activate | public void activate() {
// if no handlers are currently running, start one now
if (this.numHandlersInFlight.getInt() == 0) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Activating result handler: " + this.completionPort);
}
... | java | public void activate() {
// if no handlers are currently running, start one now
if (this.numHandlersInFlight.getInt() == 0) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Activating result handler: " + this.completionPort);
}
... | [
"public",
"void",
"activate",
"(",
")",
"{",
"// if no handlers are currently running, start one now",
"if",
"(",
"this",
".",
"numHandlersInFlight",
".",
"getInt",
"(",
")",
"==",
"0",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
... | Activate the result handler when the channel starts. | [
"Activate",
"the",
"result",
"handler",
"when",
"the",
"channel",
"starts",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/ResultHandler.java#L89-L97 |
68,388 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionHandle.java | ConnectionHandle.setConnectionHandle | public static void setConnectionHandle(VirtualConnection vc, ConnectionHandle handle) {
if (vc == null || handle == null) {
return;
}
Map<Object, Object> map = vc.getStateMap();
// set connection handle into VC
Object vcLock = vc.getLockObject();
synchronized... | java | public static void setConnectionHandle(VirtualConnection vc, ConnectionHandle handle) {
if (vc == null || handle == null) {
return;
}
Map<Object, Object> map = vc.getStateMap();
// set connection handle into VC
Object vcLock = vc.getLockObject();
synchronized... | [
"public",
"static",
"void",
"setConnectionHandle",
"(",
"VirtualConnection",
"vc",
",",
"ConnectionHandle",
"handle",
")",
"{",
"if",
"(",
"vc",
"==",
"null",
"||",
"handle",
"==",
"null",
")",
"{",
"return",
";",
"}",
"Map",
"<",
"Object",
",",
"Object",
... | Set the connection handle on the virtual connection.
@param vc
VirtualConnection containing simple state for this connection
@param handle
ConnectionHandle for the VirtualConnection | [
"Set",
"the",
"connection",
"handle",
"on",
"the",
"virtual",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionHandle.java#L107-L126 |
68,389 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionHandle.java | ConnectionHandle.setConnectionType | protected void setConnectionType(VirtualConnection vc) {
if (this.myType == 0 || vc == null) {
ConnectionType newType = ConnectionType.getVCConnectionType(vc);
this.myType = (newType == null) ? 0 : newType.export();
}
} | java | protected void setConnectionType(VirtualConnection vc) {
if (this.myType == 0 || vc == null) {
ConnectionType newType = ConnectionType.getVCConnectionType(vc);
this.myType = (newType == null) ? 0 : newType.export();
}
} | [
"protected",
"void",
"setConnectionType",
"(",
"VirtualConnection",
"vc",
")",
"{",
"if",
"(",
"this",
".",
"myType",
"==",
"0",
"||",
"vc",
"==",
"null",
")",
"{",
"ConnectionType",
"newType",
"=",
"ConnectionType",
".",
"getVCConnectionType",
"(",
"vc",
")... | Set ConnectionType based on the input virtual connection.
@param vc | [
"Set",
"ConnectionType",
"based",
"on",
"the",
"input",
"virtual",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionHandle.java#L189-L195 |
68,390 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/FFDCFilter.java | FFDCFilter.processException | public static void processException(Throwable th, String sourceId, String probeId, Object callerThis) {
FFDCConfigurator.getDelegate().processException(th, sourceId, probeId, callerThis);
} | java | public static void processException(Throwable th, String sourceId, String probeId, Object callerThis) {
FFDCConfigurator.getDelegate().processException(th, sourceId, probeId, callerThis);
} | [
"public",
"static",
"void",
"processException",
"(",
"Throwable",
"th",
",",
"String",
"sourceId",
",",
"String",
"probeId",
",",
"Object",
"callerThis",
")",
"{",
"FFDCConfigurator",
".",
"getDelegate",
"(",
")",
".",
"processException",
"(",
"th",
",",
"sour... | Write a first failure data capture record for the provided throwable
@param th
The throwable
@param sourceId
An identifier for the source of this record, for example the package and class name
@param probeId
A unique identifier within the source of this record, for example the source file line number
@param callerThis... | [
"Write",
"a",
"first",
"failure",
"data",
"capture",
"record",
"for",
"the",
"provided",
"throwable"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/FFDCFilter.java#L59-L61 |
68,391 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/RESTMBeanServerConnection.java | RESTMBeanServerConnection.close | void close() {
if (logger.isLoggable(Level.FINER)) {
logger.logp(Level.FINER, logger.getName(), "close", "Close called for " + RESTClientMessagesUtil.getObjID(this) + " within connection: "
+ connector.getConnectionId());
}
... | java | void close() {
if (logger.isLoggable(Level.FINER)) {
logger.logp(Level.FINER, logger.getName(), "close", "Close called for " + RESTClientMessagesUtil.getObjID(this) + " within connection: "
+ connector.getConnectionId());
}
... | [
"void",
"close",
"(",
")",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINER",
")",
")",
"{",
"logger",
".",
"logp",
"(",
"Level",
".",
"FINER",
",",
"logger",
".",
"getName",
"(",
")",
",",
"\"close\"",
",",
"\"Close called for ... | do the proper cleaning procedures. | [
"do",
"the",
"proper",
"cleaning",
"procedures",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/RESTMBeanServerConnection.java#L1778-L1796 |
68,392 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.getArchiveFile | @Trivial
private File getArchiveFile() {
String methodName = "getArchiveFile";
if ( archiveFileLock != null ) {
synchronized ( archiveFileLock ) {
if ( (archiveFile == null) && !archiveFileFailed ) {
try {
archiveFile = extract... | java | @Trivial
private File getArchiveFile() {
String methodName = "getArchiveFile";
if ( archiveFileLock != null ) {
synchronized ( archiveFileLock ) {
if ( (archiveFile == null) && !archiveFileFailed ) {
try {
archiveFile = extract... | [
"@",
"Trivial",
"private",
"File",
"getArchiveFile",
"(",
")",
"{",
"String",
"methodName",
"=",
"\"getArchiveFile\"",
";",
"if",
"(",
"archiveFileLock",
"!=",
"null",
")",
"{",
"synchronized",
"(",
"archiveFileLock",
")",
"{",
"if",
"(",
"(",
"archiveFile",
... | Answer the archive file. Extract it if necessary. Answer null
if extraction fails.
If this container was created as a root-of-roots container, the archive
will already be set.
Otherwise, the container is a nested root container, and the archive may
not have not yet been set. In that case, extract the archive, then... | [
"Answer",
"the",
"archive",
"file",
".",
"Extract",
"it",
"if",
"necessary",
".",
"Answer",
"null",
"if",
"extraction",
"fails",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L599-L629 |
68,393 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.getArchiveFilePath | private String getArchiveFilePath() {
if ( archiveFileLock == null ) {
return archiveFilePath;
} else {
synchronized( archiveFileLock ) {
@SuppressWarnings("unused")
File useArchiveFile = getArchiveFile();
return archiveFilePath;
... | java | private String getArchiveFilePath() {
if ( archiveFileLock == null ) {
return archiveFilePath;
} else {
synchronized( archiveFileLock ) {
@SuppressWarnings("unused")
File useArchiveFile = getArchiveFile();
return archiveFilePath;
... | [
"private",
"String",
"getArchiveFilePath",
"(",
")",
"{",
"if",
"(",
"archiveFileLock",
"==",
"null",
")",
"{",
"return",
"archiveFilePath",
";",
"}",
"else",
"{",
"synchronized",
"(",
"archiveFileLock",
")",
"{",
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")... | Answer the absolute path to the archive file. Do an extraction if this
is a nested archive and the file is not yet extracted. Answer null
if extraction fails.
@return The absolute path to the archive file. | [
"Answer",
"the",
"absolute",
"path",
"to",
"the",
"archive",
"file",
".",
"Do",
"an",
"extraction",
"if",
"this",
"is",
"a",
"nested",
"archive",
"and",
"the",
"file",
"is",
"not",
"yet",
"extracted",
".",
"Answer",
"null",
"if",
"extraction",
"fails",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L638-L648 |
68,394 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.getZipFileHandle | ZipFileHandle getZipFileHandle() throws IOException {
synchronized( zipFileHandleLock ) {
if ( zipFileHandleFailed ) {
return null;
} else if ( zipFileHandle != null ) {
return zipFileHandle;
}
File useArchiveFile = getArchiveFile(... | java | ZipFileHandle getZipFileHandle() throws IOException {
synchronized( zipFileHandleLock ) {
if ( zipFileHandleFailed ) {
return null;
} else if ( zipFileHandle != null ) {
return zipFileHandle;
}
File useArchiveFile = getArchiveFile(... | [
"ZipFileHandle",
"getZipFileHandle",
"(",
")",
"throws",
"IOException",
"{",
"synchronized",
"(",
"zipFileHandleLock",
")",
"{",
"if",
"(",
"zipFileHandleFailed",
")",
"{",
"return",
"null",
";",
"}",
"else",
"if",
"(",
"zipFileHandle",
"!=",
"null",
")",
"{",... | Answer the handle to the archive file of this container.
@return The zip file handle of this container.
@throws IOException Thrown if the zip file handle could not be
obtained.
TODO: That the zip file container retains a reference to its
handle is a problem, as the zip file handle cache has
a maximum size. Zip file... | [
"Answer",
"the",
"handle",
"to",
"the",
"archive",
"file",
"of",
"this",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L730-L753 |
68,395 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.createEntry | @Trivial
protected ZipFileEntry createEntry(String entryName, String a_entryPath) {
ZipEntryData[] useZipEntries = getZipEntryData();
if ( useZipEntries.length == 0 ) {
return null;
}
String r_entryPath = a_entryPath.substring(1);
int location = locatePath(r_entr... | java | @Trivial
protected ZipFileEntry createEntry(String entryName, String a_entryPath) {
ZipEntryData[] useZipEntries = getZipEntryData();
if ( useZipEntries.length == 0 ) {
return null;
}
String r_entryPath = a_entryPath.substring(1);
int location = locatePath(r_entr... | [
"@",
"Trivial",
"protected",
"ZipFileEntry",
"createEntry",
"(",
"String",
"entryName",
",",
"String",
"a_entryPath",
")",
"{",
"ZipEntryData",
"[",
"]",
"useZipEntries",
"=",
"getZipEntryData",
"(",
")",
";",
"if",
"(",
"useZipEntries",
".",
"length",
"==",
"... | Answer the zip entry for the zip file entry at the specified path.
The zip file entry may be virtual.
@param entryName The simple name of the entry.
@param a_entryPath The absolute path of the entry.
@return The zip entry for the zip file entry at the specified path. | [
"Answer",
"the",
"zip",
"entry",
"for",
"the",
"zip",
"file",
"entry",
"at",
"the",
"specified",
"path",
".",
"The",
"zip",
"file",
"entry",
"may",
"be",
"virtual",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L1106-L1128 |
68,396 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.createEntryUri | URI createEntryUri(String r_entryPath, File useArchiveFile) {
URI archiveUri = getURI(useArchiveFile);
if ( archiveUri == null ) {
return null;
}
if ( r_entryPath.isEmpty() ) {
return null;
}
// URLs for jar/zip data now use wsjar to avoid lockin... | java | URI createEntryUri(String r_entryPath, File useArchiveFile) {
URI archiveUri = getURI(useArchiveFile);
if ( archiveUri == null ) {
return null;
}
if ( r_entryPath.isEmpty() ) {
return null;
}
// URLs for jar/zip data now use wsjar to avoid lockin... | [
"URI",
"createEntryUri",
"(",
"String",
"r_entryPath",
",",
"File",
"useArchiveFile",
")",
"{",
"URI",
"archiveUri",
"=",
"getURI",
"(",
"useArchiveFile",
")",
";",
"if",
"(",
"archiveUri",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"... | Create and return a URI for an entry of an archive.
Usually, "wsjar" is used as the protocol:
<code>wsjar:<archiveUri>!/<entryPath></code>
Optionally, the protocol can be changed to "jar":
<code>jar:<archiveUri>!/<entryPath></code>
@param absPath The path to the entry.
@param useArchiveFile... | [
"Create",
"and",
"return",
"a",
"URI",
"for",
"an",
"entry",
"of",
"an",
"archive",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L1299-L1329 |
68,397 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.getURI | @Trivial
private static URI getURI(final File file) {
return AccessController.doPrivileged( new PrivilegedAction<URI>() {
@Override
public URI run() {
return file.toURI();
}
} );
} | java | @Trivial
private static URI getURI(final File file) {
return AccessController.doPrivileged( new PrivilegedAction<URI>() {
@Override
public URI run() {
return file.toURI();
}
} );
} | [
"@",
"Trivial",
"private",
"static",
"URI",
"getURI",
"(",
"final",
"File",
"file",
")",
"{",
"return",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"URI",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"URI",
"run",
"(",
... | File utility ... | [
"File",
"utility",
"..."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L1342-L1350 |
68,398 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.placeExtractionGuard | private ExtractionGuard placeExtractionGuard(String path) {
boolean isPrimary;
CountDownLatch completionLatch;
synchronized( extractionsLock ) {
completionLatch = extractionLocks.get(path);
if ( completionLatch != null ) {
isPrimary = false;
... | java | private ExtractionGuard placeExtractionGuard(String path) {
boolean isPrimary;
CountDownLatch completionLatch;
synchronized( extractionsLock ) {
completionLatch = extractionLocks.get(path);
if ( completionLatch != null ) {
isPrimary = false;
... | [
"private",
"ExtractionGuard",
"placeExtractionGuard",
"(",
"String",
"path",
")",
"{",
"boolean",
"isPrimary",
";",
"CountDownLatch",
"completionLatch",
";",
"synchronized",
"(",
"extractionsLock",
")",
"{",
"completionLatch",
"=",
"extractionLocks",
".",
"get",
"(",
... | Make sure a completion latch exists for a specified path.
Create and store one if necessary.
Answer the completion latch encapsulated in an extraction latch,
which brings together the completion latch with the path and
with a setting of whether the extraction is a primary (doing
the extraction) or secondary (waiting ... | [
"Make",
"sure",
"a",
"completion",
"latch",
"exists",
"for",
"a",
"specified",
"path",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L1401-L1420 |
68,399 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java | ZipFileContainer.releaseExtractionGuard | private void releaseExtractionGuard(ExtractionGuard extractionLatch) {
synchronized( extractionsLock ) {
extractionLocks.remove( extractionLatch.path );
}
extractionLatch.completionLatch.countDown();
} | java | private void releaseExtractionGuard(ExtractionGuard extractionLatch) {
synchronized( extractionsLock ) {
extractionLocks.remove( extractionLatch.path );
}
extractionLatch.completionLatch.countDown();
} | [
"private",
"void",
"releaseExtractionGuard",
"(",
"ExtractionGuard",
"extractionLatch",
")",
"{",
"synchronized",
"(",
"extractionsLock",
")",
"{",
"extractionLocks",
".",
"remove",
"(",
"extractionLatch",
".",
"path",
")",
";",
"}",
"extractionLatch",
".",
"complet... | unblocking secondary extractions. | [
"unblocking",
"secondary",
"extractions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainer.java#L1425-L1430 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.