-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated agent with security roles for #43. I have tested the cases I …
…can test directly from Super.Human.Portal, but more robustness tests remain.
- Loading branch information
1 parent
d950efb
commit 9d695a6
Showing
21 changed files
with
453 additions
and
33 deletions.
There are no files selected for viewing
22 changes: 21 additions & 1 deletion
22
Super.Human.Portal_Agents/src/main/java/CustomBookmarkAgents/CustomBookmarkCreate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 21 additions & 2 deletions
23
Super.Human.Portal_Agents/src/main/java/CustomBookmarkAgents/CustomBookmarkDelete.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
package CustomBookmarkAgents; | ||
|
||
import java.util.Collection; | ||
|
||
import com.moonshine.domino.security.SecurityInterface; | ||
|
||
import auth.RoleRestrictedAgent; | ||
import auth.SecurityBuilder; | ||
|
||
/** | ||
* Modify this class for custom changes to the agent. | ||
*/ | ||
public class CustomBookmarkDelete extends CustomBookmarkDeleteBase { | ||
public class CustomBookmarkDelete extends CustomBookmarkDeleteBase implements RoleRestrictedAgent { | ||
|
||
public Collection<String> getAllowedRoles() { | ||
return SecurityBuilder.buildList(SecurityBuilder.ROLE_ADMINISTRATOR); | ||
} | ||
|
||
public SecurityInterface checkSecurity() { | ||
return getSecurity(); | ||
} | ||
|
||
@Override | ||
protected SecurityInterface createSecurityInterface() { | ||
return SecurityBuilder.buildInstance(agentDatabase, this, session, getLog()); | ||
} | ||
|
||
// No modifications by default | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 22 additions & 1 deletion
23
Super.Human.Portal_Agents/src/main/java/DocumentationFormAgents/DocumentationFormCreate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
package DocumentationFormAgents; | ||
|
||
import java.util.Collection; | ||
|
||
import com.moonshine.domino.security.SecurityInterface; | ||
|
||
import auth.RoleRestrictedAgent; | ||
import auth.SecurityBuilder; | ||
import auth.SimpleRoleSecurity; | ||
|
||
/** | ||
* Modify this class for custom changes to the agent. | ||
*/ | ||
public class DocumentationFormCreate extends DocumentationFormCreateBase { | ||
public class DocumentationFormCreate extends DocumentationFormCreateBase implements RoleRestrictedAgent { | ||
|
||
public Collection<String> getAllowedRoles() { | ||
return SecurityBuilder.buildList(SimpleRoleSecurity.ROLE_ALL); | ||
} | ||
|
||
public SecurityInterface checkSecurity() { | ||
return getSecurity(); | ||
} | ||
|
||
@Override | ||
protected SecurityInterface createSecurityInterface() { | ||
return SecurityBuilder.buildInstance(agentDatabase, this, session, getLog()); | ||
} | ||
|
||
// No modifications by default | ||
} |
23 changes: 22 additions & 1 deletion
23
Super.Human.Portal_Agents/src/main/java/DocumentationFormAgents/DocumentationFormDelete.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
package DocumentationFormAgents; | ||
|
||
import java.util.Collection; | ||
|
||
import com.moonshine.domino.security.SecurityInterface; | ||
|
||
import auth.RoleRestrictedAgent; | ||
import auth.SecurityBuilder; | ||
import auth.SimpleRoleSecurity; | ||
|
||
/** | ||
* Modify this class for custom changes to the agent. | ||
*/ | ||
public class DocumentationFormDelete extends DocumentationFormDeleteBase { | ||
public class DocumentationFormDelete extends DocumentationFormDeleteBase implements RoleRestrictedAgent { | ||
|
||
public Collection<String> getAllowedRoles() { | ||
return SecurityBuilder.buildList(SimpleRoleSecurity.ROLE_ALL); | ||
} | ||
|
||
public SecurityInterface checkSecurity() { | ||
return getSecurity(); | ||
} | ||
|
||
@Override | ||
protected SecurityInterface createSecurityInterface() { | ||
return SecurityBuilder.buildInstance(agentDatabase, this, session, getLog()); | ||
} | ||
|
||
// No modifications by default | ||
} |
23 changes: 22 additions & 1 deletion
23
Super.Human.Portal_Agents/src/main/java/DocumentationFormAgents/DocumentationFormRead.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
package DocumentationFormAgents; | ||
|
||
import java.util.Collection; | ||
|
||
import com.moonshine.domino.security.SecurityInterface; | ||
|
||
import auth.RoleRestrictedAgent; | ||
import auth.SecurityBuilder; | ||
import auth.SimpleRoleSecurity; | ||
|
||
/** | ||
* Modify this class for custom changes to the agent. | ||
*/ | ||
public class DocumentationFormRead extends DocumentationFormReadBase { | ||
public class DocumentationFormRead extends DocumentationFormReadBase implements RoleRestrictedAgent { | ||
|
||
public Collection<String> getAllowedRoles() { | ||
return SecurityBuilder.buildList(SimpleRoleSecurity.ROLE_ALL); | ||
} | ||
|
||
public SecurityInterface checkSecurity() { | ||
return getSecurity(); | ||
} | ||
|
||
@Override | ||
protected SecurityInterface createSecurityInterface() { | ||
return SecurityBuilder.buildInstance(agentDatabase, this, session, getLog()); | ||
} | ||
|
||
// No modifications by default | ||
} |
23 changes: 22 additions & 1 deletion
23
Super.Human.Portal_Agents/src/main/java/DocumentationFormAgents/DocumentationFormUpdate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
package DocumentationFormAgents; | ||
|
||
import java.util.Collection; | ||
|
||
import com.moonshine.domino.security.SecurityInterface; | ||
|
||
import auth.RoleRestrictedAgent; | ||
import auth.SecurityBuilder; | ||
import auth.SimpleRoleSecurity; | ||
|
||
/** | ||
* Modify this class for custom changes to the agent. | ||
*/ | ||
public class DocumentationFormUpdate extends DocumentationFormUpdateBase { | ||
public class DocumentationFormUpdate extends DocumentationFormUpdateBase implements RoleRestrictedAgent { | ||
|
||
public Collection<String> getAllowedRoles() { | ||
return SecurityBuilder.buildList(SimpleRoleSecurity.ROLE_ALL); | ||
} | ||
|
||
public SecurityInterface checkSecurity() { | ||
return getSecurity(); | ||
} | ||
|
||
@Override | ||
protected SecurityInterface createSecurityInterface() { | ||
return SecurityBuilder.buildInstance(agentDatabase, this, session, getLog()); | ||
} | ||
|
||
// No modifications by default | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 21 additions & 1 deletion
22
Super.Human.Portal_Agents/src/main/java/GenesisDirectoryAgents/GenesisDirectoryDelete.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
package GenesisDirectoryAgents; | ||
|
||
import java.util.Collection; | ||
|
||
import com.moonshine.domino.security.SecurityInterface; | ||
|
||
import auth.RoleRestrictedAgent; | ||
import auth.SecurityBuilder; | ||
|
||
/** | ||
* Modify this class for custom changes to the agent. | ||
*/ | ||
public class GenesisDirectoryDelete extends GenesisDirectoryDeleteBase { | ||
public class GenesisDirectoryDelete extends GenesisDirectoryDeleteBase implements RoleRestrictedAgent { | ||
|
||
public Collection<String> getAllowedRoles() { | ||
return SecurityBuilder.buildList(SecurityBuilder.ROLE_ADMINISTRATOR); | ||
} | ||
|
||
public SecurityInterface checkSecurity() { | ||
return getSecurity(); | ||
} | ||
|
||
@Override | ||
protected SecurityInterface createSecurityInterface() { | ||
return SecurityBuilder.buildInstance(agentDatabase, this, session, getLog()); | ||
} | ||
|
||
// No modifications by default | ||
} |
Oops, something went wrong.