/** * Which grid (implementation) is defined by this service. */ @Programmatic Class<? extends Grid> gridImplementation();
/** * Whether the object is in a valid state, that is that none of the * validation of properties, collections and object-level is vetoing. * * @see #validate(Object) */ @Programmatic boolean isValid(Object domainObject);
/** * Make the specified message available to the user. Note this will probably * be displayed in transitory fashion, so is only suitable for useful but * optional information. * * @see #informUser(org.apache.isis.applib.services.i18n.TranslatableString, Class, String) * @see #warnUser(String) * @see #raiseError(String) */ @Programmatic void informUser(String message);
/** * */ @Programmatic void releaseRunAs(); }
/** * Typically for mapping from a domain object to a DTO. */ @Programmatic Object map(Object object, final List<MediaType> acceptableMediaTypes);
@Programmatic public FixtureScript withDiscoverability(final Discoverability discoverability) { this.discoverability = discoverability; return this; }
/** * <b>NOT API</b>: intended to be called only by the framework. */ @Programmatic public void setDomainObjects(List<Object> domainObjects) { this.domainObjects = domainObjects; }
/** * <b>NOT API</b>: intended to be called only by the framework. */ @Programmatic public void setIndex(int index) { this.index = index; }
/** * @return as {@link #getAppManifest()}, downcasted (else null). */ @Programmatic AppManifest2 getAppManifest2();
/** * Get the configuration property with the specified name. */ @Programmatic String getProperty(String name);
/** * Whether dynamic reloading of layouts is enabled. */ @Programmatic boolean supportsReloading();
/** * As {@link #fromXml(JAXBContext, String, Map)}, but downcast to a specific type. */ @Programmatic <T> T fromXml(Class<T> domainClass, String xml, Map<String,Object> unmarshallerProperties);
/** * Executes the specified command. * @param sudoPolicy * @param commandWithDto * @return - any exception raised by the command. */ @Programmatic void executeCommand(SudoPolicy sudoPolicy, CommandWithDto commandWithDto);
/** * Whether any persisted layout metadata (eg a <code>.layout.xml</code> file) exists for this domain class. */ @Programmatic boolean existsFor(Class<?> domainClass);
/** * @deprecated - because {@link MementoService} is deprecated. */ @Deprecated @Programmatic public <T> T get(String name, Class<T> cls);
/** * Parse string returned from {@link Memento#asString()} * * <p> * Typically followed by {@link Memento#get(String, Class)} for each of the data values held * in the {@link Memento}. * * @deprecated - because {@link MementoService} is deprecated. */ @Deprecated @Programmatic public Memento parse(final String str);
/** * @deprecated - if an implementation of {@link ClassDiscoveryService2} is available then its equivalent {@link ClassDiscoveryService2#findSubTypesOfClasses(Class, String)} will be used instead. */ @Deprecated @Programmatic public <T> Set<Class<? extends T>> findSubTypesOfClasses(Class<T> type);
/** * Return the icon name of the object, as rendered in the UI by the * Isis viewers. * * @deprecated - use {@link TitleService#iconNameOf(Object)} instead. */ @Deprecated @Programmatic String iconNameOf(Object domainObject);
/** * @deprecated - use {@link org.apache.isis.applib.services.repository.RepositoryService#persist(Object)} instead. Please note that {@link org.apache.isis.applib.services.repository.RepositoryService#persist(Object)} will not throw an exception if the Domain Object is already persistent, so the implementation will be the same as that of {@link org.apache.isis.applib.services.repository.RepositoryService#persistIfNotAlready(Object)} (or the equivalent, deprecated {@link org.apache.isis.applib.DomainObjectContainer#persistIfNotAlready(Object)}) instead. */ @Deprecated @Programmatic void persist(Object domainObject);
/** * @deprecated - use {@link org.apache.isis.applib.services.message.MessageService#warnUser(String)} instead. */ @Deprecated @Programmatic void warnUser(String message);