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


Java MaintenanceDocumentEntry类代码示例

本文整理汇总了Java中org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry的典型用法代码示例。如果您正苦于以下问题:Java MaintenanceDocumentEntry类的具体用法?Java MaintenanceDocumentEntry怎么用?Java MaintenanceDocumentEntry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MaintenanceDocumentEntry类属于org.kuali.rice.krad.datadictionary包,在下文中一共展示了MaintenanceDocumentEntry类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDocumentEntryForView

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * Overrides to retrieve the a {@link MaintenanceDocumentEntry} based on the configured data object class
 *
 * @return MaintenanceDocumentEntry document entry (exception thrown if not found)
 */
@Override
protected MaintenanceDocumentEntry getDocumentEntryForView() {
    MaintenanceDocumentEntry documentEntry = null;
    String docTypeName = KRADServiceLocatorWeb.getDocumentDictionaryService().getMaintenanceDocumentTypeName(
            getDataObjectClassName());
    if (StringUtils.isNotBlank(docTypeName)) {
        documentEntry = KRADServiceLocatorWeb.getDocumentDictionaryService().getMaintenanceDocumentEntry(
                docTypeName);
    }

    if (documentEntry == null) {
        throw new RuntimeException(
                "Unable to find maintenance document entry for data object class: " + getDataObjectClassName()
                        .getName());
    }

    return documentEntry;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:24,代码来源:MaintenanceDocumentView.java

示例2: getMaintenanceDocumentTypeName

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getMaintenanceDocumentTypeName
 */
@Override
public String getMaintenanceDocumentTypeName(Class dataObjectClass) {
    String documentTypeName = null;

    MaintenanceDocumentEntry entry = getMaintenanceDocumentEntry(dataObjectClass);
    if (entry != null) {
        documentTypeName = entry.getDocumentTypeName();
    }

    return documentTypeName;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:DocumentDictionaryServiceImpl.java

示例3: getMaintenanceDataObjectClass

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getMaintenanceDataObjectClass
 */
@Override
public Class<?> getMaintenanceDataObjectClass(String docTypeName) {
    Class dataObjectClass = null;

    MaintenanceDocumentEntry entry = getMaintenanceDocumentEntry(docTypeName);
    if (entry != null) {
        dataObjectClass = entry.getDataObjectClass();
    }

    return dataObjectClass;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:DocumentDictionaryServiceImpl.java

示例4: getMaintainableClass

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.impl.DocumentDictionaryService#getMaintainableClass
 */
@Override
public Class<? extends Maintainable> getMaintainableClass(String docTypeName) {
    Class maintainableClass = null;

    MaintenanceDocumentEntry entry = getMaintenanceDocumentEntry(docTypeName);
    if (entry != null) {
        maintainableClass = entry.getMaintainableClass();
    }

    return maintainableClass;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:DocumentDictionaryServiceImpl.java

示例5: getAllowsNewOrCopy

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getAllowsNewOrCopy
 */
@Override
public Boolean getAllowsNewOrCopy(String docTypeName) {
    Boolean allowsNewOrCopy = Boolean.FALSE;

    if (docTypeName != null) {
        MaintenanceDocumentEntry entry = getMaintenanceDocumentEntry(docTypeName);
        if (entry != null) {
            allowsNewOrCopy = Boolean.valueOf(entry.getAllowsNewOrCopy());
        }
    }

    return allowsNewOrCopy;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:17,代码来源:DocumentDictionaryServiceImpl.java

示例6: getMaintenanceDocumentEntry

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getMaintenanceDocumentEntry
 */
@Override
public MaintenanceDocumentEntry getMaintenanceDocumentEntry(String docTypeName) {
    if (StringUtils.isBlank(docTypeName)) {
        throw new IllegalArgumentException("invalid (blank) docTypeName");
    }

    MaintenanceDocumentEntry entry = (MaintenanceDocumentEntry) getDataDictionary().getDocumentEntry(docTypeName);
    return entry;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:13,代码来源:DocumentDictionaryServiceImpl.java

示例7: getAllowsRecordDeletion

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getAllowsRecordDeletion
 */
@Override
public Boolean getAllowsRecordDeletion(Class dataObjectClass) {
    Boolean allowsRecordDeletion = Boolean.FALSE;

    MaintenanceDocumentEntry docEntry = getMaintenanceDocumentEntry(dataObjectClass);

    if (docEntry != null) {
        allowsRecordDeletion = Boolean.valueOf(docEntry.getAllowsRecordDeletion());
    }

    return allowsRecordDeletion;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:DocumentDictionaryServiceImpl.java

示例8: getLockingKeys

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getLockingKeys
 */
@Override
public List<String> getLockingKeys(String docTypeName) {
    List lockingKeys = null;

    MaintenanceDocumentEntry entry = getMaintenanceDocumentEntry(docTypeName);
    if (entry != null) {
        lockingKeys = entry.getLockingKeyFieldNames();
    }

    return lockingKeys;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:DocumentDictionaryServiceImpl.java

示例9: getPreserveLockingKeysOnCopy

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getPreserveLockingKeysOnCopy
 */
@Override
public boolean getPreserveLockingKeysOnCopy(Class dataObjectClass) {
    boolean preserveLockingKeysOnCopy = false;

    MaintenanceDocumentEntry docEntry = getMaintenanceDocumentEntry(dataObjectClass);

    if (docEntry != null) {
        preserveLockingKeysOnCopy = docEntry.getPreserveLockingKeysOnCopy();
    }

    return preserveLockingKeysOnCopy;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:DocumentDictionaryServiceImpl.java

示例10: getClearValueOnCopyPropertyNames

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * @see org.kuali.rice.krad.service.DocumentDictionaryService#getClearValueOnCopyPropertyNames
 */
@Override
public List<String> getClearValueOnCopyPropertyNames(Class dataObjectClass) {
    List clearValueOnCopyPropertyNames = null;

    MaintenanceDocumentEntry docEntry = getMaintenanceDocumentEntry(dataObjectClass);

    if (docEntry != null) {
        clearValueOnCopyPropertyNames = docEntry.getClearValueOnCopyPropertyNames();
    }

    return clearValueOnCopyPropertyNames;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:DocumentDictionaryServiceImpl.java

示例11: buildDocumentRoleQualifiers

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * Generates role qualifiers for authorization check.  If the document status is a non-routed status, "PreRoute" is used.
 * The namespaceCode attribute is derived from the KRAD DataDictionary if there is a mapping for the document type.
 * @param document the document instance
 * @param routeNodeName name of the applicable routenode
 * @return map of role qualifiers
 */
protected Map<String, String> buildDocumentRoleQualifiers(DocumentRouteHeaderValue document, String routeNodeName) {
    Map<String, String> qualifiers = new HashMap<String, String>();
    qualifiers.put(KimConstants.AttributeConstants.DOCUMENT_NUMBER, document.getDocumentId());
    if (!StringUtils.isBlank(document.getDocRouteStatus())) {
        qualifiers.put(KewApiConstants.DOCUMENT_STATUS_DETAIL, document.getDocRouteStatus());
        if (KewApiConstants.ROUTE_HEADER_INITIATED_CD.equals(document.getDocRouteStatus()) || KewApiConstants.ROUTE_HEADER_SAVED_CD.equals(document.getDocRouteStatus())) {
            qualifiers.put(KimConstants.AttributeConstants.ROUTE_NODE_NAME, DocumentAuthorizerBase.PRE_ROUTING_ROUTE_NAME);
        }
        else {
            qualifiers.put(KimConstants.AttributeConstants.ROUTE_NODE_NAME, routeNodeName);
        }
    }
    qualifiers.put(KewApiConstants.DOCUMENT_TYPE_NAME_DETAIL, document.getDocumentType().getName());

    DocumentEntry documentEntry = KRADServiceLocatorWeb.getDataDictionaryService().getDataDictionary().getDocumentEntry(document.getDocumentType().getName());
    if (documentEntry != null) {
        Class<? extends Document> documentClass = documentEntry.getDocumentClass();
        String namespaceCode;
        if (MaintenanceDocument.class.isAssignableFrom(documentClass)) {
            MaintenanceDocumentEntry maintenanceDocumentEntry = (MaintenanceDocumentEntry) documentEntry;
            namespaceCode = KRADUtils.getNamespaceCode(maintenanceDocumentEntry.getDataObjectClass());
        }
        else {
            namespaceCode = KRADUtils.getNamespaceCode(documentClass);
        }
        qualifiers.put(KimConstants.AttributeConstants.NAMESPACE_CODE, namespaceCode);
    }

    return qualifiers;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:38,代码来源:DocumentActionsPermissionBase.java

示例12: getMaintenanceDocumentEntry

import org.kuali.rice.krad.datadictionary.MaintenanceDocumentEntry; //导入依赖的package包/类
/**
 * Retrieves the maintenance document entry that is associated with the given document type name
 *
 * @param docTypeName - document type name to retrieve maintenance document entry for
 * @return MaintenanceDocumentEntry instance associated with document type
 */
public MaintenanceDocumentEntry getMaintenanceDocumentEntry(String docTypeName);
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:DocumentDictionaryService.java


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