本文整理汇总了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);
}
示例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();
}
示例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));
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例13: init
import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
public void init()
{
PropertyCheck.mandatory(this, "dictionaryService", dictionaryService);
PropertyCheck.mandatory(this, "namespaceService", namespaceService);
}
示例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
}
}
示例15: afterPropertiesSet
import org.alfresco.util.PropertyCheck; //导入方法依赖的package包/类
@Override
public void afterPropertiesSet() throws Exception
{
PropertyCheck.mandatory(this, "customModels", customModels);
}