|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FriendlyURLEntityDAO
Data access methods for friendly URLs.
| Method Summary | |
|---|---|
void |
activate(FriendlyURLEntity entity)
Activates the given entity. |
void |
create(FriendlyURLEntity entity)
Inserts a new record for the given entity. |
void |
delete(FriendlyURLEntity entity)
Deletes the given entity and its history. |
void |
deleteAll(FriendlyURLEntity entity)
Deletes the given entity and all other related entities. |
void |
deleteById(FriendlyURLEntity entity)
Deletes the given entity using its id. |
FriendlyURLEntity |
getEntity(int versionId)
Returns a friendly URL entity given its version ID. |
FriendlyURLEntity |
getEntityById(int id)
Returns a friendly URL entity given its ID. |
java.lang.String |
getURLTitle(java.lang.String queryString)
Returns the URL title of the friendly URL entity backed by the given querystring. |
void |
lastCurrent(FriendlyURLEntity entity,
boolean isCurrent)
Sets the live bit of the given entity. |
java.lang.Integer |
makeIdentifierUnique(FriendlyURLEntity entity,
java.util.List<FriendlyURLEntity> entities)
Resolves potential URL identifier conflict by setting a sequence number for the given friendly URL entity. |
void |
refer(FriendlyURLEntity entity)
Refers referenced entity to this entity. |
void |
refer(FriendlyURLEntity sourceEntity,
FriendlyURLEntity targetEntity)
Refers one entity to the other. |
void |
updateIdentifiers(java.util.List<FriendlyURLEntity> entities)
Updates the URL identifying columns for the given entities. |
| Method Detail |
|---|
java.lang.String getURLTitle(java.lang.String queryString)
throws FriendlyURLException
queryString - Returns the URL title identified by this querystring.
FriendlyURLException - If any database access fails.
FriendlyURLEntity getEntity(int versionId)
throws FriendlyURLException
versionId - The version identifier of the page or media item version for which its friendly URL
entity is returned.
FriendlyURLException - If any database access fails.
FriendlyURLEntity getEntityById(int id)
throws FriendlyURLException
id - The ID of the friendly URL entity.
FriendlyURLException - If any database access fails.
void create(FriendlyURLEntity entity)
throws FriendlyURLException
entity - Write this friendly URL entity to the database.
FriendlyURLException - If storing the friendly URL fails.
void delete(FriendlyURLEntity entity)
throws FriendlyURLException
entity - Remove this friendly URL entity from the database.
FriendlyURLException - If removing the friendly URL fails.
void deleteAll(FriendlyURLEntity entity)
throws FriendlyURLException
entity - Remove this friendly URL entity and other entities with the same query string from the
database.
FriendlyURLException - If removing the friendly URL fails.
void deleteById(FriendlyURLEntity entity)
throws FriendlyURLException
entity - Remove this friendly URL entity from the database.
FriendlyURLException - If any database access fails.
void activate(FriendlyURLEntity entity)
throws FriendlyURLException
entity - Activate this friendly URL entity.
FriendlyURLException - If any database access fails.
void lastCurrent(FriendlyURLEntity entity,
boolean isCurrent)
throws FriendlyURLException
true content backed by the entity is
considered publicly available. Used to determine a current roll-over by comparing this field with the
real current state.
entity - Set live bit of this friendly URL entity.isCurrent - Whether the content backed by this entity is publicly available.
FriendlyURLException - If any database access fails.
void refer(FriendlyURLEntity entity)
throws FriendlyURLException
entity - Updates this entity's referential structure.
FriendlyURLException - If any database access fails.
void refer(FriendlyURLEntity sourceEntity,
FriendlyURLEntity targetEntity)
throws FriendlyURLException
sourceEntity - Source entity that will refer to the target.targetEntity - Target entity that will be referenced by the source entity.
FriendlyURLException - If any database access fails.
java.lang.Integer makeIdentifierUnique(FriendlyURLEntity entity,
java.util.List<FriendlyURLEntity> entities)
throws FriendlyURLException
Note that a sequence number is not needed for two friendly URL entities with the same URL identifier if they both point to the same internal resource (that is, the same query string). This is the case for two page versions of the same page, which have the same URL identifier. There is always only one page version which is public within a language context.
entity - Friendly URL entity to find sequence number for.entities - List of uncommitted friendly URL entities. The friendly URL entity's URL identifier is
first matched against the URL identifiers of these friendly URL entities. Cannot be
null, but instead pass an empty list.
null if already unique.
FriendlyURLException - If any database access fails.
void updateIdentifiers(java.util.List<FriendlyURLEntity> entities)
throws FriendlyURLException
entities - Update these entities.
FriendlyURLException - If any database access fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||