本文整理了Java中org.apache.isis.applib.annotation.Action.<init>()
方法的一些代码示例,展示了Action.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.<init>()
方法的具体详情如下:
包路径:org.apache.isis.applib.annotation.Action
类名称:Action
方法名:<init>
暂无
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
@Action(
restrictTo = RestrictTo.PROTOTYPING
)
@ActionLayout(
describedAs = "Retrieved all the saved objects"
)
@MemberOrder(sequence = "4")
public Set<Object> allSavedObjects() {
return objects;
}
代码示例来源:origin: org.incode.module.document/incode-module-document-dom
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = ActionDomainEvent.class
)
@ActionLayout(named = "Download")
public Blob $$() {
return urlDownloadService.downloadAsBlob(document);
}
代码示例来源:origin: org.incode.example.document/incode-example-document-dom
@Action(
semantics = SemanticsOf.IDEMPOTENT,
domainEvent = ActionDomainEvent.class
)
@MemberOrder(name = "rendererModelFactoryClassName",sequence = "1")
public Applicability_changeRendererModelFactory $$(final ClassNameViewModel classNameViewModel) {
applicability.setRendererModelFactoryClassName(classNameViewModel.getFullyQualifiedClassName());
return this;
}
代码示例来源:origin: org.apache.isis.core/isis-core-applib
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = OpenSwaggerUiDomainEvent.class,
restrictTo = RestrictTo.PROTOTYPING
)
@ActionLayout(
cssClassFa = "fa-external-link"
)
@MemberOrder(sequence="500.600.1")
public URL openSwaggerUi() throws MalformedURLException {
return new java.net.URL("http:///swagger-ui/index.html");
}
代码示例来源:origin: org.incode.example.document/incode-example-document-dom
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = ActionDomainEvent.class
)
@ActionLayout(named = "Download")
public Clob $$() {
return urlDownloadService.downloadAsClob(document);
}
代码示例来源:origin: org.incode.example.document/incode-example-document-dom
@Action(
semantics = SemanticsOf.IDEMPOTENT,
domainEvent = ActionDomainEvent.class
)
@MemberOrder(name = "attachmentAdvisorClassName",sequence = "1")
public Applicability_changeAttachmentAdvisor $$(final ClassNameViewModel classNameViewModel) {
applicability.setAttachmentAdvisorClassName(classNameViewModel.getFullyQualifiedClassName());
return this;
}
代码示例来源:origin: org.apache.isis.core/isis-core-applib
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = OpenSwaggerUiDomainEvent.class,
restrictTo = RestrictTo.PROTOTYPING
)
@ActionLayout(
cssClassFa = "fa-external-link"
)
@MemberOrder(sequence="500.600.2")
public URL openRestApi() throws MalformedURLException {
return new java.net.URL("http:///restful/");
}
代码示例来源:origin: org.apache.isis.core/isis-core-applib
@Action(
domainEvent = ActionDomainEvent.class,
semantics = SemanticsOf.SAFE
)
@ActionLayout(
contributed = Contributed.AS_ACTION,
cssClassFa = "fa-bookmark"
)
public Object act() {
return bookmarkService.lookup(bookmarkHolder);
}
代码示例来源:origin: org.incode.module.document/incode-module-document-dom
@Action(
semantics = SemanticsOf.IDEMPOTENT,
domainEvent = ActionDomainEvent.class
)
@MemberOrder(name = "attachmentAdvisorClassName",sequence = "1")
public Applicability_changeAttachmentAdvisor $$(final ClassNameViewModel classNameViewModel) {
applicability.setAttachmentAdvisorClassName(classNameViewModel.getFullyQualifiedClassName());
return this;
}
代码示例来源:origin: feixiao/DesignPattern
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT)
@MemberOrder(sequence = "1")
public List<SimpleObject> listAll() {
return container.allInstances(SimpleObject.class);
}
代码示例来源:origin: org.apache.isis.core/isis-core-applib
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = BookmarkHolder_object.ActionDomainEvent.class
)
@ActionLayout(
contributed = Contributed.AS_ASSOCIATION
)
public Object prop() {
return bookmarkService.lookup(bookmarkHolder);
}
代码示例来源:origin: org.incode.module.document/incode-module-document-dom
@Action(
semantics = SemanticsOf.IDEMPOTENT,
domainEvent = ActionDomainEvent.class
)
@MemberOrder(name = "rendererModelFactoryClassName",sequence = "1")
public Applicability_changeRendererModelFactory $$(final ClassNameViewModel classNameViewModel) {
applicability.setRendererModelFactoryClassName(classNameViewModel.getFullyQualifiedClassName());
return this;
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
@Action(
restrictTo = RestrictTo.PROTOTYPING
)
@ActionLayout(
describedAs = "Remove this object from the set of saved objects"
)
@MemberOrder(sequence = "2")
public void remove(final Object object) {
objects.remove(object);
saveAll();
}
代码示例来源:origin: org.incode.module.document/incode-module-document-dom
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(contributed = Contributed.AS_ASSOCIATION)
public List<DocumentTemplate> $$() {
return documentTemplateRepository.findByType(documentType);
}
代码示例来源:origin: feixiao/DesignPattern
/**
* Create simple object
*/
@Action(domainEvent = CreateDomainEvent.class)
@MemberOrder(sequence = "3")
public SimpleObject create(@ParameterLayout(named = "Name") final String name) {
final SimpleObject obj = container.newTransientInstance(SimpleObject.class);
obj.setName(name);
container.persistIfNotAlready(obj);
return obj;
}
代码示例来源:origin: org.incode.example.document/incode-example-document-dom
@Action(
domainEvent = NotApplicableDomainEvent.class,
semantics = SemanticsOf.IDEMPOTENT_ARE_YOU_SURE
)
@ActionLayout(
cssClassFa = "fa-minus"
)
@MemberOrder(name = "appliesTo", sequence = "2")
public DocumentTemplate $$(final Applicability applicability) {
applicabilityRepository.delete(applicability);
return this.documentTemplate;
}
代码示例来源:origin: org.incode.example.document/incode-example-document-dom
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(contributed = Contributed.AS_ASSOCIATION)
public List<DocumentTemplate> $$() {
return documentTemplateRepository.findByType(documentType);
}
代码示例来源:origin: org.incode.module.document/incode-module-document-dom
@Action(
domainEvent = NotApplicableDomainEvent.class,
semantics = SemanticsOf.IDEMPOTENT_ARE_YOU_SURE
)
@ActionLayout(
cssClassFa = "fa-minus"
)
@MemberOrder(name = "appliesTo", sequence = "2")
public DocumentTemplate $$(final Applicability applicability) {
applicabilityRepository.delete(applicability);
return this.documentTemplate;
}
代码示例来源:origin: org.incode.example.document/incode-example-document-dom
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = ActionDomainEvent.class
)
@ActionLayout(named = "Download")
public Blob $$() {
return urlDownloadService.downloadAsBlob(document);
}
代码示例来源:origin: org.apache.isis.core/isis-core-applib
@Action(
domainEvent = AllConfigurationPropertiesDomainEvent.class,
semantics = SemanticsOf.SAFE
)
@ActionLayout(
cssClassFa = "fa-wrench"
)
@MemberOrder(sequence = "500.900.1")
public Set<ConfigurationProperty> configuration(){
return configurationService.allProperties();
}
内容来源于网络,如有侵权,请联系作者删除!