本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);