Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2010 JBoss Inc Licensed 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.
 

/* Copyright 2005 JBoss Inc Licensed 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.drools.guvnor.server.repository;
 
 
 import javax.jcr.Item;
 import javax.jcr.Node;
 
 
 class MockSession implements Session {
 
     public boolean loggedout;
 
     public void addLockToken(String arg0) {
          
         
     }
 
     public void checkPermission(String arg0String arg1throws AccessControlException,
                                                          RepositoryException {
          
         
     }
 
     public void exportDocumentView(String arg0ContentHandler arg1boolean arg2boolean arg3throws PathNotFoundException,
                                                                                                 SAXException,
                                                                                                 RepositoryException {
          
         
     }
 
     public void exportDocumentView(String arg0OutputStream arg1boolean arg2boolean arg3throws IOException,
                                                                                               PathNotFoundException,
                                                                                               RepositoryException {
          
         
     }
 
     public void exportSystemView(String arg0ContentHandler arg1boolean arg2boolean arg3throws PathNotFoundException,
                                                                                               SAXException,
                                                                                              RepositoryException {
         
        
    }
    public void exportSystemView(String arg0OutputStream arg1boolean arg2boolean arg3throws IOException,
                                                                                            PathNotFoundException,
                                                                                            RepositoryException {
         
        
    }
    public Object getAttribute(String arg0) {
         
        return null;
    }
    public String[] getAttributeNames() {
         
        return null;
    }
    public ContentHandler getImportContentHandler(String arg0int arg1throws PathNotFoundException,
                                                                        ConstraintViolationException,
                                                                        VersionException,
                                                                        LockException,
                                                                        RepositoryException {
         
        return null;
    }
    public Item getItem(String arg0throws PathNotFoundException,
                                    RepositoryException {
         
        return null;
    }
    public String[] getLockTokens() {
         
        return null;
    }
    public String getNamespacePrefix(String arg0throws NamespaceException,
                                                 RepositoryException {
         
        return null;
    }
    public String[] getNamespacePrefixes() throws RepositoryException {
         
        return null;
    }
    public String getNamespaceURI(String arg0throws NamespaceException,
                                              RepositoryException {
         
        return null;
    }
    public Node getNodeByUUID(String arg0throws ItemNotFoundException,
                                          RepositoryException {
         
        return null;
    }
    public Repository getRepository() {
         
        return null;
    }
    public Node getRootNode() throws RepositoryException {
         
        return null;
    }
    public String getUserID() {
         
        return null;
    }
                                         RepositoryException {
         
        return null;
    }
    public Workspace getWorkspace() {
         
        return null;
    }
    public boolean hasPendingChanges() throws RepositoryException {
         
        return false;
    }
    public Session impersonate(Credentials arg0throws LoginException,
                                                RepositoryException {
         
        return null;
    }
    public void importXML(String arg0InputStream arg1int arg2throws IOException,
                                                                  PathNotFoundException,
                                                                  ItemExistsException,
                                                                  ConstraintViolationException,
                                                                  VersionException,
                                                                  InvalidSerializedDataException,
                                                                  LockException,
                                                                  RepositoryException {
         
        
    }
    public boolean isLive() {
         
        return false;
    }
    public boolean itemExists(String arg0throws RepositoryException {
         
        return false;
    }
    public void logout() {
         this. = true;
        
    }
    public void move(String arg0String arg1throws ItemExistsException,
                                              PathNotFoundException,
                                              VersionException,
                                              ConstraintViolationException,
                                              LockException,
                                              RepositoryException {
         
        
    }
    public void refresh(boolean arg0throws RepositoryException {
         
        
    }
    public void removeLockToken(String arg0) {
         
        
    }
    public void save() throws AccessDeniedException,
                      ItemExistsException,
                      ConstraintViolationException,
                      InvalidItemStateException,
                      VersionException,
                      LockException,
                      NoSuchNodeTypeException,
                      RepositoryException {
         
        
    }
    public void setNamespacePrefix(String arg0String arg1throws NamespaceException,
                                                            RepositoryException {
         
        
    }
		// TODO Auto-generated method stub
		return null;
	}
	public Node getNode(String arg0throws PathNotFoundException,
		// TODO Auto-generated method stub
		return null;
	}
		// TODO Auto-generated method stub
		return null;
	}
		// TODO Auto-generated method stub
		return null;
	}
		// TODO Auto-generated method stub
		return null;
	}
	public boolean hasCapability(String arg0Object arg1Object[] arg2)
		// TODO Auto-generated method stub
		return false;
	}
	public boolean hasPermission(String arg0String arg1)
		// TODO Auto-generated method stub
		return false;
	}
	public boolean nodeExists(String arg0throws RepositoryException {
		// TODO Auto-generated method stub
		return false;
	}
	public boolean propertyExists(String arg0throws RepositoryException {
		// TODO Auto-generated method stub
		return false;
	}
	public void removeItem(String arg0throws VersionExceptionLockException,
		// TODO Auto-generated method stub
	}
    
New to GrepCode? Check out our FAQ X