|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trendmicro.grid.acl.ds.jpa.JpaSourceRepository
@Repository @Transactional(readOnly=true) public class JpaSourceRepository
Implements SourceRepository using JPA.
| Constructor Summary | |
|---|---|
JpaSourceRepository()
|
|
| Method Summary | |
|---|---|
com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier |
createIdentifier(URI remoteURI,
URI internalURI)
|
com.trendmicro.grid.acl.ds.datatypes.SharedSource |
createSource(URI remoteURI,
URI internalURI,
com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
|
static int |
getPageSize()
|
com.trendmicro.grid.acl.l0.datatypes.FileIdentiferListPage |
getReferencedFiles(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
|
com.trendmicro.grid.acl.l0.datatypes.NameListPage |
getReferencedPackages(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
|
com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage |
getReferencingSources(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file,
int pageNumber)
|
JpaSource |
getSource(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier)
Returns a modifyable source instance or 'null' if no source existis under the id. |
Collection<com.trendmicro.grid.acl.ds.datatypes.SharedSourceInformation> |
getSourceInformationList(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
|
JpaSource |
getSourceReference(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier)
Returns a lightweight reference to the source of 'null' if the source doesn't exist. |
Collection<com.trendmicro.grid.acl.ds.datatypes.SharedSource> |
getSources(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
|
com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage |
getSourcesOfDomainInRange(String domainName,
Date modifiedFromDate,
Date modifiedToDate,
int pageNumber)
|
protected void |
referenceFilesFromSources(Collection<JpaFileDetails> fileReferences,
Collection<JpaSource> sourceReferences)
Links (references) the given files with all given sources. |
void |
setInternalURI(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier,
URI internalURI)
|
static void |
setPageSize(int pageSize)
|
com.trendmicro.grid.acl.ds.datatypes.SharedSource |
updateSource(com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaSourceRepository()
| Method Detail |
|---|
public static int getPageSize()
public static void setPageSize(int pageSize)
public com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier createIdentifier(URI remoteURI,
URI internalURI)
createIdentifier in interface com.trendmicro.grid.acl.ds.SourceRepository
@Transactional(readOnly=false)
protected void referenceFilesFromSources(Collection<JpaFileDetails> fileReferences,
Collection<JpaSource> sourceReferences)
fileReferences - the file references that should get references from the given sources.sourceReferences - the source references to link all files with.
public com.trendmicro.grid.acl.l0.datatypes.FileIdentiferListPage getReferencedFiles(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
getReferencedFiles in interface com.trendmicro.grid.acl.ds.SourceRepository
public com.trendmicro.grid.acl.l0.datatypes.NameListPage getReferencedPackages(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier sourceIdentifier,
int pageNumber)
getReferencedPackages in interface com.trendmicro.grid.acl.ds.SourceRepository
public com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage getReferencingSources(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file,
int pageNumber)
getReferencingSources in interface com.trendmicro.grid.acl.ds.SourceRepository
public com.trendmicro.grid.acl.l0.datatypes.SourceIdentiferListPage getSourcesOfDomainInRange(String domainName,
Date modifiedFromDate,
Date modifiedToDate,
int pageNumber)
getSourcesOfDomainInRange in interface com.trendmicro.grid.acl.ds.SourceRepositorypublic Collection<com.trendmicro.grid.acl.ds.datatypes.SharedSourceInformation> getSourceInformationList(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
getSourceInformationList in interface com.trendmicro.grid.acl.ds.SourceRepositorypublic Collection<com.trendmicro.grid.acl.ds.datatypes.SharedSource> getSources(Collection<com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier> identifiers)
getSources in interface com.trendmicro.grid.acl.ds.SourceRepositorypublic JpaSource getSource(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier)
identifier - the identifier of the source.
public JpaSource getSourceReference(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier)
identifier - the identifier of the source.
@Transactional(readOnly=false)
public com.trendmicro.grid.acl.ds.datatypes.SharedSource createSource(URI remoteURI,
URI internalURI,
com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
createSource in interface com.trendmicro.grid.acl.ds.SourceRepository
@Transactional(readOnly=false)
public com.trendmicro.grid.acl.ds.datatypes.SharedSource updateSource(com.trendmicro.grid.acl.l0.datatypes.SourceInformation sourceInformation,
com.trendmicro.grid.acl.metadata.Metadata metadata)
updateSource in interface com.trendmicro.grid.acl.ds.SourceRepository
@Transactional(readOnly=false)
public void setInternalURI(com.trendmicro.grid.acl.l0.datatypes.SourceIdentifier identifier,
URI internalURI)
throws IllegalStateException
setInternalURI in interface com.trendmicro.grid.acl.ds.SourceRepositoryIllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||