@Override public DictionaryService getDictionaryService() { return serviceRegistry.getDictionaryService(); }
@Override public DictionaryService getDictionaryService() { return serviceRegistry.getDictionaryService(); }
ImapSubFolderFilter(ImapViewMode imapViewMode) { this.imapViewMode = imapViewMode; this.typesToExclude = ImapServiceImpl.this.serviceRegistry.getDictionaryService().getSubTypes(SiteModel.TYPE_SITE, true); this.favs = getFavouriteSites(getCurrentUser()); }
protected AbstractMapBasedMetadataLoader(final ServiceRegistry serviceRegistry, final String multiValuedSeparator, final String fileExtension) { // PRECONDITIONS assert serviceRegistry != null : "serviceRegistry must not be null"; assert multiValuedSeparator != null : "multiValuedSeparator must not be null"; // Body this.namespaceService = serviceRegistry.getNamespaceService(); this.dictionaryService = serviceRegistry.getDictionaryService(); this.multiValuedSeparator = multiValuedSeparator; this.metadataFileExtension = fileExtension; }
/** * @return true if this Node is a Link to a Container (i.e. a folderlink) */ public boolean getIsLinkToContainer() { if (isLinkToContainer == null) { DictionaryService dd = this.services.getDictionaryService(); isLinkToContainer = Boolean.valueOf(dd.isSubClass(getType(), ApplicationModel.TYPE_FOLDERLINK)); } return isLinkToContainer.booleanValue(); }
/** * @return true if this Node is a Document (i.e. with content) */ public boolean getIsDocument() { if (isDocument == null) { DictionaryService dd = this.services.getDictionaryService(); isDocument = Boolean.valueOf(dd.isSubClass(getQNameType(), ContentModel.TYPE_CONTENT)); } return isDocument.booleanValue(); }
/** * @return true if this Node is a Link to a Document (i.e. a filelink) */ public boolean getIsLinkToDocument() { if (isLinkToDocument == null) { DictionaryService dd = this.services.getDictionaryService(); isLinkToDocument = Boolean.valueOf(dd.isSubClass(getType(), ApplicationModel.TYPE_FILELINK)); } return isLinkToDocument.booleanValue(); }
/** * @return true if this Node is a Link to a Container (i.e. a folderlink) */ public boolean getIsLinkToContainer() { if (isLinkToContainer == null) { DictionaryService dd = this.services.getDictionaryService(); isLinkToContainer = Boolean.valueOf(dd.isSubClass(getQNameType(), ApplicationModel.TYPE_FOLDERLINK)); } return isLinkToContainer.booleanValue(); }
/** * @return true if the node is a Category instance */ public boolean getIsCategory() { if (isCategory == null) { DictionaryService dd = this.services.getDictionaryService(); isCategory = Boolean.valueOf(dd.isSubClass(getType(), ContentModel.TYPE_CATEGORY)); } return isCategory.booleanValue(); }
/** * @return true if this Node is a Link to a Document (i.e. a filelink) */ public boolean getIsLinkToDocument() { if (isLinkToDocument == null) { DictionaryService dd = this.services.getDictionaryService(); isLinkToDocument = Boolean.valueOf(dd.isSubClass(getType(), ApplicationModel.TYPE_FILELINK)); } return isLinkToDocument.booleanValue(); }
/** * @return true if this Node is a Link to a Container (i.e. a folderlink) */ public boolean getIsLinkToContainer() { if (isLinkToContainer == null) { DictionaryService dd = this.services.getDictionaryService(); isLinkToContainer = Boolean.valueOf(dd.isSubClass(getQNameType(), ApplicationModel.TYPE_FOLDERLINK)); } return isLinkToContainer.booleanValue(); }
/** * @return true if this Node is a Link to a Document (i.e. a filelink) */ public boolean getIsLinkToDocument() { if (isLinkToDocument == null) { DictionaryService dd = this.services.getDictionaryService(); isLinkToDocument = Boolean.valueOf(dd.isSubClass(getQNameType(), ApplicationModel.TYPE_FILELINK)); } return isLinkToDocument.booleanValue(); }
/** * @return true if this Node is a Document (i.e. with content) */ public boolean getIsDocument() { if (isDocument == null) { DictionaryService dd = this.services.getDictionaryService(); isDocument = Boolean.valueOf(dd.isSubClass(getType(), ContentModel.TYPE_CONTENT)); } return isDocument.booleanValue(); }
/** * @return true if this Node is a Document (i.e. with content) */ public boolean getIsDocument() { if (isDocument == null) { DictionaryService dd = this.services.getDictionaryService(); isDocument = Boolean.valueOf(dd.isSubClass(getQNameType(), ContentModel.TYPE_CONTENT)); } return isDocument.booleanValue(); }
protected DataTypeDefinition getInDataType() { return getServiceRegistry().getDictionaryService().getDataType(DataTypeDefinition.TEXT); } }
/** * @param type The qname type to test this object against (fully qualified or short-name form) * @return true if this Node is a sub-type of the specified class (or itself of that class) */ public boolean isSubType(String type) { ParameterCheck.mandatoryString("Type", type); QName qnameType = createQName(type); return this.services.getDictionaryService().isSubClass(getQNameType(), qnameType); }
protected String getValueAsString(Serializable value) { Object converted = DefaultTypeConverter.INSTANCE.convert(getServiceRegistry().getDictionaryService() .getDataType(DataTypeDefinition.TEXT), value); String asString = DefaultTypeConverter.INSTANCE.convert(String.class, converted); return asString; }
/** * @param type The qname type to test this object against (fully qualified or short-name form) * @return true if this Node is a sub-type of the specified class (or itself of that class) */ public boolean isSubType(String type) { ParameterCheck.mandatoryString("Type", type); QName qnameType = createQName(type); return this.services.getDictionaryService().isSubClass(getQNameType(), qnameType); }
/** * @return Returns the type of the parent */ public String getParentTypeShort() { if (this.parentType == null) { this.parentType = this.services.getDictionaryService().getType(getType()).getParentName(); } return parentType.toPrefixString(this.services.getNamespaceService()); }
/** * @return Returns the type of the parent */ public String getParentTypeShort() { if (this.parentType == null) { this.parentType = this.services.getDictionaryService().getType(getType()).getParentName(); } return parentType.toPrefixString(this.services.getNamespaceService()); }