CCM NG: Fixed bugs in dispatcher code
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4493 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
parent
9ef1169553
commit
e10ab7704e
|
|
@ -172,7 +172,7 @@ public class ContentItem extends CcmObject implements Serializable,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@Field
|
// @Field
|
||||||
private LocalizedString name;
|
private LocalizedString name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -181,7 +181,7 @@ public class ContentItem extends CcmObject implements Serializable,
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "CONTENT_TYPE_ID")
|
@JoinColumn(name = "CONTENT_TYPE_ID")
|
||||||
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
|
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
|
||||||
@Field
|
// @Field
|
||||||
private ContentType contentType;
|
private ContentType contentType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -197,7 +197,7 @@ public class ContentItem extends CcmObject implements Serializable,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@Field
|
// @Field
|
||||||
private LocalizedString title;
|
private LocalizedString title;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -211,7 +211,7 @@ public class ContentItem extends CcmObject implements Serializable,
|
||||||
joinColumns = {
|
joinColumns = {
|
||||||
@JoinColumn(name = "OBJECT_ID")}
|
@JoinColumn(name = "OBJECT_ID")}
|
||||||
))
|
))
|
||||||
@Field
|
// @Field
|
||||||
private LocalizedString description;
|
private LocalizedString description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -219,7 +219,7 @@ public class ContentItem extends CcmObject implements Serializable,
|
||||||
*/
|
*/
|
||||||
@Column(name = "VERSION")
|
@Column(name = "VERSION")
|
||||||
@Enumerated(EnumType.STRING)
|
@Enumerated(EnumType.STRING)
|
||||||
@Field
|
// @Field
|
||||||
private ContentItemVersion version;
|
private ContentItemVersion version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ public class CCMDispatcherServlet extends BaseServlet {
|
||||||
|
|
||||||
private static final String DISPATCHED_ATTRIBUTE
|
private static final String DISPATCHED_ATTRIBUTE
|
||||||
= CCMDispatcherServlet.class
|
= CCMDispatcherServlet.class
|
||||||
.getName() + ".dispatched";
|
.getName() + ".dispatched";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String containing the web context path portion of the WEB application
|
* String containing the web context path portion of the WEB application
|
||||||
|
|
@ -431,8 +431,8 @@ public class CCMDispatcherServlet extends BaseServlet {
|
||||||
.urlPatterns()[0]
|
.urlPatterns()[0]
|
||||||
.substring(0,
|
.substring(0,
|
||||||
servletAnnotation
|
servletAnnotation
|
||||||
.urlPatterns()[0]
|
.urlPatterns()[0]
|
||||||
.length() - 1);
|
.length() - 1);
|
||||||
} else {
|
} else {
|
||||||
m_typeURI = servletAnnotation.urlPatterns()[0];
|
m_typeURI = servletAnnotation.urlPatterns()[0];
|
||||||
}
|
}
|
||||||
|
|
@ -495,8 +495,10 @@ public class CCMDispatcherServlet extends BaseServlet {
|
||||||
final StringBuffer target = new StringBuffer(128);
|
final StringBuffer target = new StringBuffer(128);
|
||||||
|
|
||||||
target.append(m_typeURI);
|
target.append(m_typeURI);
|
||||||
target.append("/");
|
// target.append("/");
|
||||||
target.append(path.substring(m_instanceURI.length()));
|
if (path.length() > (m_instanceURI.length() + 1)) {
|
||||||
|
target.append(path.substring(m_instanceURI.length() + 1));
|
||||||
|
}
|
||||||
target.append("?");
|
target.append("?");
|
||||||
target.append(BaseApplicationServlet.APPLICATION_ID_PARAMETER);
|
target.append(BaseApplicationServlet.APPLICATION_ID_PARAMETER);
|
||||||
target.append("=");
|
target.append("=");
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ import static org.libreccm.core.CoreConstants.CORE_XML_NS;
|
||||||
import static org.libreccm.core.CoreConstants.DB_SCHEMA;
|
import static org.libreccm.core.CoreConstants.DB_SCHEMA;
|
||||||
|
|
||||||
import org.hibernate.search.annotations.Field;
|
import org.hibernate.search.annotations.Field;
|
||||||
|
import org.hibernate.search.annotations.FieldBridge;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Root class of all entities in LibreCCM which need categorisation and
|
* Root class of all entities in LibreCCM which need categorisation and
|
||||||
|
|
@ -95,7 +96,6 @@ public class CcmObject implements Identifiable, Serializable {
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "OBJECT_ID")
|
@Column(name = "OBJECT_ID")
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
@Field
|
|
||||||
@XmlElement(name = "object-id", namespace = CORE_XML_NS)
|
@XmlElement(name = "object-id", namespace = CORE_XML_NS)
|
||||||
private long objectId;
|
private long objectId;
|
||||||
|
|
||||||
|
|
@ -121,7 +121,6 @@ public class CcmObject implements Identifiable, Serializable {
|
||||||
* Permissions granted on this object.
|
* Permissions granted on this object.
|
||||||
*/
|
*/
|
||||||
@OneToMany(mappedBy = "object")
|
@OneToMany(mappedBy = "object")
|
||||||
@Field
|
|
||||||
@XmlElementWrapper(name = "permissions", namespace = CORE_XML_NS)
|
@XmlElementWrapper(name = "permissions", namespace = CORE_XML_NS)
|
||||||
@XmlElement(name = "permission", namespace = CORE_XML_NS)
|
@XmlElement(name = "permission", namespace = CORE_XML_NS)
|
||||||
@JsonBackReference(value = "permission-object")
|
@JsonBackReference(value = "permission-object")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue