/** * Set the class name * * @param className the class name */ public void setClassName(String className) { this.className = QName.createQName(className); }
public void init() { if (aspectName != null) { aspectQName = QName.createQName(aspectName, namespacePrefixResolver); } }
/** * * @param name String * @return QName */ private QName toQName(String name) { return QName.createQName(name, namespaceService); } }
/** * @param jobLockService the {@link JobLockService JobLockService} * @param name the name of the job to be used for the lock registry * @param job the {@link AbstractScheduledLockedJob job} to be executed */ public ScheduledJobLockExecuter(JobLockService jobLockService, String name, AbstractScheduledLockedJob job) { this.jobLockService = jobLockService; this.lockQName = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, name); this.job = job; }
/** Unit testing use only! Used to avoid tests affecting the real system container */ protected static void setSharedCredentialsSystemContainerName(String container) { SHARED_CREDENTIALS_CONTAINER_NAME = container; SHARED_CREDENTIALS_CONTAINER_QNAME = QName.createQName(RemoteCredentialsModel.REMOTE_CREDENTIALS_MODEL_URL, SHARED_CREDENTIALS_CONTAINER_NAME); } }
@Override public void afterPropertiesSet() throws Exception { lock = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "SolrBackupClient-"+core); } }
/** * Set the list of types for which this action is applicable * * @param applicableTypes array of applicable types */ public void setApplicableTypes(String[] applicableTypes) { for (String type : applicableTypes) { this.applicableTypes.add(QName.createQName(type)); } }
public void setExcludedAspects(String[] excludedAspects) { for (String aspect : excludedAspects) { this.excludedAspects.add(QName.createQName(aspect)); } } }
public void setExcludedTypes(List<String> excludedTypes) { for(String exType:excludedTypes) { this.excludedTypes.add(QName.createQName(exType)); } }
public void setPropertyName(String propertyName) { propertyNames = new HashSet<QName>(1); propertyNames.add(QName.createQName(propertyName, namespaceService)); }
public void setPropertyNames(Set<String> propertyNames) { this.propertyNames = new HashSet<QName>(propertyNames.size()); for (String propertyName : propertyNames) { this.propertyNames.add(QName.createQName(propertyName, namespaceService)); } }
/** * This method returns the {@link QName association name} that will be used to link * a cm:rateable node to its cm:rating child for the specified username and ratingSchemeName. */ public QName getRatingAssocNameFor(String username, String ratingSchemeName) { // Note that the hardcoded "cm:" here is intentional. We do not have a requirement for configuring this assoc name. StringBuilder compoundString = new StringBuilder(); compoundString.append("cm:").append(username).append(RATING_ASSOC_SEPARATOR).append(ratingSchemeName); QName result = QName.createQName(compoundString.toString(), namespaceService); return result; }
private QName getContainerQName() { String name = bootstrap.getConfiguration().getProperty("system.downloads_container.childname"); QName container = QName.createQName(name, namespaceService); return container; }
private QName tagScopeToLockQName(NodeRef tagScope) { QName lockQName = QName.createQName("TagScope_" + tagScope.toString()); return lockQName; } protected String lockTagScope(NodeRef tagScope)
/** * @see org.alfresco.repo.rule.ruletrigger.RuleTrigger#registerRuleTrigger() */ public void registerRuleTrigger() { this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, POLICY), this, new JavaBehaviour(this, POLICY)); }
public void init() { // Listen out for person removals so that we can clear cached authorities this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "beforeDeleteNode"), ContentModel.TYPE_PERSON, new JavaBehaviour( this, "beforeDeleteNode")); // Listen out for updates to persons and authority containers to handle renames this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "onUpdateProperties"), ContentModel.TYPE_AUTHORITY, new JavaBehaviour( this, "onUpdateProperties")); }
public void init() { // Listen out for updates to persons and authority containers to handle renames this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "onUpdateProperties"), ContentModel.TYPE_AUTHORITY, new JavaBehaviour( this, "onUpdateProperties")); }
/** * @see org.alfresco.repo.rule.ruletrigger.RuleTrigger#registerRuleTrigger() */ public void registerRuleTrigger() { PropertyCheck.mandatory(this, "policyNamespace", policyNamespace); PropertyCheck.mandatory(this, "policyName", policyName); this.policyComponent.bindAssociationBehaviour( QName.createQName(this.policyNamespace, this.policyName), this, new JavaBehaviour(this, "policyBehaviour")); }
private void createPersistentSchedule(ScheduledPersistedActionImpl schedule) { ChildAssociationRef childAssoc = nodeService.createNode(SCHEDULED_ACTION_ROOT_NODE_REF, ContentModel.ASSOC_CONTAINS, QName.createQName(GUID.generate()), ActionModel.TYPE_ACTION_SCHEDULE); schedule.setPersistedAtNodeRef(childAssoc.getChildRef()); }
public void startProperty(NodeRef nodeRef, QName property) { try { QName encodedProperty = QName.createQName(property.getNamespaceURI(), ISO9075.encode(property.getLocalName())); contentHandler.startElement(encodedProperty.getNamespaceURI(), encodedProperty.getLocalName(), toPrefixString(encodedProperty), EMPTY_ATTRIBUTES); } catch (SAXException e) { throw new ExporterException("Failed to process start property event - nodeRef " + nodeRef + "; property " + toPrefixString(property), e); } }