/** * Polymorphic association to the object providing the paperclipAttachedTo. * * NB: strictly speaking these should be abstract; this is a workaround (see ISIS-582) */ @NotPersistent public Object getAttachedTo() { return null; } protected void setAttachedTo(Object object) {}
/** * Polymorphic association to the object providing the paperclipAttachedTo. * * NB: strictly speaking these should be abstract; this is a workaround (see ISIS-582) */ @NotPersistent public Object getAttachedTo() { return null; } protected void setAttachedTo(Object object) {}
public abstract class JdoContent implements Content { @NotPersistent private String id;
@NotPersistent @Override public Object getAttachedTo() { return getAttachedDocument(); }
@NotPersistent public Long getSomeColumn() { return someColumn; }
@NotPersistent public Long getSomeColumn() { return someColumn; }
@NotPersistent @Override public Object getAttachedTo() { return getAttachedDocument(); }
@NotPersistent public Long getSomeColumn() { return someColumn; }
@NotPersistent public Long getSomeColumn() { return someColumn; }
@NotPersistent @Property( domainEvent = DocumentStateDomainEvent.class, editing = Editing.DISABLED ) public DocumentState getDocumentState() { final DocumentAbstract documentAbstract = getDocument(); if(documentAbstract instanceof Document) { final Document document = (Document) documentAbstract; return document.getState(); } return null; }
@NotPersistent @Property( domainEvent = DocumentStateDomainEvent.class, editing = Editing.DISABLED ) public DocumentState getDocumentState() { final DocumentAbstract documentAbstract = getDocument(); if(documentAbstract instanceof Document) { final Document document = (Document) documentAbstract; return document.getState(); } return null; }
@javax.jdo.annotations.NotPersistent @Property( notPersisted = true, domainEvent = BlobDomainEvent.class, editing = Editing.DISABLED ) public Blob getBlob() { return new Blob(getName(), getMimeType(), getBlobBytes()); } @Programmatic
@javax.jdo.annotations.NotPersistent @Property( notPersisted = true, domainEvent = BlobDomainEvent.class, editing = Editing.DISABLED ) public Blob getBlob() { return new Blob(getName(), getMimeType(), getBlobBytes()); } @Programmatic
@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()); } @Programmatic
@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()); } @Programmatic
/** * Either the {@link Document#getCreatedAt()} or {@link Document#getRenderedAt()}, depending upon the * {@link Document#getState()} of the {@link Document}. Returns <tt>null</tt> for {@link DocumentTemplate}s. */ @NotPersistent @Property( domainEvent = DocumentDateDomainEvent.class, editing = Editing.DISABLED ) public DateTime getDocumentDate() { final DocumentAbstract documentAbstract = getDocument(); if(documentAbstract instanceof Document) { final Document document = (Document) documentAbstract; DocumentState state = document.getState(); return state.dateOf(document); } return null; } //endregion
/** * Either the {@link Document#getCreatedAt()} or {@link Document#getRenderedAt()}, depending upon the * {@link Document#getState()} of the {@link Document}. Returns <tt>null</tt> for {@link DocumentTemplate}s. */ @NotPersistent @Property( domainEvent = DocumentDateDomainEvent.class, editing = Editing.DISABLED ) public DateTime getDocumentDate() { final DocumentAbstract documentAbstract = getDocument(); if(documentAbstract instanceof Document) { final Document document = (Document) documentAbstract; DocumentState state = document.getState(); return state.dateOf(document); } return null; } //endregion
private String callbackUrl; @NotPersistent private HttpTransport transport; @NotPersistent private JsonFactory jsonFactory;
private String audience; @NotPersistent private AccessAppResource authInterceptor;
@NotPersistent private OAuthParameters authorizer;