Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
dbf5881b3b | |||
8870ade2d7 | |||
af8025237b |
6
pom.xml
6
pom.xml
@@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>com.inteligr8.alfresco.activiti</groupId>
|
||||
<artifactId>model-share-activiti-app-ext</artifactId>
|
||||
<version>1.0.6</version>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Model Share APS Extension</name>
|
||||
@@ -43,7 +43,7 @@
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.release>17</maven.compiler.release>
|
||||
|
||||
<aps.version>2.4.4</aps.version>
|
||||
<aps.version>24.3.0</aps.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -154,7 +154,7 @@
|
||||
<plugin>
|
||||
<groupId>org.sonatype.plugins</groupId>
|
||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||
<version>1.6.13</version>
|
||||
<version>1.7.0</version>
|
||||
<configuration>
|
||||
<serverId>ossrh</serverId>
|
||||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
|
||||
|
@@ -209,18 +209,17 @@ public class ModelShareWorker implements Bootstrappable {
|
||||
}
|
||||
|
||||
public void shareAllModels() {
|
||||
if (this.tenantId != null)
|
||||
this.shareAllModels(this.tenantId);
|
||||
this.shareAllModels(null);
|
||||
}
|
||||
|
||||
public void shareAllModels(Long tenantId) {
|
||||
this.shareApsFormModels();
|
||||
this.shareApsDataModels();
|
||||
this.shareApsDecisionTableModels();
|
||||
this.shareApsProcessModels();
|
||||
this.shareApsAppModels();
|
||||
this.shareAllActivitiModels(tenantId);
|
||||
|
||||
if (this.tenantId != null) {
|
||||
this.shareAllActivitiModels(this.tenantId);
|
||||
} else {
|
||||
this.shareAllActivitiModels(null);
|
||||
}
|
||||
}
|
||||
|
||||
private void shareApsFormModels() {
|
||||
@@ -284,7 +283,7 @@ public class ModelShareWorker implements Bootstrappable {
|
||||
this.logger.trace("Discovering activiti models with page size: {}", perPage);
|
||||
List<org.activiti.engine.repository.Model> models = query.listPage((page-1)*perPage, perPage);
|
||||
if (models.isEmpty()) {
|
||||
this.logger.debug("procDef counts: {}", this.services.getRepositoryService().createProcessDefinitionQuery().latestVersion().count());
|
||||
this.logger.debug("No activiti models; procDef count: {}", this.services.getRepositoryService().createProcessDefinitionQuery().latestVersion().count());
|
||||
}
|
||||
|
||||
while (!models.isEmpty()) {
|
||||
@@ -361,9 +360,15 @@ public class ModelShareWorker implements Bootstrappable {
|
||||
for (ModelShareInfo share : shares)
|
||||
map.put(new HashableGroup(share.getGroup()), share.getPermission());
|
||||
|
||||
pageable = pageable.next();
|
||||
shares = this.shareInfoRepo.findByModelIdOrderByShareDateAsc(model.getId(), pageable);
|
||||
}
|
||||
|
||||
if (this.logger.isTraceEnabled()) {
|
||||
this.logger.trace("Found existing shares: {}", map);
|
||||
} else {
|
||||
this.logger.debug("Found existing shares: {}", map.size());
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -419,7 +424,13 @@ public class ModelShareWorker implements Bootstrappable {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return this.group.getId().equals(((Group) obj).getId());
|
||||
if (obj instanceof HashableGroup) {
|
||||
return this.group.getId().equals(((HashableGroup) obj).getGroup().getId());
|
||||
} else if (obj instanceof Group) {
|
||||
return this.group.getId().equals(((Group) obj).getId());
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user