| org.sakaiproject.util.StorageUser
All known Subclasses: org.sakaiproject.message.impl.BaseMessageService, org.sakaiproject.calendar.impl.BaseCalendarService, org.sakaiproject.user.impl.BasePreferencesService, org.sakaiproject.email.impl.BaseDigestService, org.sakaiproject.user.impl.BaseUserDirectoryService, org.sakaiproject.site.impl.BaseSiteService, org.sakaiproject.alias.impl.BaseAliasService, org.sakaiproject.authz.impl.BaseAuthzGroupService, org.sakaiproject.event.impl.BaseNotificationService,
StorageUser | public interface StorageUser (Code) | |
StorageUser is ...%%% callbacks from the BaseXmlFileStorage and other Storage classes...
|
Method Summary | |
Time | getDate(Entity r) Access the resource date.
Parameters: r - The resource. | String | getOwnerId(Entity r) Access the resource owner user id.
Parameters: r - The resource. | boolean | isDraft(Entity r) Check if this resource is in draft mode.
Parameters: r - The resource. | Entity | newContainer(String ref) Construct a new continer given just ids.
Parameters: ref - The container reference. | Entity | newContainer(Element element) Construct a new container resource, from an XML element.
Parameters: element - The XML. | Entity | newContainer(Entity other) Construct a new container resource, as a copy of another
Parameters: other - The other contianer to copy. | Edit | newContainerEdit(String ref) Construct a new continer given just ids.
Parameters: ref - The container reference. | Edit | newContainerEdit(Element element) Construct a new container resource, from an XML element.
Parameters: element - The XML. | Edit | newContainerEdit(Entity other) Construct a new container resource, as a copy of another
Parameters: other - The other contianer to copy. | Entity | newResource(Entity container, String id, Object[] others) Construct a new resource 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. | 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. | 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. | Edit | newResourceEdit(Entity container, String id, Object[] others) Construct a new resource 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. | 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. | 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. | Object[] | storageFields(Entity r) Collect the fields that need to be stored outside the XML (for the resource). |
getDate | Time getDate(Entity r)(Code) | | Access the resource date.
Parameters: r - The resource. The resource date. |
getOwnerId | String getOwnerId(Entity r)(Code) | | Access the resource owner user id.
Parameters: r - The resource. The resource owner user id. |
isDraft | boolean isDraft(Entity r)(Code) | | Check if this resource is in draft mode.
Parameters: r - The resource. true if the resource is in draft mode, false if not. |
newContainer | Entity newContainer(String ref)(Code) | | Construct a new continer given just ids.
Parameters: ref - The container reference. The new containe Resource. |
newContainer | Entity newContainer(Element element)(Code) | | Construct a new container resource, from an XML element.
Parameters: element - The XML. The new container resource. |
newContainer | Entity newContainer(Entity other)(Code) | | Construct a new container resource, as a copy of another
Parameters: other - The other contianer to copy. The new container resource. |
newContainerEdit | Edit newContainerEdit(String ref)(Code) | | Construct a new continer given just ids.
Parameters: ref - The container reference. The new containe Resource. |
newContainerEdit | Edit newContainerEdit(Element element)(Code) | | Construct a new container resource, from an XML element.
Parameters: element - The XML. The new container resource. |
newContainerEdit | Edit newContainerEdit(Entity other)(Code) | | Construct a new container resource, as a copy of another
Parameters: other - The other contianer to copy. The new container resource. |
newResource | Entity newResource(Entity container, String id, Object[] others)(Code) | | Construct a new resource 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. The new resource. |
newResource | Entity newResource(Entity container, Element element)(Code) | | 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. The new resource from the XML. |
newResource | Entity newResource(Entity container, Entity other)(Code) | | 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. The new resource as a copy of the other. |
newResourceEdit | Edit newResourceEdit(Entity container, String id, Object[] others)(Code) | | Construct a new resource 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. The new resource. |
newResourceEdit | Edit newResourceEdit(Entity container, Element element)(Code) | | 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. The new resource from the XML. |
newResourceEdit | Edit newResourceEdit(Entity container, Entity other)(Code) | | 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. The new resource as a copy of the other. |
storageFields | Object[] storageFields(Entity r)(Code) | | Collect the fields that need to be stored outside the XML (for the resource).
An array of field values to store in the record outside the XML (for the resource). |
|
|