本文整理汇总了Java中org.alfresco.service.cmr.repository.ContentService类的典型用法代码示例。如果您正苦于以下问题:Java ContentService类的具体用法?Java ContentService怎么用?Java ContentService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ContentService类属于org.alfresco.service.cmr.repository包,在下文中一共展示了ContentService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: FileFolderLoader
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
/**
* @param repoState keep track of repository readiness
* @param transactionService ensure proper rollback, where required
* @param repositoryHelper access standard repository paths
* @param fileFolderService perform actual file-folder manipulation
*/
public FileFolderLoader(
RepositoryState repoState,
TransactionService transactionService,
Repository repositoryHelper,
FileFolderService fileFolderService,
NodeService nodeService,
ContentService contentService,
BehaviourFilter policyBehaviourFilter)
{
this.repoState = repoState;
this.transactionService = transactionService;
this.repositoryHelper = repositoryHelper;
this.fileFolderService = fileFolderService;
this.nodeService = nodeService;
this.contentService = contentService;
this.policyBehaviourFilter = policyBehaviourFilter;
this.normalDistribution = new NormalDistributionHelper();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:26,代码来源:FileFolderLoader.java
示例2: copyContentOnly
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
private void copyContentOnly(FileInfo sourceFileInfo, FileInfo destFileInfo, FileFolderService fileFolderService) throws WebDAVServerException
{
ContentService contentService = getContentService();
ContentReader reader = contentService.getReader(sourceFileInfo.getNodeRef(), ContentModel.PROP_CONTENT);
if (reader == null)
{
// There is no content for the node if it is a folder
if (!sourceFileInfo.isFolder())
{
// Non-folders should have content available.
logger.error("Unable to get ContentReader for source node " + sourceFileInfo.getNodeRef());
throw new WebDAVServerException(HttpServletResponse.SC_NOT_FOUND);
}
}
else
{
ContentWriter contentWriter = contentService.getWriter(destFileInfo.getNodeRef(), ContentModel.PROP_CONTENT, true);
contentWriter.putContent(reader);
}
}
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:21,代码来源:MoveMethod.java
示例3: setUp
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@Before
public void setUp() throws Exception
{
ctx = ApplicationContextHelper.getApplicationContext();
this.modelValidator = (ModelValidator)ctx.getBean("modelValidator");
this.dictionaryDAO = (DictionaryDAO)ctx.getBean("dictionaryDAO");
this.qnameDAO = (QNameDAO)ctx.getBean("qnameDAO");
this.namespaceDAO = (NamespaceDAO)ctx.getBean("namespaceDAO");
this.nodeService = (NodeService)ctx.getBean("NodeService");
this.fileFolderService = (FileFolderService)ctx.getBean("FileFolderService");
this.contentService = (ContentService)ctx.getBean("contentService");
this.versionService = (VersionService)ctx.getBean("VersionService");
this.transactionService = (TransactionService)ctx.getBean("TransactionService");
this.nodeArchiveService = (NodeArchiveService)ctx.getBean("nodeArchiveService");
this.modelName = "modelvalidatortest" + System.currentTimeMillis();
addModel();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:19,代码来源:ModelValidatorTest.java
示例4: onSetUpInTransaction
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
protected void onSetUpInTransaction() throws Exception
{
super.onSetUpInTransaction();
this.nodeService = (NodeService) this.applicationContext.getBean("NodeService");
this.contentService = (ContentService) this.applicationContext.getBean("ContentService");
this.renditionService = (RenditionService) this.applicationContext.getBean("RenditionService");
this.repositoryHelper = (Repository) this.applicationContext.getBean("repositoryHelper");
this.dictionaryService = (DictionaryService) this.applicationContext.getBean("dictionaryService");
this.companyHome = repositoryHelper.getCompanyHome();
createTargetFolder();
// Setup the basic rendition definition
QName renditionName = QName.createQName("Test");
RenditionDefinition rd = renditionService.loadRenditionDefinition(renditionName);
if(rd != null)
{
RenditionDefinitionPersisterImpl rdp = new RenditionDefinitionPersisterImpl();
rdp.setNodeService(nodeService);
rdp.deleteRenditionDefinition(rd);
}
def = renditionService.createRenditionDefinition(renditionName, HTMLRenderingEngine.NAME);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:26,代码来源:HTMLRenderingEngineTest.java
示例5: initContextAndCreateUser
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
public void initContextAndCreateUser()
{
appContext = ApplicationContextHelper.getApplicationContext();
authenticationService = (MutableAuthenticationService) appContext.getBean("AuthenticationService");
contentService = (ContentService) appContext.getBean("ContentService");
nodeService = (NodeService) appContext.getBean("NodeService");
permissionService = (PermissionService) appContext.getBean("PermissionService");
personService = (PersonService) appContext.getBean("PersonService");
renditionService = (RenditionService) appContext.getBean("RenditionService");
repositoryHelper = (Repository) appContext.getBean("repositoryHelper");
transactionService = (TransactionService) appContext.getBean("TransactionService");
txnHelper = transactionService.getRetryingTransactionHelper();
ownableService = (OwnableService) appContext.getBean("ownableService");
ADMIN_USER = AuthenticationUtil.getAdminUserName();
// Create a nonAdminUser
createUser(NON_ADMIN_USER);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:MultiUserRenditionTest.java
示例6: before
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@Before
public void before() throws Exception
{
ctx = getTestFixture().getApplicationContext();
this.dictionaryDAO = (DictionaryDAO)ctx.getBean("dictionaryDAO");
this.lockService = (LockService) ctx.getBean("lockService");
this.tenantService = (TenantService)ctx.getBean("tenantService");
this.cmisDictionary = (CMISStrictDictionaryService)ctx.getBean("OpenCMISDictionaryService");
this.cmisTypeExclusions = (QNameFilter)ctx.getBean("cmisTypeExclusions");
this.nodeService = (NodeService) ctx.getBean("NodeService");
this.fileFolderService = (FileFolderService) ctx.getBean("FileFolderService");
this.contentService = (ContentService)applicationContext.getBean("ContentService");
this.permissionService = (PermissionService) ctx.getBean("permissionService");
this.globalProperties = (Properties) ctx.getBean("global-properties");
this.globalProperties.setProperty(VersionableAspectTest.AUTO_VERSION_PROPS_KEY, "true");
}
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:18,代码来源:TestCMIS.java
示例7: onSetUpInTransaction
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
/**
* On setup in transaction override
*/
@SuppressWarnings("deprecation")
@Override
protected void onSetUpInTransaction() throws Exception
{
super.onSetUpInTransaction();
// Get a reference to the node service
this.nodeService = (NodeService) this.applicationContext.getBean("nodeService");
this.contentService = (ContentService) this.applicationContext.getBean("contentService");
this.authenticationService = (MutableAuthenticationService) this.applicationContext.getBean("authenticationService");
this.actionService = (ActionService)this.applicationContext.getBean("actionService");
this.transactionService = (TransactionService)this.applicationContext.getBean("transactionComponent");
// Authenticate as the system user
authenticationComponent = (AuthenticationComponent) this.applicationContext
.getBean("authenticationComponent");
authenticationComponent.setSystemUserAsCurrentUser();
// Create the store and get the root node
this.storeRef = this.nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, "Test_" + System.currentTimeMillis());
this.rootNodeRef = this.nodeService.getRootNode(this.storeRef);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:26,代码来源:BaseAlfrescoSpringTest.java
示例8: setUp
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
protected void setUp() throws Exception
{
super.setUp();
ctx = ApplicationContextHelper.getApplicationContext();
transactionService = (TransactionService)ctx.getBean("transactionComponent");
contentService = (ContentService)ctx.getBean("contentService");
nodeService = (NodeService)ctx.getBean("nodeService");
scriptService = (ScriptService)ctx.getBean("scriptService");
serviceRegistry = (ServiceRegistry)ctx.getBean("ServiceRegistry");
this.authenticationComponent = (AuthenticationComponent)ctx.getBean("authenticationComponent");
this.authenticationComponent.setSystemUserAsCurrentUser();
DictionaryDAO dictionaryDao = (DictionaryDAO)ctx.getBean("dictionaryDAO");
// load the system model
ClassLoader cl = BaseNodeServiceTest.class.getClassLoader();
InputStream modelStream = cl.getResourceAsStream("alfresco/model/contentModel.xml");
assertNotNull(modelStream);
M2Model model = M2Model.createModel(modelStream);
dictionaryDao.putModel(model);
// load the test model
modelStream = cl.getResourceAsStream("org/alfresco/repo/node/BaseNodeServiceTest_model.xml");
assertNotNull(modelStream);
model = M2Model.createModel(modelStream);
dictionaryDao.putModel(model);
DictionaryComponent dictionary = new DictionaryComponent();
dictionary.setDictionaryDAO(dictionaryDao);
BaseNodeServiceTest.loadModel(ctx);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:33,代码来源:RhinoScriptTest.java
示例9: initStaticData
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@BeforeClass public static void initStaticData() throws Exception
{
CONTENT_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("ContentService", ContentService.class);
NODE_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("NodeService", NodeService.class);
SERVICE_REGISTRY = APP_CONTEXT_INIT.getApplicationContext().getBean("ServiceRegistry", ServiceRegistry.class);
TRANSACTION_HELPER = APP_CONTEXT_INIT.getApplicationContext().getBean("retryingTransactionHelper", RetryingTransactionHelper.class);
PERMISSION_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("permissionService", PermissionServiceSPI.class);
SEARCH_SCRIPT = APP_CONTEXT_INIT.getApplicationContext().getBean("searchScript", Search.class);
VERSIONABLE_ASPECT = APP_CONTEXT_INIT.getApplicationContext().getBean("versionableAspect", VersionableAspect.class);
VERSION_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("VersionService", VersionService.class);
DICTIONARY_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("DictionaryService", DictionaryService.class);
NAMESPACE_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("namespaceService", NamespaceService.class);
DICTIONARY_DAO = APP_CONTEXT_INIT.getApplicationContext().getBean("dictionaryDAO", DictionaryDAO.class);
TENANT_ADMIN_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("tenantAdminService", TenantAdminService.class);
MESSAGE_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("messageService", MessageService.class);
TRANSACTION_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("transactionComponent", TransactionService.class);
POLICY_COMPONENT = APP_CONTEXT_INIT.getApplicationContext().getBean("policyComponent", PolicyComponent.class);
USER_ONES_TEST_SITE = STATIC_TEST_SITES.createTestSiteWithUserPerRole(GUID.generate(), "sitePreset", SiteVisibility.PRIVATE, USER_ONE_NAME);
USER_ONES_TEST_FILE = STATIC_TEST_NODES.createQuickFile(MimetypeMap.MIMETYPE_TEXT_PLAIN, USER_ONES_TEST_SITE.doclib, "test.txt", USER_ONE_NAME);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:ScriptNodeTest.java
示例10: initTestsContext
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@BeforeClass public static void initTestsContext() throws Exception
{
AUTHENTICATION_SERVICE = (MutableAuthenticationService)testContext.getBean("authenticationService");
BEHAVIOUR_FILTER = (BehaviourFilter)testContext.getBean("policyBehaviourFilter");
LINKS_SERVICE = (LinksService)testContext.getBean("LinksService");
NODE_SERVICE = (NodeService)testContext.getBean("nodeService");
PUBLIC_NODE_SERVICE = (NodeService)testContext.getBean("NodeService");
PERSON_SERVICE = (PersonService)testContext.getBean("personService");
TRANSACTION_HELPER = (RetryingTransactionHelper)testContext.getBean("retryingTransactionHelper");
PERMISSION_SERVICE = (PermissionService)testContext.getBean("permissionService");
SITE_SERVICE = (SiteService)testContext.getBean("siteService");
CONTENT_SERVICE = (ContentService)testContext.getBean("ContentService");
// Do the setup as admin
AuthenticationUtil.setFullyAuthenticatedUser(ADMIN_USER);
createUser(TEST_USER);
// We need to create the test site as the test user so that they can contribute content to it in tests below.
AuthenticationUtil.setFullyAuthenticatedUser(TEST_USER);
createTestSites();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:LinksServiceImplTest.java
示例11: transformDocument
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
private ScriptNode transformDocument(String mimetype, NodeRef destination)
{
ParameterCheck.mandatoryString("Mimetype", mimetype);
ParameterCheck.mandatory("Destination Node", destination);
final NodeRef sourceNodeRef = nodeRef;
// the delegate definition for transforming a document
Transformer transformer = new AbstractTransformer()
{
protected void doTransform(ContentService contentService,
ContentReader reader, ContentWriter writer)
{
TransformationOptions options = new TransformationOptions();
options.setSourceNodeRef(sourceNodeRef);
contentService.transform(reader, writer, options);
}
};
return transformNode(transformer, mimetype, destination);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:21,代码来源:ScriptNode.java
示例12: setUp
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@Override
protected void setUp() throws Exception
{
applicationContext = ApplicationContextHelper.getApplicationContext();
if (AlfrescoTransactionSupport.getTransactionReadState() != TxnReadState.TXN_NONE)
{
fail("Detected a leaked transaction from a previous test.");
}
// Get the services by name from the application context
messageService = (MessageService)applicationContext.getBean("messageService");
nodeService = (NodeService)applicationContext.getBean("NodeService");
authenticationService = (MutableAuthenticationService)applicationContext.getBean("AuthenticationService");
contentService = (ContentService) applicationContext.getBean("ContentService");
transactionService = (TransactionService) applicationContext.getBean("transactionComponent");
authenticationComponent = (AuthenticationComponent) applicationContext.getBean("authenticationComponent");
dictionaryDAO = (DictionaryDAO) applicationContext.getBean("dictionaryDAO");
// Re-set the current locale to be the default
Locale.setDefault(Locale.ENGLISH);
messageService.setLocale(Locale.getDefault());
testTX = transactionService.getUserTransaction();
testTX.begin();
authenticationComponent.setSystemUserAsCurrentUser();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:27,代码来源:MessageServiceImplTest.java
示例13: delete
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
/**
* Delete the content stream
*/
public void delete()
{
ContentService contentService = services.getContentService();
ContentWriter writer = contentService.getWriter(nodeRef, this.property, true);
OutputStream output = writer.getContentOutputStream();
try
{
output.close();
}
catch (IOException e)
{
// NOTE: fall-through
}
writer.setMimetype(null);
writer.setEncoding(null);
// update cached variables after putContent()
updateContentData(true);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:23,代码来源:ScriptNode.java
示例14: ensureSpringContextWasInitedWithOverrides
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@Test public void ensureSpringContextWasInitedWithOverrides() throws Exception
{
// Bean from the standard Alfresco context
assertNotNull("Spring context did not contain expected bean.",
APP_CONTEXT_INIT.getApplicationContext().getBean("contentService", ContentService.class));
// Bean from the first override context
assertEquals("Value from dummy1-context.xml",
APP_CONTEXT_INIT.getApplicationContext().getBean("testBean1", String.class));
// Bean from the second override context
assertEquals("Value from dummy2-context.xml",
APP_CONTEXT_INIT.getApplicationContext().getBean("testBean2", String.class));
// Bean overridden in second context
assertEquals("Value from dummy2-context.xml",
APP_CONTEXT_INIT.getApplicationContext().getBean("testBean1and2", String.class));
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:19,代码来源:ApplicationContextInitTest.java
示例15: onSetUpInTransaction
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
/**
* Called during the transaction setup
*/
protected void onSetUpInTransaction() throws Exception
{
super.onSetUpInTransaction();
// Get the required services
this.transferService = (TransferService)this.applicationContext.getBean("TransferService");
this.contentService = (ContentService)this.applicationContext.getBean("ContentService");
this.permissionService = (PermissionService)this.applicationContext.getBean("PermissionService");
this.dictionaryService = (DictionaryService)this.applicationContext.getBean("DictionaryService");
this.mlAwareNodeService = (NodeService) this.applicationContext.getBean("mlAwareNodeService");
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:ManifestIntegrationTest.java
示例16: MSOfficeContentNetworkFile
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
/**
* Class constructor
*
* @param nodeService NodeService
* @param contentService ContentService
* @param mimetypeService MimetypeService
* @param nodeRef NodeRef
* @param name String
*/
protected MSOfficeContentNetworkFile(
NodeService nodeService,
ContentService contentService,
MimetypeService mimetypeService,
NodeRef nodeRef,
String name)
{
super(nodeService, contentService, mimetypeService, nodeRef, name);
// Create the buffered write list
m_writeList = new ArrayList<BufferedWrite>();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:23,代码来源:MSOfficeContentNetworkFile.java
示例17: OpenOfficeContentNetworkFile
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
/**
* Class constructor
*
* @param nodeService NodeService
* @param contentService ContentService
* @param mimetypeService MimetypeService
* @param nodeRef NodeRef
* @param name String
*/
protected OpenOfficeContentNetworkFile(
NodeService nodeService,
ContentService contentService,
MimetypeService mimetypeService,
NodeRef nodeRef,
String name)
{
super(nodeService, contentService, mimetypeService, nodeRef, name);
// DEBUG
if (logger.isDebugEnabled())
logger.debug("Using OpenOffice network file for " + name + ", versionLabel=" + nodeService.getProperty( nodeRef, ContentModel.PROP_VERSION_LABEL));
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:24,代码来源:OpenOfficeContentNetworkFile.java
示例18: onSetUpInTransaction
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
protected void onSetUpInTransaction() throws Exception
{
super.onSetUpInTransaction();
this.nodeService = (NodeService) this.applicationContext.getBean("NodeService");
this.contentService = (ContentService) this.applicationContext.getBean("ContentService");
this.fileFolderService = (FileFolderService) this.applicationContext.getBean("FileFolderService");
this.xsltProcessor = (TemplateProcessor) this.applicationContext.getBean("xsltProcessor");
this.templateService = (TemplateService) this.applicationContext.getBean("TemplateService");
this.renditionService = (RenditionService) this.applicationContext.getBean("RenditionService");
this.companyHome = this.applicationContext.getBean("repositoryHelper", Repository.class).getCompanyHome();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:XSLTRenderingEngineTest.java
示例19: setUp
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@Override
protected void setUp() throws Exception
{
super.setUp();
MockitoAnnotations.initMocks(this);
ApplicationContext ctx = getServer().getApplicationContext();
this.authenticationService = (MutableAuthenticationService)ctx.getBean("AuthenticationService");
this.authenticationComponent = (AuthenticationComponent)ctx.getBean("authenticationComponent");
this.personService = (PersonService)ctx.getBean("PersonService");
this.userNameMatcherImpl = (UserNameMatcherImpl)ctx.getBean("userNameMatcher");
this.nodeService = (NodeService)ctx.getBean("NodeService");
this.contentService = (ContentService)ctx.getBean("contentService");
this.userUsageTrackingComponent = (UserUsageTrackingComponent)ctx.getBean("userUsageTrackingComponent");
this.contentUsage = (ContentUsageImpl)ctx.getBean("contentUsageImpl");
this.transactionService = (TransactionService) ctx.getBean("TransactionService");
serviceRegistry = (ServiceDescriptorRegistry) ctx.getBean("ServiceRegistry");
serviceRegistry.setMockSearchService(mockSearchService);
when(mockSearchService.query(any())).thenReturn(mockSearchServiceQueryResultSet);
when(mockSearchServiceQueryResultSet.getNodeRefs()).thenReturn(dummySearchServiceQueryNodeRefs);
// enable usages
contentUsage.setEnabled(true);
contentUsage.init();
userUsageTrackingComponent.setEnabled(true);
userUsageTrackingComponent.init();
userUsageTrackingComponent.bootstrapInternal();
this.authenticationComponent.setSystemUserAsCurrentUser();
// Create users
createUser(USER_ONE);
createUser(USER_TWO);
createUser(USER_THREE);
// Do tests as user one
this.authenticationComponent.setCurrentUser(USER_ONE);
}
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:40,代码来源:PersonServiceTest.java
示例20: onSetUpInTransaction
import org.alfresco.service.cmr.repository.ContentService; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
protected void onSetUpInTransaction() throws Exception
{
super.onSetUpInTransaction();
this.nodeService = (NodeService) this.applicationContext.getBean("NodeService");
this.contentService = (ContentService) this.applicationContext.getBean("ContentService");
this.fileFolderService = (FileFolderService) this.applicationContext.getBean("FileFolderService");
this.xsltProcessor = (TemplateProcessor) this.applicationContext.getBean("xsltProcessor");
this.templateService = (TemplateService) this.applicationContext.getBean("TemplateService");
this.repositoryHelper = (Repository) this.applicationContext.getBean("repositoryHelper");
this.companyHome = repositoryHelper.getCompanyHome();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:14,代码来源:XSLTProcessorTest.java
注:本文中的org.alfresco.service.cmr.repository.ContentService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论