/* Copyright (c) 2013-2014, Perforce Software, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PERFORCE SOFTWARE, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package com.perforce.polarion.repository.provider; import com.polarion.platform.repository.external.IExternalRepositoryProvider; import com.polarion.subterra.base.data.identification.IContextId; /** * @author <a href="mailto:pallen@perforce.com">Paul Allen</a>, Perforce * Software */ public class P4ExternalRepositoryProvider implements IExternalRepositoryProvider { protected static final String ID = "p4"; /** * @return unique id of this provider */ @Override public String getProviderId() { return ID; } /** * @return new empty configuration */ @Override public IExternalRepositoryConfiguration createEmptyConfiguration() { return new P4RepositoryConfiguration(); } /** * Creates a repository for the configuration. * * @contextId * @configuration - filled configuration * @callback * @return OFconfigured repository */ @Override public IExternalRepository getRepository(IContextId contextId, IExternalRepositoryConfiguration configuration, IExternalRepositoryCallback callback) { return new P4ExternalRepository(contextId, (P4RepositoryConfiguration) configuration, callback); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 16756 | Paul Allen | Expose static inner class. | ||
#2 | 16717 | Paul Allen | Clean up code to protect against 'null' from paths for ADD and EDIT cases. | ||
#1 | 15897 | Matt Attaway | Pull changes after the rename in from Paul's dev branch so code will go back smoothly | ||
//guest/paul_allen/dev/p4-polarion/main/src/com/perforce/polarion/repository/provider/P4ExternalRepositoryProvider.java | |||||
#2 | 9759 | Paul Allen |
Code review fixes for: - PollMode - ViewURL - Plugin ID |
||
#1 | 9756 | Paul Allen |
Changed Polarion name space to Perforce: com.perforce.polarion.repository.provider |
||
//guest/paul_allen/dev/p4-polarion/main/src/com/polarion/platform/repository/external/internal/p4/P4ExternalRepositoryProvider.java | |||||
#1 | 9723 | Paul Allen | Initial import of P4 Polarion plugin code |