public class ControllerMetadata
extends org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
RooController.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
| Constructor and Description |
|---|
ControllerMetadata(String identifier,
org.springframework.roo.model.JavaType aspectName,
ControllerAnnotationValues controllerValues,
org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata,
org.springframework.roo.model.JavaType entity,
org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata entityMetadata,
org.springframework.roo.model.JavaType service,
String path,
String baseUrl,
org.springframework.roo.addon.web.mvc.controller.annotations.ControllerType type,
org.springframework.roo.addon.layers.service.addon.ServiceMetadata serviceMetadata,
String detailAnnotaionFieldValue,
Map<org.springframework.roo.model.JavaType,org.springframework.roo.addon.layers.service.addon.ServiceMetadata> detailsServiceMetadata,
List<RelationInfoExtended> detailsFieldInfo,
Map<String,RelationInfoExtended> relationInfos)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createIdentifier(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails details) |
static String |
createIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.LogicalPath path) |
ControllerAnnotationValues |
getAnnotationValues() |
String |
getDetailAnnotaionFieldValue() |
List<RelationInfoExtended> |
getDetailsFieldInfo() |
String |
getDetailsPathAsString(String separator)
Return the string result to join
getDetailsFieldInfo() fieldName
with provided separator string |
Map<org.springframework.roo.model.JavaType,org.springframework.roo.classpath.details.FieldMetadata> |
getDetailsServiceFields() |
org.springframework.roo.classpath.details.FieldMetadata |
getDetailsServiceFields(org.springframework.roo.model.JavaType entityType) |
org.springframework.roo.model.JavaType |
getEntity() |
org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata |
getEntityMetadata() |
org.springframework.roo.classpath.details.FieldMetadata |
getIdentifierField() |
org.springframework.roo.model.JavaType |
getIdentifierType() |
static org.springframework.roo.model.JavaType |
getJavaType(String metadataIdentificationString) |
org.springframework.roo.model.JavaType |
getLastDetailEntity() |
org.springframework.roo.model.JavaType |
getLastDetailService() |
org.springframework.roo.classpath.details.FieldMetadata |
getLastDetailServiceField() |
RelationInfoExtended |
getLastDetailsInfo() |
static String |
getMetadataIdentiferType() |
String |
getPath() |
static org.springframework.roo.project.LogicalPath |
getPath(String metadataIdentificationString) |
Map<String,RelationInfoExtended> |
getRelationInfos() |
String |
getRequestMappingValue() |
org.springframework.roo.model.JavaType |
getService() |
org.springframework.roo.classpath.details.FieldMetadata |
getServiceField() |
org.springframework.roo.addon.layers.service.addon.ServiceMetadata |
getServiceMetadataForEntity(org.springframework.roo.model.JavaType entityType) |
org.springframework.roo.addon.web.mvc.controller.annotations.ControllerType |
getType() |
static boolean |
isValid(String metadataIdentificationString) |
String |
toString() |
buildItd, ensureGovernorExtends, ensureGovernorHasConstructor, ensureGovernorHasField, ensureGovernorHasField, ensureGovernorHasMethod, ensureGovernorImplements, ensureGovernorIsAnnotated, getAccessorMethod, getAccessorMethod, getAccessorMethod, getAccessorMethod, getAspectName, getDestination, getField, getField, getGovernorMethod, getGovernorMethod, getMemberHoldingTypeDetails, getMethod, getMutatorMethod, getMutatorMethod, getMutatorMethod, getNameOfJavaType, getNameOfJavaType, getTypeAnnotation, governorHasMethod, governorHasMethod, governorHasMethodWithSameName, hashCode, isImplementingprotected static final Logger LOGGER
public ControllerMetadata(String identifier, org.springframework.roo.model.JavaType aspectName, ControllerAnnotationValues controllerValues, org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata, org.springframework.roo.model.JavaType entity, org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata entityMetadata, org.springframework.roo.model.JavaType service, String path, String baseUrl, org.springframework.roo.addon.web.mvc.controller.annotations.ControllerType type, org.springframework.roo.addon.layers.service.addon.ServiceMetadata serviceMetadata, String detailAnnotaionFieldValue, Map<org.springframework.roo.model.JavaType,org.springframework.roo.addon.layers.service.addon.ServiceMetadata> detailsServiceMetadata, List<RelationInfoExtended> detailsFieldInfo, Map<String,RelationInfoExtended> relationInfos)
identifier - the identifier for this item of metadata (required)aspectName - the Java type of the ITD (required)controllerValues - governorPhysicalTypeMetadata - the governor, which is expected to contain a
ClassOrInterfaceTypeDetails (required)entity - Javatype with entity managed by controllerservice - JavaType with service used by controllerdetailsServices - List with all services of every field that will be used as
detailpath - controllerPathtype - Indicate the controller typeidentifierType - Indicates the identifier type of the entity which represents
this controllerserviceMetadata - ServiceMetadata of the service used by controllerrelationInfos - controllerDetailInfo - Contains information relative to detail controllerpublic static String createIdentifier(org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.LogicalPath path)
public static String createIdentifier(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails details)
public static org.springframework.roo.model.JavaType getJavaType(String metadataIdentificationString)
public static String getMetadataIdentiferType()
public static org.springframework.roo.project.LogicalPath getPath(String metadataIdentificationString)
public static boolean isValid(String metadataIdentificationString)
public String toString()
toString in class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItempublic org.springframework.roo.model.JavaType getEntity()
public org.springframework.roo.addon.web.mvc.controller.annotations.ControllerType getType()
public org.springframework.roo.model.JavaType getService()
public String getPath()
public org.springframework.roo.classpath.details.FieldMetadata getIdentifierField()
public org.springframework.roo.model.JavaType getIdentifierType()
public List<RelationInfoExtended> getDetailsFieldInfo()
public String getDetailsPathAsString(String separator)
getDetailsFieldInfo() fieldName
with provided separator stringseparator - getDetailsFieldInfo() == null, stringpublic String getRequestMappingValue()
public Map<org.springframework.roo.model.JavaType,org.springframework.roo.classpath.details.FieldMetadata> getDetailsServiceFields()
public org.springframework.roo.classpath.details.FieldMetadata getDetailsServiceFields(org.springframework.roo.model.JavaType entityType)
public RelationInfoExtended getLastDetailsInfo()
public org.springframework.roo.classpath.details.FieldMetadata getLastDetailServiceField()
public org.springframework.roo.model.JavaType getLastDetailService()
public org.springframework.roo.model.JavaType getLastDetailEntity()
public org.springframework.roo.classpath.details.FieldMetadata getServiceField()
public org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata getEntityMetadata()
public String getDetailAnnotaionFieldValue()
public Map<String,RelationInfoExtended> getRelationInfos()
public org.springframework.roo.addon.layers.service.addon.ServiceMetadata getServiceMetadataForEntity(org.springframework.roo.model.JavaType entityType)
public ControllerAnnotationValues getAnnotationValues()
Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.