agave-apps/apps-core/src/main/java/org/iplantc/service/apps/managers/SoftwarePermissionManager.java
/**
	 * Clears all permissions on a Software object. The userResponsible is used in the 
	 * log messages.
	 * 
	 * @param software
	 * @param userResponsible
	 * @throws SoftwareException
	 */
Clears all permissions on a Software object. The userResponsible is used in the
log messages.

@param software
@param userResponsible
@throws SoftwareException
Clears all permissions on a Software object . The userResponsible is used in the log messages . @param software @param userResponsible @throws SoftwareException
public void clearAllPermissions(Software software, String userResponsible) throws SoftwareException
	{
		if (software == null) {
			throw new SoftwareException("No software specified");
		}
		for (SoftwarePermission pem: software.getPermissions()) {
			pem.setSoftware(null);
		}
		software.getPermissions().clear();
		SoftwareDao.persist(software);
	}
public void clearAllPermissions ( Software software , String userResponsible ) throws SoftwareException { if ( software == null ) { throw new SoftwareException ( "No software specified" ) ; } for ( SoftwarePermission pem : software . getPermissions ( ) ) { pem . setSoftware ( null ) ; } software . getPermissions ( ) . clear ( ) ; SoftwareDao . persist ( software ) ; }
Clears all permissions on a Software object.
Clears all permissions on a Software object .
//		ApplicationManager.addEvent(software,  //                SoftwareEventType.PERMISSION_REVOKE,  //                "Permissions were revoked for all users by " + userResponsible,  //                userResponsible);