OSID Logo
OSID Specifications
resource package
Version 3.1.0
Interfaceosid.resource.Resource
Implementsosid.OsidObject
Used Byosid.OsidRequest
osid.OsidRuleApplicator
osid.Sourceable
osid.acknowledgement.Credit
osid.assessment.AssessmentTaken
osid.authorization.Authorization
osid.bidding.Auction
osid.bidding.Bid
osid.billing.Customer
osid.billing.payment.Payer
show 61 more…
osid.blogging.Entry
osid.calendaring.Commitment
osid.commenting.Comment
osid.contact.Address
osid.contact.Contact
osid.course.chronicle.AssessmentEntry
osid.course.chronicle.AwardEntry
osid.course.chronicle.CourseEntry
osid.course.chronicle.CredentialEntry
osid.course.chronicle.ProgramEntry
osid.course.program.Enrollment
osid.course.registration.ActivityRegistration
osid.course.registration.CourseRegistration
osid.course.registration.Registration
osid.course.registration.request.RegistrationRequestItem
osid.financials.Activity
osid.forum.Post
osid.forum.Reply
osid.grading.GradeEntry
osid.hold.Hold
osid.inquiry.Response
osid.installation.InstallationPackage
osid.inventory.Model
osid.inventory.shipment.Shipment
osid.journaling.JournalEntry
osid.learning.Proficiency
osid.logging.LogEntry
osid.mapping.ResourceLocation
osid.mapping.path.ResourceVelocity
osid.mapping.route.RouteProgress
osid.messaging.Message
osid.messaging.Receipt
osid.offering.Participant
osid.ordering.Order
osid.ordering.Price
osid.profile.ProfileEntry
osid.provisioning.Provision
osid.provisioning.ProvisionReturn
osid.provisioning.Provisionable
osid.provisioning.Request
osid.provisioning.RequestTransaction
osid.recognition.Conferral
osid.repository.Asset
osid.resource.ResourceAdminSession
osid.resource.ResourceAgentSession
osid.resource.ResourceList
osid.resource.ResourceLookupSession
osid.resource.ResourceNode
osid.resource.ResourceRelationship
osid.resourcing.Availability
osid.resourcing.Commission
osid.resourcing.Effort
osid.room.squatting.Deed
osid.room.squatting.Lease
osid.subscription.Subscription
osid.tracking.Issue
osid.voting.Candidate
osid.voting.RaceResult
osid.voting.Vote
osid.voting.VoterAllocation
osid.workflow.event.WorkflowEvent
Description

A Resource represents an arbitrary entity. Resources are used to define an object to accompany an OSID Id used in other OSIDs. A resource may be used to represent a meeting room in the Scheduling OSID, or a student in the Course OSID.

A Resource may also represent a group or organization. A provider may present such a group in an opaque manner through a single resource definition, or the provider may expose the resource collection for examination or manipulation. If such a resource collection is visible, isGroup() is true and can be used in one of the group sessions available in this OSID.

MethodisGroup
Description

Tests if this resource is a group. A resource that is a group can be used in the group sessions.

Returnboolean true if this resource is a group, false otherwise
Compliancemandatory This method must be implemented.
MethodisDemographic
Description

Tests if this resource is a demographic. A resource that is a demographic can be used in the demographic service and the group sessions.

Returnboolean true if this resource is a demographic, false otherwise
Compliancemandatory This method must be implemented.
MethodhasAvatar
Description

Tests if this resource has an avatar.

Returnboolean true if this resource has an avatar, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAvatarId
Description

Gets the asset Id.

Returnosid.id.Id the asset Id
ErrorsILLEGAL_STATE hasAvatar() is false
Compliancemandatory This method must be implemented.
MethodgetAvatar
Description

Gets the asset.

Returnosid.repository.Asset the asset
ErrorsILLEGAL_STATE hasAvatar() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetResourceRecord
Description

Gets the resource record corresponding to the given Resource record Type.This method is used to retrieve an object implementing the requested record. The resourceRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(resourceRecordType) is true.

Parametersosid.type.TyperesourceRecordType the resource record type
Returnosid.resource.records.ResourceRecord the resource record
ErrorsNULL_ARGUMENT resourceRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(resourceRecordType) is false
Compliancemandatory This method must be implemented.