com.hack23.cia.model.core.api
Interface Resource

Package class diagram package Resource
All Superinterfaces:
ModelObject, PersistedModelObject, Serializable
All Known Subinterfaces:
ApplicationData, ApplicationResource, Configuration, Content, Data, MetaData, ParliamentData, ParliamentMetaData, UserGeneratedMetaData
All Known Implementing Classes:
AbstractAgencyConfiguration, AbstractBallotMetaData, AbstractBallotResult, AbstractResource, Ballot, BallotResult, Committee, CommitteeReport, Election, ImageContent, Language, LanguageContent, Parliament, ParliamentMember, ParliamentMemberBallotRecord, ParliamentMemberVoteCompareResult, ParliamentYear, PartyBallotResult, PoliticalParty, Portal, RegisterInformation, UserSession, Vote, VoteMetaData

public interface Resource
extends ModelObject, PersistedModelObject

The Interface Resource.


Method Summary
 Long getId()
          Gets the id.
 ResourceType getResourceType()
          Gets the resource type.
 Long getVersion()
          Gets the version.
 void setId(Long id)
          Sets the id.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 void setVersion(Long version)
          Sets the version.
 
Methods inherited from interface com.hack23.cia.model.core.api.PersistedModelObject
isNew
 

Method Detail

getId

Long getId()
Description copied from interface: PersistedModelObject
Gets the id.

Specified by:
getId in interface PersistedModelObject
Returns:
the id

getResourceType

ResourceType getResourceType()
Gets the resource type.

Returns:
the resource type

getVersion

Long getVersion()
Description copied from interface: PersistedModelObject
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Returns:
the version

setId

void setId(Long id)
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setResourceType

void setResourceType(ResourceType resourceType)
Sets the resource type.

Parameters:
resourceType - the new resource type

setVersion

void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.