public class AccountResource
extends java.lang.Object
Constructor and Description |
---|
AccountResource(RequestContext requestContext,
Account account,
AccountCollectionResource parent) |
Modifier and Type | Method and Description |
---|---|
AccountCollectionResource |
getAccountCollectionResource() |
<T extends Resource> |
getChildren(java.util.Date timeRangeStart,
java.util.Date timeRangeEnd) |
WebDavStore.ResourceContent |
getContent() |
java.util.Date |
getCreationDate()
Gets the date of the creation
|
java.lang.String |
getDisplayName()
Get resource's display name.
|
java.util.Date |
getLastModified()
Gets the date of the last modification
|
java.lang.String |
getMimeType() |
java.lang.String |
getName()
Get resource's name.
|
Account |
getObject() |
static Photo |
getPhoto(Account account)
Get PHOTO property for given account if account.getPicture() is set.
|
org.opencrx.application.carddav.CardDavRequestContext |
getRequestContext() |
boolean |
isCollection()
Determines whether the Resource is a collection.
|
public AccountResource(RequestContext requestContext, Account account, AccountCollectionResource parent)
public Account getObject()
public boolean isCollection()
Resource
public java.lang.String getMimeType()
public java.lang.String getName()
Resource
public java.lang.String getDisplayName()
Resource
public AccountCollectionResource getAccountCollectionResource()
public static Photo getPhoto(Account account)
p
- account
- org.openmdx.base.exception.ServiceException
public WebDavStore.ResourceContent getContent()
public java.util.Date getCreationDate()
Resource
getCreationDate
in interface Resource
public java.util.Date getLastModified()
Resource
getLastModified
in interface Resource
public <T extends Resource> java.util.Collection<T> getChildren(java.util.Date timeRangeStart, java.util.Date timeRangeEnd)
public org.opencrx.application.carddav.CardDavRequestContext getRequestContext()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.