/** * Gets a value indicating whether this object is a real store item, or if * it's a local object that has yet to be saved. * * @return the checks if is new * @throws ServiceLocalException the service local exception */ public boolean getIsNew() throws ServiceLocalException { // Item attachments don't have an Id, need to check whether the // parentAttachment is new or not. if (this.isAttachment()) { return this.getParentAttachment().isNew(); } else { return super.isNew(); } }
/** * Gets Id of the root item for this item. * * @return the root item id * @throws ServiceLocalException the service local exception */ public ItemId getRootItemId() throws ServiceLocalException { if (this.isAttachment()) { return this.getParentAttachment().getOwner().getRootItemId(); } else { return this.getId(); } }
this.internalCreateAttachments(this.owner.getParentAttachment() .getId(), attachments); } else {
/** * Gets a value indicating whether this object is a real store item, or if * it's a local object that has yet to be saved. * * @return the checks if is new * @throws ServiceLocalException the service local exception */ public boolean getIsNew() throws ServiceLocalException { // Item attachments don't have an Id, need to check whether the // parentAttachment is new or not. if (this.isAttachment()) { return this.getParentAttachment().isNew(); } else { return super.isNew(); } }
/** * Gets Id of the root item for this item. * * @return the root item id * @throws ServiceLocalException the service local exception */ public ItemId getRootItemId() throws ServiceLocalException { if (this.isAttachment()) { return this.getParentAttachment().getOwner().getRootItemId(); } else { return this.getId(); } }
this.internalCreateAttachments(this.owner.getParentAttachment() .getId(), attachments); } else {