private boolean checkProjectExists(String id) throws BizPolicyException { boolean found = false; Project project = projectBizService.getProject(id); if (project != null) { found = true; } return found; }
private boolean checkProjectExists(String id) throws BizPolicyException { boolean found = false; Project project = projectBizService.getProject(id); if (project != null) { found = true; } return found; }
Project project = projectBizService.getProject(objectId); if(project != null){ UiProjectObject uiProjectObject = new UiProjectObject(project);
String id = util.buildRequestUrl(request); Project project = projectBizService.getProject(id, user);
String id = util.buildRequestUrl(request); Project project = projectBizService.getProject(id, user);
Project project = projectBizService.getProject(objectId); if(project != null){ UiProjectObject uiProjectObject = new UiProjectObject(project);
Project project = projectBizService.getProject(businessObjectId); try{ for(String id : relationshipService.getCollectionIdsForProjectId(businessObjectId)){
Project project = projectBizService.getProject(businessObjectId); try{ for(String id : relationshipService.getCollectionIdsForProjectId(businessObjectId)){
parent = projectBizService.getProject(parentId); } else if (id.getType().equals(Types.COLLECTION.name())) { parent = collectionBizService.getCollection(parentId);
private void ingestCollection(Collection collection, IngestWorkflowState state, Person user) throws BizPolicyException, BizInternalException, StatefulIngestServiceException { //Check the collection parent is a project this can happen if the project is specified in the collection isPartOf section in the REM. if (collection.getParentId() != null && !collection.getParentId().isEmpty()) { if (projectBizService.getProject(collection.getParentId()) != null) { collection.setParentProjectId(collection.getParentId()); collection.setParentId(null); } } //Check to make sure any parent collections are already deposited if (collection.getParentId() != null && !collection.getParentId().isEmpty()) { Collection parent = collectionBizService.getCollection(collection.getParentId()); if (parent == null) { Collection parentInPackage = (Collection) state.getBusinessObjectManager().get(collection.getParentId()); if (parentInPackage == null) { throw new StatefulIngestServiceException("Parent Collection " + collection.getParentId() + " for collection " + collection.getId() + " could not be found."); } else { ingestCollection(parentInPackage, state, user); } } } collectionBizService.createCollection(collection, user); }
private void ingestCollection(Collection collection, IngestWorkflowState state, Person user) throws BizPolicyException, BizInternalException, StatefulIngestServiceException { //Check the collection parent is a project this can happen if the project is specified in the collection isPartOf section in the REM. if (collection.getParentId() != null && !collection.getParentId().isEmpty()) { if (projectBizService.getProject(collection.getParentId()) != null) { collection.setParentProjectId(collection.getParentId()); collection.setParentId(null); } } //Check to make sure any parent collections are already deposited if (collection.getParentId() != null && !collection.getParentId().isEmpty()) { Collection parent = collectionBizService.getCollection(collection.getParentId()); if (parent == null) { Collection parentInPackage = (Collection) state.getBusinessObjectManager().get(collection.getParentId()); if (parentInPackage == null) { throw new StatefulIngestServiceException("Parent Collection " + collection.getParentId() + " for collection " + collection.getId() + " could not be found."); } else { ingestCollection(parentInPackage, state, user); } } } collectionBizService.createCollection(collection, user); }
parent = projectBizService.getProject(parentId); } else if (id.getType().equals(Types.COLLECTION.name())) { parent = collectionBizService.getCollection(parentId);
project = projectBizService.getProject(collection.getParentProjectId(), user); if (project == null) { throw new BizInternalException("The identified project '" + collection.getParentProjectId() + "' could not be found.");
project = projectBizService.getProject(collection.getParentProjectId(), user); if (project == null) { throw new BizInternalException("The identified project '" + collection.getParentProjectId() + "' could not be found.");
Project project = projectBizService.getProject(parentId); if (project != null){ canUpdate = authorizationService.canUpdateProject(user, project);
Project project = projectBizService.getProject(parentId); if (project != null){ canUpdate = authorizationService.canUpdateProject(user, project);