當前位置: 首頁>>代碼示例>>Java>>正文


Java Store.Type方法代碼示例

本文整理匯總了Java中de.espirit.firstspirit.access.store.Store.Type方法的典型用法代碼示例。如果您正苦於以下問題:Java Store.Type方法的具體用法?Java Store.Type怎麽用?Java Store.Type使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在de.espirit.firstspirit.access.store.Store的用法示例。


在下文中一共展示了Store.Type方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createProblem

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
private ImportOperation.Problem createProblem(final Store.Type storeType, final long nodeId, final String message) {
    return new ImportOperation.Problem() {
        @Override
        public Store.Type getStoreType() {
            return storeType;
        }

        @Override
        public long getNodeId() {
            return nodeId;
        }

        @Override
        public String getMessage() {
            return message;
        }
    };
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:19,代碼來源:MockedImportResult.java

示例2: createMediaElementAndExportItWithGivenUidMappingUidType

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
/**
 * Mocks a MediaStore and adds a dummy object X of type Media to it. Afterwards creates an ExportOperation
 * and adds an identifier matching X's uid to it, but uses the passed uidMappings uidType.
 * @param uidMapping the mapping from which the uidType is retrieved that is used for adding an element to
 *                   the export operation
 * @return the created ExportOperation mock
 */
private ExportOperation createMediaElementAndExportItWithGivenUidMappingUidType(UidMapping uidMapping) {
    String uidString = "reference_name";
    UidIdentifier uid = new UidIdentifier(uidMapping, uidString);

    StoreAgent storeAgent = mock(StoreAgent.class);
    ExportOperation exportOperation = mock(ExportOperation.class);
    Store mediaStoreRoot = mock(MediaStoreRoot.class);
    Store.Type storeType = uidMapping.getStoreType();
    when(storeAgent.getStore(storeType, false)).thenReturn(mediaStoreRoot);
    IDProvider storeElement = mock(Media.class);
    when(mediaStoreRoot.getStoreElement(uidString, uidMapping.getUidType())).thenReturn(storeElement);
    uid.addToExportOperation(storeAgent, false, exportOperation);
    return exportOperation;
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:22,代碼來源:UidIdentifierTest.java

示例3: getStore

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
@Override
public Store getStore(final Store.Type type) {
    Store store = _stores.get(type);
    if (store == null) {
        store = new MockedStore(type);
        addStore(type, store);
    }
    return store;
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:10,代碼來源:MockedStoreAgent.java

示例4: MockedElementExportInfo

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
MockedElementExportInfo(final Store.Type storeType, final String name, final String nodeTag, final ExportStatus exportStatus) {
    super(Type.ELEMENT, name, exportStatus);
    _basicElementInfo = new BasicElementInfoImpl(storeType, nodeTag, -1, name, -1);
    setCreatedFileHandles(createFileHandleCollection(this, 1));
    setUpdatedFileHandles(createFileHandleCollection(this, 2));
    setDeletedFileHandles(createFileHandleCollection(this, 3));
    setMovedFileHandles(createMovedFileHandleCollection(this, 4));
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:9,代碼來源:MockedElementExportInfo.java

示例5: getStoreElements

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
Map<Store.Type, List<ElementExportInfo>> getStoreElements() {
    return _storeElements;
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:4,代碼來源:ReorganizedResult.java

示例6: addStore

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
void addStore(final Store.Type type, final Store store) {
    _stores.put(type, store);
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:4,代碼來源:MockedStoreAgent.java

示例7: createElementInfo

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
private BasicElementInfoImpl createElementInfo(final int id, final Store.Type storeType, final String nodeTag, final String description) {
    return new BasicElementInfoImpl(storeType, nodeTag, id, description + "_" + nodeTag + "_" + id, -1);
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:4,代碼來源:MockedImportResult.java

示例8: createMapWithStoreElements

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
public static Map<Store.Type, List<ElementExportInfo>> createMapWithStoreElements() {
    return createMapWithStoreElements(ExportStatus.CREATED, true, true, true, true);
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:4,代碼來源:MockedExportInfo.java

示例9: addStoreRoots

import de.espirit.firstspirit.access.store.Store; //導入方法依賴的package包/類
/**
 * Adds store root nodes to the given export operation directly. This operation is different from adding a store root node's children
 * individually. This method can be overridden to add a subset of store roots only.
 *
 * @param storeAgent      the StoreAgent to retrieve store roots from
 * @param exportOperation the ExportOperation to add the store roots to
 */
protected void addStoreRoots(final StoreAgent storeAgent, final ExportOperation exportOperation) {
    for (final Store.Type storeType : Store.Type.values()) {
        exportOperation.addElement(storeAgent.getStore(storeType, isExportReleaseState()));
    }
}
 
開發者ID:e-Spirit,項目名稱:FSDevTools,代碼行數:13,代碼來源:AbstractExportCommand.java


注:本文中的de.espirit.firstspirit.access.store.Store.Type方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。