Package org.apache.isis.core.runtime.services.memento

Examples of org.apache.isis.core.runtime.services.memento.MementoServiceDefault


public class BackgroundServiceDefault implements BackgroundService {

    private final MementoServiceDefault mementoService;
   
    public BackgroundServiceDefault() {
        this(new MementoServiceDefault());
    }
View Full Code Here


    private final MementoServiceDefault mementoService;

    public BackgroundCommandExecution() {
        // same as configured by BackgroundServiceDefault
        mementoService = new MementoServiceDefault().withNoEncoding();
    }
View Full Code Here

    private MementoServiceDefault mementoService;
   
    @Before
    public void setUp() throws Exception {
        mementoService = new MementoServiceDefault().withNoEncoding();
    }
View Full Code Here

    private final MementoServiceDefault mementoService;

    public BackgroundCommandExecution() {
        // same as configured by BackgroundServiceDefault
        mementoService = new MementoServiceDefault().withNoEncoding();
    }
View Full Code Here

        public void hintsToPageParameters(Map<String,String> hints, PageParameters pageParameters) {
            if(hints.isEmpty()) {
                return;
            }
            MementoServiceDefault vms = new MementoServiceDefault();
            Memento memento = vms.create();
            Set<String> hintKeys = hints.keySet();
            for (String key : hintKeys) {
                String safeKey = key.replace(':', '_');
                Serializable value = hints.get(key);
                memento.set(safeKey, value);
View Full Code Here

        public void pageParametersToHints(final PageParameters pageParameters, Map<String,String> hints) {
            String hintsStr = PageParameterNames.ANCHOR.getStringFrom(pageParameters);
            if(hintsStr != null) {
                try {
                    Memento memento = new MementoServiceDefault().parse(hintsStr);
                    Set<String> keys = memento.keySet();
                    for (String safeKey : keys) {
                        String value = memento.get(safeKey, String.class);
                        String key = safeKey.replace('_', ':');
                        hints.put(key, value);
View Full Code Here

public class BackgroundServiceDefault implements BackgroundService {

    private final MementoServiceDefault mementoService;
   
    public BackgroundServiceDefault() {
        this(new MementoServiceDefault());
    }
View Full Code Here

    private final MementoServiceDefault mementoService;

    public BackgroundCommandExecution() {
        // same as configured by BackgroundServiceDefault
        mementoService = new MementoServiceDefault().withNoEncoding();
    }
View Full Code Here

                    new WrapperFactoryDefault(),
                    new IsisJdoSupportImpl(),
                    new Bulk.InteractionContext(),
                    new EventBusServiceJdo(),
                    new QueryResultsCache(),
                    new MementoServiceDefault(),
                    new BookmarkServiceDefault(),
                    new ClockService()
                    );
        }
View Full Code Here

        public void hintsToPageParameters(Map<String,String> hints, PageParameters pageParameters) {
            if(hints.isEmpty()) {
                return;
            }
            MementoServiceDefault vms = new MementoServiceDefault();
            Memento memento = vms.create();
            Set<String> hintKeys = hints.keySet();
            for (String key : hintKeys) {
                String safeKey = key.replace(':', '_');
                Serializable value = hints.get(key);
                memento.set(safeKey, value);
View Full Code Here

TOP

Related Classes of org.apache.isis.core.runtime.services.memento.MementoServiceDefault

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.