当前位置: 首页>>代码示例>>Java>>正文


Java PropertyCheck.mandatory方法代码示例

本文整理汇总了Java中org.alfresco.util.PropertyCheck.mandatory方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyCheck.mandatory方法的具体用法?Java PropertyCheck.mandatory怎么用?Java PropertyCheck.mandatory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.alfresco.util.PropertyCheck的用法示例。


在下文中一共展示了PropertyCheck.mandatory方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
/**
 * Checks that all necessary properties and services have been provided.
 */
public void init()
{
    PropertyCheck.mandatory(this, "nodeService", nodeService);
    PropertyCheck.mandatory(this, "directNodeService", directNodeService);
    PropertyCheck.mandatory(this, "fileFolderService", fileFolderService);
    PropertyCheck.mandatory(this, "searchService", searchService);
    PropertyCheck.mandatory(this, "namespaceService", namespaceService);
    PropertyCheck.mandatory(this, "permissionService", permissionService);
    PropertyCheck.mandatory(this, "authenticationContext", authenticationContext);
    PropertyCheck.mandatory(this, "personService", personService);
    PropertyCheck.mandatory(this, "activityService", activityService);
    PropertyCheck.mandatory(this, "taggingService", taggingService);
    PropertyCheck.mandatory(this, "authorityService", authorityService);
    PropertyCheck.mandatory(this, "sitesXPath", sitesXPath);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:19,代码来源:SiteServiceImpl.java

示例2: onBootstrap

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void onBootstrap(ApplicationEvent event)
{
    if (!enabled)
    {
        return;
    }
    // Check properties
    PropertyCheck.mandatory(this, "domain", domain);
    if (port <= 0 || port > 65535)
    {
        throw new AlfrescoRuntimeException("Property 'port' is incorrect");
    }
    PropertyCheck.mandatory(this, "emailService", emailService);
    // Startup
    startup();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:21,代码来源:EmailServer.java

示例3: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
/**
 * Init method.  Registered behaviours.
 */
public void init()
{  
    PropertyCheck.mandatory(this, "actionService", getActionService());
    PropertyCheck.mandatory(this, "policyComponent", getPolicyComponent());
    
    /**
     * Bind policies
     */
    this.getPolicyComponent().bindClassBehaviour(OnAddAspectPolicy.QNAME, 
        ImapModel.ASPECT_IMAP_CONTENT, 
        new JavaBehaviour(this, "onAddAspect", NotificationFrequency.TRANSACTION_COMMIT));
    
    /**
     * Bind policies
     */
    this.getPolicyComponent().bindClassBehaviour(OnCopyNodePolicy.QNAME , 
        ImapModel.ASPECT_IMAP_CONTENT, 
        new JavaBehaviour(this, "getCopyCallback", NotificationFrequency.EVERY_EVENT));
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:23,代码来源:ImapContentPolicy.java

示例4: afterPropertiesSet

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
/**
 *
 * {@inheritDoc}
 */
@Override
public void afterPropertiesSet()
{
    super.afterPropertiesSet();
    PropertyCheck.mandatory(this, "authorityService", this.authorityService);
    PropertyCheck.mandatory(this, "authorisationService", this.authorisationService);
}
 
开发者ID:Acosix,项目名称:alfresco-deauth,代码行数:12,代码来源:DeauthoriseInactiveUsers.java

示例5: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
public void init()
{
    PropertyCheck.mandatory(this, "workflowService", workflowService);
    PropertyCheck.mandatory(this, "activitiHistoryService", activitiHistoryService);
    PropertyCheck.mandatory(this, "actionService", actionService);
    PropertyCheck.mandatory(this, "personService", personService);
    PropertyCheck.mandatory(this, "nodeService", nodeService);
    PropertyCheck.mandatory(this, "sysAdminParams", sysAdminParams);
    PropertyCheck.mandatory(this, "authenticationService", authenticationService);
    PropertyCheck.mandatory(this, "activitiTaskService", activitiTaskService);
    PropertyCheck.mandatory(this, "emailHelper", emailHelper);
    PropertyCheck.mandatory(this, "clientAppConfig", clientAppConfig);
    PropertyCheck.mandatory(this, "defaultEmailSender", defaultEmailSender);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:ResetPasswordServiceImpl.java

示例6: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
public void init()
{
    PropertyCheck.mandatory(this, "diskInterface", diskInterface);
    PropertyCheck.mandatory(this, "ruleEvaluator", getRuleEvaluator());
    PropertyCheck.mandatory(this, "repositoryDiskInterface", getRepositoryDiskInterface());        
    PropertyCheck.mandatory(this, "commandExecutor", getCommandExecutor());
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:NonTransactionalRuleContentDiskDriver.java

示例7: afterPropertiesSet

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
/**
 *
 * {@inheritDoc}
 */
@Override
public void afterPropertiesSet()
{
    PropertyCheck.mandatory(this, "nodeService", this.nodeService);
    PropertyCheck.mandatory(this, "personService", this.personService);
    PropertyCheck.mandatory(this, "permissionService", this.permissionService);
    PropertyCheck.mandatory(this, "searchService", this.searchService);
}
 
开发者ID:AFaust,项目名称:alfresco-better-trashmanagement,代码行数:13,代码来源:AbstractArchivedItemsRetrievalWebScript.java

示例8: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
public void init()
{
    PropertyCheck.mandatory(this, "nodeService", nodeService);
    PropertyCheck.mandatory(this, "searchService", searchService);
    PropertyCheck.mandatory(this, "transferSpaceQuery", transferSpaceQuery);
    PropertyCheck.mandatory(this, "defaultTransferGroup", defaultTransferGroup);
    PropertyCheck.mandatory(this, "transmitter", transmitter);
    PropertyCheck.mandatory(this, "namespaceResolver", transmitter);
    PropertyCheck.mandatory(this, "actionService", actionService);
    PropertyCheck.mandatory(this, "transactionService", transactionService);
    PropertyCheck.mandatory(this, "descriptorService", descriptorService);
    PropertyCheck.mandatory(this, "transferVersionChecker", transferVersionChecker);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:14,代码来源:TransferServiceImpl2.java

示例9: onBootstrap

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
@Override
protected void onBootstrap(ApplicationEvent event)
{
    PropertyCheck.mandatory(this, "namespaceService", namespaceService);
    
    defaultFacets = ConfigHelper.getFacetPropertiesMap(rawProperties, propInheritanceOrder, namespaceService);
    if(logger.isDebugEnabled())
    {
        logger.debug("All bootstrapped facets: " + defaultFacets);
    }
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:12,代码来源:SolrFacetConfig.java

示例10: afterPropertiesSet

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
public void afterPropertiesSet() throws Exception
{
    PropertyCheck.mandatory(this, "nodeService", nodeService);
    PropertyCheck.mandatory(this, "authenticationService", authenticationService);
    PropertyCheck.mandatory(this, "nodeOwnerCache", nodeOwnerCache);
    PropertyCheck.mandatory(this, "policyComponent", policyComponent);
    PropertyCheck.mandatory(this, "renditionService", renditionService);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:9,代码来源:OwnableServiceImpl.java

示例11: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
public void init()
{
    PropertyCheck.mandatory(this, "attributeService", attributeService);
    PropertyCheck.mandatory(this, "authorityService", authorityService);
    PropertyCheck.mandatory(this, "personService", personService);
    PropertyCheck.mandatory(this, "attributeService", attributeService);
    PropertyCheck.mandatory(this, "transactionService", transactionService);
    PropertyCheck.mandatory(this, "jobLockService", jobLockService);
    PropertyCheck.mandatory(this, "applicationEventPublisher", applicationEventPublisher);
    PropertyCheck.mandatory(this, "sysAdminParams", sysAdminParams);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:12,代码来源:ChainingUserRegistrySynchronizer.java

示例12: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
/**
 * Checks that all necessary services have been provided.
 */
public void init()
{
    PropertyCheck.mandatory(this, "namespaceService", namespaceService);
    PropertyCheck.mandatory(this, "dictionaryService", dictionaryService);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:9,代码来源:ValueDataTypeValidatorImpl.java

示例13: init

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
public void init()
{
    PropertyCheck.mandatory(this, "dictionaryService", dictionaryService);
    PropertyCheck.mandatory(this, "namespaceService", namespaceService);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:6,代码来源:AbstractIndexFilter.java

示例14: afterPropertiesSet

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
@Override
public void afterPropertiesSet() throws Exception
{
    PropertyCheck.mandatory(this, "methodInterceptor", methodInterceptor);
    PropertyCheck.mandatory(this, "service", service);
    PropertyCheck.mandatory(this, "methodName", methodName);
    
    // Get the method from the service
    Method method = null;
    for (Method m : service.getMethods())
    {
        // Note: currently matches first found
        // This is fine because the interceptor requires the same defininition for all overloaded methods
        if (m.getName().equals(methodName))
        {
            method = m;
            break;
        }
    }
    
    if (method == null)
    {
        throw new AlfrescoRuntimeException(
                "Method not found: \n" +
                "   Interface: " + service.getClass() + "\n" +
                "   Method:    " + methodName);
    }
    
    if (!(methodInterceptor instanceof MethodSecurityInterceptor))
    {
        // It is not an interceptor that applies security, so just ignore
        this.cad = null;
        if (logger.isTraceEnabled())
        {
            logger.trace("Method interceptor doesn't apply security: " + methodSecurityInterceptor);
        }
    }
    else
    {
        this.methodSecurityInterceptor = (MethodSecurityInterceptor) this.methodInterceptor;
        this.cad = methodSecurityInterceptor.getObjectDefinitionSource().getAttributes(new InternalMethodInvocation(method));
        // Null means there are no applicable permissions
    }
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:45,代码来源:MethodSecurityBean.java

示例15: afterPropertiesSet

import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
@Override
public void afterPropertiesSet() throws Exception
{
    PropertyCheck.mandatory(this, "customModels", customModels);
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:6,代码来源:CustomModelConstraintRelation.java


注:本文中的org.alfresco.util.PropertyCheck.mandatory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。