Resolves checkstyle errors for naked-objects null-object object-mother object-pool observer queue-load-leveling (#1082)
* Reduces checkstyle errors in naked-objects * Reduces checkstyle errors in null-object * Reduces checkstyle errors in object-mother * Reduces checkstyle errors in object-pool * Reduces checkstyle errors in observer * Reduces checkstyle errors in queue-load-leveling
This commit is contained in:
committed by
Ilkka Seppälä
parent
1e76d91929
commit
6ef840f3cf
@ -31,7 +31,8 @@ import org.apache.isis.applib.annotation.NatureOfService;
|
||||
import org.apache.isis.applib.annotation.SemanticsOf;
|
||||
|
||||
/**
|
||||
* HomePage Domain Service
|
||||
* HomePage Domain Service.
|
||||
*
|
||||
* @see HomePageViewModel linked view to HomePage
|
||||
*/
|
||||
@DomainService(nature = NatureOfService.VIEW_CONTRIBUTIONS_ONLY)
|
||||
|
@ -23,16 +23,14 @@
|
||||
|
||||
package domainapp.dom.app.homepage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.isis.applib.annotation.ViewModel;
|
||||
|
||||
import domainapp.dom.modules.simple.SimpleObject;
|
||||
import domainapp.dom.modules.simple.SimpleObjects;
|
||||
import java.util.List;
|
||||
import org.apache.isis.applib.annotation.ViewModel;
|
||||
|
||||
/**
|
||||
* Model linked to the HomePage
|
||||
* The underlying layout is specified by json
|
||||
* Model linked to the HomePage The underlying layout is specified by json.
|
||||
*
|
||||
* @see HomePageService - Service Linked to the HomePage
|
||||
*/
|
||||
@ViewModel
|
||||
|
@ -15,29 +15,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 12,
|
||||
"collections": {
|
||||
"objects": {
|
||||
"collectionLayout": {
|
||||
"render": "EAGERLY"
|
||||
}
|
||||
}
|
||||
}
|
||||
"columns": [
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 12,
|
||||
"collections": {
|
||||
"objects": {
|
||||
"collectionLayout": {
|
||||
"render": "EAGERLY"
|
||||
}
|
||||
}
|
||||
],
|
||||
"actions": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"actions": {}
|
||||
}
|
@ -26,7 +26,6 @@ package domainapp.dom.modules.simple;
|
||||
import javax.jdo.JDOHelper;
|
||||
import javax.jdo.annotations.IdentityType;
|
||||
import javax.jdo.annotations.VersionStrategy;
|
||||
|
||||
import org.apache.isis.applib.DomainObjectContainer;
|
||||
import org.apache.isis.applib.Identifier;
|
||||
import org.apache.isis.applib.annotation.Action;
|
||||
@ -43,7 +42,7 @@ import org.apache.isis.applib.services.i18n.TranslatableString;
|
||||
import org.apache.isis.applib.util.ObjectContracts;
|
||||
|
||||
/**
|
||||
* Definition of a Simple Object
|
||||
* Definition of a Simple Object.
|
||||
*/
|
||||
@javax.jdo.annotations.PersistenceCapable(identityType = IdentityType.DATASTORE, schema = "simple",
|
||||
table = "SimpleObject")
|
||||
@ -87,11 +86,11 @@ public class SimpleObject implements Comparable<SimpleObject> {
|
||||
// region > updateName (action)
|
||||
|
||||
/**
|
||||
* Event used to update the Name in the Domain
|
||||
* Event used to update the Name in the Domain.
|
||||
*/
|
||||
public static class UpdateNameDomainEvent extends ActionDomainEvent<SimpleObject> {
|
||||
public UpdateNameDomainEvent(final SimpleObject source, final Identifier identifier,
|
||||
final Object... arguments) {
|
||||
final Object... arguments) {
|
||||
super(source, identifier, arguments);
|
||||
}
|
||||
}
|
||||
|
@ -15,42 +15,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"span": 6,
|
||||
"memberGroups": {
|
||||
"General": {
|
||||
"members": {
|
||||
"name": {
|
||||
"actions": {
|
||||
"updateName": {
|
||||
"actionLayout": {
|
||||
"position": "BOTTOM"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"versionSequence": {
|
||||
"propertyLayout": {
|
||||
"name": "version"
|
||||
}
|
||||
}
|
||||
}
|
||||
"columns": [
|
||||
{
|
||||
"span": 6,
|
||||
"memberGroups": {
|
||||
"General": {
|
||||
"members": {
|
||||
"name": {
|
||||
"actions": {
|
||||
"updateName": {
|
||||
"actionLayout": {
|
||||
"position": "BOTTOM"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"versionSequence": {
|
||||
"propertyLayout": {
|
||||
"name": "version"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 6,
|
||||
"collections": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"actions": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 0,
|
||||
"memberGroups": {}
|
||||
},
|
||||
{
|
||||
"span": 6,
|
||||
"collections": {}
|
||||
}
|
||||
],
|
||||
"actions": {}
|
||||
}
|
@ -24,7 +24,6 @@
|
||||
package domainapp.dom.modules.simple;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.isis.applib.DomainObjectContainer;
|
||||
import org.apache.isis.applib.Identifier;
|
||||
import org.apache.isis.applib.annotation.Action;
|
||||
@ -40,7 +39,7 @@ import org.apache.isis.applib.services.eventbus.ActionDomainEvent;
|
||||
import org.apache.isis.applib.services.i18n.TranslatableString;
|
||||
|
||||
/**
|
||||
* Domain Service for Simple Objects
|
||||
* Domain Service for Simple Objects.
|
||||
*/
|
||||
@DomainService(repositoryFor = SimpleObject.class)
|
||||
@DomainServiceLayout(menuOrder = "10")
|
||||
@ -82,18 +81,18 @@ public class SimpleObjects {
|
||||
// endregion
|
||||
|
||||
/**
|
||||
* Create Domain Event on SimpleObjects
|
||||
* Create Domain Event on SimpleObjects.
|
||||
*/
|
||||
// region > create (action)
|
||||
public static class CreateDomainEvent extends ActionDomainEvent<SimpleObjects> {
|
||||
public CreateDomainEvent(final SimpleObjects source, final Identifier identifier,
|
||||
final Object... arguments) {
|
||||
final Object... arguments) {
|
||||
super(source, identifier, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create simple object
|
||||
* Create simple object.
|
||||
*/
|
||||
@Action(domainEvent = CreateDomainEvent.class)
|
||||
@MemberOrder(sequence = "3")
|
||||
|
Reference in New Issue
Block a user