Method Summary |
|
public NotificationEdit | addNotification() |
public NotificationEdit | addTransientNotification() |
public void | cancelEdit(NotificationEdit notification) |
public void | commitEdit(NotificationEdit notification) |
public void | destroy() Returns to uninitialized state. |
public NotificationEdit | editNotification(String id) |
abstract protected EventTrackingService | eventTrackingService() |
public Notification | findNotification(String function, String filter) |
protected String | getAccessPoint(boolean relative) Access the partial URL that forms the root of resource URLs.
Parameters: relative - if true, form within the access path only (i.e. |
public Time | getDate(Entity r) Access the resource date.
Parameters: r - The resource. |
public Notification | getNotification(String id) |
public List | getNotifications(String function) |
public String | getOwnerId(Entity r) Access the resource owner user id.
Parameters: r - The resource. |
abstract protected IdManager | idManager() |
public void | init() Final initialization, once all dependencies are set. |
public boolean | isDraft(Entity r) Check if this resource is in draft mode.
Parameters: r - The resource. |
public boolean | isNotificationFromReplyable() |
public boolean | isNotificationToReplyable() |
protected boolean | match(String filter, String ref) Does the resource reference match the filter?
Parameters: filter - The resource reference filter. Parameters: ref - The resource reference string. |
public Entity | newContainer(String ref) Construct a new continer given just an id.
Parameters: id - The id for the new object. |
public Entity | newContainer(Element element) Construct a new container resource, from an XML element.
Parameters: element - The XML. |
public Entity | newContainer(Entity other) Construct a new container resource, as a copy of another
Parameters: other - The other contianer to copy. |
public Edit | newContainerEdit(String ref) Construct a new continer given just an id.
Parameters: id - The id for the new object. |
public Edit | newContainerEdit(Element element) Construct a new container resource, from an XML element.
Parameters: element - The XML. |
public Edit | newContainerEdit(Entity other) Construct a new container resource, as a copy of another
Parameters: other - The other contianer to copy. |
public Entity | newResource(Entity container, String id, Object[] others) Construct a new rsource given just an id.
Parameters: container - The Resource that is the container for the new resource (may be null). Parameters: id - The id for the new object. Parameters: others - (options) array of objects to load into the Resource's fields. |
public Entity | newResource(Entity container, Element element) Construct a new resource, from an XML element.
Parameters: container - The Resource that is the container for the new resource (may be null). Parameters: element - The XML. |
public Entity | newResource(Entity container, Entity other) Construct a new resource from another resource of the same type.
Parameters: container - The Resource that is the container for the new resource (may be null). Parameters: other - The other resource. |
public Edit | newResourceEdit(Entity container, String id, Object[] others) Construct a new rsource given just an id.
Parameters: container - The Resource that is the container for the new resource (may be null). Parameters: id - The id for the new object. Parameters: others - (options) array of objects to load into the Resource's fields. |
public Edit | newResourceEdit(Entity container, Element element) Construct a new resource, from an XML element.
Parameters: container - The Resource that is the container for the new resource (may be null). Parameters: element - The XML. |
public Edit | newResourceEdit(Entity container, Entity other) Construct a new resource from another resource of the same type.
Parameters: container - The Resource that is the container for the new resource (may be null). Parameters: other - The other resource. |
abstract protected Storage | newStorage() Construct storage for this service. |
protected String | notificationId(String ref) Access the notification id extracted from a notification reference.
Parameters: ref - The notification reference string. |
public String | notificationReference(String id) |
protected String | notificationUrl(String id) Access the external URL which can be used to access the resource from outside the system.
Parameters: id - The notification id. |
public Object | refresh(Object key, Object oldValue, Event event) Get a new value for this key whose value has already expired in the cache.
Parameters: key - The key whose value has expired and needs to be refreshed. Parameters: oldValue - The old exipred value of the key. Parameters: event - The event which triggered this refresh. |
public void | removeNotification(NotificationEdit notification) |
abstract protected ServerConfigurationService | serverConfigurationService() |
public void | setEmailFromReplyable(boolean value) Configuration: set reply-able status for email notifications in the From:. |
public void | setEmailToReplyable(boolean value) Configuration: set reply-able status for email notifications in the To:. |
public Object[] | storageFields(Entity r) Collect the fields that need to be stored outside the XML (for the resource). |
public void | update(Observable o, Object arg) This method is called whenever the observed object is changed. |