Package com.netscape.cmscore.request
Class RequestRepository
java.lang.Object
com.netscape.cmscore.dbs.Repository
com.netscape.cmscore.request.RequestRepository
TODO: what does this class provide beyond the Repository
base class??
- Version:
- $Revision$ $Date$
- Author:
- thayes
-
Nested Class Summary
Nested classes/interfaces inherited from class com.netscape.cmscore.dbs.Repository
Repository.IDGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected String
static org.slf4j.Logger
static final String
static final String
Fields inherited from class com.netscape.cmscore.dbs.Repository
dbSubsystem, engine, idGenerator, idLength, maxSerialName, mBaseDN, mCounter, mIncrementNo, minSerialName, mLowWaterMarkNo, mMaxSerialNo, mMinSerialNo, mNextMaxSerialNo, mNextMinSerialNo, mRadix, nextMaxSerialName, nextMinSerialName, rangeDN, repositoryConfig, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionRequestRepository
(SecureRandom secureRandom, DBSubsystem dbSubsystem, String filter) Create a request repository that uses the LDAP database -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequest
(Request request) createRequest
(RequestId requestID, String requestType) createRequest
(String requestType) getLastSerialNumberInRange
(BigInteger min, BigInteger max) getPagedRequestsByFilter
(RequestId fromID, boolean jumpToEnd, String filter, int pageSize, String sortKey) Gets a pageable list of Request entries in this queue.void
init()
void
void
listRequestsByFilter
(String filter) listRequestsByFilter
(String filter, int maxSize) listRequestsByFilter
(String filter, int maxSize, int timeLimit) void
modifyRequest
(Request request) readRequest
(RequestId id) void
Removes all objects with this repository.void
removeRequest
(RequestId requestID) void
setPublishingStatus
(String status) void
updateRequest
(Request request) Update the request in the permanent data store.Methods inherited from class com.netscape.cmscore.dbs.Repository
checkRange, checkRanges, getBaseDN, getCMSEngine, getIDGenerator, getMaxSerial, getMinSerial, getNextMaxSerial, getNextRange, getNextSerialNumber, getNumbersInRange, getRadix, getRandomLimit, getRangeLength, hasRangeConflict, initCache, peekNextSerialNumber, setCMSEngine, setEnableSerialMgmt, setIDGenerator, setIDGenerator, setLastSerialNo, setMaxSerial, setMaxSerialConfig, setMinSerialConfig, setNextMaxSerial, setNextMaxSerialConfig, setNextMinSerialConfig, setTheSerialNumber
-
Field Details
-
logger
public static org.slf4j.Logger logger -
PROP_REQUEST_ID_GENERATOR
- See Also:
-
DEFAULT_REQUEST_ID_GENERATOR
- See Also:
-
PROP_REQUEST_ID_LENGTH
- See Also:
-
filter
-
-
Constructor Details
-
RequestRepository
Create a request repository that uses the LDAP database- Parameters:
dbSubsystem
- the LDAP database system.
-
-
Method Details
-
init
- Overrides:
init
in classRepository
- Throws:
Exception
-
initLegacyGenerator
- Throws:
Exception
-
init
- Throws:
Exception
-
createRequestID
- Throws:
EBaseException
-
createRequest
- Throws:
EBaseException
-
createRequest
- Throws:
EBaseException
-
addRequest
- Throws:
EBaseException
-
readRequest
- Throws:
EBaseException
-
getUserIdentity
-
updateRequest
Update the request in the permanent data store. This call can be made after changing a value like source ID or owner, to force the new value to be written. The request must be locked to make this call.- Parameters:
request
- the request that is being updated- Throws:
EBaseException
- failed to update request
-
modifyRequest
- Throws:
EBaseException
-
removeRequest
- Throws:
EBaseException
-
removeAllObjects
Removes all objects with this repository.- Throws:
EBaseException
-
listRequestsByFilter
- Throws:
EBaseException
-
listRequestsByFilter
- Throws:
EBaseException
-
listRequestsByFilter
public RequestList listRequestsByFilter(String filter, int maxSize, int timeLimit) throws EBaseException - Throws:
EBaseException
-
getPagedRequestsByFilter
public IRequestVirtualList getPagedRequestsByFilter(RequestId fromID, boolean jumpToEnd, String filter, int pageSize, String sortKey) throws EBaseException Gets a pageable list of Request entries in this queue. This jumps right to the end of the list.- Parameters:
fromID
- request id to start withjumpToEnd
- jump to end of list (set fromID to null)filter
- search filterpageSize
- page sizesortKey
- the attributes to sort by- Returns:
- request list
- Throws:
EBaseException
-
getLastSerialNumberInRange
- Specified by:
getLastSerialNumberInRange
in classRepository
- Throws:
EBaseException
-
getPublishingStatus
-
setPublishingStatus
-