Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one or more
   * contributor license agreements.  See the NOTICE file distributed with
   * this work for additional information regarding copyright ownership.
   * The ASF licenses this file to You under the Apache License, Version 2.0
   * (the "License"); you may not use this file except in compliance with
   * the License.  You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.apache.jackrabbit.spi2dav;
 
 
 import java.util.Set;
 import java.util.UUID;

SessionInfoImpl...
 
 
     private final CredentialsWrapper credentials;
     private final Set<StringsessionScopedTokens = new HashSet<String>();
     
     // a globally unique URI identifying this session
     private final String sessionIdentifier = "urn:uuid:" + UUID.randomUUID();
     
     private String lastBatchId;
     private NamePathResolver resolver;
 
     SessionInfoImpl(CredentialsWrapper credsString workspaceName) {
         this. = creds;
 
         super.setWorkspacename(workspaceName);
     }
 
     //--------------------------------------------------------< SessionInfo >---
     

InheritDoc:
 
     @Override
     public String getUserID() {
         return .getUserId();
     }
 
     //--------------------------------------------------------------------------
 
         return ;
     }
 
         return ;
     }

    
Returns the id of the most recently submitted batch or null it no batch has been submitted yet.

Returns:
the batch id of the most recently submitted batch.
 
     String getLastBatchId() {
         return ;
     }

    
Sets the id of the most recently submitted batch.

Parameters:
batchId the batch id.
 
     void setLastBatchId(String batchId) {
          = batchId;
     }
 
         return ;
     }
 
     void setNamePathResolver(NamePathResolver resolver) {
         this. = resolver;
     }

    

Returns:
All tokens that this session info needs to communicate with the DAV-server. This includes all tokens obtained through both LOCK request(s) as well as those tokens that have been added to the corresponding JCR session. Note, that the sessionScopedTokens are only used for communication with the DAV server and are never exposed through the JCR API for they belong to session-scoped locks.
        Set<Strings = new HashSet<String>(Arrays.asList(getLockTokens()));
        s.addAll();
        return Collections.unmodifiableSet(s);
    }
    void addLockToken(String tokenboolean sessionScoped) {
        if (sessionScoped) {
            .add(token);
        } else {
            super.addLockToken(token);
        }
    }
    void removeLockToken(String tokenboolean sessionScoped) {
        if (sessionScoped) {
            .remove(token);
        } else {
            super.removeLockToken(token);
        }
    }
New to GrepCode? Check out our FAQ X