|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IdentifierAPI
| Method Summary | |
|---|---|
Identifier |
createNew(Versionable asset,
Treeable parent)
|
Identifier |
createNew(Versionable asset,
Treeable parent,
java.lang.String existingId)
|
void |
delete(Identifier identifier)
This method WILL delete the identifier and all related versonable assets from the DB. |
Identifier |
find(Host host,
java.lang.String uri)
Will take a host and uri and return its identifier from cache or db. |
Identifier |
find(java.lang.String id)
Will take a String from an identifiers id and return its identifier from cache or db. |
Identifier |
find(Versionable versionable)
Will take a Versionable and return its identifier from cache or db. |
java.util.List<Identifier> |
findByParentPath(java.lang.String hostId,
java.lang.String parent_path)
Finds identifiers with the specified parent path and host id |
java.util.List<Identifier> |
findByURIPattern(java.lang.String assetType,
java.lang.String uri,
boolean hasLive,
boolean onlyDeleted,
boolean include,
Host host)
Will look for all identifiers matting a URI pattern |
java.util.List<Identifier> |
findByURIPattern(java.lang.String assetType,
java.lang.String uri,
boolean hasLive,
boolean onlyDeleted,
boolean include,
Host host,
java.util.Date startDate,
java.util.Date endDate)
Will look for all identifiers matting a URI pattern |
Identifier |
findFromInode(java.lang.String inode)
Will take a String from an inode id and return its identifier from cache or db. |
boolean |
isIdentifier(java.lang.String identifierInode)
This method WILL HIT the DB. |
Identifier |
loadFromCache(Host host,
java.lang.String uri)
Will take a host and uri and return its identifier from cache or null if not found This will never hit the db |
Identifier |
loadFromCache(java.lang.String id)
Will take a string and return its identifier from cache or null if not found. |
Identifier |
loadFromCache(Versionable asset)
Will take a versionable and return its identifier from cache or null if not found This will never hit the db |
Identifier |
loadFromDb(java.lang.String id)
Will take a string and return its identifier from db or null if not found. |
Identifier |
save(Identifier identifier)
This method WILL Save to the DB. |
void |
updateIdentifierURI(Versionable webasset,
Folder folder)
|
| Method Detail |
|---|
java.util.List<Identifier> findByURIPattern(java.lang.String assetType,
java.lang.String uri,
boolean hasLive,
boolean onlyDeleted,
boolean include,
Host host)
throws DotDataException
uri - Can contain a * at the beginning or endinclude - Should find all that match pattern if true or all that do not match pattern if falseassetType - hasLive - onlyDeleted - only pull deleted recordshost - startDate - use to search between datesendDate -
DotDataException
java.util.List<Identifier> findByURIPattern(java.lang.String assetType,
java.lang.String uri,
boolean hasLive,
boolean onlyDeleted,
boolean include,
Host host,
java.util.Date startDate,
java.util.Date endDate)
throws DotDataException
uri - Can contain a * at the beginning or endinclude - Should find all that match pattern if true or all that do not match pattern if falseassetType - hasLive - onlyDeleted - only pull deleted recordshost - startDate - endDate -
DotDataException
Identifier findFromInode(java.lang.String inode)
throws DotDataException
inode -
DotDataException
DotStateException - if no identifier can be found from passed in inode
Identifier find(java.lang.String id)
throws DotDataException
id -
DotDataException
DotStateException - if no identifier can be found from passed in id
Identifier find(Versionable versionable)
throws DotDataException,
DotStateException
versionable -
DotDataException
DotStateException
Identifier find(Host host,
java.lang.String uri)
throws DotDataException,
DotStateException
versionable -
DotDataException
DotStateException
Identifier loadFromCache(Host host,
java.lang.String uri)
throws DotDataException,
DotStateException
host - uri -
DotDataException
DotStateException
Identifier loadFromCache(Versionable asset)
throws DotDataException,
DotStateException
versionable -
DotDataException
DotStateException
Identifier loadFromCache(java.lang.String id)
throws DotDataException
versionable -
DotDataException
DotStateException
Identifier loadFromDb(java.lang.String id)
throws DotDataException,
DotStateException
id -
DotDataException
DotStateException
boolean isIdentifier(java.lang.String identifierInode)
throws DotDataException
DotDataException
Identifier save(Identifier identifier)
throws DotDataException
DotDataException
void delete(Identifier identifier)
throws DotDataException
DotDataException
Identifier createNew(Versionable asset,
Treeable parent)
throws DotDataException
asset - parent -
DotDataException
Identifier createNew(Versionable asset,
Treeable parent,
java.lang.String existingId)
throws DotDataException
DotDataException
void updateIdentifierURI(Versionable webasset,
Folder folder)
throws DotDataException
webasset - folder -
DotDataException
java.util.List<Identifier> findByParentPath(java.lang.String hostId,
java.lang.String parent_path)
throws DotHibernateException
hostId - parent_path -
DotHibernateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||