当前位置: 首页>>代码示例>>Java>>正文


Java Editing.DISABLED属性代码示例

本文整理汇总了Java中org.apache.isis.applib.annotation.Editing.DISABLED属性的典型用法代码示例。如果您正苦于以下问题:Java Editing.DISABLED属性的具体用法?Java Editing.DISABLED怎么用?Java Editing.DISABLED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.isis.applib.annotation.Editing的用法示例。


在下文中一共展示了Editing.DISABLED属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getName

@javax.jdo.annotations.NotPersistent
@Property(
        domainEvent = NameDomainEvent.class,
        editing = Editing.DISABLED
)
@PropertyLayout(
        hidden=Where.OBJECT_FORMS
)
@MemberOrder(name="Id", sequence = "1")
public String getName() {
    final StringBuilder buf = new StringBuilder();
    if(getFamilyName() != null) {
        if(getKnownAs() != null) {
            buf.append(getKnownAs());
        } else {
            buf.append(getGivenName());
        }
        buf.append(' ')
                .append(getFamilyName())
                .append(" (").append(getUsername()).append(')');
    } else {
        buf.append(getUsername());
    }
    return buf.toString();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:25,代码来源:ApplicationUser.java

示例2: getNotification

@Property(editing = Editing.DISABLED)
@PropertyLayout(multiLine = 5)
public String getNotification(){
    final StringBuilder result = new StringBuilder();

    final String noBuyerBarcodeMatch = buyerBarcodeMatchValidation();
    if (noBuyerBarcodeMatch!=null){
        result.append(noBuyerBarcodeMatch);
    }

    final String sameInvoiceNumberCheck = doubleInvoiceCheck();
    if (sameInvoiceNumberCheck !=null){
        result.append(sameInvoiceNumberCheck);
    }

    return result.length()>0 ? result.toString() : null;

}
 
开发者ID:estatio,项目名称:estatio,代码行数:18,代码来源:IncomingDocAsInvoiceViewModel.java

示例3: getNotification

@Property(editing = Editing.DISABLED)
@PropertyLayout(multiLine = 5)
public String getNotification(){
    final StringBuilder result = new StringBuilder();

    final String noBuyerBarcodeMatch = buyerBarcodeMatchValidation();
    if (noBuyerBarcodeMatch!=null){
        result.append(noBuyerBarcodeMatch);
    }

    final String sameOrderNumberCheck = doubleOrderCheck();
    if (sameOrderNumberCheck !=null){
        result.append(sameOrderNumberCheck);
    }

    return result.length()>0 ? result.toString() : null;

}
 
开发者ID:estatio,项目名称:estatio,代码行数:18,代码来源:IncomingDocAsOrderViewModel.java

示例4: getTenancyDuration

@org.apache.isis.applib.annotation.Property(editing = Editing.DISABLED, optionality = Optionality.OPTIONAL)
public String getTenancyDuration() {
    LocalDateInterval ldi;
    if (getTenancyStartDate() != null && getTenancyEndDate() != null) {
        ldi = getEffectiveInterval();
    } else if (getTenancyStartDate() == null && getTenancyEndDate() != null && getStartDate() != null) {
        ldi = new LocalDateInterval(getStartDate(), getTenancyEndDate());
    } else if (getTenancyStartDate() != null && getTenancyEndDate() == null && getEndDate() != null) {
        ldi = new LocalDateInterval(getTenancyStartDate(), getEndDate());
    } else {
        return null;
    }

    if (ldi.isValid()) {
        return JodaPeriodUtils.asSimpleString(new Period(ldi.asInterval(), PeriodType.yearMonthDay()));
    }

    return null;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:19,代码来源:Lease.java

示例5: getNombre

@Property(editing = Editing.DISABLED)
@Column(allowsNull = "false",length = 40)
@MemberOrder(name="Equipo", sequence= "1")
public String getNombre() 
{
	return nombre;
}
 
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:7,代码来源:Equipo.java

示例6: getNotYetComplete

@Collection(
        editing = Editing.DISABLED
)
@CollectionLayout(
        sortedBy = RelativePriorityService.Comparator.class
)
public List<ToDoItem> getNotYetComplete() {
    return toDoItems.notYetCompleteNoUi();
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:9,代码来源:ToDoAppDashboard.java

示例7: complete

@Action(
        semantics = SemanticsOf.SAFE,
        hidden = Where.ALL_TABLES
)
@ActionLayout(
        describedAs = "The relative priority of this item compared to others not yet complete (using 'due by' date)",
        contributed = Contributed.AS_ASSOCIATION
)
@Property(
        editing = Editing.DISABLED,
        editingDisabledReason = "Relative priority, derived from due date"
)
public Integer $$() {
    return queryResultsCache.execute(() -> {
        if(toDoItem.isComplete()) {
            return null;
        }

        // sort items, then locate this one
        int i=1;
        for (final ToDoItem each : relativePriorityService.sortedNotYetComplete()) {
            if(each == toDoItem) {
                return i;
            }
            i++;
        }
        return null;
    }, ToDoItem_relativePriority.class, "relativePriority", toDoItem);
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:29,代码来源:ToDoItem_relativePriority.java

示例8: getSomeStringOptionalWithMultiAutoComplete

@Property(
        editing = Editing.DISABLED,
        hidden = Where.EVERYWHERE  // autocomplete on values is NOT SUPPORTED
)
@Column(allowsNull = "true")
public String getSomeStringOptionalWithMultiAutoComplete() {
    return someStringOptionalWithMultiAutoComplete;
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:8,代码来源:TextObject.java

示例9: getChangingPermission

@javax.jdo.annotations.NotPersistent
@Property(
        domainEvent = ChangingPermissionDomainEvent.class,
        editing = Editing.DISABLED
)
@PropertyLayout(hidden=Where.REFERENCES_PARENT)
@MemberOrder(name="Cause", sequence = "2.2")
public ApplicationPermission getChangingPermission() {
    if(getChangingPermissionValue() == null) {
        return null;
    }
    return applicationPermissionRepository.findByUserAndPermissionValue(username, getChangingPermissionValue());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:13,代码来源:UserPermissionViewModel.java

示例10: isHasPassword

@Property(
        domainEvent = HasPasswordDomainEvent.class,
        editing = Editing.DISABLED
)
@MemberOrder(name="Status", sequence = "4")
public boolean isHasPassword() {
    return !Strings.isNullOrEmpty(getEncryptedPassword());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:8,代码来源:ApplicationUser.java

示例11: getUsers

@Collection(
        domainEvent = UsersDomainEvent.class,
        editing = Editing.DISABLED
)
@CollectionLayout(
        render = RenderType.EAGERLY
)
@MemberOrder(sequence = "10")
public List<ApplicationUser> getUsers() {
    return applicationUserRepository.findByAtPath(getPath());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:11,代码来源:ApplicationTenancy.java

示例12: getSource

/**
 * Polymorphic association to (any implementation of) {@link EventSource}.
 */
@Property(
        editing = Editing.DISABLED,
        hidden = Where.PARENTED_TABLES,
        notPersisted = true
)
public EventSource getSource() {
    final EventSourceLink link = getSourceLink();
    return link != null? link.getPolymorphicReference(): null;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:12,代码来源:Event.java

示例13: getOwner

@Property(
        notPersisted = true,
        editing = Editing.DISABLED
)
@PropertyLayout(hidden = Where.PARENTED_TABLES)
public CommunicationChannelOwner getOwner() {
    final CommunicationChannelOwnerLink link = getOwnerLink();
    return link != null? link.getPolymorphicReference(): null;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:9,代码来源:CommunicationChannel.java

示例14: getBlob

@javax.jdo.annotations.NotPersistent
@Property(
        notPersisted = true,
        domainEvent = BlobDomainEvent.class,
        editing = Editing.DISABLED
)
public Blob getBlob() {
    return new Blob(getName(), getMimeType(), getBlobBytes());

}
 
开发者ID:estatio,项目名称:estatio,代码行数:10,代码来源:DocumentAbstract.java

示例15: getClob

@javax.jdo.annotations.NotPersistent
@Property(
        notPersisted = true, // exclude from auditing
        domainEvent = ClobDomainEvent.class,
        editing = Editing.DISABLED
)
public Clob getClob() {
    return new Clob(getName(), getMimeType(), getClobChars());

}
 
开发者ID:estatio,项目名称:estatio,代码行数:10,代码来源:DocumentAbstract.java


注:本文中的org.apache.isis.applib.annotation.Editing.DISABLED属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。