code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
Object insertByLeftShift(
int ix,
Object new1)
{
Object old1 = leftMostKey();
leftShift(ix);
_nodeKey[ix] = new1;
if (midPoint() > rightMostIndex())
_nodeKey[midPoint()] = rightMostKey();
return old1;
} | java |
private void leftShift(
int ix)
{
for (int j = 0; j < ix; j++)
_nodeKey[j] = _nodeKey[j+1];
} | java |
Object insertByRightShift(
int ix,
Object new1)
{
Object old1 = null;
if (isFull())
{
old1 = rightMostKey();
rightMove(ix+1);
_nodeKey[ix+1] = new1;
}
else
{
rightShift(ix+1);
_nodeKey[ix+1] = new1;
_populat... | java |
Object addRightMostKey(
Object new1)
{
Object old1 = null;
if (isFull()) /* Node is currently full */
{ /* We will overlay right-most key */
old1 = rightMostKey();
_nodeKey[rightMostIndex()] = new1;
}... | java |
void fillFromRight()
{
int gapWid = width() - population();
int gidx = population();
GBSNode p = rightChild();
for (int j = 0; j < gapWid; j++)
_nodeKey[j+gidx] = p._nodeKey[j];
int delta = gapWid;
if (p._population < delta)
delta = p._population;
_population += delta;
p.... | java |
GBSNode rightMostChild()
{
GBSNode q = this;
GBSNode p = rightChild();
while (p != null)
{
q = p;
p = p.rightChild();
}
return q;
} | java |
private void rightShift(
int ix)
{
for (int j = rightMostIndex(); j >= ix; j--)
_nodeKey[j+1] = _nodeKey[j];
} | java |
private void rightMove(
int ix)
{
for (int j = rightMostIndex()-1; j >= ix; j--)
_nodeKey[j+1] = _nodeKey[j];
} | java |
void overlayLeftShift(
int ix)
{
for (int j = ix; j < rightMostIndex(); j++)
_nodeKey[j] = _nodeKey[j+1];
} | java |
private void overlayRightShift(
int ix)
{
for (int j = ix; j > 0; j--)
_nodeKey[j] = _nodeKey[j-1];
} | java |
GBSNode lowerPredecessor(
NodeStack stack)
{
GBSNode r = leftChild();
GBSNode lastr = r;
if (r != null)
stack.push(NodeStack.PROCESS_CURRENT, this);
while (r != null) /* Find right-most child of left child */
{
if (r.rightChild() != null)
stack.push... | java |
public boolean validate()
{
boolean correct = true;
if (population() > 1)
{
java.util.Comparator comp = index().insertComparator();
int xcc = 0;
for (int i = 0; i < population()-1; i++)
{
xcc = comp.compare(_nodeKey[i], _nodeKey[i+1]);
if ( !(xcc < 0) )
{
... | java |
@Override
public Set<String> getExtensionClasses() {
Set<String> serviceClazzes = new HashSet<>();
if (getType() == ArchiveType.WEB_MODULE) {
Resource webInfClassesMetaInfServicesEntry = getResource(CDIUtils.WEB_INF_CLASSES_META_INF_SERVICES_CDI_EXTENSION);
serviceClazzes.a... | java |
public BeanDiscoveryMode getBeanDiscoveryMode(CDIRuntime cdiRuntime, BeansXml beansXml) {
BeanDiscoveryMode mode = BeanDiscoveryMode.ANNOTATED;
if (beansXml != null) {
mode = beansXml.getBeanDiscoveryMode();
} else if (cdiRuntime.isImplicitBeanArchivesScanningDisabled(this)) {
... | java |
@AfterClass
public static void teardownClass() throws Exception {
try {
if (libertyServer != null) {
libertyServer.stopServer("CWIML4537E");
}
} finally {
if (ds != null) {
ds.shutDown(true);
}
}
libertyS... | java |
private static void setupLibertyServer() throws Exception {
/*
* Add LDAP variables to bootstrap properties file
*/
LDAPUtils.addLDAPVariables(libertyServer);
Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)");
libertyServer.cop... | java |
private static void setupldapServer() throws Exception {
ds = new InMemoryLDAPServer(SUB_DN);
Entry entry = new Entry(SUB_DN);
entry.addAttribute("objectclass", "top");
entry.addAttribute("objectclass", "domain");
ds.add(entry);
/*
* Add the partition entries.
... | java |
private Object syncGetValueFromBucket(FastSyncHashBucket hb, int key, boolean remove) {
FastSyncHashEntry e = null;
FastSyncHashEntry last = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "syncGetValueFromBucket: key, remove " + key + " " + rem... | java |
public Object put(int key, Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "put");
}
if (value == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "value == null");
... | java |
private Object syncPutIntoBucket(FastSyncHashBucket hb, FastSyncHashEntry newEntry) {
FastSyncHashEntry e = null;
FastSyncHashEntry last = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "syncPutIntoBucket");
}
synchronized (hb) {... | java |
public Object[] getAllEntryValues() {
List<Object> values = new ArrayList<Object>();
FastSyncHashBucket hb = null;
FastSyncHashEntry e = null;
for (int i = 0; i < xVar; i++) {
for (int j = 0; j < yVar; j++) {
hb = mainTable[i][j];
synchronized... | java |
void removeSession(JmsSessionImpl sess) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeSession", sess);
synchronized (stateLock) {
// Remove the Session
// Note that this is a synchronized collection.
boole... | java |
protected int getState() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getState");
int tempState;
synchronized (stateLock) {
tempState = state;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
protected void setState(int newState) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setState", newState);
synchronized (stateLock) {
if ((newState == JmsInternalConstants.CLOSED)
|| (newState == JmsInternalConstants.STO... | java |
protected void checkClosed() throws JMSException {
if (getState() == CLOSED) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(this, tc, "This Connection is closed.");
throw (javax.jms.IllegalStateException) JmsErrorUtils.newThrowable(javax.jm... | java |
protected void fixClientID() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "fixClientID");
synchronized (stateLock) {
clientIDFixed = true;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
void unfixClientID() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "unfixClientID");
synchronized (stateLock) {
clientIDFixed = false;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr... | java |
protected JmsJcaSession createJcaSession(boolean transacted) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createJcaSession", transacted);
JmsJcaSession jcaSess = null;
// If we have a JCA connection, then make a JCA se... | java |
protected void addTemporaryDestination(JmsTemporaryDestinationInternal tempDest) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "addTemporaryDestination", System.identityHashCode(tempDest));
synchronized (temporaryDestinations) { // synchronize agai... | java |
protected void removeTemporaryDestination(JmsTemporaryDestinationInternal tempDest) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeTemporaryDestination", System.identityHashCode(tempDest));
synchronized (temporaryDestinations) { // synchroniz... | java |
public OrderingContext allocateOrderingContext() throws SIConnectionDroppedException, SIConnectionUnavailableException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "allocateOrderingContext");
// Synchronize on the state lock, and either re-use an existi... | 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... | 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 =... | 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... | java |
public void initializeForAroundConstruct(ManagedObjectContext managedObjectContext,
Object[] interceptors, InterceptorProxy[] proxies) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "initializeForAroundConstruct : context ... | 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... | 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... | java |
public void doLifeCycle(InterceptorProxy[] proxies, EJBModuleMetaDataImpl mmd) // F743-14982
{
ivMethod = null;
ivParameters = null; // d367572.8
ivInterceptorProxies = proxies;
ivNumberOfInterceptors = ivInterceptorProxies.length;
if (TraceComponent.isAnyTracingEnabled() && ... | 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... | 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(... | 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) {
... | java |
@Override
@FFDCIgnore(Exception.class)
public Subject getUnauthenticatedSubject() {
if (unauthenticatedSubject == null) {
CredentialsService cs = credentialsServiceRef.getService();
String unauthenticatedUserid = cs.getUnauthenticatedUserid();
try {
Su... | 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... | 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... | 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... | java |
public X509KeyManager getX509KeyManager() {
if (customKM != null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getX509KeyManager -> " + customKM.getClass().getName());
return customKM;
}
if (TraceComponent.isAnyTracingEn... | java |
protected static void getAlpnResult(SSLEngine engine, SSLConnectionLink link) {
alpnNegotiator.tryToRemoveAlpnNegotiator(link.getAlpnNegotiator(), engine, link);
} | java |
void metadataProcessingInitialize(ComponentNameSpaceConfiguration nameSpaceConfig)
{
ivContext = (InjectionProcessorContext) nameSpaceConfig.getInjectionProcessorContext();
ivNameSpaceConfig = nameSpaceConfig;
// Following must be available after ivContext and ivNameSpaceConfig are cleared
... | java |
protected void mergeError(Object oldValue,
Object newValue,
boolean xml,
String elementName,
boolean property,
String key) throws InjectionConfigurationException {
... | java |
protected Boolean mergeAnnotationBoolean(Boolean oldValue,
boolean oldValueXML,
boolean newValue,
String elementName,
boolean defaultValue) ... | java |
protected Integer mergeAnnotationInteger(Integer oldValue,
boolean oldValueXML,
int newValue,
String elementName,
int defaultValue,
... | java |
protected <T> T mergeAnnotationValue(T oldValue,
boolean oldValueXML,
T newValue,
String elementName,
T defaultValue) throws InjectionConfigurationException... | java |
protected <T> T mergeXMLValue(T oldValue,
T newValue,
String elementName,
String key,
Map<T, String> valueNames) throws InjectionConfigurationException {
if (newValue == null) ... | java |
protected Map<String, String> mergeXMLProperties(Map<String, String> oldProperties,
Set<String> oldXMLProperties,
List<Property> properties) throws InjectionConfigurationException {
if (!properties.isEmpty(... | 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 {
... | 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;
... | 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(... | java |
public void setReferenceObject(Reference bindingObject,
Class<? extends ObjectFactory> objectFactory)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
T... | java |
protected Object getInjectionObjectInstance(Object targetObject,
InjectionTargetContext targetContext)
throws Exception
{
ObjectFactory objectFactory = ivObjectFactory; // volatile-read
InjectionObjectFactory injObjFactory = ivInjec... | 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... | 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... | 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... | 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... | java |
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 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 |
@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 |
@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 |
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 |
synchronized void setProperties(Map<Object, Object> m) throws ChannelFactoryPropertyIgnoredException {
this.myProperties = m;
if (cf != null) {
cf.updateProperties(m);
}
} | 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... | java |
synchronized void setChannelFactory(ChannelFactory factory) throws ChannelFactoryException {
if (factory != null && cf != null) {
throw new ChannelFactoryException("ChannelFactory already exists");
}
this.cf = factory;
} | java |
public void dissociate() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "dissociate");
}
if (WSSecurityHelper.isServerSecurityEnabled()) {
J2CSecurityHelper.removeRunAsSubject();
}
if (TraceComponent.isAnyTracingEnabled()... | java |
public static void validateStatusAtInstanceRestart(long jobInstanceId, Properties restartJobParameters) throws JobRestartException, JobExecutionAlreadyCompleteException {
IPersistenceManagerService iPers = ServicesManagerStaticAnchor.getServicesManager().getPersistenceManagerService();
WSJobInstance jo... | 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... | 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");
}
... | java |
private UserRegistry getActiveUserRegistry() throws WSSecurityException {
final String METHOD = "getUserRegistry";
UserRegistry activeUserRegistry = null;
try {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, METHOD + " securityServiceR... | 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... | 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 " +
... | 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... | 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... | 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... | java |
public NameParser getNameParser() throws WIMException {
if (iNameParser == null) {
TimedDirContext ctx = iContextManager.getDirContext();
try {
try {
iNameParser = ctx.getNameParser("");
} catch (NamingException e) {
... | java |
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 createSearchResultsCache() {
final String METHODNAME = "createSearchResultsCache";
if (iSearchResultsCacheEnabled) {
if (FactoryManager.getCacheUtil().isCacheAvailable()) {
iSearchResultsCache = FactoryManager.getCacheUtil().initialize("SearchResultsCache", iSea... | java |
private void createAttributesCache() {
final String METHODNAME = "createAttributesCache";
if (iAttrsCacheEnabled) {
if (FactoryManager.getCacheUtil().isCacheAvailable()) {
iAttrsCache = FactoryManager.getCacheUtil().initialize("AttributesCache", iAttrsCacheSize, iAttrsCacheS... | 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));
}
... | 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(),
... | 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... | 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... | 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, ... | 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 ... | 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... | 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... | 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... | 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... | java |
@FFDCIgnore(NamingException.class)
private NamingEnumeration<SearchResult> updateSearchCache(String searchBase, String key, NamingEnumeration<SearchResult> neu,
String[] reqAttrIds) throws WIMSystemException {
final String METHODNAME = "updateSea... | 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... | 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];
... | 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) {
... | 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 ... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.